Skip to content

Instantly share code, notes, and snippets.

@huang-x-h
Last active August 29, 2015 14:06
Show Gist options
  • Save huang-x-h/a9fb2afa4f18ca2dc80c to your computer and use it in GitHub Desktop.
Save huang-x-h/a9fb2afa4f18ca2dc80c to your computer and use it in GitHub Desktop.
查看tcp和ssl链接耗时
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