rubyx/test/bench/rubyx/calls.rb
Torsten Rüger d3a0aa3d8e redid benchmarks with new options
especially calling did improve
also binaries don't get crazy big even for bigger heaps, because they are just ints
2019-08-24 16:03:35 +03:00

23 lines
327 B
Ruby

class Space
def fibo_r( n )
if( n < 2 )
return n
end
a = fibo_r(n - 1)
b = fibo_r(n - 2)
return a + b
end
# ran with --integers=170000 , result - noop * 10
def main(arg)
b = 5
res = 0
while( b >= 1 )
b = b - 1
res = fibo_r(20)
end
return res
end
end