Measure HTTPS timing

A ping measures ICMP round-trip time. It does not open a TCP connection, authenticate a server certificate or download the response.

curl -sS --max-time 15 -o /dev/null \
  -w 'HTTP: %{http_code}\nTCP: %{time_connect}\nTLS: %{time_appconnect}\nBytes: %{size_download}\nTotal: %{time_total}\n' \
  https://example.com/

The timings are cumulative from the start of the transfer. Subtract TCP time from TLS time to estimate the TLS handshake. Check the exit status and byte count as well as the HTTP status: a transfer can stop after receiving a 200 response header.

When comparing two links, use the same URL and record failed attempts alongside the successful ones.