0
点赞
收藏
分享

微信扫一扫

如何测试https网站的速度,私藏秘笈公布于众

以萤石云开发者API平台为例:

1、测试访问速度

curl -o /dev/null -s -w 
	time_namelookup:"\t"%{time_namelookup}"\n"time_connect:"\t\t"%{time_connect}"\n"time_pretransfer:"\t"%{time_pretransfer}"\n"time_starttransfer:"\t"%{time_starttransfer}"\n"time_total:"\t\t"%{time_total}"\n"time_redirect:"\t\t"%{time_redirect}"\n" 
  https://open.ys7.com/api

如何测试https网站的速度,私藏秘笈公布于众_SSL

(1)DNS解析耗时:0.061s

time_namelookup:域名解析完成耗时

(2)TCP建立连接的耗时:0.096s-0.061s

time_connect:TCP建立完成耗时

time_pretransfer:准备开始传输数据耗时

(3)server处理数据的时间:0.314s-0.275s

time_starttransfer:开始传输数据的耗时,curl接收到第一个字节

(4)总体的耗时:0.314s

time_total:总的耗时

(5)redirect的耗时为0

time_redirect:整个过程重定向的耗时

2、测试握手时间

curl -w "TCP handshake: %{time_connect}, SSL handshake: %{time_appconnect}\n" -so /dev/null https://open.ys7.com/api

如何测试https网站的速度,私藏秘笈公布于众_HTTPS_02

上图,TCP握手时间再0.04s左右波动,SSL握手时间再0.22s左右波动。

举报

相关推荐

0 条评论