[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Newbie question about benchmarking

Stephen E Riley

2/24/2007 1:27:00 AM

Hi,

I'm trying one of Dave Thomas' CodeKanta exercises (binary chop) and
am curious about the benchmarking results, in particular the
rehearsal/final results for chop and chop1. The relationship is
consistent over multiple runs of the benchmark.

I have two questions: 1) why the switch in relative position; and 2)
what might cause the first two 'chops' to show such dramatic drops
between rehearsal/actual runs and the lack of movement for the last
two 'chops'.

Regards,

Steve

Rehearsal ------------------------------------------------------
chop 7.375000 0.016000 7.391000 ( 7.388000)
chop1 12.406000 0.000000 12.406000 ( 12.433000)
chop2 0.844000 0.000000 0.844000 ( 0.844000)
chop3 0.812000 0.000000 0.812000 ( 0.812000)
-------------------------------------------- total: 21.453000sec

user system total real
chop 1.203000 0.000000 1.203000 ( 1.203000)
chop1 0.797000 0.000000 0.797000 ( 0.797000)
chop2 0.844000 0.000000 0.844000 ( 0.843000)
chop3 0.750000 0.000000 0.750000 ( 0.750000)