From: Robert Klemme Date: 2012-07-02T15:40:07+09:00 Subject: Re: ruby performance On Sun, Jul 1, 2012 at 1:42 PM, Bartosz DziewoƄski wrote: > 2012/7/1 Andreas S. : >> >> A loop with no payload is a completely useless benchmarking scenario. > > You are wrong. It's the same as benchmarking a loop with a payload, > without benchmarking the payload. You could also consider the payload > to be integer incrementation. I am going to place myself right between your chairs. I think both of you have it wrong. :-)) A loop without payload is not completely useless - but it only tells you about a very artificial test case. If the payload is more expensive than the looping and both languages have less differences there (e.g. because logic is IO bound) then the looping test does not really help much for the real case. Similarly if the real code does not involve looping at all because other algorithms are chosen. :-) Kind regards robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/