WhichWebHosting home

HomeGuidesWebsite speedHow to test your website speed

How to test your website speed

Published

Share

Enter your page's URL into PageSpeed Insights to get a report that combines lab data from a simulated load with field data from real visits.1, source 1 Judge the report's field data against the Core Web Vitals thresholds at the 75th percentile of page loads.1, 2, sources 1 and 2 Good means an LCP of 2.5 seconds or less, an INP of 200 milliseconds or less and a CLS of 0.1 or less.3, 4, 5, sources 3, 4 and 5

What does a website speed test measure?

PageSpeed Insights reports on the experience of a page on both mobile and desktop devices and provides suggestions on how the page may be improved.1, source 1 PageSpeed Insights provides both lab data and field data about a page.1, source 1 Lab data is determined by loading a web page in a controlled environment with a predefined set of network and device conditions.6, source 6 Those predefined conditions are known as a lab environment, which is sometimes called a synthetic environment.6, source 6

The purpose of a lab test is to control for as many factors as you can, so that results are as consistent and reproducible from run to run as possible.6, source 6 Lab data is useful for debugging issues because it is collected in a controlled environment, but it may not capture real-world bottlenecks.1, source 1 Field data is determined by monitoring all visitors to a page and measuring a given set of performance metrics for each visitor's individual experience.6, source 6 Because field data is based on real visits, it reflects the actual devices, network conditions and geographic locations of the people visiting your site.6, source 6

Field data is also commonly known as Real User Monitoring (RUM) data, and the two terms are interchangeable.6, source 6 Chrome tools that report field data generally get that data from the Chrome User Experience Report (CrUX).6, source 6 Field data is useful for capturing real-world experience, but it has a more limited set of metrics than lab data.1, source 1 Field data is not just one number but a distribution of numbers.6, source 6

Which numbers should you look at?

Web Vitals is an initiative by Google that provides unified guidance for quality signals that are essential to delivering a great experience on the web.2, source 2 Core Web Vitals are the subset of Web Vitals that apply to all web pages, should be measured by all site owners, and will be surfaced across all Google tools.2, source 2

Largest Contentful Paint (LCP) measures loading performance.2, source 2 Interaction to Next Paint (INP) measures interactivity.2, source 2 Cumulative Layout Shift (CLS) measures visual stability.2, source 2

A good LCP value is 2.5 seconds or less.3, source 3 LCP reports the render time of the largest image, text block, or video visible in the viewport, relative to when the person first navigated to the page.3, source 3 PageSpeed Insights classifies field LCP values of 0 to 2500 ms as Good, above 2500 ms up to 4000 ms as Needs Improvement, and over 4000 ms as Poor.1, source 1

Good INP values are 200 milliseconds or less, and poor values are greater than 500 milliseconds.4, source 4 PageSpeed Insights classifies field INP values of 0 to 200 ms as Good, above 200 ms up to 500 ms as Needs Improvement, and over 500 ms as Poor.1, source 1 INP assesses a page's overall responsiveness by observing the latency of all click, tap, and keyboard interactions that occur throughout the lifespan of a visit to a page.4, source 4

The final INP value is the longest interaction observed, ignoring outliers.4, source 4 INP is the successor metric to First Input Delay (FID), which only measured the input delay of the first interaction on a page.4, source 4

Good CLS values are 0.1 or less, and poor values are greater than 0.25.5, source 5 PageSpeed Insights classifies field CLS values of 0 to 0.1 as Good, above 0.1 up to 0.25 as Needs Improvement, and over 0.25 as Poor.1, source 1 CLS measures the largest burst of layout shift scores for every unexpected layout shift that occurs during the entire lifecycle of a page.5, source 5 Layout shifts can be caused by images or videos with unknown dimensions, fonts that render larger or smaller than their initial fallback, or third-party ads or widgets that dynamically resize themselves.5, source 5

To reach the recommended target for most visitors, a good threshold to measure is the 75th percentile of page loads, segmented across mobile and desktop devices.2, source 2 Tools that assess Core Web Vitals compliance should consider a page passing if it meets the recommended targets at the 75th percentile for all three of the Core Web Vitals metrics.2, source 2 In PageSpeed Insights, an aggregation with sufficient data in all three metrics passes the Core Web Vitals assessment if the 75th percentiles of all three metrics are Good.1, source 1 PageSpeed Insights also passes an aggregation with insufficient INP data if both the 75th percentiles of LCP and CLS are Good.1, source 1

How do you test your speed with PageSpeed Insights?

To run Lighthouse on PageSpeed Insights, go to PageSpeed Insights, enter a web page URL and click Analyze.7, source 7 The real-world data in PageSpeed Insights is powered by the Chrome User Experience Report (CrUX) dataset.1, source 1 PageSpeed Insights reports real visitors' First Contentful Paint (FCP), INP, LCP and CLS experiences over the previous 28-day collection period.1, source 1 PageSpeed Insights also reports experiences for the experimental metric Time to First Byte (TTFB).1, source 1

