SpunkArt
Websites, APIs and search

How to measure page speed and connection speed yourself

“Speed test” means two different things: how fast your internet connection is, and how fast a particular web page loads. This guide covers both, and the maths that links them.

Bits, bytes and the factor of eight

Connection speeds are quoted in megabits per second (Mbps). File sizes are shown in megabytes (MB). One byte is eight bits, so divide by 8 to compare them.

MB per second = Mbps ÷ 8
download time (s) = file size (MB) × 8 ÷ Mbps

Examples.

  • A 100 Mbps line moves at most 100 ÷ 8 = 12.5 MB per second, so a 500 MB file needs at least 500 ÷ 12.5 = 40 seconds.
  • A 2,000 MB file on a 25 Mbps line: 2,000 × 8 ÷ 25 = 640 seconds, about 10.7 minutes.

Real downloads take longer because of protocol overhead, Wi-Fi conditions and the speed of the server at the other end. Treat the formula as a best case.

Testing your connection

A connection test downloads and uploads data to a test server and times it. To get a fair reading:

  1. Plug in with a cable if you can, or sit near the router.
  2. Pause other downloads, video calls and cloud backups.
  3. Run the test three times and use the middle result.
  4. Note latency (ping) as well as throughput. A fast line with high latency still feels slow on websites and calls.

Testing a web page

For a page, raw bandwidth matters less than how many files it loads, how large they are, and what blocks the first paint. Chrome and Edge include Lighthouse in DevTools:

  1. Open the page in a private window so extensions do not interfere.
  2. Press F12, open the Lighthouse panel, choose Mobile and the Performance category.
  3. Run the report and read the metrics, not just the score.
MetricWhat it measures
Largest Contentful Paint (LCP)When the biggest visible element, often a hero image or heading, has rendered
Cumulative Layout Shift (CLS)How much content jumps around while loading
Total Blocking Time (TBT)How long scripts keep the main thread too busy to respond
First Contentful Paint (FCP)When anything at all first appears

Reading the Network tab

In the Network panel, reload with the cache disabled and sort by size. The bottom bar shows the number of requests, bytes transferred and the finish time. Use the throttling menu to imitate a slower mobile connection. Look for oversized images, fonts you do not use, and scripts from third parties that load before your own content.

Fixes that usually help most

  • Resize and compress images, and serve modern formats where supported.
  • Give images width and height attributes to prevent layout shift.
  • Defer non-essential scripts and remove ones nobody needs.
  • Cache static files with long lifetimes.

Questions

Why does my score change every run?

Network and CPU conditions vary between runs. Compare several runs, and compare like with like: same device mode, same network setting.

Is the lab score what visitors experience?

Not exactly. Lighthouse is a single simulated visit. Real visitors use many devices and networks, so field data can be better or worse.