Articles

Navigation ( archives ›› 2008 ›› September ›› 03 ›› Google Chrome javascript benchmark test )

Google Chrome javascript benchmark test

Posted on September 3, 2008, 10:52 am EST

Yesterday, Google released their beta browser application called Chrome on their official Google Blog. Although many features are missing, I assume they are still working on them since it is still beta. By using webkits open source SunSpider JavaScript browser benchmark, Google Chrome beats its competitors by a good margin.

Google Chrome

I have ran the results on a Intel Pentium 4 processor with 2 gb of RAM. The same benchmark will be done an a Intel Quad Core processor. The table below explains the results in great detail for each test:

CODE:
					brower execution time (ms)
				IE7	FF 3	Opera	Safari	Chrome
========================================================================
total	all			42596.4	4336.2	6410	6083.2	2337.2
-----------------------------------------------------------------------
3d	total			1953	581.2	634.2	709.4	153
	cube			531.2	218.4	196.8	228	39.8
	morph			562.6	170.2	228	209.4	59.8
	raytrace		859.2	192.6	209.4	272	53.4
-----------------------------------------------------------------------
access	total			2690.2	697.6	890.4	962.6	114.2
	binary-trees		731.4	65.8	56	112.2	7.2
	fannkuch		990.4	352	406.4	472	35.8
	nbody			493.4	178.2	300	265.6	44.6
	nsieve			475	101.6	128	112.8	26.6
-----------------------------------------------------------------------
bitops	total			2322.2	451	665.6	584	90.6
	3bit-bits-in-byte	650.2	99.8	90.8	103	5.6
	bits-in-byte		547	114.8	134.4	121.8	13.4
	bitwise-and		609.4	86.2	287.2	187.4	23.8
	nsieve-bits		515.6	150.2	153.2	171.8	47.8
-----------------------------------------------------------------------
controlflow	total		762.4	53.6	81	150.2	3.6
	recursive		762.4	53.6	81	150.2	3.6
-----------------------------------------------------------------------
crypto	total			1506	291.4	325.2	440	84.6
	aes			528.2	105.6	150	137.2	31.8
	md5			478	95	90.8	121.8	29.4
	sha1			499.8	90.8	84.4	181	23.4
-----------------------------------------------------------------------
date	total			1477.8	424.8	1088	703	513.4
	format-tofte		637.4	251.8	337.6	284.6	313
	format-xparb		840.4	173	750.4	418.4	200.4
-----------------------------------------------------------------------
math	total			1778	529.8	565.4	815.8	168.6
	cordic			706.2	226.4	253	322	92
	partial-sums		393.6	180.4	187.4	340.6	57
	spectral-norm		678.2	123	125	153.2	19.6
-----------------------------------------------------------------------
regexp	total			362.4	251.4	553.4	328	450.6
	dna			362.4	251.4	553.4	328	450.6
-----------------------------------------------------------------------
string	total			29744.4	1055.4	1606.8	1390.2	758.6
	base64			13384.6	117.8	156.4	196.6	105.8
	fasta			890.8	225.6	306.4	353	68.6
	tagcloud		4140.6	202.4	303.2	218.8	198.4
	unpack-code		1019	370.6	681.2	259.4	262
	validate-input		10309.4	139	159.6	362.4	123.8
========================================================================

As seen above, the test is running 5 times to get the average. I have created some bar graphs to demonstrate how fast chrome really is with respect to JavaScript.

all major browsers

As shown above, Internet Explorer 7 is running these tests really slow. I ran the tests 3 times and still the same result. Takes 42 seconds to run all the trials, while Google Chrome took 2.3 seconds. I was really surprised the result was about 20x faster. Lets compare the other browsers which have similar results.

all major browsers

Opera and Safari have similar execution times, if you take a look at the table above, you will see how they differ. Firefox cuts the js execution time by 33% than Opera and Safari, where Chrome cuts the execution time by 50% than Firefox.

This is pretty cool, if you look closely ... Look how fast Chrome does its recursion :x That is pretty insane! I am so going to keep my eye out on this release. When browsing websites that have extensive AJAX usage, I am feeling a more realistic response than other browsers. I just wonder, why didn't they include this with Firefox since they help develop some features as well.

Make sure to test run this amazing future browser: http://www.google.com/chrome

About this Article:

Comments (0) - Add yours, or View the replies

Categoy (Software)

Views (6855)

Digg it: Digg this article