<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">Any chance this will see a squeak port?<DIV><BR><DIV><DIV>On Apr 18, 2006, at 6:33 AM, Stephen Pair wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite">Here at work, we built (mostly David Pennell) a JavaScript system called Smee (an old version of it is available in the Cincom public repository).  It is a faithful implementation of the ECMAscript standard in VisualWorks.  It is compiled to VW bytecode, but message sends don't (yet) leverage VM message lookup.  Looks like it's quite a bit faster in ops/sec than both Firefox and IE (this was running on a Pentium M laptop under WinXP).  Amazingly, even without help from the VM for message lookup, it's still faster in that category than IE (but lags behind Firefox). <BR><BR>- Stephen<BR><BR>Firefox:<BR>n1 = 2; time = 60 milliseconds; 16666667 operations/sec.<BR>n1 = 4; time = 130 milliseconds; 15384615 operations/sec.<BR>n1 = 8; time = 261 milliseconds; 15325670 operations/sec.<BR>n1 = 16; time = 600 milliseconds; 13333333 operations/sec. <BR>n2 = 24; time = 151 milliseconds; 496854 sends/sec.<BR>n2 = 25; time = 200 milliseconds; 606965 sends/sec.<BR>n2 = 26; time = 300 milliseconds; 654727 sends/sec.<BR>n2 = 27; time = 481 milliseconds; 660730 sends/sec.<BR> n2 = 28; time = 791 milliseconds; 650100 sends/sec.<BR><BR>IE:<BR>n1 = 2; time = 230 milliseconds; 4347826 operations/sec.<BR>n1 = 4; time = 161 milliseconds; 12422360 operations/sec.<BR>n1 = 8; time = 230 milliseconds; 17391304 operations/sec. <BR>n1 = 16; time = 471 milliseconds; 16985138 operations/sec.<BR>n2 = 24; time = 481 milliseconds; 155977 sends/sec.<BR>n2 = 25; time = 570 milliseconds; 212970 sends/sec.<BR><BR>Smee:<BR>0:  'n1 = 2; time = 40 milliseconds; 25000000 operations/sec.' <BR>1:  'n1 = 4; time = 88 milliseconds; 22727273 operations/sec.'<BR>2:  'n1 = 8; time = 176 milliseconds; 22727273 operations/sec.'<BR>3:  'n1 = 16; time = 333 milliseconds; 24024024 operations/sec.'<BR>4:  'n1 = 32; time = 694 milliseconds; 23054755 operations/sec.' <BR>5:  'n2 = 24; time = 194 milliseconds; 386727 sends/sec.'<BR>6:  'n2 = 25; time = 319 milliseconds; 380542 sends/sec.'<BR>7:  'n2 = 26; time = 506 milliseconds; 388178 sends/sec.'<BR><BR><DIV><SPAN class="gmail_quote"> On 4/18/06, <B class="gmail_sendername">Bert Freudenberg</B> &lt;<A href="mailto:bert@impara.de">bert@impara.de</A>&gt; wrote:</SPAN><BLOCKQUOTE class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> iMac G5, 1.6 GHz, software as yours. I re-ran it today, looks a bit<BR>better:<BR><BR>Safari:<BR>n1 = 2; time = 418 milliseconds; 2392344 operations/sec.<BR>n1 = 4; time = 558 milliseconds; 3584229 operations/sec.<BR><BR> n2 = 24; time = 1362 milliseconds; 55084 sends/sec.<BR><BR><BR>Firefox:<BR><BR>n1 = 2; time = 102 milliseconds; 9803922 operations/sec.<BR>n1 = 4; time = 207 milliseconds; 9661836 operations/sec.<BR>n1 = 8; time = 413 milliseconds; 9685230 operations/sec. <BR>n1 = 16; time = 892 milliseconds; 8968610 operations/sec.<BR><BR>n2 = 24; time = 137 milliseconds; 547628 sends/sec.<BR>n2 = 25; time = 221 milliseconds; 549290 sends/sec.<BR>n2 = 26; time = 358 milliseconds; 548654 sends/sec. <BR>n2 = 27; time = 600 milliseconds; 529685 sends/sec.<BR><BR>... which is still 10x more sends.<BR><BR>- Bert -<BR><BR>Am 13.04.2006 um 23:04 schrieb <A href="mailto:Dean_Swan@Mitel.COM">Dean_Swan@Mitel.COM</A>:<BR><BR> &gt;<BR>&gt; Hi Bert,<BR>&gt;<BR>&gt; What kind of Mac were you running on?  I get these results:<BR>&gt;<BR>&gt;         iBook G4 1.2 GHz, OS X 10.4.6, Safari 2.0.3 (417.9.2)<BR>&gt;         n1 = 2; time = 259 milliseconds; 3861004 operations/sec. <BR>&gt;         n1 = 4; time = 532 milliseconds; 3759398 operations/sec.<BR>&gt;<BR>&gt;         n2 = 24; time = 731 milliseconds; 102633 sends/sec.<BR>&gt;<BR>&gt;<BR>&gt;         iBook G4 1.2 GHz, OS X 10.4.6, Firefox <A href="http://1.5.0.1">1.5.0.1</A><BR>&gt;         n1 = 2; time = 128 milliseconds; 7812500 operations/sec.<BR>&gt;         n1 = 4; time = 331 milliseconds; 6042296 operations/sec.<BR>&gt;         n1 = 8; time = 506 milliseconds; 7905138 operations/sec. <BR>&gt;<BR>&gt;         n2 = 24; time = 190 milliseconds; 394868 sends/sec.<BR>&gt;         n2 = 25; time = 329 milliseconds; 368976 sends/sec.<BR>&gt;         n2 = 26; time = 508 milliseconds; 386650 sends/sec.<BR>&gt;<BR> &gt; So,I'd say Firefox is about 2x faster for operations and 4x for<BR>&gt; sends, but not 20x.<BR>&gt;<BR>&gt;<BR>&gt; And just for fun:<BR>&gt;<BR>&gt;         Dell PWS370 P4 3.0 GHz, Win XP Sp2, IE<BR>&gt; 6.0.2900.2180.xpsp_sp2_gdr.050301-1519 <BR>&gt;         n1 = 2; time = 62 milliseconds; 16129032 operations/sec.<BR>&gt;        n1 = 4; time = 110 milliseconds; 18181818 operations/sec.<BR>&gt;        n1 = 8; time = 219 milliseconds; 18264840 operations/sec.<BR> &gt;        n1 = 16; time = 453 milliseconds; 17660044 operations/sec.<BR>&gt;        n1 = 32; time = 906 milliseconds; 17660044 operations/sec.<BR>&gt;<BR>&gt;        n2 = 24; time = 437 milliseconds; 171682 sends/sec.<BR> &gt;        n2 = 25; time = 719 milliseconds; 168836 sends/sec.<BR>&gt;<BR>&gt;         Dell PWS370 P4 3.0 GHz, Win XP Sp2, IE<BR>&gt; 6.0.2900.2180.xpsp_sp2_gdr.050301-1519<BR>&gt;         n1 = 2; time = 47 milliseconds; 21276596 operations/sec. <BR>&gt;        n1 = 4; time = 109 milliseconds; 18348624 operations/sec.<BR>&gt;        n1 = 8; time = 203 milliseconds; 19704433 operations/sec.<BR>&gt;        n1 = 16; time = 422 milliseconds; 18957346 operations/sec.<BR> &gt;        n1 = 32; time = 860 milliseconds; 18604651 operations/sec.<BR>&gt;<BR>&gt;        n2 = 24; time = 93 milliseconds; 806720 sends/sec.<BR>&gt;        n2 = 25; time = 157 milliseconds; 773204 sends/sec.<BR>&gt;        n2 = 26; time = 250 milliseconds; 785672 sends/sec. <BR>&gt;        n2 = 27; time = 390 milliseconds; 814900 sends/sec.<BR>&gt;        n2 = 28; time = 656 milliseconds; 783886 sends/sec.<BR>&gt;<BR>&gt; Here, Firefox is about the same for operations and 4x to 5x for sends. <BR>&gt;<BR>&gt;         -Dean<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt; Bert Freudenberg &lt;<A href="mailto:bert@impara.de">bert@impara.de</A>&gt;<BR>&gt; Sent by: <A href="mailto:squeak-dev-bounces@lists.squeakfoundation.org"> squeak-dev-bounces@lists.squeakfoundation.org</A><BR>&gt; 04/13/2006 05:22 AM<BR>&gt; Please respond to The general-purpose Squeak developers list<BR>&gt;<BR>&gt;<BR>&gt;         To:        Dan Ingalls &lt;<A href="mailto:Dan@SqueakLand.org"> Dan@SqueakLand.org</A>&gt;<BR>&gt;         cc:        The general-purpose Squeak developers list<BR>&gt; &lt;<A href="mailto:squeak-dev@lists.squeakfoundation.org">squeak-dev@lists.squeakfoundation.org</A>&gt;<BR>&gt;         Subject:        Re: JavaScript Performance Benchmark <BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt; Am 12.04.2006 um 21:59 schrieb Dan Ingalls:<BR>&gt;<BR>&gt; &gt; I've been having fun with JavaScript, and thought folks would enjoy<BR>&gt; &gt; this little tribute to tinyBenchmarks... <BR>&gt; &gt;<BR>&gt; &gt;                  <A href="http://www.weather-dimensions.com/Dan/">http://www.weather-dimensions.com/Dan/</A><BR>&gt; JavaScriptBenchmark.html<BR>&gt;<BR>&gt; Fun indeed. Anyone else noticed the abysmal send performance in <BR>&gt; Apple's Safari?<BR>&gt;<BR>&gt;                 n1 = 4; time = 646 milliseconds; 3095975 operations/<BR>&gt; sec.<BR>&gt;                 n2 = 24; time = 3443 milliseconds; 21791 sends/sec.<BR>&gt;<BR>&gt; Firefox is 20x faster: <BR>&gt;<BR>&gt;                 n1 = 8; time = 566 milliseconds; 7067138 operations/<BR>&gt; sec.<BR>&gt;                 n2 = 27; time = 743 milliseconds; 427740 sends/sec.<BR>&gt;<BR>&gt; - Bert -<BR>&gt;<BR>&gt;<BR>&gt; <BR>&gt;<BR>&gt;<BR><BR><BR><BR></BLOCKQUOTE></DIV><BR><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV> </BLOCKQUOTE></DIV><BR></DIV></BODY></HTML>