rubyx/test/bench/ruby/calls.rb
Torsten 00bf38a0e6 updating benchmarks
on the new machine, consistent
not rubyx yet
2019-07-23 20:14:28 +03:00

17 lines
186 B
Ruby

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