Subchapter 4.1
references/MEASUREMENT.mdMarkdown7 KBView on GitHub
Use this workflow when a runnable URL is available, the user asks for measured performance, or a change needs before/after verification.
| Evidence | What it represents | Best use |
|---|---|---|
| CrUX field data | Aggregated experiences from eligible real Chrome users, normally a rolling 28-day window | Decide whether users have a Core Web Vitals problem |
| First-party RUM | Measurements collected and reported from the site’s own user sessions | Segment and diagnose current production experience |
| DevTools performance trace | One observed browser session under stated local or emulated conditions | Find LCP, INP, CLS, network, and main-thread causes |
| Lighthouse lab run | A controlled synthetic navigation | Reproduce load problems and prevent regressions |
| Static code inspection | Potential issues inferred from source | Form hypotheses when no page can run |
A PerformanceObserver result injected into one browser page is a single-session lab observation, not field data. It becomes RUM only when measurements from actual users are reported and aggregated.
When browser tooling can record a performance trace and run Lighthouse audits, prefer this route. With Chrome DevTools MCP:
performance_start_trace). Current trace summaries can include both observed lab metrics and CrUX field metrics when CrUX has eligible data. Record whether field scope is URL or origin.performance_analyze_insight). Common examples are LCPBreakdown, LCPDiscovery, DocumentLatency, RenderBlocking, and ThirdParties.lighthouse_audit) for Accessibility, SEO, Best Practices, and Agentic Browsing. It deliberately excludes performance; do not treat it as the performance path.Use mobile conditions by default for a general public-site audit. Add desktop when the user asks for it, desktop traffic matters, or the product is desktop-oriented. Test authenticated and unauthenticated states separately when they render different pages.
When using emulation, set the viewport, network conditions, and CPU rate explicitly before the trace, confirm the reported conditions, and reset them before testing another profile.
Chrome DevTools MCP’s Lighthouse navigation mode reloads the page. Use snapshot mode for the current state when a reload would lose an authenticated or user-created state. Do not run a navigation audit on an unsaved form or destructive workflow.
filePath or outputDirPath; summarize only actionable failures.Use the first available option; do not block the audit on optional setup.
The PageSpeed Insights API may be called without a key for occasional use, but a key is recommended for repeated automation. Google has announced that CrUX field data will be removed from that API, so new integrations should query the CrUX API directly.
Record these conditions with the result:
For a decision based on a headline lab metric, run at least three equivalent navigations and report the median plus range. Do not compare a single local trace directly with the CrUX p75 or claim that the two should match.
Use metric values as the evidence. A Lighthouse score is a diagnostic summary whose weighting and implementation can change between versions.
| Field | Lab | Interpretation |
|---|---|---|
| Poor | Poor | Reproducible user problem; trace and fix the dominant bottleneck |
| Poor | Good | Local run missed real-user conditions; segment first-party RUM or test representative devices, routes, cache states, and interactions |
| Good | Poor | The synthetic cold/throttled case is fragile, but do not claim users are currently failing |
| Unavailable | Any | Use lab data for diagnosis and recommend RUM if production impact matters |
Start reports with an evidence table:
| Signal | Scope and conditions | Baseline | After | Source |
|---|---|---|---|---|
| LCP | URL, phone, p75/28 days | 3.1s | Pending field window | CrUX |
| LCP | URL, mobile lab, cold cache, median of 3 | 3.8s | 2.6s | DevTools trace |
Then separate: