-
-
Notifications
You must be signed in to change notification settings - Fork 28
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
lighthouse performance output is significantly different from the browser inbuilt one #31
Comments
hey @fasatrix , I was also experiencing wild numbers when I run my tests. I then stumbled upon this article which has a good explanation as to why the numbers may fluctuate and offers up some suggestions on how to mitigate. https://github.com/GoogleChrome/lighthouse/blob/master/docs/variability.md |
Hey, @ryanrosello-og thanks for that. My tests were run from the same computer on the same network multiple times using the web browser version and this package. So the environment was consistently the same however results were consistently different |
Can you try with different configs? eg: import lighthouseDesktopConfig from 'lighthouse/lighthouse-core/config/lr-desktop-config';
// import lighthouseMobileConfig from 'lighthouse/lighthouse-core/config/lr-mobile-config';
await playAudit({
// ...
config: lighthouseDesktopConfig,
// ...
}) |
I am having the same issue as @fasatrix . Any update on this? |
Hi, I'm having the same thing for a11y as well. Lighthouse in dev tools reports a11y errors while the a11y score when using Here's my config:
In the dev tools I see 13 audits while in the Any idea why? |
I'm seeing the same problem. Running the test in my browser will return a performance score of ~85, running it in playwright I get ~70, running it in CI I get around ~50. |
Closes #33 - upload test reports when running on gh-actions - upgrade all packages - change playwright config to use more cpu cores/workers - change playwright server command to build production version of site - hoist list of `paths` (routes) into separate file - in axe test, instead of `console.warn`, use playwright test annotation (shows when you click on a test that passed in the html report) - change nature of json imports in tests to get rid of node log warnings - implement lighthouse tests following the [`playwright-lighthouse` instructions here](https://github.com/abhinaba-ghosh/playwright-lighthouse?tab=readme-ov-file#usage-with-playwright-test-runner) - choose appropriate thresholds for lighthouse test, except for performance which is held back by [some kind of upstream bug](abhinaba-ghosh/playwright-lighthouse#31) - APCA color contrast checking is unfortunately [NOT available in lighthouse](GoogleChrome/lighthouse#16237 (reply in thread)) --------- Co-authored-by: Vincent Rubinetti <[email protected]>
Hi there,
I noticed that the outputted metrics are significantly different from the browser inbuilt one, why is that(am I doing anything wrong)?
test:
From the inbuilt lighthouse
What I have noticed is that the output from your lib is very closed to the mobile output. However I added
opts: { screenEmulation: { disabled: true } }
to make sure mobile device is not runThe text was updated successfully, but these errors were encountered: