guardian/frontend — pull request #4611 by phamann (2014-06-07 16:30:00+00:00)
Title: grunt-pagespeed task to analyse and monitor performance

As I have mentioned recently Google's [PageSpeed Insight](https://developers.google.com/speed/pagespeed/insights/?url=http%3A%2F%2Fwww.theguardian.com%2Fuk%3Fview%3Dmobile) suite of tests is a very good and quick indicator of a sites performance baseline.

This task allows you to run the psi test against our production applications from your command line via a grunt task. I.e. run `grunt analyse:performance:article` to see the result for an article page or just `grunt analyse:performance` for all of the applications.

I've set the current threshold to `80` (we currently maintain a median baseline ~88-92)

#### Next steps:
- Add to the `grunt analyse:monitor` task to beacon the information back to CloudWatch
- Configure in TeamCity monitor project as a post-deploy hook
- Set CloudWatch alarms when certain thresholds change
-- such as total image bytes
- Visualise data on the static assets dashboard

#### Example output:
![iterm](https://cloud.githubusercontent.com/assets/80089/3209218/8526d8ec-ee60-11e3-9421-00fd344fe972.png)

Thanks to @addyosmani for making me aware of the plugin.