Benchmarking Chrome’s V8 Javascript engine
by Richard Bradshaw
Having previously looked at the memory usage of Google’s Chrome, it’s time to analyse it’s much mentioned javascript engine, V8. Assumedly named after the engine with the same name, V8 compiles javascript to machine code, rather than bytecode to achieve greater performance. In this respect, it’s similar to Firefox 3.1′s TraceMonkey, a JIT javascript compiler again developed to achieve much greater speeds when running javascript.
Anyway, enough of the description, lets look at some results.
We will examine the benchmarks developed by Google to test V8. (Yes, this may provide some bias…)
For each browser these are the average of 3 runs, though each repeat generally yielded a difference of only 1 or two points implying that the benchmarks are already repeated before the results are shown.
First, a summary graph:
Then a breakdown for each individual test:
In these benchmarks, the higher the score, the better the performance.
It’s clear straight away that Chrome is fast. Raw scores show that Chrome runs these tests 10 times faster than Firefox 3.1 (1009 vs. 101), and 40 times faster than IE 8b2 (1009 vs. 23).
Google describes these tests as so:
- Richards
OS kernel simulation benchmark, originally written in BCPL by Martin Richards (539 lines). - DeltaBlue
One-way constraint solver, originally written in Smalltalk by John Maloney and Mario Wolczko (880 lines). - Crypto
Encryption and decryption benchmark based on code by Tom Wu (1689 lines). - RayTrace
Ray tracer benchmark based on code by Adam Burmister (3418 lines). - EarleyBoyer
Classic Scheme benchmarks, translated to JavaScript by Florian Loitsch’s Scheme2Js compiler (4682 lines).
Comments
I'm sure there's something wrong here…
Firefox 3.0 and Firefox 3.1 perform almost identically, but it is known that 3.1 is orders of magnitude faster than 3.0 because of its new tracing capabilities (hence its name “Tracemonkey”).
Is there any chance that these benchmarks were done with FF 3.0 JIT disabled?
No, I was surprised too, and have run them with various different combinations. FF 3.1 has both the JIT options in about:config set to true and I restarted the machine. On these benchmarks it actually performs slightly slower than when they are set to false…
Weird – I'm going to update to the newest nightly today and try again, these benchmarks are with yesterdays nightly build.
I like Google Chrome But I can not get my talking Buddy to work with the chrome it works fine on iGoogle with the ie8 but not by its self,the same thing with all of my MS Characters they will not work with the Google Chrome,I will keep the chrome any way,I am using seven browsers on this computer so I do have a good option.
I also like the Chrome layout. The only dilemma I have is that it shuts down on certain sites. And now it is not running with the internet. So I stick with good old Firefox.
nice article! nice site. you're in my rss feed now
keep it up
I love Firefox =)
I love Firefox =)