Skip to content

Instantly share code, notes, and snippets.

@adautoneto
Created August 28, 2013 17:45
Show Gist options
  • Save adautoneto/6368977 to your computer and use it in GitHub Desktop.
Save adautoneto/6368977 to your computer and use it in GitHub Desktop.
#!/bin/bash
CURL="/usr/bin/curl"
GAWK="/usr/bin/gawk"
result=`$CURL -o /dev/null -s -w %{time_connect}:%{time_starttransfer}:%{time_total} $1`
echo " Time_Connect Time_startTransfer Time_total "
echo $result | $GAWK -F: '{ print $1" "$2" "$3}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment