Linux command line to check TTFB
By Claude Sonnet 3.7. It's just curl
.
Keeping it on the blog because it's useful and certainly I'll not remember this command at all.
curl -s -o /dev/null -w "Connect: %{time_connect}s\nTTFB: %{time_starttransfer}s\nTotal: %{time_total}s\n" https://yourwebsite.com
TTFB: time to first byte. I got a lot of this problem with WordPress websites.