我正在使用 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/