DEV Community

Discussion on: Performance Tools

Collapse
 
grahamthedev profile image
GrahamTheDev • Edited

For clarity Page Speed Insights is just a web interface for Lighthouse so you get very similar data from both at default settings (the "lab data" is powered by Lighthouse).

The source code for Lighthouse is on Github which is how you can run the Command Line Interface as Laurie said in the article.

Fairly easy to install locally even if you are a complete noob when it comes to node like I was.

See this stack overflow answer I gave for more info on the benefits of the CLI over other methods:

An alternative way to run Lighthouse

Although this is an old question there is an alternative way to run Lighthouse (the engine behind Page Speed Insights) locally that may be useful to people in some circumstances.

You can install the Lighthouse Command Line Interface (CLI) locally on your machine quite…

Finally you really should be collecting your own Real User Metrics (RUM) data, as such I would recommend the Web Vitals library from Google if you don't want to build your own solution, you can pipe it to your Google Analytics to make life easy and keep all your data together too!

p.s. any questions on Page Speed Insights, Lighthouse or Web Vitals just ask, I know a reasonable amount about it as you can see from the all time rankings below on SO (I am Graham Ritchie for reference πŸ˜‹):

page speed insights ranking position for the tag "pagespeed-insights" on stack overflow, showing I am top of all time

Collapse
 
laurieontech profile image
Laurie

Yup! This post talks about the CLI and the various flags.

Collapse
 
grahamthedev profile image
GrahamTheDev

Thanks, I rephrased it to share the link to the CLI and reference that you had it in your post, not sure how I missed your references twice!

Great article BTW!