Skip to content

Instantly share code, notes, and snippets.

@derryl
Created August 14, 2012 06:54
Show Gist options
  • Save derryl/3347061 to your computer and use it in GitHub Desktop.
Save derryl/3347061 to your computer and use it in GitHub Desktop.
curl function that outputs timing info
tcurl() {
curl -o /dev/null -s -w "Response code: %{http_code}\nTime to connect: %{time_connect} secs\nFirst byte received: %{time_starttransfer} secs\nTotal time: %{time_total} secs\n\n%{size_download} bytes received at %{speed_download} bytes/sec\n" --silent $1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment