This guide is for frontend engineers and tech leads who report on Core Web Vitals. It explains the difference between lab data and field data for web performance, which metrics exist in which source, why the numbers differ and how to run both side by side in Datadog. The examples use lighthouse 13.6.0, unlighthouse 0.20.0 and @datadog/browser-rum 7.19.0, the current npm versions on 1 December 2026.
Lab data and field data
web.dev defines lab data as data from loading a page “in a controlled environment with a predefined set of network and device conditions”. Lighthouse and Unlighthouse produce lab data, and each run uses one device profile, one network profile and an empty cache.
Field data comes from the real users who visit your site, and web.dev notes that it is also called Real User Monitoring (RUM) data. It is not one number but a distribution of many page loads on many devices and networks. Two common sources are the Chrome UX Report (CrUX) and a RUM tool such as Datadog RUM.
Lab data is reproducible, so you can run it before a release, on a page with little traffic and after each change. Field data shows what users actually experience, but you cannot get it before users arrive.
Which metric lives where
| Metric | Lab (Lighthouse) | Field (CrUX, RUM) |
|---|---|---|
| Largest Contentful Paint (LCP) | Yes | Yes |
| Cumulative Layout Shift (CLS) | Yes, during page load only | Yes, for the whole page life |
| Interaction to Next Paint (INP) | Only in a timespan run | Yes |
| Total Blocking Time (TBT) | Yes | No |
| First Contentful Paint (FCP) | Yes | Yes |
| Speed Index | Yes | No |
| Accessibility, SEO and best practices scores | Yes | No |
INP needs interactions, so in practice it comes from field data. Lighthouse 13 does not measure INP in navigation mode, which is the normal page load test. It can measure INP in timespan mode, when you record a user flow with interactions, but that mode gives no overall performance score. web.dev calls TBT a lab metric that is a proxy for INP, and it also says that TBT is not a substitute for INP. The web.dev target is a TBT under 200 milliseconds on average mobile hardware.
The Lighthouse performance score uses five lab metrics with these weights:
| Metric | Weight |
|---|---|
| First Contentful Paint | 10% |
| Speed Index | 10% |
| Largest Contentful Paint | 25% |
| Total Blocking Time | 30% |
| Cumulative Layout Shift | 25% |
A performance score is therefore not a Core Web Vitals result, because it has no INP and TBT has the largest weight.
The Core Web Vitals thresholds
Google defines the Core Web Vitals on field data, at the 75th percentile of page loads, split by mobile and desktop:
- LCP: good at 2.5 seconds or less.
- INP: good at 200 milliseconds or less.
- CLS: good at 0.1 or less.
A page passes when all three are good at the 75th percentile, so report field values at p75, not as averages.
Why lab and field numbers differ
Expect lab and field numbers to differ, for these main reasons:
- Devices and networks. A lab run uses one profile, while your users have fast and slow phones and use both Wi-Fi and mobile networks.
- Cache. A lab run loads the page cold, while many real visits have a warm cache or come from another page on the same site.
- Layout shifts after load. Lab CLS covers only the page load, but field CLS also counts the shifts that happen as the user scrolls and clicks, so it can be higher.
- Content. Cookie banners, personalisation and logged-in states change what real users see.
- Throttling. The Lighthouse mobile default simulates a slow 4G network (150 ms round-trip time and 1,638.4 Kbps) with a 4x CPU slowdown. Unlighthouse throttles with the same network values but without the CPU slowdown, so its scores are not equal to PageSpeed Insights scores.
Compare lab numbers only with lab numbers from the same tool and the same settings, and compare field numbers only at the same percentile and for the same device type.
Field data from CrUX
CrUX collects data from Chrome users who opted in, and these are the main points from its methodology:
- The data is a 28-day rolling window.
- The CrUX API updates daily, around 04:00 UTC.
- Data exists at page level and at origin level, but a page must be publicly discoverable and have enough visits.
- CrUX does not include Chrome on iOS, Android WebView or other Chromium-based browsers.
- You can read CrUX through the CrUX API, the CrUX History API and BigQuery, which updates monthly.
PageSpeed Insights shows both: the top part is CrUX field data for the previous 28 days, and the lower part is a Lighthouse lab run. When a page has too little data, PageSpeed Insights falls back to the origin.
Query the CrUX API for one page and one form factor:
curl -s --request POST "https://chromeuxreport.googleapis.com/v1/records:queryRecord?key=$CRUX_API_KEY" \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{"url":"https://www.example.com/","formFactor":"PHONE","metrics":["largest_contentful_paint","interaction_to_next_paint","cumulative_layout_shift"]}'
Each metric in the response has a histogram and a percentiles.p75 value. CrUX is a good start when you have no RUM, and it works for any public site, including a competitor’s. It does not show pages with low traffic, though, and because of the 28-day window it shows a change only slowly.
Field data from Datadog RUM
Datadog RUM measures your own users on every page where the SDK loads, and the setup for Next.js is in Datadog RUM and APM for the Next.js App Router.
The view event holds the Core Web Vitals:
@view.largest_contentful_paint, in nanoseconds.@view.interaction_to_next_paint, in nanoseconds, which needs SDK 5.1.0 or later.@view.cumulative_layout_shift.
The Datadog docs add a few rules:
- LCP and FCP exist only for the first view of a page load, so they are not reported for route changes in a single-page app or for pages that load in a background tab.
- INP needs an interaction, so a view without an interaction has no INP.
- INP and CLS are reported for every view, including after a route change.
- Datadog recommends the 75th percentile.
Keep the data for more than 30 days
RUM events stay in Datadog for 30 days, so for trends over months you generate RUM-based metrics. Datadog computes them on all ingested RUM events, even when retention filters keep only part of the sessions. A distribution metric supports p50, p75, p90, p95 and p99, and the metrics stay for 15 months.
You can create the metric in the Datadog UI or with the API, and this request creates a p75-ready LCP metric for the first load of each page:
curl -X POST "https://api.${DD_SITE}/api/v2/rum/config/metrics" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}" \
-d @- << EOF
{
"data": {
"id": "shop.rum.view.lcp",
"type": "rum_metrics",
"attributes": {
"event_type": "view",
"compute": {
"aggregation_type": "distribution",
"path": "@view.largest_contentful_paint",
"include_percentiles": true
},
"filter": {
"query": "@service:shop-browser @view.loading_type:initial_load"
},
"group_by": [
{ "path": "@device.type", "tag_name": "device_type" },
{ "path": "@view.url_path_group", "tag_name": "page_group" }
],
"uniqueness": { "when": "end" }
}
}
}
EOF
Notes:
uniquenessis required for view events, and withendDatadog counts each view once, when it is complete.- The metric name,
event_type,computeanduniquenesscannot change after creation. - Datadog bills RUM-based metrics as custom metrics and percentiles add more of them, so group by a page group, not by the full URL.
- Create the same metric for INP and CLS, but leave out the
loading_typefilter there, because both exist on route changes too.
Query the result as p75:shop.rum.view.lcp{*} by {device_type}, keeping in mind that the values are in nanoseconds.
Run both side by side
Lab and field data answer different questions, so use both in one dashboard:
- Field group. Show the p75 of LCP, INP and CLS from RUM, split by device type, with the three thresholds as markers.
- Lab group. Show the Lighthouse performance, accessibility and SEO scores per page from a scheduled scan. Scheduled Lighthouse scans with Unlighthouse, Cloud Run and Datadog shows how to send those scores to Datadog.
- Lab diagnostics. Show lab LCP and TBT per page template, so you can find the cause of a field problem.
Use lab data to catch a regression on a specific page and to test a fix before release, and use field data to decide whether users are better off.
A reporting rule
Write down which source owns which number:
- Report Core Web Vitals from field data, at p75 and per device type, using RUM for your own pages and CrUX for a public comparison.
- Report the Lighthouse performance, accessibility and SEO scores from lab data, per page or template.
- Never report a lab LCP or a lab CLS as a Core Web Vitals result.
- Never report TBT as INP.
- Put the source and the settings next to every number: tool, device, throttling and time window.
In practice
At an international cosmetics retailer, both kinds of data were in use. The legacy site had no RUM, so a performance report in May to June 2025 used CrUX data. The CrUX data from May 2025 showed a time to first byte of about 2,800 ms for the legacy site, while the target was 800 ms (see the observability case study).
In January 2026, we built a scanner with Unlighthouse that runs as a Cloud Run job, and the client’s DevOps engineer built the pipeline that deploys and schedules it. Every 4 hours, the scanner tests about 100 top pages in 4 main markets on mobile and desktop, and it sends the Lighthouse category scores, LCP, CLS, TBT and Speed Index to Datadog.
In May 2026, the scan grew to all consumer locales and more page templates. From then on, the dashboard for non-functional requirements used RUM for the Core Web Vitals, while the scan kept the performance, accessibility and SEO scores. You can read more in the case study on the scans.
Checklist
- Report Core Web Vitals from field data at p75.
- Split field data by mobile and desktop.
- Use TBT as a lab signal, not as INP.
- Keep lab settings the same between runs.
- Do not compare Unlighthouse scores with PageSpeed Insights scores.
- Use CrUX when you have no RUM yet, or for public pages of other sites.
- Turn RUM Core Web Vitals into distribution metrics for trends after 30 days.
- Group RUM metrics by page group, not by full URL.
- Keep lab scores for performance, accessibility and SEO.
- Show the source and settings next to every number.
To find and fix the causes of slow pages, see the web performance audit. For a review of how your team measures web performance, see the frontend observability assessment or contact us.
Sources
- web.dev: Why lab and field data can be different
- web.dev: Web Vitals
- web.dev: Total Blocking Time
- web.dev: Cumulative Layout Shift
- web.dev: Interaction to Next Paint
- Chrome for Developers: Lighthouse performance scoring
- Lighthouse: Throttling
- Lighthouse: User flows
- Chrome for Developers: CrUX methodology
- Chrome for Developers: CrUX API
- Google: About PageSpeed Insights
- Unlighthouse: Device
- Datadog: Monitoring page performance
- Datadog: RUM browser standard attributes
- Datadog: Generate custom metrics from RUM events
- Datadog: Create a RUM-based metric (API)
- Datadog: Distributions
- Datadog: Data retention periods