用 curl 命令分析请求的耗时情况
https://cizixs.com/2017/04/11/use-curl-to-analyze-request
Timing Details With cURL
https://blog.josephscott.org/2011/10/14/timing-details-with-curl
https://github.com/mat/dotfiles/blob/master/bin/curlt
$ curl -o /dev/null -s -w \
"time_connect: %{time_connect} \n \
time_starttransfer: %{time_starttransfer} \n \
time_nslookup:%{time_namelookup} \n \
time_total: %{time_total} \n" \
https://www.example.com
How do I measure request and response times at once using cURL?
https://stackoverflow.com/questions/18215389/how-do-i-measure-request-and-response-times-at-once-using-curl/
# cat curl-format.txt
time_namelookup: %{time_namelookup}
time_connect: %{time_connect}
time_appconnect: %{time_appconnect}
time_pretransfer: %{time_pretransfer}
time_redirect: %{time_redirect}
time_starttransfer: %{time_starttransfer}
———
time_total: %{time_total}
# curl https://www.baidu.com --trace-time -v -o /dev/null
image.png
httpstat
httpstat visualizes curl(1) statistics in a way of beauty and clarity.
https://github.com/reorx/httpstat
https://raw.githubusercontent.com/reorx/httpstat/master/httpstat.py
# pip install httpstat
# httpstat https://www.example.com
image.png
httpstat:一个检查网站性能的 curl 统计分析工具
https://mp.weixin.qq.com/s/TdbQmezPTEQhF0UVSlnrPA
前端抱怨API响应慢,怎么办?
https://mp.weixin.qq.com/s/ZYmlgB7gREf_7sGb9PV6sA
字节一面:网站显示不出来,怎么排查?
https://mp.weixin.qq.com/s/2dT9SlEhimW1conTVbZ8ZQ








网友评论