All articles
165 articles · updated weekly See our Tools
All articles
Tutorials

PageSpeed, GTmetrix or WebPageTest: How to Measure Your Site

PageSpeed Insights, Lighthouse, CrUX, Search Console, WebPageTest and GTmetrix compared: what each one measures, lab or field, and when to use it.

PageSpeed, GTmetrix or WebPageTest: How to Measure Your Site
COVER · Tutorials

The client sent three screenshots on the same day. GTmetrix: grade A. PageSpeed Insights: 54 on mobile. Search Console: a group of URLs flagged "poor" on LCP. The question was which of the three tools was lying. None of them. Each one measured something different, from a different place, on a different device, and only one of them showed what Google actually uses.

This post compares the tools that come up in every conversation about site speed (PageSpeed Insights, Lighthouse in DevTools, CrUX, Search Console, WebPageTest and GTmetrix) and says when to use each one. What LCP, INP and CLS mean is covered in Core Web Vitals: what LCP, INP and CLS are. How to read the 0 to 100 score is in does the PageSpeed score affect SEO?.

Lab or field: the question before the tool

Every speed tool gives you one of two kinds of data.

Lab data is a simulation: a machine loads the page once, with a defined device and network, an empty cache and nobody clicking. It's reproducible, it shows the waterfall and it's how you find the cause. It doesn't tell you how your visitors are doing.

Field data is measured from real people. In Google's ecosystem the source is CrUX (Chrome User Experience Report), which aggregates visits from Chrome users on desktop and Android who share usage statistics, over a rolling 28-day window. It's the data behind the Core Web Vitals assessment. It doesn't tell you why something is slow.

The rule I use: lab finds the problem, field confirms it exists and, later, that it's fixed. If you only look at lab, you're optimizing in the dark. If you only look at field, you know it's bad but not where to dig.

The six tools side by side

Tool Data type What it does best When to use it
PageSpeed Insights Field (CrUX) and lab (Lighthouse) Both kinds of data on one screen, per URL First look at any public page
Lighthouse in DevTools Lab, on your machine Testing staging, localhost and logged-in pages During development
CrUX (API, CrUX Vis, BigQuery) Field Per-URL or per-origin data, history, by device Tracking trends and comparing with competitors
Search Console Field (CrUX) Groups of failing URLs across the whole site Prioritizing fixes and validating them
WebPageTest Lab, with more realistic networking Filmstrip, detailed waterfall, chosen location and connection Digging into a problem Lighthouse can't explain
GTmetrix Lab (Lighthouse-based) A report that's easy to read for non-developers Showing results to a client or manager

PageSpeed Insights: the starting point

PSI puts two blocks on one page. At the top, CrUX field data: the 75th percentile of LCP, INP and CLS over the last 28 days, with the Core Web Vitals assessment (passed or failed). Below that, a Lighthouse lab run on Google's servers, with the 0 to 100 score and the diagnostics.

Three details that trip people up:

  • Origin fallback. If the URL doesn't have enough CrUX data, PSI shows origin data (the whole site). A passing assessment might belong to the domain, not to the page you typed in. Check whether the field block is showing the URL or the origin before celebrating.
  • The mobile test profile. PSI's lab run uses Lighthouse's simulated throttling: on mobile, 150 ms RTT, about 1.6 Mbps down, 750 Kbps up and a CPU four times slower, emulating a mid-tier Android phone (current Lighthouse identifies itself as a Moto G Power). On the desktop tab the network is 40 ms RTT and about 10 Mbps, with no CPU slowdown. That's why the desktop score is almost always higher.
  • The score isn't the assessment. The 0 to 100 score comes from the lab. The Core Web Vitals assessment comes from the field. They're different things, and the second one is what matters for search.

Lighthouse in DevTools: for what isn't live yet

PSI only tests public URLs. For staging, localhost or a page behind a login, Lighthouse in the Chrome DevTools panel does the job. The catch is that it runs on your machine, with your CPU, and browser extensions get in the way. Run it in an incognito window and compare results from the same machine with each other, never with PSI.

DevTools has three modes. Navigation is the classic load test. Timespan records while you interact with the page, which helps you see long tasks triggered by clicks, something a load test never sees. Snapshot analyzes the page in a specific state, like an open modal.

To catch regressions before deploy, Lighthouse CI (@lhci/cli) runs Lighthouse in your pipeline. By default lhci autorun does three runs per page, which cuts down the noise of a single run, and you define assertions that fail the build:

{
  "ci": {
    "collect": { "url": ["https://staging.example.com/"], "numberOfRuns": 3 },
    "assert": {
      "assertions": {
        "largest-contentful-paint": ["error", { "maxNumericValue": 2500 }],
        "cumulative-layout-shift": ["error", { "maxNumericValue": 0.1 }]
      }
    }
  }
}

That goes in lighthouserc.json. Use lab numbers as a regression guard, not as your Core Web Vitals target.

