用法类似 curl https://example.com
它可以输出请求到响应各阶段的耗时,包括 DNS 解析、TLS 握手、等信息
1
Livid MOD curl -o /dev/null -s -w " \
namelookup: %{time_namelookup}\n \ connect: %{time_connect}\n \ appconnect: %{time_appconnect}\n \ pretransfer: %{time_pretransfer}\n \ redirect: %{time_redirect}\n \ starttransfer: %{time_starttransfer}\n \ total: %{time_total}\n" \ https://www.v2ex.com/ |
2
Yosomi 2023-09-30 01:22:27 +08:00 via iPhone
|
3
Routeros 2023-10-08 03:51:52 +08:00
curl -X GET -v "https://www.baidu.cn/" -H "accept: */*" -w "\n"DNS 时间:"%{time_namelookup}\n"到握手时间:"%{time_connect}\n"握手时间:"%{time_appconnect}\n"re 时间:"%{time_redirect}\n"到即将传输开始时间:"%{time_pretransfer}\n"到传输第一个字节时间"%{time_starttransfer}\n"总时间:"%{time_total}\n"下载速度:"%{speed_download}"Bps"\n"下载总量:"%{size_download}"B"\n"
|