Archive for March 6th, 2008
Firefox 3 promises to be a speed-monster

The latest nightly builds of Mozilla Firefox 3 are now being built with Profile Guided Optimization (PGO), and tests confirmed that Firefox 3.0 is now the fastest browser on the earth and more than 30% faster in JavaScript tests than the latest Opera Beta (9.5.9807)…
The figures
Cybernetnews.com reports the results of the SunSpider JavaScript Benchmark test, used for each of the different browsers. All of the tests below were performed on the same Windows machine, and the Firefox 3 nightly builds definitely came out on top. Here are the results sorted from best to worst (each one is hyperlinked to the full stats):
- Firefox 3 Nightly (PGO Optimized): 7.263ms
- Firefox 3 Nightly (02/25/2008 build): 8.219ms
- Opera 9.5.9807 Beta: 10.824ms
- Firefox 3 Beta 3: 16.080ms
- Safari 3.0.4 Beta: 18.012ms
- Firefox 2.0.0.12: 29.376ms
- Internet Explorer 7: 72.375ms
So what is Profile Guided Optimization?
When building (compiling) Firefox, a set of tests are run and the data from these tests are used to optimize the compiled code. The data from the tests enables the compiler to aggressively optimize code in Firefox. The data represents how the program is likely to perform in a production environment. Basically, it runs the Firefox code to see what functions get used the most and optimizes the final code around that data.
Profile-guided optimization is a relatively new feature in both GCC and Visual C++ that improves the quality of generated code.
IE already doing this
IE7 was build with Profile-Guided Optimizations and gained a 8% performance improvement with no additional code change.
For more information about Profile-Guided Optimizations:
- Profile-Guided Optimizations in Microsoft Visual C++
- Building with Profile-Guided Optimization
Sources: gemal.dk and cybernetnews.com
Add comment March 6, 2008

