<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: JSLitmus: Testing JavaScript Performance</title>
	<atom:link href="http://ajaxian.com/archives/jslitmus/feed" rel="self" type="application/rss+xml" />
	<link>http://ajaxian.com/archives/jslitmus</link>
	<description>Cleaning up the web with Ajax</description>
	<lastBuildDate>Thu, 17 May 2012 07:43:39 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: broofa</title>
		<link>http://ajaxian.com/archives/jslitmus/comment-page-1#comment-268881</link>
		<dc:creator>broofa</dc:creator>
		<pubDate>Mon, 10 Nov 2008 14:02:50 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=5012#comment-268881</guid>
		<description>@spyke:  Robert Kieffer here, the JSLitmus developer.  Can you post the same tests, but with the &quot;Normalize results&quot; box unchecked?

The way the scope resolution test works, JSLitmus is getting normalized results by subtracting the time required to do this:

&lt;code&gt;while (count--) {}&lt;/code&gt;

... from the time required to do this:

&lt;code&gt;while (count--) {x++;}&lt;/code&gt;

... to get the time required to do &quot;x++&quot;.  In non-SquirrelFish browsers, resolving &quot;x&quot; takes a lot longer than doing the &quot;++&quot;, so provides meaningful data for how long the resolution process takes.  But in the webkit builds that use SquirrelFish, this code is all compiled down to bytecode, which eliminates the variable resolution overhead, so JSLitmus is just measuring the time needed for a native &quot;++&quot; operation.  That operation is so ridiculously fast, however, that if there&#039;s any additional overhead associated with the JavaScript interpreter, it will affect the test result accuracy.

CloudDream posted a comment on our zenbe.com blog showing that he&#039;s getting &quot;infinity&quot; operations per second for Google Chrome, which I suspect is doing something similar.  The &quot;Infinity&quot; result means that JSLitmus simply isn&#039;t able to detect a significant difference between the calibration loop it uses (the top loop, above) and the loop that runs the test code.</description>
		<content:encoded><![CDATA[<p>@spyke:  Robert Kieffer here, the JSLitmus developer.  Can you post the same tests, but with the &#8220;Normalize results&#8221; box unchecked?</p>
<p>The way the scope resolution test works, JSLitmus is getting normalized results by subtracting the time required to do this:</p>
<p><code>while (count--) {}</code></p>
<p>&#8230; from the time required to do this:</p>
<p><code>while (count--) {x++;}</code></p>
<p>&#8230; to get the time required to do &#8220;x++&#8221;.  In non-SquirrelFish browsers, resolving &#8220;x&#8221; takes a lot longer than doing the &#8220;++&#8221;, so provides meaningful data for how long the resolution process takes.  But in the webkit builds that use SquirrelFish, this code is all compiled down to bytecode, which eliminates the variable resolution overhead, so JSLitmus is just measuring the time needed for a native &#8220;++&#8221; operation.  That operation is so ridiculously fast, however, that if there&#8217;s any additional overhead associated with the JavaScript interpreter, it will affect the test result accuracy.</p>
<p>CloudDream posted a comment on our zenbe.com blog showing that he&#8217;s getting &#8220;infinity&#8221; operations per second for Google Chrome, which I suspect is doing something similar.  The &#8220;Infinity&#8221; result means that JSLitmus simply isn&#8217;t able to detect a significant difference between the calibration loop it uses (the top loop, above) and the loop that runs the test code.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: spyke</title>
		<link>http://ajaxian.com/archives/jslitmus/comment-page-1#comment-268874</link>
		<dc:creator>spyke</dc:creator>
		<pubDate>Mon, 10 Nov 2008 11:39:56 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=5012#comment-268874</guid>
		<description>Shame he didn&#039;t show the graph for WebKit nightly vs. Safari to see how far SquirrelFish has come! (Below graphs generated on a 2.4GHz MBP)

Safari 3.1.2: http://i37.tinypic.com/nyi7u1.png
WebKit nightly: http://i38.tinypic.com/34hbcjn.png

That&#039;s over 10x performance increase!</description>
		<content:encoded><![CDATA[<p>Shame he didn&#8217;t show the graph for WebKit nightly vs. Safari to see how far SquirrelFish has come! (Below graphs generated on a 2.4GHz MBP)</p>
<p>Safari 3.1.2: <a href="http://i37.tinypic.com/nyi7u1.png" rel="nofollow">http://i37.tinypic.com/nyi7u1.png</a><br />
WebKit nightly: <a href="http://i38.tinypic.com/34hbcjn.png" rel="nofollow">http://i38.tinypic.com/34hbcjn.png</a></p>
<p>That&#8217;s over 10x performance increase!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

