{"id":161,"date":"2007-09-07T21:44:19","date_gmt":"2007-09-07T19:44:19","guid":{"rendered":"http:\/\/web.glandium.org\/blog\/?p=161"},"modified":"2010-01-27T08:52:30","modified_gmt":"2010-01-27T07:52:30","slug":"javascript-performance-in-browsers","status":"publish","type":"post","link":"https:\/\/glandium.org\/blog\/?p=161","title":{"rendered":"Javascript performance in browsers"},"content":{"rendered":"<p>Ars Technica has recently posted an article about the new Opera alpha release, with some Javascript benchmark results showing it is <a href=\"http:\/\/arstechnica.com\/news.ars\/post\/20070905-first-look-opera-9-5-alpha.html\">quite faster than version 9.23<\/a>. 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.<\/p>\n<p>Anyways, I was wondering how all this was going under Linux, and also, how (good?) WebKit would perform compared to others.<\/p>\n<p>So, I tried the same <a href=\"http:\/\/celtickane.com\/projects\/jsspeed.php\">Javascript speed tests<\/a> on various browsers under Linux on my laptop, which happens to be a Pentium M 1.5GHz.<\/p>\n<p>And the winner is...<\/p>\n<table>\n<thead>\n<tr>\n<th>Test<\/th>\n<th>Iceweasel 2.0.0.6<\/th>\n<th>Epiphany 2.18.3\/libxul 1.8.1.6<\/th>\n<th>GdkWebKit<\/th>\n<th>Opera 9.23<\/th>\n<th>Opera 9.50 alpha 1<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<th>Try\/Catch with errors<\/th>\n<td>80<\/td>\n<td>81<\/td>\n<td>41<\/td>\n<td>18<\/td>\n<td>22<\/td>\n<\/tr>\n<tr>\n<th>Layer movement<\/th>\n<td>250<\/td>\n<td>214<\/td>\n<td>76<\/td>\n<td>53<\/td>\n<td>47<\/td>\n<\/tr>\n<tr>\n<th>Random number engine<\/th>\n<td>280<\/td>\n<td>190<\/td>\n<td>57<\/td>\n<td>72<\/td>\n<td>68<\/td>\n<\/tr>\n<tr>\n<th>Math engine<\/th>\n<td>343<\/td>\n<td>274<\/td>\n<td>82<\/td>\n<td>101<\/td>\n<td>91<\/td>\n<\/tr>\n<tr>\n<th>DOM speed<\/th>\n<td>205<\/td>\n<td>225<\/td>\n<td>18<\/td>\n<td>41<\/td>\n<td>54<\/td>\n<\/tr>\n<tr>\n<th>Array functions<\/th>\n<td>97<\/td>\n<td>97<\/td>\n<td>72<\/td>\n<td>82<\/td>\n<td>44<\/td>\n<\/tr>\n<tr>\n<th>String functions<\/th>\n<td>14<\/td>\n<td>12<\/td>\n<td>12<\/td>\n<td>46<\/td>\n<td>52<\/td>\n<\/tr>\n<tr>\n<th>Ajax declaration<\/th>\n<td>178<\/td>\n<td>127<\/td>\n<td>16<\/td>\n<td>21<\/td>\n<td>17<\/td>\n<\/tr>\n<\/tbody>\n<tfoot>\n<tr>\n<th>Total<\/th>\n<td>1447<\/td>\n<td>1220<\/td>\n<td>374<\/td>\n<td>434<\/td>\n<td>395<\/td>\n<\/tr>\n<\/tfoot>\n<\/table>\n<p>So, It seems the speed gain Opera got on Windows doesn't happen much on Linux.<\/p>\n<p>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.<\/p>\n<p>And well, WebKit is the fastest for this testcase, though it stays behind Opera on some specific tests.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7,12,17,11],"tags":[23],"class_list":["post-161","post","type-post","status-publish","format-standard","hentry","category-firefox","category-iceape","category-webkit","category-xulrunner","tag-en"],"_links":{"self":[{"href":"https:\/\/glandium.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/161","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/glandium.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/glandium.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/glandium.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/glandium.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=161"}],"version-history":[{"count":1,"href":"https:\/\/glandium.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/161\/revisions"}],"predecessor-version":[{"id":705,"href":"https:\/\/glandium.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/161\/revisions\/705"}],"wp:attachment":[{"href":"https:\/\/glandium.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=161"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/glandium.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=161"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/glandium.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=161"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}