-
Notifications
You must be signed in to change notification settings - Fork 9.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Different Lighthouse Performance Results from the same computer #14681
Comments
I can't reproduce the ~42 performance score you're seeing on the CLI, are you able to share the report file? Also, please read our variability docs. |
I understand the variability, but a "Time to interactive" difference of 0.3s to 4.7s from and overall performance score of around half on the same machine (with lots of CPU and RAM) doesn't make any sense to me. To me it almost seems as if the CLI tool is counting the time it takes to start chrome as part of the performance. I'm attaching the report file. www.google.com_2023-01-17_16-09-40.report.html.zip I've tested this from the same machine on two different networks with the same results. I also had a co-worker run the same exercise (Chrome DevTools and CLI) on their Macbook and they experience the same results as me. |
Can you run this command:
Then send the contents of the resulting |
Testing this again several weeks, the results are now as I would now expect. |
Hi @tleish |
I'm not sure what changed. It just started working as expected one day. |
I'm currently experiencing this myself. Lighthouse testing in the browser shows performance score of 97, but CLI testing shows a performance score of 34. Every online tester I'm using, including https://pagespeed.web.dev/ agrees with the CLI testing. But there's something crazy happening here because CLI and the online tests show a FCP > 5 seconds. But in my actual browser I'm getting <1.5 seconds total load until visually complete. The CLI is reporting wildly inaccurate measurements for the actual human experience. And before you say "browser cache" let me just clarify that the pages load instantly on first load - it's not like first load takes >5 seconds and then my chrome dev tools lighthouse report hits cached data. I don't know why the CLI testing is so wildly off. |
Locking this thread because it is old. If you have further issues please file a new bug report. |
FAQ
URL
https://www.google.com/
What happened?
I'm getting different performance results between Google Chrome > Dev Tools > Lighthouse and lighthouse-cli from the same computer.
lighthouse-cli
seems to always show much worse performance than in dev tools. My assumption is the defaults of the browser and cli are the same, but I'm guessing I'm wrong and unclear how to align these to be the same.What parameters do I need to set in order to get the two results similar.
What did you expect?
I expected the performance results to be close to the same between browser and cli tools.
What have you tried?
Chrome DevTools Steps
Chrome DevTools Results
CLI Steps
CLI Results
How were you running Lighthouse?
CLI, Chrome DevTools
Lighthouse Version
9.6.8
Chrome Version
109.0.5414.87 (shows Lighthouse v9.6.8 in results)
Node Version
18.6.0
OS
macOS 13.0.1
The text was updated successfully, but these errors were encountered: