How well JavaScript works is what I highly concern about Google Chrome — the browser on headlines of all tech news today.
The JavaScript engine embedded in Chrome, named V8, is developed by Google which implements ECMAScript 3 and can run standalone as stated on project website.
- V8 is Google’s open source JavaScript engine.
- V8 is written in C++ and is used in Google Chrome, the open source browser from Google.
- V8 implements ECMAScript as specified in ECMA-262, 3rd edition, and runs on Windows XP and Vista, Mac OS X 10.5 (Leopard), and Linux systems that use IA-32 or ARM processors.
- V8 can run standalone, or can be embedded into any C++ application.
Of course, we’ll have to mention the tests given out by Google itself that show JavaScript speed in Chrome many times faster than in all other major browsers: IE, Firefox and Safari.

Google Chrome Benchmarks
Anyway, they are tests guided by Google and I suspect that they seem be optimized toward the best of V8. So, the better way to see how good V8 perform in action is to run tests with popular JavaScript libraries like JQuery, Prototype, Dojo, Mootools, YUI which are being used in most of web applications in real world.
In a typical web application, JavaScript is mainly used for DOM selection/ manipulation rather than for heavy calculation. That’s why all libraries try to optimize DOM selection speed for (said) faster application.
To have practical view, I decided to run Mootools’ SlickSpeed tests on Google Chrome 0.2 in comparison with Firefox 3.0.1, Safari 3.1 (Windows), IE6, Opera 9.5 and especially on the nightly build of Firefox 3.1b1pre with Tracemonkey — Mozilla’s recent effort to integrate Tamarin tracing into the existing SpiderMonkey JavaScript engine — enabled and disabled. Here are the results:

Chart: Mootools SlickSpeed Test Results

SlickSpeed Benchmarks in details
(All tests were run 10 times for each browser on Windows XP SP3, AMD x64 4400+ with 2GB RAM machine)
It turns out that Google Chrome reached 6th place ahead the poor IE6 only, 49% slower than the fastest browser: Opera 9.5. Firefox 3.1 has not proved faster than the previous version in the tests, even enabling JIT engine made the results worse. (I acknowledge that it’s just pre-release beta version and Tracemonkey is not designed for optimizing DOM manipulation).
Some other conclusions we can get out from the above results (ruling out IE6 which falls far behind others in all tests) are:
- MooTools, Prototype and Dojo get the worst performance in Chrome and surprisingly JQuery enjoys the second best result.
- JQuery’s selector performs best while YUI 2.5 provides the worst results across browsers (295% slower than JQuery) and Prototype is just slightly better than the worst (269% slower).
- JQuery’s performance is quite browser-neutral while Dojo’s defers a lot from browser to browser, yet both are well optimized for speed.
- Dojo’s selector does not play well in Firefox 3.1 currently causing several errors in tests.
Though DOM selector test does not tell everything about how fast a JavaScript engine is in real-world browsers, it brings out another aspect you may want to consider over what Google is advertising about V8 and Chrome.
I recognize that Google Chrome is really good at rendering web pages (which contributes a lot to overall performance of an application) but I’ll stick with Firefox in most of cases for I cannot find a dozen of plugins/extensions I love in Chrome yet.
Related Reading:
- Google Services: Google Street View, Google Chrome, Youtube, Google Maps, Gmail, Google Books, Orkut, List of Google Products, Gmail Interface
Purchase includes free access to book updates online and a free trial membership in the publisher's ... Read More »
- Google Chrome OS: Visual QuickStart Guide
- Google Chrome: Comparison of web browsers, Mozilla Firefox, Opera (web browser), Safari (web browser), Chromium (web browser), SRWare Iron, Google Chrome OS, Web browser, Google, WebKit, Layout engine
Google Chrome is a web browser released by Google which uses the WebKit layout engine and applicatio... Read More »





Could you add a current Safari / Webkit-Nightly in your comparison?
Cause it doesn’t make much sense to compare beta browsers like Chrome or IE8 with shipinng browsers.
We have performed some measurements on the performance of http://www.taskwriter.com . The results show Firefox 3.0 and Chrome being pretty close. By no means as far as Google suggests with its tests.
Full details and graph here : http://www.taskwriter.com/blog/how-good-chrome-really-is/
btw, http://www.taskwriter.com is written using google web toolkit…so advantage for Chrome here.
Google Chrome is really fast!
Now I can sort 200,000 records inside of Browser (Chrome) just in 1 sec. (Faster than Microsoft Excel):
http://www.ardentedge.com/ex_if.htm
Hey Google fanboys, I’m tired of browser war — now come another browser to test for my web apps.
OK, Chrome is fast, so what? It’s new, no burden with many historical codes, not have many plugins yet. I’ll see how fast it is in 2 years later.
@fimbas: DOM selector is an important test; user may not care about it but web developer cannot ignore it.
Why test these latest versions against a version of IE that came out 7 years ago? Seems very odd.
Most of the users does not cares and know about these test, their simple concern is that the page should open faster, and chrome is capable of loading pages faster than any other browser.
Interestingly, on my own AJAX and Sofu based Website, Chrome is really 3 times faster, even though I didn’t optimize it towards it. Chrome even provides the same smooth moves and picture quality from Safari, which Firefox still lacks. (Transparent Gifs over other pictures following the mouse (i.e window drag) distort the underlying image a lot)
[...] al curioso di trovarsi uno accanto all’altro tra i suoi feed titoli di questo tenore: JavaScript in Google Chrome Not So Fast, ma anche Google Chrome faster than Firefox, IE, [...]
[...] lập đều cho thấy V8 vượt trội trong các tác vụ thuần JavaScript (mặc dù các thử nghiệm về tìm kiếm DOM không cho kết quả khả quan như mong đợi). Hiện thời có lẽ chỉ có TraceMonkey, [...]
The speed of DOM manipulation is of course important, but you don’t actually measure the speed of JavaScript there. The DOM manipulation itself doesn’t happen on the JavaScript side. Basically the script only tells the DOM implementation (through some kind of interface) to do some things. The time spent on the JS side is basically 0.
But you are right. This stuff is the most important (most frequent) use case and therefore it deserves a bit more attention.