<?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: iPhone Javascript and spec benchmark</title>
	<atom:link href="http://ajaxian.com/archives/iphone-javascript-and-spec-benchmark/feed" rel="self" type="application/rss+xml" />
	<link>http://ajaxian.com/archives/iphone-javascript-and-spec-benchmark</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: Denis Perevalov</title>
		<link>http://ajaxian.com/archives/iphone-javascript-and-spec-benchmark/comment-page-1#comment-254503</link>
		<dc:creator>Denis Perevalov</dc:creator>
		<pubDate>Mon, 27 Aug 2007 07:58:43 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=2537#comment-254503</guid>
		<description>Chris, it seems that your browser doesn&#039;t support canvas tag.</description>
		<content:encoded><![CDATA[<p>Chris, it seems that your browser doesn&#8217;t support canvas tag.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Phillips</title>
		<link>http://ajaxian.com/archives/iphone-javascript-and-spec-benchmark/comment-page-1#comment-253484</link>
		<dc:creator>Chris Phillips</dc:creator>
		<pubDate>Thu, 02 Aug 2007 18:01:31 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=2537#comment-253484</guid>
		<description>John, I just did your test page with a Treo650 &amp; Blaze browser 3 and it said 0 milliseconds for everything.</description>
		<content:encoded><![CDATA[<p>John, I just did your test page with a Treo650 &amp; Blaze browser 3 and it said 0 milliseconds for everything.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Casey</title>
		<link>http://ajaxian.com/archives/iphone-javascript-and-spec-benchmark/comment-page-1#comment-252271</link>
		<dc:creator>Casey</dc:creator>
		<pubDate>Tue, 03 Jul 2007 17:11:34 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=2537#comment-252271</guid>
		<description>A friend and I did our own testing and found something very interesting.  

A call to a no-op function is taking an abnormally large amount of time.  Something like 75ms for 1000 of them where in a desktop browser it&#039;s taking around 1ms.  We had a bunch of other tests centered around mootools and the canvas tag that all came out fairly equally slow and the guess is that there is just some global overhead to function calls that&#039;s accounting for the general slowness rather than problems with particular API&#039;s (whose core functionality seems quite fast for a small device when you subtract out the appropriate function overhead).

You can run the tests here: http://lowtidegames.com/test/shapesonly.html (note: it does send the results to our server for easily getting the results off the iPhone).

A sample iPhone run:

no-op took 0 milliseconds.
get context took 1 milliseconds.
canvas bunch took 11 milliseconds.
100 times empty loop took 2 milliseconds.
&lt;em&gt;1000 times empty loop with nothing() took 74 milliseconds.&lt;/em&gt;
set fillStyle 100 times took 88 milliseconds.
set strokeStyle 100 times took 93 milliseconds.
100 strokes of 20px took 63 milliseconds.
100 10x10 fillRects took 38 milliseconds.
100 25 radius triangles stroked took 179 milliseconds.
100 25 radius triangles filled took 180 milliseconds.
100 25 radius triangles stroked with style each time took 277 milliseconds.
100 25 radius triangles filled with style each time took 271 milliseconds.
100 strokes of 10px with style each time took 78 milliseconds.
100 5x5 fillRects with style each time took 124 milliseconds.
line math 10000 times took 1456 milliseconds.</description>
		<content:encoded><![CDATA[<p>A friend and I did our own testing and found something very interesting.  </p>
<p>A call to a no-op function is taking an abnormally large amount of time.  Something like 75ms for 1000 of them where in a desktop browser it&#8217;s taking around 1ms.  We had a bunch of other tests centered around mootools and the canvas tag that all came out fairly equally slow and the guess is that there is just some global overhead to function calls that&#8217;s accounting for the general slowness rather than problems with particular API&#8217;s (whose core functionality seems quite fast for a small device when you subtract out the appropriate function overhead).</p>
<p>You can run the tests here: <a href="http://lowtidegames.com/test/shapesonly.html" rel="nofollow">http://lowtidegames.com/test/shapesonly.html</a> (note: it does send the results to our server for easily getting the results off the iPhone).</p>
<p>A sample iPhone run:</p>
<p>no-op took 0 milliseconds.<br />
get context took 1 milliseconds.<br />
canvas bunch took 11 milliseconds.<br />
100 times empty loop took 2 milliseconds.<br />
<em>1000 times empty loop with nothing() took 74 milliseconds.</em><br />
set fillStyle 100 times took 88 milliseconds.<br />
set strokeStyle 100 times took 93 milliseconds.<br />
100 strokes of 20px took 63 milliseconds.<br />
100 10&#215;10 fillRects took 38 milliseconds.<br />
100 25 radius triangles stroked took 179 milliseconds.<br />
100 25 radius triangles filled took 180 milliseconds.<br />
100 25 radius triangles stroked with style each time took 277 milliseconds.<br />
100 25 radius triangles filled with style each time took 271 milliseconds.<br />
100 strokes of 10px with style each time took 78 milliseconds.<br />
100 5&#215;5 fillRects with style each time took 124 milliseconds.<br />
line math 10000 times took 1456 milliseconds.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://ajaxian.com/archives/iphone-javascript-and-spec-benchmark/comment-page-1#comment-252259</link>
		<dc:creator>John</dc:creator>
		<pubDate>Tue, 03 Jul 2007 13:49:30 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=2537#comment-252259</guid>
		<description>I did not get a response for the random number generator. I am not sure if it failed or was not able to calculate. Let me know if you DO get it to compute on an iphone.</description>
		<content:encoded><![CDATA[<p>I did not get a response for the random number generator. I am not sure if it failed or was not able to calculate. Let me know if you DO get it to compute on an iphone.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: William Luu</title>
		<link>http://ajaxian.com/archives/iphone-javascript-and-spec-benchmark/comment-page-1#comment-252246</link>
		<dc:creator>William Luu</dc:creator>
		<pubDate>Tue, 03 Jul 2007 06:28:08 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=2537#comment-252246</guid>
		<description>On an i-mate SP5, running Opera Mini produced the following:

Try/Catch with errors 12
Layer movement 79
Random number engine 128
Math engine 174
DOM speed 45
Array functions 483
String functions 48
Ajax declaration NOT RUN
Total Duration 569 ms

So I&#039;d say Opera Mini (v 3.1) doesn&#039;t do too badly either. Well, except it didn&#039;t run the Ajax declration.

Opera Mini 4 (beta) gave the following results:
Try/Catch with errors 0
Layer movement 0
Random number engine 155
Math engine 74
DOM speed 37
Array functions 120
String functions 12
Ajax declaration 68
Total Duration 466 ms

Interestingly though, Microsoft&#039;s Pocket IE running on my SP5 will only give results for the first test (Try/Catch with errors) giving that test a result of 2000!

But also note that these results were obtained with the phone connected via USB to a PC with internet.</description>
		<content:encoded><![CDATA[<p>On an i-mate SP5, running Opera Mini produced the following:</p>
<p>Try/Catch with errors 12<br />
Layer movement 79<br />
Random number engine 128<br />
Math engine 174<br />
DOM speed 45<br />
Array functions 483<br />
String functions 48<br />
Ajax declaration NOT RUN<br />
Total Duration 569 ms</p>
<p>So I&#8217;d say Opera Mini (v 3.1) doesn&#8217;t do too badly either. Well, except it didn&#8217;t run the Ajax declration.</p>
<p>Opera Mini 4 (beta) gave the following results:<br />
Try/Catch with errors 0<br />
Layer movement 0<br />
Random number engine 155<br />
Math engine 74<br />
DOM speed 37<br />
Array functions 120<br />
String functions 12<br />
Ajax declaration 68<br />
Total Duration 466 ms</p>
<p>Interestingly though, Microsoft&#8217;s Pocket IE running on my SP5 will only give results for the first test (Try/Catch with errors) giving that test a result of 2000!</p>
<p>But also note that these results were obtained with the phone connected via USB to a PC with internet.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pong</title>
		<link>http://ajaxian.com/archives/iphone-javascript-and-spec-benchmark/comment-page-1#comment-252238</link>
		<dc:creator>pong</dc:creator>
		<pubDate>Mon, 02 Jul 2007 18:53:16 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=2537#comment-252238</guid>
		<description>&quot;Random number engine (Did not compute)&quot;.

What does that mean? Does iPhone has a Random number engine</description>
		<content:encoded><![CDATA[<p>&#8220;Random number engine (Did not compute)&#8221;.</p>
<p>What does that mean? Does iPhone has a Random number engine</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: G</title>
		<link>http://ajaxian.com/archives/iphone-javascript-and-spec-benchmark/comment-page-1#comment-252227</link>
		<dc:creator>G</dc:creator>
		<pubDate>Mon, 02 Jul 2007 14:47:59 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=2537#comment-252227</guid>
		<description>I hope the iPhone-specific API is coming soon. I believe developers *can* create really cool apps within the Safari sandbox, but not without some addition to iPhone safari. Some offline support would be nice, and onpinch() etc. as well.

Here&#039;s to Adobe porting Flash (and hopefully AIR) to iPhone soon.</description>
		<content:encoded><![CDATA[<p>I hope the iPhone-specific API is coming soon. I believe developers *can* create really cool apps within the Safari sandbox, but not without some addition to iPhone safari. Some offline support would be nice, and onpinch() etc. as well.</p>
<p>Here&#8217;s to Adobe porting Flash (and hopefully AIR) to iPhone soon.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan Breen</title>
		<link>http://ajaxian.com/archives/iphone-javascript-and-spec-benchmark/comment-page-1#comment-252212</link>
		<dc:creator>Ryan Breen</dc:creator>
		<pubDate>Mon, 02 Jul 2007 11:54:03 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxian.com/?p=2537#comment-252212</guid>
		<description>Very cool!  Thanks, John.

I&#039;ve definitely noticed the speed difference anecdotally.  I tried to put it through its paces with the Dojo Chart benchmark, but the iPhone is not Safari 3 and therefore doesn&#039;t have SVG support.</description>
		<content:encoded><![CDATA[<p>Very cool!  Thanks, John.</p>
<p>I&#8217;ve definitely noticed the speed difference anecdotally.  I tried to put it through its paces with the Dojo Chart benchmark, but the iPhone is not Safari 3 and therefore doesn&#8217;t have SVG support.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

