<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18904">
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2 face=Arial>Hi Eliot,</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV>
<DIV><FONT size=2 face=Arial>You are right, the benchmark is&nbsp;too simple to 
be significant, and a</FONT><FONT size=2 face=Arial>s you suggested I increased 
the value of n and got more stable results between runs and&nbsp;less 
&nbsp;impact of the Squeak process priority.</FONT></DIV></DIV><FONT size=2 
face=Arial>
<DIV>&nbsp;</DIV>
<DIV>Just to mention it, the ratio of 98% I'm talking about is&nbsp;a cache hit 
ratio (#cache hits / #total finds) in Interpreter that </FONT></DIV>
<DIV><FONT size=2 face=Arial>I&nbsp;count in internalFindNewMethod, resetting 
</FONT><FONT size=2 face=Arial>counters after getting them&nbsp;in 
vmParameterAt:.</FONT></DIV>
<DIV><FONT size=2 face=Arial>It keeps the same values whatever the result of the 
test is (good or bad) which is a good point,</FONT></DIV>
<DIV><FONT size=2 face=Arial>and it gets better values with n greater&nbsp; 
(99.8 % with 32 benchFib).</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial>Thanks Eliot, I'll keep&nbsp;that &nbsp;in mind for 
next benchmark trials :-)</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial>regards, </FONT></DIV>
<DIV><FONT size=2 face=Arial>Alain</DIV></FONT>
<BLOCKQUOTE 
style="BORDER-LEFT: #000000 2px solid; PADDING-LEFT: 5px; PADDING-RIGHT: 0px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px">
  <DIV>"Eliot Miranda" &lt;<A 
  href="mailto:eliot.miranda@gmail.com">eliot.miranda@gmail.com</A>&gt; a écrit 
  dans le message de news: <A 
  href="mailto:AANLkTikQXaGTUdBdau0Ua36p7Mo3gXMVFvV-aUA58-rp@mail.gmail.com">AANLkTikQXaGTUdBdau0Ua36p7Mo3gXMVFvV-aUA58-rp@mail.gmail.com</A>...</DIV>Hi 
  Alain,
  <DIV><FONT size=2 face=Arial></FONT><FONT size=2 face=Arial></FONT><FONT 
  size=2 face=Arial></FONT><FONT size=2 face=Arial></FONT><FONT size=2 
  face=Arial></FONT><FONT size=2 face=Arial></FONT><FONT size=2 
  face=Arial></FONT><FONT size=2 face=Arial></FONT><FONT size=2 
  face=Arial></FONT><FONT size=2 face=Arial></FONT><FONT size=2 
  face=Arial></FONT><FONT size=2 face=Arial></FONT><FONT size=2 
  face=Arial></FONT><FONT size=2 face=Arial></FONT><FONT size=2 
  face=Arial></FONT><FONT size=2 face=Arial></FONT><FONT size=2 
  face=Arial></FONT><FONT size=2 face=Arial></FONT><FONT size=2 
  face=Arial></FONT><FONT size=2 face=Arial></FONT><FONT size=2 
  face=Arial></FONT><FONT size=2 face=Arial></FONT><FONT size=2 
  face=Arial></FONT><FONT size=2 face=Arial></FONT><FONT size=2 
  face=Arial></FONT><FONT size=2 face=Arial></FONT><FONT size=2 
  face=Arial></FONT><BR></DIV>
  <DIV>&nbsp;&nbsp; &nbsp;I think what you're seeing here is clock resolution. 
  &nbsp;I think you're running too simple a benchmark to get reliable results. 
  &nbsp;When I run on Cog (2.66GHz Intel Core i7) I get most results 
  around&nbsp;65,000,000, the occasional one around 50,000,000 and rarely one 
  around 98,000,000. &nbsp;But when I try evaluating 30 benchFib instead of 26 
  benchFib things settle down. &nbsp;When I use 32 benchFib (which takes around 
  125 ms) I see very small variance, every result being between 55,000,000 and 
  58,000,000. &nbsp;SI experiment with different values and see if your times 
  settle down as you increase N also.<BR><BR>
  <DIV class=gmail_quote>On Fri, May 21, 2010 at 2:37 PM, Alain_Rastoul <SPAN 
  dir=ltr>&lt;<A href="mailto:alr.dev@free.fr">alr.dev@free.fr</A>&gt;</SPAN> 
  wrote:<BR>
  <BLOCKQUOTE 
  style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" 
  class=gmail_quote>Right, it has nothing to do with commonSend and 
    cache.<BR>Being stubborn I added cache hit / misses counters to the vm but 
    it showed<BR>nothing significant except a very good ratio : 95 to 98% 
    &nbsp;:)<BR><BR>In addition, putting the squeak process to a lowest priority 
    (even "idle")<BR>seems to make it run much faster (!!!).<BR>Strange 
    Windows.<BR><BR>Regards<BR><BR>Alain<BR><BR>"Levente Uzonyi" &lt;<A 
    href="mailto:leves@elte.hu">leves@elte.hu</A>&gt; a écrit dans le message de 
    news:<BR>Pine.LNX.4.64.1005211945090.15643@login01.caesar.elte.hu...<BR>
    <DIV>
    <DIV></DIV>
    <DIV class=h5>&gt; On Fri, 21 May 2010, Alain_Rastoul 
    wrote:<BR>&gt;<BR>&gt;&gt; Hello,<BR>&gt;&gt;<BR>&gt;&gt; I recently tryed 
    then 4.1 and discovered a strange behavior that<BR>&gt;&gt; 
    appearead<BR>&gt;&gt; to be true with the 3.10 also.<BR>&gt;&gt; The test is 
    simply running benchFib in series of runs.<BR>&gt;&gt; If I run the test 10 
    times, on of the run is about 2-3 times faster than<BR>&gt;&gt; 
    the<BR>&gt;&gt; others, and I can't explain that.<BR>&gt;&gt;<BR>&gt;&gt; 10 
    timesRepeat: [<BR>&gt;&gt; | r t |<BR>&gt;&gt; &nbsp; t := Time 
    millisecondsToRun: [r := 26 benchFib].<BR>&gt;&gt; &nbsp; Transcript show: 
    ((r * 1000) // t) ; cr.<BR>&gt;&gt; ]<BR>&gt;<BR>&gt; I can't reproduce 
    this. I think it's just noise from your OS. But try to<BR>&gt; evaluate 
    this:<BR>&gt;<BR>&gt; [<BR>&gt; &nbsp;((1 to: 100)<BR>&gt; &nbsp;collect: [ 
    :run |<BR>&gt; &nbsp;(Integer &gt;&gt; #benchFib) flushCache.<BR>&gt; 
    &nbsp;[ 26 benchFib ] timeToRunWithoutGC ]) sort ] valueAt: 
    80.<BR>&gt;<BR>&gt; If you get the same results, then GC and caching doesn't 
    change the<BR>&gt; behavior, so you can be pretty sure that it's just 
    OS-noise. Try<BR>&gt; increasing the priority of Squeak's process and repeat 
    the tests.<BR>&gt;<BR>&gt;<BR>&gt; Levente<BR>&gt;<BR>&gt;&gt;<BR>&gt;&gt; 
    will give me 10 numbers about 2486297 (one of the runs)<BR>&gt;&gt; but one 
    run will give me 10 numbers about 6773017.<BR>&gt;&gt; I stopped all I could 
    stop on my laptop and nothing else but squeak is<BR>&gt;&gt; 
    running...<BR>&gt;&gt; I made a TimeProfileBrowser and the inner loop of the 
    profile seems to<BR>&gt;&gt; show<BR>&gt;&gt; that primitives are more than 
    2 times faster.<BR>&gt;&gt; (and everything seems 2 times 
    faster)<BR>&gt;&gt; Anybody noticed that (I searched the web but found 
    nothing) ?<BR>&gt;&gt; primitive calls ?<BR>&gt;&gt; 
    methodCache?<BR>&gt;&gt;<BR>&gt;&gt;<BR>&gt;&gt; Best 
    regards,<BR>&gt;&gt;<BR>&gt;&gt; 
    Alain<BR>&gt;&gt;<BR>&gt;&gt;<BR>&gt;&gt;<BR>&gt;&gt;<BR>&gt;&gt;<BR>&gt;<BR>&gt;<BR><BR><BR><BR><BR></DIV></DIV></BLOCKQUOTE></DIV><BR></DIV>
  <P></P><FONT size=2 face=Arial></FONT><FONT size=2 face=Arial></FONT>
  <HR>

  <P></P><FONT size=2 face=Arial></FONT><FONT size=2 
face=Arial></FONT><BR></BLOCKQUOTE></BODY></HTML>