In PageSpeed Insights, a page must have sufficient data to be included in the CrUX dataset before its real-world experience data can be shown.1, source 1 When a page has insufficient data, PageSpeed Insights falls back to origin-level data, which covers all pages of the website.1, source 1 CrUX requires that a URL be public (crawlable and indexable) and have a sufficient number of distinct samples.1, source 1 The field data in PageSpeed Insights is updated daily, while the CrUX dataset on BigQuery is updated monthly and limited to origin-level data.1, source 1

PageSpeed Insights uses Lighthouse to analyze a URL in a simulated environment for the Performance, Accessibility, Best Practices, and SEO categories.1, source 1 In PageSpeed Insights, a category score of 90 or above is considered good, 50 to 89 needs improvement, and below 50 is poor.1, source 1 In the Performance category, each lab metric is labeled Good with a green circle, Needs Improvement with an amber informational square, or Poor with a red warning triangle.1, source 1

In PageSpeed Insights, Lighthouse simulates a mid-tier device (Moto G4) on a mobile network for mobile tests, and an emulated desktop with a wired connection for desktop tests.1, source 1 PageSpeed Insights runs in a Google datacenter, and the datacenter can vary based on network conditions.1, source 1

How do you run Lighthouse and Chrome DevTools?

Lighthouse is an open-source, automated tool to help you improve the quality of web pages.7, source 7 You can run Lighthouse on any web page, public or requiring authentication.7, source 7 Lighthouse has audits for performance, accessibility, SEO, and more.7, source 7 You can run Lighthouse in Chrome DevTools, from the command line, or as a Node module.7, source 7

LCP can be measured in the lab with Chrome DevTools, Lighthouse, PageSpeed Insights and WebPageTest.3, source 3 In Chrome DevTools, the Lighthouse workflow audits pages that require authentication and shows reports in a user-friendly format right from the browser.7, source 7 To run Lighthouse in Chrome DevTools, open Chrome, go to the URL you want to audit, and open Chrome DevTools.7, source 7 To open DevTools, press Command + Option + I on a Mac, or Control + Shift + I on Windows or Linux.8, source 8

  1. In DevTools, click the Lighthouse tab, then click Analyze page load.7, source 7
  2. When DevTools shows a list of audit categories, leave them all enabled.7, source 7
  3. Click Run audit, and Lighthouse gives you a report on the page after 30 to 60 seconds.7, source 7

The Lighthouse command line and Node workflows require an instance of Google Chrome installed on your machine.7, source 7 To install the command line tool, first install the Long-Term Support version of Node, then run npm install -g lighthouse, where the -g flag installs it as a global module.7, source 7 To run an audit, use lighthouse followed by the URL, and lighthouse --help shows all the options.7, source 7 The Lighthouse Chrome extension is not the recommended route: unless you have a specific reason, use Chrome DevTools, because the extension cannot test local sites or authenticated pages.7, source 7

Opening Chrome in Incognito Mode keeps Chrome in a clean state, because installed extensions might create noise in your performance measurements.8, source 8 Mobile devices have much less CPU power than desktops and laptops, so when you profile a page, CPU Throttling simulates how it performs on mobile devices.8, source 8 In the DevTools Performance panel, set CPU Throttling to 20x slowdown if you want to make sure pages work well on low-end mobile devices.8, source 8

What does a Lighthouse score mean?

In general, only metrics contribute to the Lighthouse Performance score, not the results of Opportunities or Diagnostics.9, source 9 The Lighthouse Performance score is a weighted average of the metric scores.9, source 9 In Lighthouse 10, the weights are 10% for First Contentful Paint, 10% for Speed Index, 25% for Largest Contentful Paint, 30% for Total Blocking Time and 25% for Cumulative Layout Shift.9, source 9

Lighthouse converts each raw metric value into a metric score from 0 to 100 by looking at where the value falls on its scoring distribution.9, source 9 The Lighthouse scoring distribution is a log-normal distribution derived from real website performance data on HTTP Archive.9, source 9 In the Lighthouse scoring curve, the 25th percentile of HTTP Archive data becomes a score of 50, and the 8th percentile becomes a score of 90.9, source 9 Lighthouse color-codes scores as 0 to 49 (red) Poor, 50 to 89 (orange) Needs Improvement, and 90 to 100 (green) Good.9, source 9

A perfect Lighthouse score of 100 is extremely challenging to achieve and not expected.9, source 9 A Lighthouse Performance score can fluctuate because of A/B tests or changes in ads being served.9, source 9 A Lighthouse Performance score can fluctuate when you test on different devices, such as a high-performance desktop and a low-performance laptop.9, source 9 It may be more useful to think of site performance as a distribution of scores rather than a single number.9, source 9

In PageSpeed Insights, common sources of metric variability are local network availability, client hardware availability, and client resource contention.1, source 1 Good lab data in PageSpeed Insights does not necessarily mean real-world experiences will also be good.1, source 1

Why do lab and field results differ?

Lab data might indicate that a site performs great while field data suggests it needs improvement.6, source 6 A lab test limits the variables to a single device, connected to a single network, run from a single geographic location.6, source 6 The LCP element identified in a lab test may not be the same LCP element visitors see.6, source 6 Lab tests typically load a page with a cold cache, but real visitors may already have some of its resources cached.6, source 6

Sites with well-optimized cache configurations and lots of repeat visitors may find their real-world LCP is much faster than their lab data indicates.6, source 6 While INP can be measured in some lab tools, the INP value in a lab test depends on what interactions are performed during the measurement period.4, source 4 Lighthouse loads pages in a simulated environment without a person, so there is no input and it cannot measure INP.2, source 2 Total Blocking Time can be measured in the lab and is a proxy for INP.2, source 2

CLS measured in the lab only considers layout shifts that occur above the fold and during load, which is a subset of what CLS measures.6, source 6 In the field, CLS considers all unexpected layout shifts that occur throughout the lifespan of the page.6, source 6

When both field data and lab data exist for a page, field data is what should be used to prioritize efforts.6, source 6 If field data shows good scores across the board but lab data suggests there is room for improvement, it is worth understanding what further optimizations can be made.6, source 6 Lab measurement is not a substitute for field measurement.2, source 2 The best way to measure a website's INP is by gathering metrics from actual visitors in the field.4, source 4

CrUX can tell you if there is a problem with INP, but it cannot tell you what caused the problem.4, source 4 Google strongly recommends that sites set up their own real-user monitoring.2, source 2

What does server response time tell you?

TTFB measures the time between the start of navigation to a page and when the first byte of a response begins to arrive.10, source 10 TTFB helps identify when a web server is too slow to respond to requests.10, source 10 TTFB is the sum of redirect time, service worker startup time (if applicable), DNS lookup, connection and TLS negotiation, and the request up until the first byte of the response has arrived.10, source 10 Reducing latency in connection setup time and on the backend can lower your TTFB.10, source 10

Good TTFB values are 0.8 seconds or less, and poor values are greater than 1.8 seconds.10, source 10 TTFB precedes user-centric metrics such as First Contentful Paint (FCP) and Largest Contentful Paint (LCP).10, source 10 TTFB is not a Core Web Vitals metric, so it is not absolutely necessary that sites meet the good TTFB threshold, provided it does not impede their ability to score well on the metrics that matter.10, source 10 The TTFB thresholds are a rough guide that must be weighed against how your site delivers its core content.10, source 10

A server-rendered site that does not require as much client-side work could have a higher TTFB but better FCP and LCP values than an entirely client-rendered experience.10, source 10 TTFB and FCP are both useful in diagnosing issues with LCP: slow server response times and render-blocking resources, respectively.2, source 2 TTFB can be measured in the lab in the network panel of Chrome's DevTools and in WebPageTest.10, source 10 PageSpeed Insights classifies field TTFB (experimental) values of 0 to 800 ms as Good, above 800 ms up to 1800 ms as Needs Improvement, and over 1800 ms as Poor.1, source 1

Common questions

How do I check my website speed?

In PageSpeed Insights, you enter a URL and click Analyze. You can also run Lighthouse in Chrome DevTools.

What does PageSpeed Insights measure?

It reports on a page's experience on mobile and desktop devices. Lighthouse supplies its lab data from a simulated load in a Google datacenter, and CrUX supplies its field data from real visits.

What is a good LCP, INP and CLS score?

A good LCP is 2.5 seconds or less. A good INP is 200 milliseconds or less, and a good CLS is 0.1 or less. Measure each at the 75th percentile of page loads.

Why does my speed test score change every time?

Local network availability, client hardware availability and client resource contention all vary. A/B tests, changes in ads being served and testing on different devices can also make a Lighthouse Performance score fluctuate.

Why does PageSpeed Insights show no field data for my site?

A page needs enough data to be in the CrUX dataset. The URL must be public and have enough distinct samples.

What is a good TTFB?

A good TTFB value is 0.8 seconds or less. This threshold is a rough guide that must be weighed against how your site delivers its core content.

Sources

Every fact on this page comes from one of these, checked before it goes live.

More guides

Website speed

What is Cloudflare CDN and how does it work?

Cloudflare CDN caches copies of your content in data centers near your visitors. Learn how Cloudflare caching works and what it caches by default.

· Mateo Cardenas

Email hosting

Does 123 Reg hosting include email?

123 Reg's Web Hosting, Hosting for WordPress and Premium Hosting plans include email addresses, and 123 Reg sells Titan and Microsoft 365 email plans.

· Mateo Cardenas

Email hosting

Does web hosting include business email?

Web hosting sometimes includes business email. See what SiteGround, Namecheap and HostGator state, then how MX records and SPF records work.

· Mateo Cardenas