Skip to content

Instantly share code, notes, and snippets.

@leocelis
Created May 25, 2016 21:26
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 leocelis/ad5309fcf4c4eb78f1555cd9fb8849f0 to your computer and use it in GitHub Desktop.
Save leocelis/ad5309fcf4c4eb78f1555cd9fb8849f0 to your computer and use it in GitHub Desktop.
Timing Details with cURL
Blog post: https://josephscott.org/archives/2011/10/timing-details-with-curl/
Checkout repo: https://github.com/leocelis/python3buildingblocks
Then run:
$ curl -w "@curl-format.txt" -o /dev/null -s -X GET "http://www.google.com"
You will get an output like this:
time_namelookup: 0.031
time_connect: 0.043
time_appconnect: 0.000
time_pretransfer: 0.043
time_redirect: 0.000
time_starttransfer: 0.118
----------
time_total: 0.12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment