On Sun, Jul 1, 2012 at 1:42 PM, Bartosz DziewoĆski <[email protected]> wrote: > 2012/7/1 Andreas S. <[email protected]>: >> >> 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/ -- You received this message because you are subscribed to the Google Groups ruby-talk-google group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at https://groups.google.com/d/forum/ruby-talk-google?hl=en
