CURL - TTFB Measure

From IT-Arts.net
Revision as of 07:14, 17 January 2026 by Admin (talk | contribs) (Text replacement - "Category:Wiki" to "Category:Wiki '''''[https://it-arts.net/index.php/Category:Wiki Return to Wiki Index]''''' ")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


Return to Wiki Index


Time to first byte (TTFB) is a measurement used as an indication of the responsiveness of a webserver or other network resource. TTFB measures the duration from the user or client making an HTTP request to the first byte of the page being received by the client's browser.


Curl Command

curl -s -o /dev/null -H 'Cache-Control: no-cache' -w "Connect: %{time_connect} TTFB: %{time_starttransfer} Total time: %{time_total}\n" https://<TESTING_URL>

Where :

  • -s : --silent
  • -o : --output
  • -H : --header
  • -w : --write-out <FORMAT>