Core Web Vitals, Synthetic Tests and Edge Speed Optimization
How to measure site speed with synthetic tests and real user data, hit Core Web Vitals targets, and apply edge optimizations—mostly from Cloudflare Speed and Observatory.
This page summarizes Cloudflare documentation on Speed, Observatory, and related measurement and optimization workflows. For lab-style audits and browser debugging, it also incorporates guidance from Chrome Lighthouse and DevTools. Together, these sources describe how to measure performance, interpret user-centric metrics, and turn findings into edge and origin changes.
Core Web Vitals and Time to First Byte: what to measure first
Section titled “Core Web Vitals and Time to First Byte: what to measure first”People usually arrive here because pages feel slow, rankings slipped, or a dashboard flagged poor scores. The practical question is which numbers matter for real visitors versus which ones only help debugging.
Cloudflare’s reference architecture treats security and compliance as prerequisites, then focuses measurement on user-centric metrics. Core Web Vitals (CWV)—Largest Contentful Paint (LCP), Interaction to Next Paint (INP), and Cumulative Layout Shift (CLS)—are the usual experience bar; Time to First Byte (TTFB) is framed as a diagnostic for server and network responsiveness, not the primary UX score.
| Metric | Target (75th percentile) | What it measures |
|---|---|---|
| LCP | < 2.5 s | Loading: hero content visible |
| INP | < 200 ms | Responsiveness after input |
| CLS | < 0.1 | Visual stability |
| TTFB | < 800 ms | Time until first response byte |
From the Speed glossary, synthetic test means a controlled simulation; real user monitoring (RUM) collects data from actual browsers. Cloudflare notes that while CWV are often reviewed at the 75th percentile, TTFB and similar server metrics are more meaningful at P99 or higher, because one session involves many requests and tail latency dominates perceived slowness.
Observatory: synthetic tests versus real user monitoring
Section titled “Observatory: synthetic tests versus real user monitoring”Observatory is Cloudflare’s primary performance hub: it combines synthetic tests and real user data to assess a site and recommend optimizations.
Observatory uses synthetic tests and real user data from browsers to assess the performance of your website. These data sources produce metrics that provide different types of insights into your website’s performance. Cloudflare then uses the analysis run by Observatory to recommend optimizations with the tools that best suit your performance issues.
— Cloudflare, Observatory (beta)
Synthetic testing runs servers that simulate user conditions. It is consistent and good for comparing code changes or arbitrary URLs, but it cannot capture the full diversity of real devices and networks.
RUM reflects what visitors actually experience—especially important when lab scores look fine but complaints persist. The troubleshooting guide for a slow website states that RUM is an objective view from visitors’ browsers, while lab data is more detailed for debugging but may not match real-world connectivity.
The Observatory overview dashboard combines synthetic monitoring, RUM, and Cloudflare analysis for the past seven days so you can spot bottlenecks and open Suggestions.
Run test: how to start a synthetic speed test in the dashboard
Section titled “Run test: how to start a synthetic speed test in the dashboard”To run an on-demand test from Observatory:
- In the Cloudflare dashboard, open Synthetic monitoring (Synthetic Monitoring page).
- Enter a URL that belongs to the zone you are testing from.
- Choose test type: Browser or Network, and select a Region.
- Set schedule (once, daily, or weekly—subject to plan quotas).
- After completion, review Lighthouse scores and desktop/mobile details on the result page.
Tests can take about 25 seconds to over a minute; leaving the Speed tab open is not required—the run continues if you navigate away (Observatory FAQ).
Browser synthetic tests report a Lighthouse score and tie opportunities to Cloudflare features (Run Synthetic test). For IPv4, Observatory user agents include CloudflareObservatory/1.0; if tests fail, confirm you are not blocking those user agents (Test speed).
Network comparison test: compare two completed runs
Section titled “Network comparison test: compare two completed runs”In Observatory you can select any two completed tests and compare results side by side as histograms, visualizing the full distribution rather than a single number (Network comparison test).
Speed optimizations: content, cache, and protocol features
Section titled “Speed optimizations: content, cache, and protocol features”Once measurement points to a bottleneck, Cloudflare groups fixes under Speed and the Optimization settings area (Recommendations, Measurement, image optimization, content optimizations, protocol optimization).
Common levers cited across use-case and troubleshooting docs include:
- Minification and Brotli (and Gzip) compression for HTML, CSS, and JavaScript (Optimize web assets)
- Early Hints, HTTP/2 and HTTP/3, Prefetch URLs, Rocket Loader, Cloudflare Fonts, and related items listed under Content optimizations
- Cache at the edge to serve copies closer to users (Smart Shield — Cache)
- Image optimization (including Polish when suggested for LCP) and Argo Smart Routing for TTFB in dashboard examples (Observatory dashboard — Suggestions)
The Recommendations tab can enable all plan-appropriate recommended settings at once or individually. Observatory’s Recommendations section maps Lighthouse audit opportunities to Cloudflare products and estimated savings (Run Synthetic test — Recommendations).
Each Suggestion in the dashboard expands with Why you’re seeing this and What you can do (Observatory dashboard).
Related Cloudflare analytics: origin, cache, and connection timing
Section titled “Related Cloudflare analytics: origin, cache, and connection timing”Beyond Observatory, several products isolate where latency appears:
- Origin Analytics — origin response times and errors relative to Cloudflare
- Cache Analytics — cache hit ratio and requests by cache status (referenced in distributed web performance architecture)
- Web Analytics — privacy-oriented, edge-based RUM
- GraphQL Analytics API — programmatic queries such as
edgeDnsResponseTimeMsversusoriginResponseDurationMs, plus timing fields likecf.timings.origin_ttfb_msecfor origin versus network overhead
For deeper forensics, Cloudflare lists Log Explorer, Logpush, Instant Logs, and Network Error Logging (NEL) in the same architecture diagram doc.
Chrome Lighthouse and DevTools: lab audits and resource-level debugging
Section titled “Chrome Lighthouse and DevTools: lab audits and resource-level debugging”Cloudflare Observatory’s browser tests surface Lighthouse results. Google Lighthouse (via Chrome) is also the standard many teams use outside the dashboard:
Measure performance and find opportunities to speed up page loads.
— Google Chrome, Lighthouse — Performance audits
Chrome DevTools adds interactive Performance evaluation and an Issues panel to find and fix load/render problems—useful after Observatory or RUM implicates specific URLs.
When Observatory and RUM are not enough, Cloudflare’s slow-site guide directs you to the Network tab: reload, sort by duration, and inspect large images, slow APIs, third-party scripts, and render-blocking resources (Use browser developer tools). Chrome’s Performance insights docs (for example render-blocking requests, image delivery, document request latency) provide stack-specific guidance aligned with Lighthouse opportunities.
Third-party benchmarks and before/after testing with the proxy
Section titled “Third-party benchmarks and before/after testing with the proxy”Cloudflare recommends external tools for independent checks and for domains not yet on Cloudflare. Listed options include WebPageTest, PageSpeed Insights (linked from the architecture doc), DebugBear, Pingdom, and others in the same section; Test speed also names PageGym, GTmetrix, DebugBear, Lighthouse, and WebPageTest.
For a fair before/after with Cloudflare proxying:
- Pause Cloudflare (removes caching and edge optimizations).
- Run a speed test.
- Unpause Cloudflare.
- Run a test (often uncached—can mislead).
- Run a second test with caching warm for a more realistic baseline.
The first test behind Cloudflare may still show uncached origin behavior; the second better reflects cache benefits (Test speed — footnotes).
Chrome’s performance hub points to PageSpeed Insights and actionable insights for site owners who start outside Cloudflare.
Troubleshooting a slow website: practical workflow
Section titled “Troubleshooting a slow website: practical workflow”The guide Troubleshooting a slow website recommends gathering facts before changing settings:
- Identify which URLs or assets are slow.
- Quantify delay (for example, a specific image taking five seconds).
- Reproduce consistently.
Then use Observatory (synthetic + RUM), enable relevant Speed features (Brotli, Early Hints, HTTP/2 and HTTP/3, image optimization, Rocket Loader where appropriate), and drill into slow resources with DevTools or CLI timing.
Example curl timing breakdown from the same guide:
curl -w "\n\nDNS Lookup: %{time_namelookup}s\nTCP Connect: %{time_connect}s\nTLS Handshake: %{time_appconnect}s\nTime to First Byte: %{time_starttransfer}s\nTotal Time: %{time_total}s\n" -o /dev/null -s https://www.example.com/slow-asset.jpgFor geographic variance, third-party multi-location tools are suggested in that guide (for example KeyCDN Tools, Uptrends, Dotcom-Tools—linked from the troubleshooting page). Broader Speed issues are indexed under Speed troubleshooting.
Common mistakes
Section titled “Common mistakes”- Treating a single cold-cache synthetic run as production performance (Test speed).
- Optimizing TTFB alone while LCP fails because the LCP resource is discovered late or render-blocked (architecture doc notes BEACON data: many poor LCP cases gain more from earlier discovery and unblocking render than faster download).
- Blocking Observatory user agents or Lighthouse crawlers, producing failed or empty tests.
- Enabling aggressive JS deferral (Rocket Loader) without checking for breakage on your stack (Content optimizations lists it among options to evaluate carefully).
- Ignoring RUM when synthetic scores look good (Troubleshooting a slow website).
How to check this on your site
Section titled “How to check this on your site”- In the Cloudflare dashboard, open Observatory and run a Browser synthetic test on a representative URL; compare Lighthouse desktop and mobile results.
- On the Observatory dashboard, review Core Web Vitals and Suggestions for the last seven days.
- Cross-check field versus lab using PageSpeed Insights (linked from Cloudflare’s performance architecture reference).
- In Chrome, open DevTools → Network, reload, and confirm whether slow assets match Observatory or RUM findings.
- You can check automatically in Answerwell (our tool): https://answerwell.org/workspace
Report an error or ask a question
Section titled “Report an error or ask a question”If something on this page is wrong or unclear, email yimasynthetic@gmail.com with the page URL and the exact statement you are asking about, and we will correct or clarify it.