Curl response timings

Get clear information related to curl responses

When wanting to time responses via curl, there’s a small layout you can use

Run the following to create a curl response template:

echo "     time_namelookup:  %{time_namelookup}s\n
        time_connect:  %{time_connect}s\n
     time_appconnect:  %{time_appconnect}s\n
    time_pretransfer:  %{time_pretransfer}s\n
       time_redirect:  %{time_redirect}s\n
  time_starttransfer:  %{time_starttransfer}s\n
                     ----------\n
          time_total:  %{time_total}s\n" > curl-format.txt

and then run
curl -w "@curl-format.txt" -o /dev/null -s "http://wordpress.com/"

The result will look something like this: curl response timings