ubuntu - wget时间测量

标签 ubuntu time wget

我正在使用 wget 进行 http 流量测量。由于网络速度很快并且 http 数据量很小,wget 无法测量下载 session 的时间和速率。那么我该如何测量时间呢?也许有人可以帮助提供能够解决此问题的脚本或其他应用程序。

提前致谢!

最佳答案

正如 user1718019 所暗示的那样, curl 可以为你做这件事:

curl -so /dev/null -w '%{time_total}\n' http://www.example.com/

根据手册,这将在 stdout 上打印:

The total time, in seconds, that the full operation lasted. The time will be displayed with millisecond resolution.

关于ubuntu - wget时间测量,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12714584/

相关文章:

json - 从 RESTful Web 服务递归下载资源

ubuntu - Kinect + ROS + VMware Ubuntu

exception - 导入错误 : No module named exceptions

python - 模拟时间python

javascript - 如何使分钟值在秒达到 60 后从 0 开始?

linux - WGET - 在下载网站时排除 .ZIP 文件

linux - 在 wget 命令中使用用户提供的 header 值的问题

ubuntu - 在 Ubuntu Server 16.04 上安装 CouchDB 2.1

ubuntu - ffmpeg 的输出

python utc 时间减去 5 分钟