Our speed test runs entirely in your web browser and measures your connection to Cloudflare’s global network, using Cloudflare’s open-source measurement engine, @cloudflare/speedtest (MIT licence). This page explains exactly what is measured, how each number is calculated, and what can affect your results.
The measurement in short
- Nothing is measured until you press Start.
- Your browser exchanges real test data directly with Cloudflare’s servers (speed.cloudflare.com). The data does not pass through this website’s server.
- The test runs in this order: latency, then download, then upload. A typical test takes 20 to 35 seconds.
- Every number shown is calculated from real measurements. If something could not be measured, the result says so instead of showing zero.
Which server do you test against?
Cloudflare operates data centres in many cities worldwide. Requests to speed.cloudflare.com are routed by Cloudflare’s network, normally to a nearby data centre; neither you nor we choose it. When the test starts, the result card shows which data centre is serving your test and the name of your network (the organisation your IP address is registered to), using information returned by Cloudflare. This lookup happens only after you press Start.
Because the test measures your connection to Cloudflare, it shows the quality of your own line and your provider’s network to a major internet hub. It does not measure your connection to a specific website, streaming service or game server.
Latency and jitter
Latency is the time a small web request takes to travel to Cloudflare and back while your connection is otherwise idle, shown in milliseconds (ms). It is measured with ordinary HTTPS requests from your browser, not with the ICMP “ping” command, so it includes a small amount of browser and protocol overhead. The reported value is the median of the latency measurements.
Jitter is how much latency varies between consecutive measurements. Low jitter means a steady connection, which matters for video calls and online games.
Download and upload speed
The engine downloads and uploads files of increasing size, from 100 kB up to hundreds of megabytes, and records how long each transfer takes. It stops increasing the size once transfers take longer than about one second, which is long enough to load your connection fully. Fast connections therefore move on to larger files, while slower connections finish with smaller ones.
From these real transfers we report your sustained speed: the total amount of data transferred divided by the time it took, after leaving out the first 30% of transfer time. The first part of any connection is affected by start-up effects, and many providers allow a short burst above the normal speed. Leaving it out means the result reflects the speed your line actually holds when it is fully loaded, which is what you get during a large download, not a brief peak.
For transparency, the test details also show Cloudflare’s own figure, the 90th percentile of the individual transfer speeds, labelled “Peak (Cloudflare method)”. On a steady connection the two values are close. On a connection with a short initial burst, the peak figure is noticeably higher.
During the download phase, the speedometer needle follows the data actually arriving, several times per second. Browsers do not report upload progress while it happens, so during the upload phase the needle moves each time a transfer completes. All speeds are shown in decimal units: 1 Mbps is 1,000,000 bits per second.
Latency under load
While the download and upload transfers are running, the engine keeps measuring latency. These values show how responsive your connection stays when it is busy. A large increase compared with idle latency, often called bufferbloat, causes lag in games and stutter in video calls when someone else on your network is downloading or uploading. You can find these values under “Latency under load and test details” after a test.
Connection quality scores
After a complete test, we show Cloudflare’s Aggregated Internet Measurement (AIM) scores for video streaming, online gaming and video chatting, from Bad to Great. These are calculated by the Cloudflare engine from latency, jitter, bandwidth and latency under load. We display them exactly as calculated and do not add thresholds of our own.
AIM can also use packet loss, but measuring packet loss in a browser requires additional relay infrastructure that this site does not run. Packet loss is therefore left out, and the scores can come out lower than for a connection measured with no loss. The scores describe typical suitability and do not guarantee how a particular service or game will perform.
When a test is less reliable
The result tells you when something may have reduced its accuracy, without changing the measured values:
- the tab was moved to the background (browsers may slow background tabs);
- your device went offline, or your connection type changed (for example from Wi-Fi to mobile data);
- the test reached its time limit or ended early, in which case it is marked “partial” and shows only completed measurements.
Only one test can run at a time in your browser. If a test is already running in another tab, a second one will not start, because two simultaneous tests would share your connection and both report too low.
What affects your results
- Wi-Fi: distance from the router, walls and interference often reduce speed and increase jitter. A cable connection gives the most accurate picture of your internet line.
- Other activity: downloads, streaming, backups and other devices on your network share the same connection.
- Your device and browser: an older device, battery saving, VPNs and some browser extensions can limit measured speed, especially on very fast connections.
- Time of day: networks are often busier in the evening.
Why results differ between speed tests
Different speed tests measure different paths with different methods, so their numbers rarely match exactly. Some services test against a server inside your own provider’s network and use several simultaneous connections, which tends to show the maximum your plan allows. Our test measures to Cloudflare’s network and reports the sustained speed of real transfers, which reflects what you get from the wider internet. Neither number is wrong; they answer slightly different questions. To compare fairly, run one test at a time on the same device, keep the tab in the foreground, and repeat each test a few times.
Your data
Because your browser connects directly to Cloudflare, Cloudflare receives your IP address and the test traffic, as with any website you visit. Cloudflare’s engine can also send completed test results to Cloudflare for its aggregated internet quality research. Your recent results are saved only in your own browser (local storage) so you can see your history; you can delete them at any time, and they are never sent to this website. See our Privacy Policy for details.