Javascript performance in browsers

Ars Technica has recently posted an article about the new Opera alpha release, with some Javascript benchmark results showing it is quite faster than version 9.23. It also goes to compare with Firefox and IE7, but omits some other not so unimportant browsers. I think the main reason is because they seem to have only tested Windows browsers. Sure, Safari has been released recently on Windows, but it is still quite marginal.

Anyways, I was wondering how all this was going under Linux, and also, how (good?) WebKit would perform compared to others.

So, I tried the same Javascript speed tests on various browsers under Linux on my laptop, which happens to be a Pentium M 1.5GHz.

And the winner is…

TestIceweasel 2.18.3/libxul 9.23Opera 9.50 alpha 1
Try/Catch with errors8081411822
Layer movement250214765347
Random number engine280190577268
Math engine3432748210191
DOM speed205225184154
Array functions9797728244
String functions1412124652
Ajax declaration178127162117

So, It seems the speed gain Opera got on Windows doesn’t happen much on Linux.

An interesting result, is that Iceweasel, with a bunch of extensions installed, is slower than Epiphany, despite both using the same rendering engine and Javascript library. Running Iceweasel in safe mode makes it the same speed as Epiphany, though. So having extensions does not only clutter the UI, but actually has an impact on how fast the Javascript code in web pages is going to run.

And well, WebKit is the fastest for this testcase, though it stays behind Opera on some specific tests.

2007-09-07 21:44:19+0900

firefox, iceape, webkit, xulrunner

Both comments and pings are currently closed.

2 Responses to “Javascript performance in browsers”

  1. nixternal » RE: Javascript performance in browsers Says:

    […] This post is just a quickie in response to Mike Hommey’s recent blog post titled “Javascript performance in browsers“. His post was in response to a Javascript Speed Test ran by So far, they have listed all of the browsers that I don’t use. So I decided to test my preferred browser, Konqueror, with this speed test. And without further ado, here are the results: […]

  2. MJ Ray Says:

    Who cares about Javascript performance? Doesn’t anyone who cares about power consumption have javascript disabled, either directly or through add-ons like NoScript?