Skip to content

Instantly share code, notes, and snippets.

@NapoleonWils0n
Created November 3, 2012 22:33
Show Gist options
  • Save NapoleonWils0n/4009142 to your computer and use it in GitHub Desktop.
Save NapoleonWils0n/4009142 to your computer and use it in GitHub Desktop.
bash: curl time to first byte
curl -o /dev/null -w "Connect: %{time_connect} TTFB: %{time_starttransfer} Total time: %{time_total} \n" http://inserturl.here
Copy link

ghost commented Jul 6, 2017

You should throw a -s in there too to quiet curl's progress bar.

@rajuginne
Copy link

% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 79283 0 79283 0 0 78717 0 --:--:-- 0:00:01 --:--:-- 78731
Connect: 0.625600 TTFB: 0.741260 Total time: 1.007180

what is above code mean without ttfb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment