Skip to content

Instantly share code, notes, and snippets.

@ll911
Created May 9, 2017 21:10
Show Gist options
  • Save ll911/92cdcb0fb281b53ee24dc2099aa80f33 to your computer and use it in GitHub Desktop.
Save ll911/92cdcb0fb281b53ee24dc2099aa80f33 to your computer and use it in GitHub Desktop.
curl time report

vi /tmp/tm

    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
curl -w "@/tmp/tm" -o /dev/null -s "http://wordpress.com/"

or

curl -w "@c:\tmp\tm" -o NULL -s "http://wordpress.com/"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment