Skip to content

Instantly share code, notes, and snippets.

@clarencetw
Last active July 27, 2019 15:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save clarencetw/be2c5951fb84ddf4738927a6664e7798 to your computer and use it in GitHub Desktop.
Save clarencetw/be2c5951fb84ddf4738927a6664e7798 to your computer and use it in GitHub Desktop.
curl-details-tcp-ssl-connection-time
clarence:~$ curl https://blog.clarence.tw
clarence:~$ curl -o /dev/null https://blog.clarence.tw
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 32550 0 32550 0 0 27874 0 --:--:-- 0:00:01 --:--:-- 27892
clarence:~$ curl -w "@curl-format.txt" https://blog.clarence.tw
clarence:~$ curl -w "@curl-format.txt" -o /dev/null https://blog.clarence.tw
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 32549 0 32549 0 0 89956 0 --:--:-- --:--:-- --:--:-- 90163
time_namelookup: 0.004850
time_connect: 0.018008
time_appconnect: 0.089712
time_redirect: 0.000000
time_pretransfer: 0.089951
time_starttransfer: 0.346289
----------
time_total: 0.361829
\n
time_namelookup: %{time_namelookup}\n
time_connect: %{time_connect}\n
time_appconnect: %{time_appconnect}\n
time_redirect: %{time_redirect}\n
time_pretransfer: %{time_pretransfer}\n
time_starttransfer: %{time_starttransfer}\n
----------\n
time_total: %{time_total}\n
\n
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment