Checking steps
- On Linux run curl -sS -o /dev/null -w 'code=%{http_code} dns=%{time_namelookup} tcp=%{time_connect} tls=%{time_appconnect} first=%{time_starttransfer}\n' 'URL'. Pick a small public page that returns 200 directly.
- Keep device, network and URL fixed, and repeat with and without VPN where direct access is permitted. For direct HTTPS requests, subtract tcp from tls to estimate handshake time.
Interpret the results
These values are cumulative seconds from request start. First-byte time also includes network round trips and server processing, so use it to locate the slow stage.