rubyx/test/bench/ruby/calls.rb
Torsten 6273ab769c redid the old benchmarks
With #26 out of the way, was able to get meaningful rubyx benchmarks. Meaning loops large enough for the exec time to go significantly over the noop.
Did mruby too and as expected got much lower noop
2019-07-30 13:55:29 +03:00

17 lines
188 B
Ruby

def fibo_r( n )
if( n < 2 )
return n
else
return fibo_r(n - 1) + fibo_r(n - 2)
end
end
counter = 10000
while(counter > 0) do
fibo_r(10)
counter -= 1
end