RUM vs synthetic monitoring: what is the difference?

IntermediatePerformance interview questionBy , updated 23 November 2026

Short answer

Real-user monitoring (RUM) measures performance on the actual visits to your site: real devices, networks, caches and interactions. That is field data. Synthetic monitoring loads the page in a controlled, scripted environment such as Lighthouse or WebPageTest. That is lab data. RUM tells you what users experience; synthetic tells you why, and catches regressions before a deploy reaches them.

Field data versus lab data

RUM (field) Synthetic (lab)
Who loads the page Every real visitor, or a sample A test runner on a fixed machine
Conditions Whatever users have: slow phones, warm and cold caches, logged-in states The same device profile, network throttling and location each run
Metrics LCP, INP, CLS, TTFB, custom timings LCP, CLS, TBT, Speed Index, a full waterfall and trace
Measures INP Yes Only for interactions you script, and Lighthouse's default navigation run has none
Variance Large, so you look at distributions Smaller, so you can compare two builds
When it reports After users are affected Before release, or on a schedule
Good for Knowing the truth, prioritising, alerting Debugging, gating pull requests, comparing builds

Neither replaces the other. Lab runs are repeatable but describe one imaginary user. Field data is the truth but noisy, delayed and hard to debug, because you only see what you chose to collect.

Field data: CrUX and your own RUM

The Chrome User Experience Report (CrUX) is Google's public field dataset. It aggregates anonymous measurements from Chrome users on desktop and Android who have opted in, over a rolling 28-day window, at origin level and for URLs with enough traffic. PageSpeed Insights, Search Console and the CrUX API read from it, and it is the data Google uses to assess Core Web Vitals. It has limits: no Safari or iOS users, no data for low-traffic pages, nothing about logged-in routes you cannot link to, and a 28-day window means a fix takes weeks to show fully.

Your own RUM fills those gaps. The usual building block is Google's web-vitals library, which wraps PerformanceObserver and handles the edge cases (back/forward cache restores, pages opened in the background, reporting the final CLS and INP when the page is hidden):

import { onCLS, onINP, onLCP } from "web-vitals/attribution";

const queue = new Set();
const send = (metric) => queue.add(metric);

onLCP(send);
onINP(send);
onCLS(send);

// Flush when the page is hidden: the last reliable moment on mobile
addEventListener("visibilitychange", () => {
  if (document.visibilityState !== "hidden" || queue.size === 0) return;
  const body = JSON.stringify([...queue].map(({ name, value, rating, attribution }) => ({ name, value, rating, route: location.pathname, attribution })));
  navigator.sendBeacon("/rum", body);
  queue.clear();
});

The attribution build adds the element behind LCP, the script and phase behind a slow interaction, and the element that shifted. Without it, RUM tells you a number is bad but not where to look. You build this collector yourself in a Web Vitals performance monitor, and computing INP from Event Timing entries shows what the library does underneath.

Why the 75th percentile

Field values form a long-tailed distribution. The mean is dragged around by a few awful visits, and the median hides the third of users on slow phones. Core Web Vitals are judged at the 75th percentile (p75), separately for mobile and desktop: a page passes if three out of four visits are "good". Track p75 by route and device class in your RUM dashboards too, and look at p95 when you are hunting the worst experiences. Segment before you average: a fast desktop audience can hide a slow mobile one.

Synthetic: Lighthouse and WebPageTest

Lighthouse loads the page with an emulated mobile device and throttled network and CPU, then scores it. In CI, Lighthouse CI runs it against a preview build and fails the job when a budget is broken:

{
  "ci": {
    "collect": { "url": ["http://localhost:3000/", "http://localhost:3000/product/1"], "numberOfRuns": 5 },
    "assert": {
      "assertions": {
        "largest-contentful-paint": ["error", { "maxNumericValue": 2500 }],
        "cumulative-layout-shift": ["error", { "maxNumericValue": 0.1 }],
        "total-blocking-time": ["warn", { "maxNumericValue": 300 }]
      }
    }
  }
}

Run several times per URL, because single lab runs are noisy; bisecting a regression with noisy measurements covers how to compare builds fairly. Pair it with a bundle-size budget, which is cheaper and more stable than timings, as in enforcing bundle budgets in CI.

WebPageTest runs real browsers in chosen locations and connection profiles, and gives filmstrips, request waterfalls and scripted multi-step journeys. It is the better tool for "why is LCP late?" because you can see exactly what was requested and when. Scheduled synthetic runs against production also act as an early warning when a third-party script or CDN change slows pages, even with no deploy of your own.

Which one catches which regression

  • A new dependency doubles the bundle, or someone lazy-loads the LCP image. Synthetic in CI catches it before merge. RUM would catch it days later.
  • INP is poor only for users with full carts on low-end Android. Only RUM sees it. The lab has no real interactions and no real state, which is the case in an INP of 600 ms that looks fine in the lab.
  • A slow ad vendor or a cookie banner shifts the layout for one region. RUM, segmented by country and route.
  • A CDN misconfiguration raises TTFB. Both: scheduled synthetic from several locations alerts quickly, RUM confirms the scale.
  • A fix you shipped. RUM proves it worked for users; CrUX follows over the next four weeks.

A sound setup is: budgets and Lighthouse CI on every pull request, scheduled synthetic runs on key journeys in production, and RUM with attribution feeding p75 dashboards and alerts. The observability and testing guide shows where this sits among error tracking and logs, and what the Core Web Vitals are covers the metrics themselves.

Follow-up questions interviewers ask

Why does my Lighthouse score disagree with Search Console?

Lighthouse is one emulated device on one throttled connection with a cold cache. Search Console shows CrUX: p75 of real Chrome visits over 28 days. Real users have slower or faster devices, warm caches, logged-in pages and interactions. Trust the field number and use the lab to debug it.

Can a lab test measure INP?

A standard Lighthouse navigation run cannot, because nobody interacts; it reports Total Blocking Time as a proxy. Lighthouse user flows in timespan mode and the DevTools Performance panel can measure interactions you perform or script, but only those.

How do you keep RUM cheap and private?

Sample sessions at a fixed rate, send one beacon per page with sendBeacon, and strip personal data from URLs and attribution selectors. Aggregate on the server into percentiles by route and device class.

What about single-page app navigations?

Core Web Vitals and CrUX are measured per full page load, so route changes inside an SPA are not separate visits. INP and CLS keep accumulating across them. Add your own route-change timings, and watch Chrome's soft navigation work, which aims to measure them as navigations.

Practise it in code

Interviewers rarely stop at the definition. These questions open in an editor with tests.

  1. Implement a performance monitor measuring Web Vitals and reporting metricsMedium45 min
  2. Investigate an INP of 600 ms in the field that looks fine in the labHard45 min
  3. Investigate a bundle that grew from 300 KB to 900 KB and enforce budgets in CIHard45 min
  4. Bisect a performance regression across commits with noisy measurementsMedium30 min
  5. Compute INP from Event Timing entries: group by interactionId, take the 98th percentile and split the phasesMedium40 min