Created
January 25, 2018 07:49
-
-
Save xiii/51718672915fdd3961f62bd2e100f051 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# | |
# Curl with report | |
# | |
get () { | |
curl -w "\ | |
response_code: %{response_code}\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\ | |
" -o /dev/null -s "$1" | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment