GoogleChrome / lighthouse

Automated auditing, performance metrics, and best practices for the web.
https://developer.chrome.com/docs/lighthouse/overview/
Apache License 2.0
28.01k stars 9.31k forks source link

Dev Tools Lighthouse score and Python Lighthouse score is not matching when running from PyCharm terminal #16015

Closed jeyapradeepBG closed 1 month ago

jeyapradeepBG commented 1 month ago

FAQ

URL

https://www.amazon.in/

What happened?

Description:

When utilizing the Python Lighthouse library to run Lighthouse reports, discrepancies are observed in the scores compared to those obtained through the DevTools interface for individual categories. This variance poses a challenge in ensuring consistency between the scores obtained via DevTools and Python Lighthouse.

Issue:

Upon running Lighthouse reports via Python Lighthouse library in PyCharm terminal, significant score variations are noted in comparison to the scores acquired from DevTools when running individual categories (e.g., Performance or Best Practices) for desktop devices. The observed variations undermine the reliability and consistency of the scores obtained through Python Lighthouse, raising concerns about the accuracy of the reported metrics.

What did you expect?

How can I ensure that the scores obtained from both DevTools and Python Lighthouse match exactly? Currently, most runs are producing inaccurate scores.

Below I have attached the screenshot score for performance, accessibility and best practices

Devtool report for performance

Screenshot (2305)

Pycharm terminal score for performance

Screenshot (2306)

Devtool report for Accessibility

Screenshot (2307)

Pycharm terminal score for Accessibility

Screenshot (2308)

Devtool report for best-practices

Screenshot (2309)

Pycharm terminal score for best-practices

Screenshot (2311)

What have you tried?

I have tried to match with browser version, light house version and updated new node version.

How were you running Lighthouse?

CLI, Chrome DevTools

Lighthouse Version

11.6.0

Chrome Version

124.0

Node Version

v20.12.2

OS

Windows 10 Enterprise

Relevant log output

No response

adamraine commented 1 month ago

This looks like normal variability, please see https://github.com/GoogleChrome/lighthouse/blob/main/docs/variability.md