How It Works: where those numbers come from

You click once and a few seconds later a bunch of numbers appear — what happened in between? This article walks through the full pipeline of a modern HTML5 speed test engine.

01The core idea: throughput = data ÷ time

Every speed test boils down to the same arithmetic: transfer as much data as possible in a fixed time, then compute speed as data ÷ elapsed time. The engine doesn't “sense” bandwidth — it pushes the link to saturation and records how much got through.

The test path

Your device → router → ISP network → test server. The slowest hop on this path decides your result. That's why, on poor Wi-Fi, what you measure is “your speed to the router”, not your broadband's true speed.

02Download test: parallel connections + stable burst average

The browser opens several parallel HTTP requests to the test server (usually 6, configurable 1–32) to download random data. Random data can't be compressed, so what's measured is the link's true throughput. The engine discards the “warm-up” data from the start and takes the most stable burst average as the result, so a single jitter spike can't mislead.

That's also why the number “takes off” in the first 1–2 seconds — TCP slow start hasn't finished yet, and early readings aren't trustworthy.

03Upload and latency

The upload test works in reverse: the browser pushes random data to the server via POST and counts how much is sent per unit of time. Because upstream bandwidth is asymmetric, upload results are usually well below download.

Latency (ping) is sampled by many small round-trip requests; the median is taken and variation computed. A single ping means nothing — a one-off 200ms spike might just be your phone syncing photos.

04The overhead compensation factor

Every packet carries TCP/IP headers in addition to its payload. The engine corrects results with an overhead compensation factor of about 4% so readings better match the bandwidth your ISP promised. Different test sites compensate differently — one source of differing results.

05Why do different speed test sites disagree?

  • Different node locations: latency and routing to a same-city node vs a cross-province node are entirely different
  • Interconnection bottlenecks: cross-carrier routes (e.g. China Unicom → a China Telecom datacenter) are often throttled
  • Different concurrency strategies: connection counts, sampling windows and compensation factors vary
  • Time of day: during the evening peak, shared links are congested and no node scores high

We recommend averaging multiple runs on the same engine — only then is comparison meaningful. Each CialloSpeed engine keeps using the same node across runs (LibreSpeed also lets you pick one manually), so repeated results are directly comparable. For why different tools disagree, see Why Results Differ.

06Glossary

Mbps (megabits/sec)
Bandwidth unit used in ISP advertising. 8 Mbps = 1 MB/s.
MB/s (megabytes/sec)
The unit download software uses — intuitively “how much file per second”.
Ping / latency
Round-trip packet time (ms). Affects how responsive games and calls feel.
Jitter
Variation between successive latency readings. High jitter makes video calls stutter.
Packet loss
The share of packets lost in transit. Even 1% noticeably degrades the experience.
Throughput
The amount of data actually transferred per unit of time — exactly what a speed test measures.

Got the theory? Put it to the test verify everything above with real data

Test Now