curl查看数据包延迟情况

命令如下:

curl -o /dev/null -s -w "time_connect: %{time_connect}\ntime_starttransfer: %{time_starttransfer}\ntime_total: %{time_total}\n" "http[s]://<加速域名>"


time_connect:连接时间,从开始到建立TCP连接完成所用的时间,单位为秒。
time_starttransfer:开始传输时间。在客户端发出请求后,到后端服务器响应第一个字节所用的时间,单位为秒。
time_total:连接总时间。客户端发出请求后,到后端服务器响应会话所用的时间,单位为秒。

  

posted @ 2024-07-08 21:14  lucky_tomato  阅读(2)  评论(0编辑  收藏  举报