Skip to content

Instantly share code, notes, and snippets.

@wunki
Created October 9, 2018 12:29
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 wunki/49a1028699b945ca377e374b206f5f0c to your computer and use it in GitHub Desktop.
Save wunki/49a1028699b945ca377e374b206f5f0c to your computer and use it in GitHub Desktop.
function curl_time -d "Measure the response time for a given URL"
curl -so /dev/null -w "\
namelookup: %{time_namelookup}s\n\
connect: %{time_connect}s\n\
appconnect: %{time_appconnect}s\n\
pretransfer: %{time_pretransfer}s\n\
redirect: %{time_redirect}s\n\
starttransfer: %{time_starttransfer}s\n\
-------------------------\n\
total: %{time_total}s\n" $argv
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment