One of the things that has always bothered me about actively monitoring a site's performance (hitting it on a regular interval from an automated browser) is that you are only getting results for the specific page(s) you are monitoring from the locations and browsers you are using for the monitoring. To get better coverage you need to do more testing which increases the amount of artificial traffic hitting your site (and still ends up not being a very realistic coverage of what your end users are seeing).
Passive monitoring on the other hand involves putting a beacon of some kind on your page that reports the performance of every page that every visitor loads (without artificial traffic). You get complete coverage of what real users are doing on your pages and what their real experiences are.
There are some real benefits to active testing, particularly the controlled environment which produces consistent results (while passive monitoring requires a lot of traffic otherwise individual user configurations will skew the results on a given day). Active monitoring also gives you a wealth of information that you can't get from field data (information on every request and details on exactly what is causing a problem).
Active testing is easier - you just find a company that offers the service, subscribe and start receiving reports and alerts. For passive monitoring you need to instrument your pages and build the infrastructure to collect and analyze the results (or find a company that will do it for you but then you are potentially adding another external Frontend SPOF to your page). Boomerang is a great place to start for passive monitoring but you still need the reporting infrastructure behind it.
Can we do better? Would something like a mix of passive and active monitoring work better where active tests are initiated based on information collected from the passive monitoring (like the top pages for that day or pages that are showing slower or faster performance than "normal")?
Several people have asked for WebPagetest to be able to do recurring, automated testing and I'm debating adding the capability (particularly for private instances) but I'm not convinced it is the right way to go (for performance, not availability monitoring). Is the amount of artificial traffic generated (and testing infrastructure) worth it? Are the results meaningful on a regular basis or will it just end up being another set of reports that people stop paying attention to after a week?
I'd love to hear from other users on how they monitor their sites and what they have found that works well so shoot some comments back and lets get a discussion on it going.
Friday, August 20, 2010
Wednesday, August 11, 2010
If you've been over to WebPagetest today you may have noticed that things have changed a bit (after you double-checked to make sure you were really at the correct site). Thanks to Neustar Webmetrics (and Lenny Rachitsky in particular) for kicking in an actual designer to bring the UI out of the dark ages hopefully performance testing will be less intimidating to new users while still keeping all of the functionality that the more advanced users like. All of the existing functionality is still there (with very similar navigation) but there are a few enhancements I managed to get in with the update as well...
Right at the bottom of the site (across all of the pages) is a blogroll (left column) of performance-focused blogs and a feed of recent discussions (right column) that pulls from the WebPagetest forums, the Yahoo Exceptional Performance group and the "Make the Web Faster" Google group. If you have a blog that you would like included (that is focused on web performance) shoot it to me and I'll get it added to the feed.
There used to be 3 separate "landing" pages. One with some high-level information, one for testing individual pages and one for running visual comparisons. All three have been collapsed into a single page.
New Performance Documentation Wiki
There are a lot of discussions in the forums that end up with really valuable information on how to fix something (keep-alives being broken for IE on Apache comes up frequently). I decided to set up a new destination to serve as a place to document these findings as well as serve as a central repository for performance knowledge. Web Performance Central is an open wiki for the community to contribute to the knowledge base of performance. I will be hosting my documentation there and it is open for anyone else to do the same and hopefully we can start getting a reasonable knowledge base built (it's really bare right now - mostly just the site).
I'll commit to running the site without any branding and with no advertising so it can be a completely unbiased source for performance information.
More Prominent Grades
The grades for the key optimizations are now across the top of all of the results pages and clicking on any of them will take you to the list of requests/objects that caused the failure. Eventually when the documentation is in place I hope to also link the labels to information on how to fix the problem.
I also bit the bullet and added a 3rd party widgit to make it easier to share results. It saves a couple of steps and makes it a lot easier to tweet things like "Wow, site X is painfully slow", etc. I was a little torn because the addthis widget messes up the layout of the page a little bit in IE7 and below but let's face it, I don't expect that the target demographic for WebPagetest would be using outdated browsers so it was a tradeoff I was willing to make.
I'm not a graphic designer by any stretch of the imagination and the UI designer provided the basis for the new logo but I wanted something that had a transparent background and that I could modify myself so I went and created a new one. I HIGHLY recommend Inkscape for those that haven't tried it. It is a free (open source) vector drawing program that is used even by a lot of professional designers. I managed to whip together the logo in a few minutes and create it in various different sizes (as well as a favicon) all from the same source (ahh, the beauty of vector graphics).
Finally, as a bonus for making it this far, there is an Easter egg in the new UI that lets you change the color scheme if you don't like the blue background. Just pass a hex color code in as a query parameter and you can use whatever color you want (with the logo auto-switching from white to black as needed). Here are some to get you started:
The original color scheme provided by the designer: http://www.webpagetest.org/?color=f1c52e
The color will stick until you clear your cookies or manually reset it. To reset it to the default just pass an invalid color: http://www.webpagetest.org/?color=0
As always, feel free to send me any feedback, suggestions or questions.