Time to First Byte (TTFB) is the measurement used for the responsiveness of a webserver or other network resource. TTFB measures the duration from the user making HTTP request to the first byte of the page received by the client’s browser.
The following command uses CURL command to check the TTFB from your Linux or Mac terminal app.
$ curl -o /dev/null -w “Connect: %{time_connect} TTFB: %{time_starttransfer} Total time: %{time_total} \n” <Website>/
$ curl -o /dev/null -w “Connect: %{time_connect} TTFB: %{time_starttransfer} Total time: %{time_total} \n” https://velaninfo.com/
root@node-js:~# curl -o /dev/null -w “Connect: %{time_connect} TTFB: %{time_starttransfer} Total time: %{time_total} \n” https://velaninfo.com/
The output for the above command is as follows –
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 –:–:– –:–:– –:–:– 0
Connect: 0.104359 TTFB: 0.211443 Total time: 0.211473
Result: Our Site Time To First Byte is 0.2 seconds.
At Velan, our server support engineers can help you check the Time to First Byte using CURL command. We troubleshoot problems like these for our clients every day. If you are interested in our service, please fill the Quick connect form to get in touch with us