Have a look at Page Speed:
"Page Speed is an open-source C++ SDK, and a browser extension available for Chrome and Firefox. Webmasters and web developers can use Page Speed to evaluate the performance of their web pages and to get suggestions on how to improve them. "
http://code.google.com/p/page-speed/
Haven't tried it myself but saw it was recommended by the Google Webmaster service.