Skip to content

Instantly share code, notes, and snippets.

@alexlovelltroy
Created December 9, 2014 22:18
Show Gist options
  • Select an option

  • Save alexlovelltroy/d2aa1d69f661310bfcb9 to your computer and use it in GitHub Desktop.

Select an option

Save alexlovelltroy/d2aa1d69f661310bfcb9 to your computer and use it in GitHub Desktop.
HTTP network testing with curl
# Graciously lifted from http://overloaded.io/timing-http-requests-curl
for i in {1..10};do curl -s -w @curl-format -o /dev/null "http://Www.pythian.com"; done
\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
\n
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment