Created
August 14, 2012 06:54
-
-
Save derryl/3347061 to your computer and use it in GitHub Desktop.
curl function that outputs timing info
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
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