Re: Dramatic slowdown -ping Rob
- Posted by CoJaBo <cojabo at suscom.net> Nov 13, 2004
- 553 views
These are my results on an Athlon 64 2.8Ghz with 2GB RAM: Intepreter INNER time exw 2.4 27 0.08 exw 2.4 28 0.08 ex 2.4 27 0.00 ex 2.4 28 9.30 Yeah... I'd call that dramatic... (CRASH!!) I have to go now, one of the cats knocked something over, and it sounded like it broke... Pete Lomax wrote: > > I've narrowed down the unexpected performance hit I mentioned earlier > today (Re: Contest Update (12-Nov-2004)) > > If INNER is 27, this completes in 0.27 seconds. If it is 28, it takes > 3.19 seconds, over tenfold performance drop. Why? > > Does anyone else get these results? You may need to massage the > figures a little to account for memory/cpu differences. > > Rob, if you manage to duplicate this performance hit on 2.4, do you > get the same on 2.5? > > }}} <eucode> > constant START = time() > constant INNER=28 > sequence table > table=repeat(repeat(0,INNER),1024) > integer used > used=1 > > for i=1 to 45000 do > used+=1 > if used>length(table) then table&=repeat(repeat(0,INNER),1024) end > if > table[used][5]=used > end for > > printf(1, "Elapsed time: %f\n", time() - START) > </eucode> {{{ > > Regards, > Pete > PS the performance hit disappears if I initialise the table to 40,000 > entries > >