<!doctype html public "-//W3C//DTD W3 HTML//EN">
<html><head><style type="text/css"><!--
blockquote, dl, ul, ol, li { padding-top: 0 ; padding-bottom: 0 }
 --></style><title>Re: [lively-kernel] Nitro?</title></head><body>
<div>Hi Alan -</div>
<div><br></div>
<div>When I compare JS in Safari and Squeak native on my Mac (an
old-ish 2.4 GHz core duo) I get:</div>
<div><br></div>
<div>Squeak native: 542M bytecodes/sec; 12.5M sends/sec</div>
<div>Cog native: 531M bytecodes/sec; 41M sends/sec</div>
<div>JS in Safari: 1000M ops/sec; 33M sends/sec</div>
<div>JS in Chrome: 4260M ops/sec; 49M sends/sec</div>
<div><br></div>
<div>My Safari is 5.0.4, from around January.&nbsp; I believe it has
the Nitro VM, but I'm not positive.</div>
<div>The Chrome is version 10.0.648.133</div>
<div><br></div>
<div>I designed the JS benchmark to compare JS and browser speeds, not
to compare against Squeak.&nbsp; We'd have to take some care with
exactly how I did this before attributing a lot of significance.&nbsp;
I believe the sends are exactly comparable, but the 'ops' vs
'bytecodes' I'm not sure about.</div>
<div><br></div>
<div>It would appear that JS in the browsers is roughly the same speed
as native Squeak at this point.</div>
<div><br></div>
<div><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </x-tab>-
Dan</div>
<div>----------------------------------------------</div>
<blockquote type="cite" cite>Hi Dan<br>
<br>
Did you try the differential test that you did before? Or did Bert do
it?<br>
<br>
i.e.<br>
<br>
Squeak vs JS-in-browser on a Mac<br>
<br>
vs<br>
<br>
the same on the iPad<br>
<br>
I seem to recall that the differential was a factor of 12 slower on
the iPad.<br>
<br>
I visited Apple after this and complained to Bud Tribble.<br>
<br>
Should I guess that the differential is now &quot;only&quot; a factor
of 4?<br>
<br>
Cheers,<br>
<br>
Alan<br>
</blockquote>
<blockquote type="cite" cite><br></blockquote>
<blockquote type="cite" cite>
<hr size="1"></blockquote>
<blockquote type="cite" cite><font face="Tahoma"
size="-1"><b>From:</b> Dan Ingalls &lt;danhhingalls@gmail.com&gt;<br>
<b>To:</b> lively-kernel@hpi.uni-potsdam.de<br>
<b>Sent:</b> Fri, March 11, 2011 3:45:14 PM<br>
<b>Subject:</b> Re: [lively-kernel] Nitro?<br>
</font><br>
It's really true.<br>
<br>
I ran my tiny benchmarks (<a
href="http://weather-dimensions.com/Dan/JavaScriptBenchmark.html"
>http://weather-dimensions.com/Dan/JavaScriptBenchmark.html</a>)
before and after upgrading my iPad's OS.&nbsp; The results...<br>
<br>
Before:&nbsp;&nbsp;&nbsp; 30M ops/sec&nbsp;&nbsp;&nbsp; 1M
sends/sec<br>
After:&nbsp;&nbsp;&nbsp; 150M ops/sec&nbsp;&nbsp;&nbsp; 4M
sends/sec<br>
<br>
I found some erratic behavior running normal Lively pages -- we'll be
tracking that down in the next couple of weeks.<br>
<br>
I haven't had a chance to try a new iPad, but the extra processor
should make a difference as well.<br>
<br>
Think Live Web<br>
<br>
&nbsp;&nbsp;&nbsp; - Dan<br>
<br>
&gt;On Mar 3, 2011, at 3:00 PM, Casey Ransberger wrote:<br>
&gt;<br>
&gt;&gt; It would seem Safari is getting a new JS engine. Apple is
touting &quot;up to twice&quot; the performance in Safari; that's
almost certainly not coming out of a macro benchmark, though, so I
strongly doubt that anyone with an app will see that much of a
boost.<br>
&gt;&gt;<br>
&gt;&gt; All the same, faster JS might be good for Lively on iOS,
where perf is currently more pain than I can tolerate for more than a
few minutes at a time.<br>
&gt;&gt;<br>
&gt;&gt; This is supposed to be coming with iOS 4.3.<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; lively-kernel mailing list<br>
&gt;&gt; <a
href="mailto:lively-kernel@hpi.uni-potsdam.de"
>lively-kernel@hpi.uni-potsdam.de</a><br>
&gt;&gt; <a
href="http://lists.hpi.uni-potsdam.de/listinfo/lively-kernel"
>http://lists.hpi.uni-potsdam.de/listinfo/lively-kernel</a><br>
&gt;<br>
&gt;_______________________________________________<br>
&gt;lively-kernel mailing list<br>
&gt;<a
href="mailto:lively-kernel@hpi.uni-potsdam.de"
>lively-kernel@hpi.uni-potsdam.de</a><br>
&gt;<a
href="http://lists.hpi.uni-potsdam.de/listinfo/lively-kernel"
>http://lists.hpi.uni-potsdam.de/listinfo/lively-kernel</a><br>
<br>
_______________________________________________<br>
lively-kernel mailing list<br>
<a
href="mailto:lively-kernel@hpi.uni-potsdam.de"
>lively-kernel@hpi.uni-potsdam.de</a><br>
<a
href="http://lists.hpi.uni-potsdam.de/listinfo/lively-kernel"
>http://lists.hpi.uni-potsdam.de/listinfo/lively-kernel</a></blockquote
>
<div><br></div>
</body>
</html>