#!/bin/sh
# Usage: curl-timings.sh 'https://m.freelancer.com'
echo "Timings breakdown to $1:"
curl -w "
            DNS Lookup:  %{time_namelookup}
           TCP Connect:  %{time_connect}
         SSL Handshake:  %{time_appconnect}
         Request Start:  %{time_pretransfer}
              Redirect:  %{time_redirect}
            First Byte:  %{time_starttransfer}
                         ----------
                 Total:  %{time_total}
n" -o /dev/null -s $1
