Skip to content

Instantly share code, notes, and snippets.

@bobbyno
Created March 27, 2012 21:58
Show Gist options
  • Save bobbyno/2220764 to your computer and use it in GitHub Desktop.
Save bobbyno/2220764 to your computer and use it in GitHub Desktop.
curl with timing
#!/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