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.

Performance trace vs Lighthouse Report

See original GitHub issue

Hey guys! First I want to thank you for all your work. I’ve been using Lighthouse a lot the last year and a half and I’m just grateful of your work. So, straight to the question:

  • Why the numbers/timings of a trace (generated using --save-assets) are different from the numbers in the Lighthouse report?

Example: image

  • FCP: 592.1
  • LCP: 722.9

image

  • FCP: 3800
  • LCP: 6700

In this case FCP 6.4x is and LCP is 9.2x the trace value.

I suspect this might be linked to throttling (the trace is unthrottled?). If that is the case, is there a way to transform the unthrottled trace to a throttled trace?

The problem for us now is that we are seeing a high variance in the metrics over time.

image

And we are not sure why the scores in lighthouse change. When we compare the trace of a good result with a bad one, the main difference I see that FCP and LCP happens at the same time:

image

Other details

  • Lighthouse v6.4.1 running in a docker container
  • Docker Host is a Mac Mini
  • Docker image based in debian: node:12-buster-slim
  • Using puppeteer v5.5.0 (Chrome 88)
  • BenchmarkIndex very consistent in the 900 range
  • CPU Slowdown Multiplier of 2.2x

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
dvelasquezcommented, Dec 13, 2020

Great! Thanks @patrickhulce

I manage to call the function and sending the artifacts of the lighthouse run. Thanks very much!

1reaction
patrickhulcecommented, Dec 2, 2020

@dvelasquez you can copy/paste and modify this function from the codebase to give yourself the traces instead. They’re effectively saved in global scope to the Simulator class.

https://github.com/GoogleChrome/lighthouse/blob/07b1f1b68ade8fde56556684fc0dff3704ff566b/lighthouse-core/lib/asset-saver.js#L243-L253

Read more comments on GitHub >

github_iconTop Results From Across the Web

PageSpeed Insights vs Lighthouse: Which is Better for ...
Overall, the tools share a lot of similarities. It's because PageSpeed Insights' performance testing engine is based on Lighthouse. However, ...
Read more >
Google PageSpeed vs Lighthouse: How Are They Different?
PageSpeed Insights measures the performance metric only, whereas Lighthouse audits other aspects of a website, as well (SEO, accessibility, ...
Read more >
Why is my Lighthouse score different from PageSpeed ...
When running Lighthouse on your computer or on DebugBear the Performance score may be different from what you see on PageSpeed Insights.
Read more >
Google PageSpeed Insights vs. Lighthouse: Which is Better?
Lighthouse is developer-focused and collects lab data from audits that cover everything from page load speed to web security. Both offer ...
Read more >
Lighthouse vs PageSpeed Insights: Which is Better for You?
Also, PageSpeed Insights only provides data for individual pages, while Lighthouse can audit the performance of your entire website. And lastly, ...
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