Skip to content

Instantly share code, notes, and snippets.

@harperreed
Created September 27, 2012 01:21
Show Gist options
  • Save harperreed/3791642 to your computer and use it in GitHub Desktop.
Save harperreed/3791642 to your computer and use it in GitHub Desktop.
a cUrl command that times the speed of websites
if [ "$1" ]
then
curl -w "\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" -o /dev/null -s $1
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment