Website performance is an essential part of running a successful site. If your site takes too long to load, it can deter users from coming back and negatively affect search engine rankings. To get you started on improving your site’s performance, this post will discuss two tools (Page Speed Insights and Lighthouse) that Google provides.
As we tend to rely mostly on Google search for organic traffic, and as site performance and site structure are amongst the ranking factors that Google uses to judge our sites, it makes sense to use testing tools created by Google to highlight speed and structural problems.
As such the Google tools to use are
You run Page Speed Insights (PSI) by visiting the Page Speed Insights page and entering the URL of the page you wish to test.
Note that PSI measures only one thing. It measures the speed performance of a webpage. You'll notice that the report you get provides only one number at the top. The aim is to consistently achieve a number in green as shown here.
Further down on the Page Speed Insights report, you'll come across some terms that may not make sense at first glance. Here are the important ones.
There are several ways to run Lighthouse. I like to use the Google Chrome Extension for Lighthouse. Once that is installed you can simply click on the extension to run a web page test on the current page in your browser.
However, if you have loads of Chrome Extensions installed on your browser they will interfere with the results. So you'll have to run Lighthouse in an incognito window where you typically have no extensions installed.
Of course you will need to make sure Lighthouse is installed in incognito mode but that should be the only extension available in incognito mode. You can do this by right-clicking the extension icon and then clicking on Manage Extensions. Once there, simply slide the Allow in incognito switch to on.
Lighthouse measures more than just speed (performance). Altogether it measures
The report will show several numbers at the to which give you an overall impression of how well that page has been put together from a Google "web vitals" point of view.
The Lighthouse report uses Google Page Speed Insights to provide the performance information, but doesn't go into as much depth on the results. If you want the full performance information available, then you must also run Page Speed Insights.
Bear in mind that each time you run either Lighthouse or Page Speed Insights repeatedly, the performance values you see on each run could change. This could be to do with network traffic and server loads which you cannot control.
It is also possible that the version of Page Speed Insights used in Lighthouse may be different to the one used at Page Speed Insights itself. As you can see from the two screenshots above, the performance score was very slightly different. Run each test several times to get a general idea of how well the page is likely to perform.
There are a number of popular performance testing tools that now use Lighthouse to power their software. Yet despite using Lighthouse in the background and then presenting the results in their own way, the basic performance results you see on each of these tools may differ considerably. The reason is that each tool uses Lighthouse differently and with different parameters and their tests are run on different hardware. You often get better test results on GTMetrix as they do not throttle the connection.
The best idea is to select a tool you like and stick to it. Personally, I prefer to use Lighthouse as this is a Google tool, and we can only presume they will be using their own tools to analyse our sites and so it makes sense to use what they use.
That's the subject of another blog post. I'll update you will a link to it here when it's done.