Archive for December, 2008

Sunspider JavaScript benchmarking

Friday, December 5th, 2008

I’ve had a blog post in draft for ages, but this isn’t it. The draft post has extensive tables of stats that lie half-finished, but it was getting a bit out-of-hand, so here’s a very abridged version.

The post looked at benchmarking the JavaScript performance of various browsers. Here is a sneak preview:

Browser Speed and tolerance
Firefox 3 (v3.0.4) 3772.6ms +/- 1.3%
Google Chrome (v0.4.154.29) 1808.0ms +/- 6.6%
Opera (v10.00alpha) 4696.4ms +/- 3.6%
IE6 (v6.0.2900.5512 or something) 47651.0ms +/- 15.1%
Safari (v3.1.2) 4260.8ms +/- 5.1%

Of course these stats mean nothing without some explanation, so here goes.
I’m using the SunSpider JavaScript benchmark. You should read what it’s benchmarking – it does a bunch of core JavaScript stuff, like raytracing and string operations and stuff, no DOM or browser API tests.
I ran these tests under Windows XP, on a Dell Inspiron 9300.

My draft post was/is going to also include the browsers on my MacBook Pro, as well as results from the Mootools Slickspeed JavaScript framework benchmark tool.

The results are interesting, especially with IE6 thrown into the mix. The separation between the old and new generations of browsers is clear.
Opera 10.00 alpha was only released yesterday, running on a new rendering engine, Presto 2.2, which utilizes Opera’s new futhark JavaScript engine, and so I expected it to be a bit faster than it is; Safari, FF3, and Chrome are all faster.

Google Chrome is considerably faster that the others.

I do most of my work on the Mac, and so use Firefox with its extensive array of invaluable extensions, particularly Joe Hewitt’s Firebug, and Chris Pederick’s Web Developer Toolbar. On the PC, I use Firefox, and occasionally Chrome, when I feel the need for speed.