Last active
August 29, 2015 14:06
-
-
Save huang-x-h/a9fb2afa4f18ca2dc80c to your computer and use it in GitHub Desktop.
查看tcp和ssl链接耗时
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -w "TCP handshake: %{time_connect}, SSL handshake: %{time_appconnect}\n" -so /dev/null https://www.alipay.com | |
#上面命令中的w参数表示指定输出格式,timeconnect变量表示TCP握手的耗时,timeappconnect变量表示SSL握手的耗时(更多变量请查看文档和实例),s参数和o参数用来关闭标准输出。 | |
#摘自http://www.ruanyifeng.com/blog/2014/09/ssl-latency.html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment