Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Run Lighthouse Speed Test in Google Chrome

· 7 min read · Home Tech

In this article
  1. What Is Lighthouse?
  2. How to Run Lighthouse in Chrome
  3. Understanding the Scores
  4. Why Use Lighthouse vs. Other Speed Tests?
  5. Common Problems and How to Fix Them
  6. Lighthouse on the Command Line and CI
  7. Frequently Asked Questions

To run a Lighthouse speed test in Google Chrome, open the page you want to test, press F12 (or right-click and select "Inspect"), go to the "Lighthouse" tab, choose "Mobile" or "Desktop," and click "Analyze page load." Chrome will generate a report with performance, accessibility, best practices, and SEO scores, plus specific recommendations for improvement.

What Is Lighthouse?

Lighthouse is an open-source, automated auditing tool built into Google Chrome's DevTools. It was developed by Google to help developers and site owners measure the quality of their web pages. The tool runs a series of tests against a page and produces a report with scores from 0 to 100 across four main categories:

  • Performance — how fast the page loads and how smoothly it responds.
  • Accessibility — how usable the page is for people with disabilities.
  • Best Practices — how well the page follows modern web development standards.
  • SEO — how well the page is optimized for search engines.

Lighthouse also includes a "Progressive Web App" (PWA) check, though this is only shown in the report if the page meets certain criteria. The tool runs in a simulated environment, meaning it applies its own network throttling and CPU slowdown to mimic a mid-range mobile device on a slow connection. This gives a consistent, comparable score across different runs.

How to Run Lighthouse in Chrome

Running Lighthouse is straightforward, but the exact steps depend on whether you want to test a page in the browser or use the command line. Here's the most common method using Chrome's built-in DevTools:

  1. Open Google Chrome and navigate to the page you want to test.
  2. Press F12 (or Ctrl+Shift+I on Windows/Linux, Cmd+Option+I on Mac) to open DevTools.
  3. Click the Lighthouse tab. If you don't see it, click the double-arrow (>>) at the end of the tab bar to find it.
  4. Choose the device type: Mobile or Desktop. Mobile is the default and is recommended for most sites because it reflects the majority of web traffic.
  5. Optionally, check the "Simulated throttling" box (it's on by default) to get a more realistic performance score.
  6. Click Analyze page load. Chrome will open the page in a new tab, run the tests, and then display a report.

The entire process usually takes 30–60 seconds. Once the report is generated, you can view it in the same tab, or click the "Download Report" button to save it as a JSON file for later analysis.

Understanding the Scores

Each category in the report has a score from 0 to 100, with 90–100 being green (good), 50–89 being orange (needs improvement), and 0–49 being red (poor). The Performance score is what most people refer to as the "Lighthouse speed test" result, but it's actually a composite of several metrics:

  • First Contentful Paint (FCP) — when the first text or image appears.
  • Largest Contentful Paint (LCP) — when the main content is visible.
  • Total Blocking Time (TBT) — how long the main thread is blocked from responding to user input.
  • Cumulative Layout Shift (CLS) — how much the page layout shifts unexpectedly.
  • Speed Index — how quickly the page's content becomes visible.

These metrics are weighted differently, with LCP, TBT, and CLS carrying the most weight in the final Performance score. The report also shows "Opportunities" and "Diagnostics" — specific suggestions like "Serve images in next-gen formats" or "Eliminate render-blocking resources" — along with an estimated time savings for each fix.

Why Use Lighthouse vs. Other Speed Tests?

Lighthouse is unique because it's free, built into Chrome, and provides actionable advice directly tied to the score. Unlike simple speed tests that just show a load time (like Pingdom or GTmetrix), Lighthouse tells you why a page is slow and what to change. It also runs a simulated test, so the results are more consistent than real-world tests that depend on your internet connection and device. However, that simulation also means the scores are not the same as what a real user on a fast connection would experience. For a real-world measurement, you might use Chrome's "Performance" panel or a tool like WebPageTest, which can run tests from multiple locations and browsers. But for a quick, comprehensive audit, Lighthouse is the go-to choice.

Common Problems and How to Fix Them

If your Lighthouse score is lower than expected, there are a few common culprits:

  • Large images — Compress images, use modern formats like WebP, and set explicit width/height attributes to prevent layout shift.
  • Render-blocking JavaScript and CSS — Defer non-critical scripts, inline critical CSS, and use the async or defer attributes.
  • Too many HTTP requests — Combine files, use a content delivery network (CDN), and take advantage of browser caching.
  • Slow server response time — Optimize your server, use a faster hosting provider, or implement caching at the server level.
  • Third-party scripts — Remove or delay scripts from ads, analytics, and social widgets that aren't essential to the page's core function.

Lighthouse will highlight these issues in the "Opportunities" section, often with an estimated time savings. Fixing the highest-impact items first is the most efficient way to improve your score.

Lighthouse on the Command Line and CI

Beyond DevTools, Lighthouse can be run as a Node.js command-line tool, which is useful for automated testing in a continuous integration (CI) pipeline. To do this, you need Node.js installed, then run:

npm install -g lighthouse
lighthouse https://example.com --view

The --view flag opens the report in your browser. You can also output the report as HTML, JSON, or CSV, and set custom options like device type, throttling, and which categories to test. This makes it possible to track performance over time and catch regressions before they reach production. Many teams integrate Lighthouse into their CI using tools like Lighthouse CI, which can compare scores against a baseline and fail builds if performance drops below a threshold.

Frequently Asked Questions

Is Lighthouse the same as Google PageSpeed Insights?

PageSpeed Insights uses Lighthouse under the hood. When you enter a URL on PageSpeed Insights, it runs a Lighthouse audit on Google's servers and displays the same scores and recommendations. The main difference is that PageSpeed Insights runs from a remote location, while Lighthouse in Chrome runs locally on your machine. The scores can differ slightly due to the environment, but the underlying analysis is identical.

Why does my Lighthouse score change between runs?

Lighthouse scores can vary because the simulated throttling is based on your machine's CPU and network conditions, which can fluctuate. Also, if the page contains dynamic content (like ads or live data), the load experience may differ. To get a more stable score, run the test 3–5 times and take the median, or use the command-line tool with a fixed configuration.

What is a good Lighthouse performance score?

A score of 90 or above is considered good, 50–89 needs improvement, and below 50 is poor. However, the score alone doesn't tell the whole story. A page with a 95 score might still have a slow LCP if the content is heavy. Focus on the metric values (like LCP under 2.5 seconds) rather than just the composite score.

Can I run Lighthouse on a page that requires login?

Yes, but it requires a bit more setup. In DevTools, you can use the "Lighthouse" tab while you're logged into the site, and it will test the page as it appears in your session. However, the audit runs in a new tab, so you need to ensure the session cookie is shared. For command-line runs, you can use the --extra-headers option or a custom puppeteer script to log in first.

Does Lighthouse affect my site's performance when I run it?

No. Lighthouse runs in a separate tab and does not alter your site's code. It only loads the page in a simulated environment to measure its performance. The only impact is on your local machine's resources, which could slightly slow down other tabs, but it doesn't change the site itself.

What's the difference between Lighthouse and Chrome's Performance panel?

The Performance panel records a trace of your page's runtime and shows a detailed timeline of network requests, JavaScript execution, and rendering. It's a debugging tool for developers to find bottlenecks. Lighthouse, on the other hand, is an audit tool that gives a score and recommendations. They serve different purposes: use the Performance panel to diagnose, and Lighthouse to get a high-level health check.