<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Wayne Pan &#187; squirrelfish</title>
	<atom:link href="http://waynepan.com/tag/squirrelfish/feed/" rel="self" type="application/rss+xml" />
	<link>http://waynepan.com</link>
	<description>tech &#124; js &#124; ui &#124; ajax &#124; mobile</description>
	<lastBuildDate>Mon, 17 Oct 2011 20:52:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>V8, TraceMonkey, SquirrelFish, IE8 BenchMarks</title>
		<link>http://waynepan.com/2008/09/02/v8-tracemonkey-squirrelfish-ie8-benchmarks/</link>
		<comments>http://waynepan.com/2008/09/02/v8-tracemonkey-squirrelfish-ie8-benchmarks/#comments</comments>
		<pubDate>Wed, 03 Sep 2008 04:09:15 +0000</pubDate>
		<dc:creator>Wayne</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[chrome]]></category>
		<category><![CDATA[dromaeo]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[squirrelfish]]></category>
		<category><![CDATA[tracemonkey]]></category>

		<guid isPermaLink="false">http://waynepan.com/?p=223</guid>
		<description><![CDATA[After reading about the new JavaScript VM in Google Chrome (called V8) I was wondering how it would stack up against the new JS engines from Mozilla (TraceMonkey) and WebKit (SquirrelFish). I ran 3 tests across all the browsers, including &#8230; <a href="http://waynepan.com/2008/09/02/v8-tracemonkey-squirrelfish-ie8-benchmarks/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><img class="aright size-full wp-image-228" title="chrome_logo" src="http://waynepan.com/wp-content/uploads/2008/09/chrome_logo.png" alt="" width="102" height="68" />After reading about the new JavaScript VM in <a href="http://googleblog.blogspot.com/2008/09/fresh-take-on-browser.html">Google Chrome (called V8)</a> I was wondering how it would stack up against the new JS engines from Mozilla (TraceMonkey) and WebKit (SquirrelFish). I ran 3 tests across all the browsers, including IE8, and here are the results.</p>
<p>Setup:</p>
<ul>
<li>Chrome [Build 1583 - 0.2.149.27]</li>
<li>FireFox 3.1 Nightly [1.9.1b1pre/200809020331]<br />
- <em>w/ javascript.options.jit.* set to true except in the SunSpider tests, where jit.content was set to false because it crashes</em>.</li>
<li>WebKit Nightly [r36012]</li>
<li>Internet Explorer 8 [IE8 v8.0.6001.18241]<br />
- <em>I doubt numbers are accurate, asked me once for Chrome tests if I wanted to stop the unresponsive script, about 50x for Dromaeo</em></li>
<li>Windows XP SP3, AMD Athlon 64 X2 3800+, 2GB RAM</li>
<li>Restart each browser after every test</li>
<li><a href="http://webkit.org/perf/sunspider-0.9/sunspider.html">SunSpider</a>, <a href="http://code.google.com/apis/v8/run.html">V8 BenchMark</a>, <a href="http://dromaeo.com/">Dromaeo</a></li>
</ul>
<p><em>Click continue for results and charts&#8230;</em><br />
<span id="more-223"></span><br />
<img class="alignnone size-full wp-image-224" title="dromaeo" src="http://waynepan.com/wp-content/uploads/2008/09/dromaeo.png" alt="" width="471" height="298" /></p>
<ul>
<li>Chrome &#8211; <a href="http://dromaeo.com/?id=25771">610.6ms</a></li>
<li>WebKit &#8211; <a href="http://dromaeo.com/?id=25777">1948.00ms</a></li>
<li>FireFox &#8211; <a href="http://dromaeo.com/?id=25784">1688.20ms</a></li>
<li>IE8 &#8211; 9827.60ms</li>
</ul>
<p><img class="alignnone size-full wp-image-225" title="chrome" src="http://waynepan.com/wp-content/uploads/2008/09/chrome.png" alt="" width="468" height="289" /><br />
<em>Bigger the Better</em></p>
<ul>
<li>Chrome &#8211; 1083</li>
<li>WebKit &#8211; 191</li>
<li>FireFox &#8211; 106</li>
<li>IE8 &#8211; 42</li>
</ul>
<p><img class="alignnone size-full wp-image-226" title="sunspider" src="http://waynepan.com/wp-content/uploads/2008/09/sunspider.png" alt="" width="472" height="306" /></p>
<ul>
<li>Chrome &#8211; <a href="http://www2.webkit.org/perf/sunspider-0.9/sunspider-results.html?{%223d-cube%22:[39,43,50,43,49],%223d-morph%22:[71,74,71,76,81],%223d-raytrace%22:[56,57,57,60,57],%22access-binary-trees%22:[9,8,8,9,9],%22access-fannkuch%22:[48,50,48,49,48],%22access-nbody%22:[45,42,50,42,51],%22access-nsieve%22:[34,33,33,32,34],%22bitops-3bit-bits-in-byte%22:[7,6,6,6,6],%22bitops-bits-in-byte%22:[13,13,14,13,12],%22bitops-bitwise-and%22:[37,34,34,38,36],%22bitops-nsieve-bits%22:[45,41,50,43,50],%22controlflow-recursive%22:[4,4,4,5,5],%22crypto-aes%22:[36,34,32,34,32],%22crypto-md5%22:[28,25,26,25,27],%22crypto-sha1%22:[23,23,24,23,24],%22date-format-tofte%22:[350,355,353,361,351],%22date-format-xparb%22:[445,443,451,444,447],%22math-cordic%22:[85,95,101,90,93],%22math-partial-sums%22:[60,51,52,55,52],%22math-spectral-norm%22:[20,22,20,24,23],%22regexp-dna%22:[604,614,609,610,607],%22string-base64%22:[86,101,81,97,84],%22string-fasta%22:[88,84,84,85,86],%22string-tagcloud%22:[219,225,219,224,216],%22string-unpack-code%22:[287,294,296,295,294],%22string-validate-input%22:[109,109,108,110,108]}">2846.8ms</a></li>
<li>WebKit &#8211; <a href="http://www2.webkit.org/perf/sunspider-0.9/sunspider-results.html?%7B%223d-cube%22:%5B39,43,49,42,49%5D,%223d-morph%22:%5B68,74,67,75,84%5D,%223d-raytrace%22:%5B56,56,55,57,55%5D,%22access-binary-trees%22:%5B9,7,10,8,10%5D,%22access-fannkuch%22:%5B48,50,47,48,49%5D,%22access-nbody%22:%5B45,41,50,41,50%5D,%22access-nsieve%22:%5B34,33,33,33,33%5D,%22bitops-3bit-bits-in-byte%22:%5B7,6,7,6,7%5D,%22bitops-bits-in-byte%22:%5B13,12,12,13,12%5D,%22bitops-bitwise-and%22:%5B36,35,34,37,36%5D,%22bitops-nsieve-bits%22:%5B45,42,49,42,49%5D,%22controlflow-recursive%22:%5B4,4,4,4,4%5D,%22crypto-aes%22:%5B36,34,31,34,32%5D,%22crypto-md5%22:%5B27,26,25,25,26%5D,%22crypto-sha1%22:%5B23,23,23,23,24%5D,%22date-format-tofte%22:%5B350,352,342,354,345%5D,%22date-format-xparb%22:%5B447,455,441,440,445%5D,%22math-cordic%22:%5B84,95,93,86,98%5D,%22math-partial-sums%22:%5B60,52,54,52,52%5D,%22math-spectral-norm%22:%5B23,21,21,20,22%5D,%22regexp-dna%22:%5B604,602,601,603,601%5D,%22string-base64%22:%5B91,91,80,93,83%5D,%22string-fasta%22:%5B85,83,83,83,85%5D,%22string-tagcloud%22:%5B222,223,220,218,216%5D,%22string-unpack-code%22:%5B283,289,288,286,291%5D,%22string-validate-input%22:%5B110,109,109,109,109%5D%7D">4105.0ms</a></li>
<li>FireFox &#8211; <a href="http://www2.webkit.org/perf/sunspider-0.9/sunspider-results.html?%7B%223d-cube%22:%5B453,453,453,453,469%5D,%223d-morph%22:%5B375,375,391,375,390%5D,%223d-raytrace%22:%5B422,422,422,422,421%5D,%22access-binary-trees%22:%5B297,297,296,312,312%5D,%22access-fannkuch%22:%5B890,907,906,890,906%5D,%22access-nbody%22:%5B469,453,453,453,453%5D,%22access-nsieve%22:%5B344,343,344,328,328%5D,%22bitops-3bit-bits-in-byte%22:%5B250,235,250,250,234%5D,%22bitops-bits-in-byte%22:%5B422,422,422,422,406%5D,%22bitops-bitwise-and%22:%5B531,531,531,516,531%5D,%22bitops-nsieve-bits%22:%5B468,469,468,453,453%5D,%22controlflow-recursive%22:%5B234,218,219,219,234%5D,%22crypto-aes%22:%5B344,359,344,344,360%5D,%22crypto-md5%22:%5B188,187,187,172,172%5D,%22crypto-sha1%22:%5B187,188,187,188,187%5D,%22date-format-tofte%22:%5B437,438,422,422,422%5D,%22date-format-xparb%22:%5B344,344,344,344,344%5D,%22math-cordic%22:%5B485,484,500,484,485%5D,%22math-partial-sums%22:%5B297,281,297,297,281%5D,%22math-spectral-norm%22:%5B297,282,297,281,297%5D,%22regexp-dna%22:%5B594,578,578,594,594%5D,%22string-base64%22:%5B1625,1641,1640,1640,1625%5D,%22string-fasta%22:%5B453,454,453,453,438%5D,%22string-tagcloud%22:%5B375,375,375,375,375%5D,%22string-unpack-code%22:%5B328,328,328,328,328%5D,%22string-validate-input%22:%5B359,360,359,359,359%5D%7D">11427.2ms</a></li>
<li>IE8 &#8211; <a href="http://www2.webkit.org/perf/sunspider-0.9/sunspider-results.html?%7B%223d-cube%22:%5B453,453,453,453,469%5D,%223d-morph%22:%5B375,375,391,375,390%5D,%223d-raytrace%22:%5B422,422,422,422,421%5D,%22access-binary-trees%22:%5B297,297,296,312,312%5D,%22access-fannkuch%22:%5B890,907,906,890,906%5D,%22access-nbody%22:%5B469,453,453,453,453%5D,%22access-nsieve%22:%5B344,343,344,328,328%5D,%22bitops-3bit-bits-in-byte%22:%5B250,235,250,250,234%5D,%22bitops-bits-in-byte%22:%5B422,422,422,422,406%5D,%22bitops-bitwise-and%22:%5B531,531,531,516,531%5D,%22bitops-nsieve-bits%22:%5B468,469,468,453,453%5D,%22controlflow-recursive%22:%5B234,218,219,219,234%5D,%22crypto-aes%22:%5B344,359,344,344,360%5D,%22crypto-md5%22:%5B188,187,187,172,172%5D,%22crypto-sha1%22:%5B187,188,187,188,187%5D,%22date-format-tofte%22:%5B437,438,422,422,422%5D,%22date-format-xparb%22:%5B344,344,344,344,344%5D,%22math-cordic%22:%5B485,484,500,484,485%5D,%22math-partial-sums%22:%5B297,281,297,297,281%5D,%22math-spectral-norm%22:%5B297,282,297,281,297%5D,%22regexp-dna%22:%5B594,578,578,594,594%5D,%22string-base64%22:%5B1625,1641,1640,1640,1625%5D,%22string-fasta%22:%5B453,454,453,453,438%5D,%22string-tagcloud%22:%5B375,375,375,375,375%5D,%22string-unpack-code%22:%5B328,328,328,328,328%5D,%22string-validate-input%22:%5B359,360,359,359,359%5D%7D">11427.2ms</a></li>
</ul>
<p>Needless to say, Chrome&#8217;s V8 blows away all the current builds of the next-generation of JavaScript VMs. Just to be clear, WebKit and FireFox engines haven&#8217;t even hit beta, but it looks like the performance bar has just been set to an astronomical height by the V8 Team.</p>
<p><b>Update:</b> Brendan has <a href="http://weblogs.mozillazine.org/roadmap/archives/2008/09/tracemonkey_update.html">has posted new TraceMonkey favorable benchmarks</a> with the latest TraceMonkey build vs V8. A little friendly competition is awesome but since all these projects are open source the community is the real winner here. </p>
<p>Also I downloaded the latest trunk build of FireFox [1.9.1b1pre/20080903034741] and re-ran the tests:</p>
<ul>
<li>SunSpider &#8211; <a href="http://www2.webkit.org/perf/sunspider-0.9/sunspider-results.html?%7B%223d-cube%22:%5B73,72,63,60,71%5D,%223d-morph%22:%5B45,46,40,46,34%5D,%223d-raytrace%22:%5B110,104,102,99,102%5D,%22access-binary-trees%22:%5B75,74,74,94,75%5D,%22access-fannkuch%22:%5B198,206,201,208,204%5D,%22access-nbody%22:%5B67,56,46,57,52%5D,%22access-nsieve%22:%5B19,21,30,35,18%5D,%22bitops-3bit-bits-in-byte%22:%5B1,2,2,2,2%5D,%22bitops-bits-in-byte%22:%5B11,19,16,12,20%5D,%22bitops-bitwise-and%22:%5B15,26,15,26,15%5D,%22bitops-nsieve-bits%22:%5B38,24,37,38,38%5D,%22controlflow-recursive%22:%5B76,75,65,65,76%5D,%22crypto-aes%22:%5B60,50,49,50,49%5D,%22crypto-md5%22:%5B51,39,49,37,50%5D,%22crypto-sha1%22:%5B17,16,17,18,18%5D,%22date-format-tofte%22:%5B151,139,135,144,150%5D,%22date-format-xparb%22:%5B116,116,118,127,115%5D,%22math-cordic%22:%5B63,42,53,52,56%5D,%22math-partial-sums%22:%5B25,25,25,25,25%5D,%22math-spectral-norm%22:%5B11,11,11,11,11%5D,%22regexp-dna%22:%5B294,283,295,314,306%5D,%22string-base64%22:%5B24,24,24,23,13%5D,%22string-fasta%22:%5B109,115,129,119,115%5D,%22string-tagcloud%22:%5B124,141,151,145,139%5D,%22string-unpack-code%22:%5B277,280,298,266,317%5D,%22string-validate-input%22:%5B77,81,68,70,80%5D%7D">2124.2ms</a></li>
<li>Dromaeo &#8211; <a href="http://dromaeo.com/?id=32031">1736.6ms</a></li>
<li>Chrome Tests &#8211; 113</li>
</ul>
<p>The latest build is definitely optimized for the SunSpider test, even beating V8. However, it still lags behind in Dromaeo and the Chrome Tests. (The V8 team optimized the engine specifically for the Chrome Test so it&#8217;s very biased.)</p>
<p><b>Update 2:</b> Apparently Resig has been working on a <a href="http://v2.dromaeo.com">v2 of Dromaeo</a> that includes a lot more DOM manipulation tests.<br />
<img src="http://waynepan.com/wp-content/uploads/2008/09/dromaeov2.png" alt="" title="dromaeov2" width="479" height="259" class="alignnone size-full wp-image-245" /></p>
<ul>
<li>Chrome &#8211; <a href="http://dromaeo.com/?id=32437">10800.8ms</a></li>
<li>WebKit &#8211; <a href="http://dromaeo.com/?id=32097">6456.6ms</a></li>
<li>FireFox &#8211; <a href="http://dromaeo.com/?id=32078">10119.8ms</a></li>
<li>IE8 &#8211; DNF (Too many &#8220;slow script&#8221; interruptions)</li>
</ul>
<p>Chrome and FireFox are evenly matched here. WebKit comes out on top&#8230;</p>
<p>Also, being the JavaScript ninja that he is, <a href="http://ejohn.org/blog/javascript-performance-rundown/">John Resig has a much better write up on the topic than I</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://waynepan.com/2008/09/02/v8-tracemonkey-squirrelfish-ie8-benchmarks/feed/</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
	</channel>
</rss>

