Skip to main content

SpeedFast Measurement Methodology

Last updated:

How SpeedFast measures download throughput, upload throughput, idle ping, loaded ping (bufferbloat), and jitter across a distributed edge network — documented openly for transparency and technical scrutiny.

Architectural Overview

SpeedFast is designed as a browser-native measurement tool running on top of Cloudflare's global edge network. Every test connects to an edge node physically close to the user, using dedicated hostnames (`s1`–`s8.speedfast.app`) so parallel streams open separate TCP connections instead of sharing a single multiplexed connection.

Measurements execute inside a dedicated Web Worker to isolate network processing from the browser's main UI rendering thread, preventing UI rendering bottlenecks or JavaScript execution pauses from skewing throughput or latency calculations.

1. Latency & Jitter Measurement (Idle Phase)

Before any large payload transfer begins, SpeedFast establishes an initial baseline of round-trip network performance under zero-load conditions.

First, one uncounted warmup HTTP GET request is sent to `/ping` so DNS, TCP, and TLS setup overhead does not contaminate the baseline. Then 10 consecutive lightweight HTTP GET requests are transmitted to the nearest edge endpoint, timing each round trip with `performance.now()`.

Idle Ping is calculated as the median of those 10 post-warmup round-trip time (RTT) samples. Jitter is computed as the mean absolute deviation between consecutive post-warmup RTT samples, measuring latency stability before data transfer introduces congestion.

2. Upload Throughput & Upstream Bufferbloat

After the idle baseline, SpeedFast primes the uplink for 2.5 seconds and runs a small warmup transfer, then measures upload throughput for 8 seconds by streaming cryptographically generated random bytes (`crypto.getRandomValues`) via HTTP POST requests across up to 6 parallel connections (ramping up from 2 streams, adding one every 200 ms).

The first 1.0 second of the 8-second upload phase is trimmed as slow-start warm-up. Final upload speed is computed as the true sustained average: total bytes transferred from t = 1.0 s to t = 8.0 s divided by the elapsed time.

Concurrently, HTTP ping probes are fired every 300 ms during the active upload (discarding the first 2 samples and averaging the rest) to measure upload-loaded latency and detect upstream Bufferbloat. Testing against a nearby edge node provides a measurement over a short path, which reduces — though does not eliminate — the influence of long-distance transit; the result still includes your device, local network, ISP network, and its connection to Cloudflare.

3. Download Throughput & Downstream Bufferbloat

After a 4-second settle pause so upload traffic drains from the line and a 2 MB warmup fetch, SpeedFast measures download throughput for 8 seconds across up to 8 parallel HTTP GET connections (ramping from 2 streams by +1 every 200 ms) to saturate the connection's bandwidth-delay product (BDP).

Just like the upload phase, the first 1.0 second is trimmed as slow-start warm-up. While the live gauge updates continuously using a 1.5-second rolling window, the final reported download speed is the true sustained average: total bytes received from t = 1.0 s to t = 8.0 s divided by the elapsed time.

Concurrently, ping probes run every 300 ms during the download (trimming the first 2 samples) to quantify downstream bufferbloat — revealing queueing delay at the bottleneck link, which is most often the home router or modem and sometimes the provider's equipment.

4. Why We Report Sustained Throughput

Both download and upload use the same cumulative sustained-average calculation after the 1.0-second slow-start trim, rather than reporting a single instantaneous peak sample.

SpeedFast pairs sustained throughput with loaded latency because knowing how your connection behaves under sustained load is far more useful than a brief burst figure.

5. Server Selection and What Distance Costs You

The server a test measures against changes the result, and it changes it legitimately rather than as an artefact. A host on another continent will report higher latency and usually lower throughput than a nearby one on the identical line, because the packets genuinely travel further and cross more networks on the way. Light in fibre covers roughly 200 kilometres per millisecond, so distance sets a floor that no provisioning can go below.

SpeedFast does not ask you to choose a server. Every test is automatically routed to a Cloudflare edge node close to your network, which is the same path much of your ordinary web traffic already takes.

This has one consequence worth stating plainly, because it is the most common reason two tools disagree: a result measured against a nearer server is not more accurate than one measured against a distant server. They are answers to different questions. We report the nearby path because it keeps the path short, so the result is dominated by your local network and your provider. See why results differ between tests for the full comparison.

Scrutiny, and How to Challenge This

This document is the specification we hold ourselves to, and it is published so that it can be argued with. The design follows the behaviour of the congestion-control algorithms actually deployed on the modern internet, CUBIC and BBR, because a measurement method that ignores how TCP really ramps up will misreport every fast line it touches.

If you think a choice documented here is wrong, or you want the reasoning behind one of them, write to support@speedfast.app. A person answers, and a correction we accept is published with its date on the about page.