Created
March 27, 2012 21:58
-
-
Save bobbyno/2220764 to your computer and use it in GitHub Desktop.
curl with timing
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
#!/usr/bin/env bash | |
result=`curl -o /dev/null -s -w %{time_connect}:%{time_starttransfer}:%{time_total} $1` | |
echo -e "Time_Connect\tTime_startTransfer\tTime_total" | |
echo $result | awk -F: '{ print $1"\t"$2"\t"$3 }' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment