A small same-origin speed test for Cloudflare Pages.
The page measures download speed, upload speed, idle latency, jitter, and loaded latency against the domain it is served from. There is no domain-specific config in the app, so the same build can be deployed to multiple hostnames. Transfer payloads are generated test bytes.
npm run dev:localOpen:
http://127.0.0.1:4173npm testStatic files live in public/.
Pages Functions live in functions/:
functions/__down.jsreturns generated bytes for download tests.functions/__up.jsaccepts generated upload bytes and discards them.functions/api/trace.jsreturns basic request metadata, if needed later.