Puppeteer + Lighthouse works well for us! *Except* Performance audits which have ~3x longer latencies than anticipated. Any hints to correct these?
We are (largely) successfully running Lighthouse 3.2.1 with Puppeteer 1.11.0 on AWS Fargate across 1000s of pages. The Lighthouse results from headless Chrome + Puppeteer are almost identical to those we get when we run manually.
The only major issues we encounter have to do with Performance audits. These are consistently wrong.
There, we get puzzlingly large latencies... in fact, Time to Interactive seconds often exceeds the total elapsed time of Lighthouse (in timing.total)! The various other timers (Speed Index, First Meaningful Paint, and so on are similarly 1.5-3x what we normally get when running manually).
We assume this is a d'oh moment on our part (possibly related to CPU core count?)... can anyone point is in the right direction?
We get this issue when running on Fargate or locally; when running Chrome headless or headed; we've tried with the Lighthouse ~4-beta and 3.2.1. We consistently get these failures.
Related issues
- GoogleChrome/lighthouse#3837
- GoogleChrome/lighthouse#4403
The performance metrics you receive will be simulated as if run on a Nexus 5X on Slow 4G by default. You can control this with the --throttling.* CLI flags/config settings and --throttling-method. See our main README for the details on what's available, and the throttling doc for more options.
Thank you @patrickhulce. We have been able to follow the documentation and disable throttling. Sorry about this issue! Closing.
@bluepeter , Could you please provide step by step instructions for the Puppeteer + Lighthouse with sample Login into the application.
I have already installed puppeteer using npm "npm install -g google-lighthouse-puppeteer --unsafe-perm=true"
Thanks you for your help!
Sorry, you will have to figure it out for yourself! We just followed the repo instructions.