Skip to content
This repository was archived by the owner on Jun 12, 2026. It is now read-only.

Latest commit

 

History

History
36 lines (24 loc) · 768 Bytes

File metadata and controls

36 lines (24 loc) · 768 Bytes

Speed Test

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.

Run locally

npm run dev:local

Open:

http://127.0.0.1:4173

Test

npm test

Cloudflare Pages

Static files live in public/.

Pages Functions live in functions/:

  • functions/__down.js returns generated bytes for download tests.
  • functions/__up.js accepts generated upload bytes and discards them.
  • functions/api/trace.js returns basic request metadata, if needed later.