CURL - TTFB Measure: Difference between revisions

From IT-Arts.net
m Text replacement - "Category:Post-It" to "Category:Wiki"
m Text replacement - "Category:Wiki" to "Category:Wiki '''''[https://it-arts.net/index.php/Category:Wiki Return to Wiki Index]''''' "
 
Line 1: Line 1:
[[Category:Wiki]]
[[Category:Wiki]]
'''''[https://it-arts.net/index.php/Category:Wiki 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.
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.

Latest revision as of 07:14, 17 January 2026


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>