↑ ↓ select, Enter open, Esc close

Measure HTTP load times and TTFB with curl

Adjust the values, the command updates live
user@server
curl -o /dev/null -sS -w 'DNS: %{time_namelookup}s  Connect: %{time_connect}s  TLS: %{time_appconnect}s  TTFB: %{time_starttransfer}s  Gesamt: %{time_total}s\n' https://example.com/

Loads the page, discards the content and prints the cumulative timestamps of the individual phases. A high TTFB with a fast TLS handshake points to slow PHP or a slow database. A high DNS time, on the other hand, indicates a name resolution problem.

Note: The values are cumulative, each value includes the previous phases.

Also searched as

  • measure ttfb with curl
  • curl timing breakdown
  • why is my website slow time to first byte

Related one-liners

All in Network

Read first, then run.

The commands on myline.de act directly on servers, files and databases. A wrong path or placeholder can delete data irreversibly or make a server unreachable.

  • All commands are provided without warranty and are not tested on every system.
  • Understand what a command does before running it, and check every placeholder.
  • Make a backup first and, if possible, try it on a test system.
  • You run commands at your own risk. Liability for damages is excluded to the extent permitted by law.