/ webpagetest

Webpage performance testing with WebPageTest

Ever wondered how you could see if your website has good performance in different parts of the world and be able to test multiple browsers to see if there’s a difference in performance? You should look at WebPageTest!

What is WebPageTest? And how can it help my webpage?

WebPageTest (I will call it WPT for short) is a website where you can just give up an URL and test webpage performance and get advice from WPT on what you could change to make your website perform better. It gives a kind of “waterfall” view of the elements in your webpage and how long it takes to load. Things like SSL Negotiation, Time to First Byte and for instance DNS Lookup are broken down into different colors to give you a better view of all the elements in your page and where they’re being held up.

Why shouldn’t I use a tool like YSlow for that?

Tools like the YSlow plugin are widely available for everyone to use. There’s however one disadvantage to these kind of tools. For a start, they’re all local tools, so you can’t test from other parts of the world. Second, they don’t work in all browsers which is a disadvantage if you have a client that uses a browser that doesn’t support the YSlow plugin. Although there are some other alternatives they pretty much all have the same problem as the YSlow plugin. Also, WPT does a repeat request and shows a cached version of a website as well.

Running WPT in your local environment

Another cool thing about WPT is that you can setup a local test environment (keep in mind that if you want multiple Internet Explorer versions you will need multiple machines). As WPT is downloadable you can just install a machine with WPT on it (it runs under Apache with PHP), for a test machine you should use a Windows machine with XP 32bit or later. 64-bit will not be able to run traffic shaping. More information about private instances can be found on the following link: https://sites.google.com/a/webpagetest.org/docs/private-instances.

OK, where can I get it?

Just visit www.webpagetest.org and run a test on your websites. Due to the setup only 1 user can run a test at a time so you might have to wait in a queue if you use a busy server. I suggest running it on your own website and just try and make some changes that are advised by the tool to see if you get an increase in performance.