Finding out where most of a http’s request time is spent can be done with curl too:

  1. create a curl output format file named time-fmt.txt with the following content:
    time_namelookup: %{time_namelookup}\n
    time_connect: %{time_connect}\n
    time_appconnect: %{time_appconnect}\n
    time_pretransfer: %{time_pretransfer}\n
    time_redirect: %{time_redirect}\n
    time_starttransfer: %{time_starttransfer}\n
    ----------\n
    time_total: %{time_total}\n
    view raw time-fmt.txt hosted with ❤ by GitHub
  2. Call curl like this:
    curl -w "@time-fmt.txt" -s "https://google.com" -o NUL

The results of this will look like this:
curl

Leave a comment