Skip to content

Instantly share code, notes, and snippets.

@traedamatic
Created June 4, 2015 09:01
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 traedamatic/692e489c9512b35e8980 to your computer and use it in GitHub Desktop.
Save traedamatic/692e489c9512b35e8980 to your computer and use it in GitHub Desktop.
Measure time with cURL
# @see https://josephscott.org/archives/2011/10/timing-details-with-curl/
# do a request curl -w "@timeMeassure.txt" -o /dev/null -s "http://wordpress.com/"
\n
time_namelookup: %{time_namelookup}\n
time_connect: %{time_connect}\n
time_appconnect: %{time_appconnect}\n
time_pretransfer: %{time_pretransfer}\n
time_redirect: %{time_redirect}\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