美文网首页网络
【http】如何测试一个网站访问耗时在哪些环节?

【http】如何测试一个网站访问耗时在哪些环节?

作者: Bogon | 来源:发表于2022-06-08 00:09 被阅读0次

用 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

相关文章

  • 【http】如何测试一个网站访问耗时在哪些环节?

    用 curl 命令分析请求的耗时情况https://cizixs.com/2017/04/11/use-curl-...

  • SQL 练习指南

    在线SQL 测试网站:http://www.sqlfiddle.com/,这个网站有时访问不太稳定。 下面的表和题...

  • ASP.NET

    ASP.NET考试简答题 1. 如何访问自己做的网站? http://ip地址/网页 http://127.0.0...

  • http与https

    HTTP HTTP 默认工作在 TCP 协议 80 端口 用户访问网站 以http://打头 HTTP 协议以明文...

  • 大型网站优化之高可用

    网站的页面能完整的呈现在最终用户面前,要经过许多环节,任何一个环节出了问题,都可能导致网站页面不能访问。D...

  • Swift3 - 更加细分的访问控制级别

    访问控制可以限定哪些代码你可以访问,哪些代码你不能访问。 测试环境 系统版本 10.11.5 Beta Swift...

  • PHP网络编程(与网络互联)

    一、 访问其他网站 ① 直接以类似于访问自己硬盘上一个文本文件的方式来访问其他网站: fopen('http://...

  • laravel-admin配置https的问题(ssl证书)

    给自己的一个网站配置HTTPS,配置完之后出现网站可以正常访问https,但样式却还是访问的是http,我的网站是...

  • HTTP访问一个网站的过程详解

    访问一个网站的过程详解 例如访问:http://www.baidu.com HTTP请求的准备 浏览器会将www....

  • 测试工程师-笔试题

    一、测试人员在软件研发过程中,需要参与哪些流程环节?每个环节存在哪些风险? 答:需要参与流程为:需求分析审查、设计...

网友评论

    本文标题:【http】如何测试一个网站访问耗时在哪些环节?

    本文链接:https://www.haomeiwen.com/subject/fnnkmrtx.html