Measure Response Time using CURL
Option 1: to measure total time:
curl -o /dev/null -s -w 'Total: %{time_total}s\n' https://www.google.comSample output:
Total: 0.441094sOption 2: to get time to establish connection, time to first byte (TTFB) and total time:
curl -o /dev/null -s -w 'Establish Connection: %{time_connect}s\nTTFB: %{time_starttransfer}s\nTotal: %{time_total}s\n' https://www.google.comSample output:
Establish Connection: 0.020033s
TTFB: 0.417907s
Total: 0.435486sLast updated
Was this helpful?