Linux networking · Testing connectivity

Time each phase of a request

Show how long DNS, connecting, TLS and the first byte took.

curl -s -o /dev/null -w "dns %{time_namelookup}s connect %{time_connect}s tls %{time_appconnect}s ttfb %{time_starttransfer}s total %{time_total}s\n" https://example.com

Official Linux networking documentation

More testing connectivity commands

All testing connectivity commands · Linux networking cheatsheet

Was this page helpful?