-
-
Save mgor/f48a990b8b2b535a5b2947902e7e4043 to your computer and use it in GitHub Desktop.
cURL measurements as json
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
↳ cat curl-format.txt | |
{\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 | |
"time_total": %{time_total}\n | |
}\n | |
↳ LC_NUMERIC="en_US-UTF-8" curl -w "@curl-format.txt" -o /dev/null -s "https://www.github.com" | |
{ | |
"time_namelookup": 0.060, | |
"time_connect": 0.178, | |
"time_appconnect": 0.639, | |
"time_pretransfer": 0.639, | |
"time_redirect": 0.000, | |
"time_starttransfer": 0.756, | |
"time_total": 0.756 | |
} | |
↳ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Oneliner: