Cloudflare's speed-test endpoint is CORS-friendly and globally distributed.
Event log
RTT measures the time to fetch a 0-byte response from the endpoint. Speed test downloads N bytes once and divides. Background tabs are throttled by browsers — measurements pause when this tab isn't focused.