curl -s -o /dev/null -w '%{time_connect} %{time_starttransfer} %{time_total}\n' https://example.com

Category: Web Servers & Proxies

curl -s -o /dev/null -w '%{time_connect} %{time_starttransfer} %{time_total}\n' https://example.com

Break down connection, TTFB, and total response time

time_connect is the TCP handshake, time_starttransfer is when the first response byte arrives (time to first byte, often the slowest part for dynamic sites), and time_total is the whole request. Comparing them shows whether latency is network, TLS, or application-side. Run it a few times to separate cold starts from steady-state latency.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.