CrUX: field data without the middleman

PSI and Search Console show CrUX, but you can query it directly. The CrUX API accepts an origin or a url, splits by device type (PHONE, DESKTOP, TABLET) and is updated daily, always over a 28-day window. The CrUX History API keeps the last 40 weekly windows, and CrUX Vis charts that trend without you writing any code. BigQuery holds monthly per-origin history going back to 2017, handy for comparing your site with competitors.

CrUX has two levels of granularity: page (URL) and origin. There's no "page group" in CrUX; that's a Search Console thing. And it only includes what's public and gets enough traffic. Chrome on iPhone and Safari don't contribute, so a mostly-iPhone audience barely shows up in field data.

Search Console: the map of the whole site

Search Console's Core Web Vitals report uses the same CrUX data but organizes it by site. It groups URLs with a similar experience and gives the whole group one status (good, needs improvement, poor) based on its worst metric: a group with poor CLS is poor, even with good LCP and INP. Mobile and desktop get separate statuses. If a group doesn't have enough data, Search Console tries a larger origin-level group; if that's still not enough, nothing is shown.

This is the tool for prioritizing: you see that the problem is "LCP over 2.5 s on 140 product URLs", open an example URL and go investigate in the lab. After the fix, the validation button starts a 28-day tracking period.

WebPageTest: when Lighthouse can't explain it

WebPageTest runs a real browser, in the location and on the connection you choose, and shows a full waterfall (DNS, connection, TTFB, every resource download) plus a frame-by-frame filmstrip where you see the exact moment the main content appears. You can repeat the test several times and work from the median run.

The technical difference that matters most: WebPageTest throttles the network at the packet level, which the Lighthouse docs describe as the most accurate network simulation, though with more variance between runs. Lighthouse in PSI, by default, loads the page unthrottled and estimates the metrics for the network profile. When PSI says "all good" and users complain, WebPageTest is where I open the waterfall.

GTmetrix: a nice report, a different ruler

GTmetrix uses Lighthouse for the performance part and shows a letter grade that mixes that performance with a "structure" score of its own. That's why a GTmetrix A and a PSI 54 don't contradict each other: they're different rulers, tested from different places and with device and network profiles that aren't PSI's mobile profile.

Where it shines is presentation: a report with a waterfall and recommendations you can send to someone who isn't a developer. Just don't use the GTmetrix letter as proof your Core Web Vitals are fine; it's lab data.

Which one to use for which question

  • "Is my site good enough for Google?" Search Console (whole site) and PSI's field block (single URL).
  • "Why is this page slow?" Lighthouse in DevTools or PSI for the diagnostics list; WebPageTest for the waterfall and filmstrip.
  • "I'm shipping a change, did it get worse?" Lighthouse CI in the pipeline.
  • "How do I compare to a competitor?" CrUX (API, CrUX Vis or BigQuery), because it's the same source for both.

Once you've found the cause, the fix almost always involves the weight and priority of the main image. I shrink images with the Quick Tools image compressor, which runs in the browser and doesn't send anything to a server, and follow the order of fixes in how to reduce a website's initial load time. If the problem is below-the-fold images loading too early, the answer is in lazy loading images and components.

Frequently asked questions

Why do PageSpeed and GTmetrix give such different scores?

Because they test from different places, with different device and network profiles, and GTmetrix adds its own structure score on top of performance. PSI's mobile test simulates a mid-tier phone on a slow network, which drags the score down. Compare each tool with itself over time, never one with the other.

My site has no field data. What should I use?

If CrUX doesn't have enough volume for the URL or the origin, there's no Google field data. Work with lab data (PSI and WebPageTest) and, if you want real numbers, collect your own with the web-vitals library (onLCP, onINP, onCLS) reporting to your analytics.

Why does Search Console flag a URL I never tested?

Because it assesses groups of similar URLs. The URL inherits its group's status even without enough data of its own. Test a few example URLs from the group in the lab; the cause is usually the same template.

I fixed the problem. When will field data show it?

CrUX works on a rolling 28 days, so the improvement comes in gradually and only shows fully after about a month. Search Console's validation also tracks for 28 days. Lab data shows the effect right away; use it to confirm the change is live.

The right tool for the right question

None of these tools is wrong. The mistake is asking the wrong tool the question: asking GTmetrix whether Google is happy, or asking Search Console why the image is slow. Start with the field (Search Console and PSI) to learn whether a problem exists, drop to the lab (Lighthouse and WebPageTest) to find the cause, and leave Lighthouse CI watching your deploys.

References

RD
Author
Rafael Duarte
Backend developer with a background in fintech and B2B SaaS — worked on teams that scaled APIs from zero to millions of requests. Carries enough production scars to hold strong opinions on tools, patterns and architecture decisions. Not an academic: he read the UUID RFC when he had to choose between v4 and v7 for a write-heavy table.
View profile