question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Lighthouse cannot get a Performance score ~30% of the time

See original GitHub issue

Hey folks! At SpeedCurve we’re running Lighthouse about 100,000 times every day across almost as many distinct URLs. We consider a LH run to have failed if it doesn’t return a Performance score. We have a baseline failure rate of 8-9% (mostly due to bot managers) but we noticed that around April 25 the failure rate jumped to about 30%.

Percent Failed vs Date

The raw data for this chart is in a public spreadsheet if you want to dive into it more. You’ll notice the failure rate is less for mobile than it is for desktop.

We don’t track the failure reason, but anecdotally the NO_SCREENSHOTS error is pretty common. Here’s an example test for a URL that gets this error roughly 1 in 3 runs. I didn’t see this error often before 25 April.

Environment Information

SpeedCurve runs its Lighthouse testing via WebPageTest. WPT performs its own throttling, using tc-netem for the network and Chrome DevTools for the CPU.

  • Affected Channels: CLI
  • Lighthouse version: 5.1.0
  • Node.js version: 10.x
  • Operating System: Ubuntu 18.04

Example command that would be run by wptagent:

# {PORT} is the port of an already-running Chrome instance, potentially with CPU throttling applied.
lighthouse "{URL}" --disable-network-throttling --disable-cpu-throttling --throttling-method provided --enable-error-reporting --max-wait-for-load 60000 --port {PORT} --output html --output json --output-path "{PATH}"

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:10 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
zemancommented, Jun 3, 2019

@brendankenny For more context the WebPageTest agents reboot every hour and update the browsers and Lighthouse to latest release/stable version and that’s what we test with.

0reactions
wildlyinaccuratecommented, Jun 10, 2019

It looks like Chrome 75 has returned our error rate back to normal. I’ll close this ticket for now but I’m still more than happy to assist debugging Chrome 74 if that’s useful for the Lighthouse team.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why Lighthouse Performance Score Doesn't Work - Calibre
Performance Score was built to simplify talking about speed. Here's why its not delivering on its promise.
Read more >
How to Improve the Lighthouse Performance Score For ...
The aim here is to minimize the time between the FCP and the TTI.⚖️ This metric is weighted 10% in the overall performance...
Read more >
Lighthouse performance scoring - Chrome Developers
A "perfect" score of 100 is extremely challenging to achieve and not expected. For example, taking a score from 99 to 100 needs...
Read more >
Investigating Lighthouse Report Generation Errors - GTmetrix
If LCP is missing, Lighthouse cannot calculate a Performance Score for your page, resulting in the error. Known Lighthouse Bug. Some instances ...
Read more >
Google Lighthouse: What Is It & How Do You Use It?
Take a deep dive into Lighthouse performance metrics with ... score weighting: 30%; What it measures: TBT measures the time between First ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found