Created
May 25, 2016 21:26
-
-
Save leocelis/ad5309fcf4c4eb78f1555cd9fb8849f0 to your computer and use it in GitHub Desktop.
Timing Details with cURL
This file contains 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
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