Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Export PageSpeed Insights (by Google) results

Is there any way to export PageSpeed (the Google Chrome extension) results into a file? I'm looking for a way to export the results from web-site testing using PageSpeed tab in the browser console.

like image 379
Haradzieniec Avatar asked Sep 12 '14 10:09

Haradzieniec


2 Answers

If you open up and run Google PageSpeed Insights through the Audit tab in Chrome Developer Tools, there is a button in the left part of the panel that will allow you to download the report as a JSON file.

Google PageSpeed Insights Audit Report

like image 133
Toma Nistor Avatar answered Sep 18 '22 12:09

Toma Nistor


From my understanding, Tom's answer is missing some context and depending on your use case, can give the wrong impression.

Chrome's performance throttling is RELATIVE to the machine running the audit. So that means running an audit on a weaker machine is going to give an artificially lower score than what it may actually be on another machine.

PageSpeed Insights (PSI) runs a lighthouse audit on a simulated Moto 4.

What device and network conditions does Lighthouse use to simulate a page load?

Currently, Lighthouse simulates a page load on a mid-tier device (Moto G4) on a mobile network.

So if you run an audit through the Chrome tab on a 2018 Macbook Pro and your client runs it on a 2010 HP laptop, you will get vastly different results. So using PSI should give a more "objective" audit as it's using the same hardware for each test.

If you only ever use your development machine to run tests for yourself, then it may not matter as much. But if you are sharing and cross examining reports with a client or team (across different machines), then this is something to keep in mind.

Reference: https://developers.google.com/web/tools/chrome-devtools/evaluate-performance/reference

Throttling is relative to your computer's capabilities. For example, the 2x slowdown option makes your CPU operate 2 times slower than its usual ability. DevTools can't truly simulate the CPUs of mobile devices, because the architecture of mobile devices is very different from that of desktops and laptops.

like image 21
Dan Avatar answered Sep 18 '22 12:09

Dan