Torsten
6273ab769c
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
17 lines
188 B
Ruby
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
|