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
This commit is contained in:
2019-07-30 13:55:29 +03:00
parent ab87806d08
commit 6273ab769c
8 changed files with 68 additions and 13 deletions

27
test/bench/rubyx/calls.rb Normal file
View File

@ -0,0 +1,27 @@
class Space
def fibo_r(fib)
n = fib
a = 0
b = 1
i = 1
while( i < n )
result = a + b
a = b
b = result
i = i + 1
end
return result
end
# ran with --parfait=80000
# (time - noop) * 50 + noop
def main(arg)
b = 2000
while( b >= 1 )
b = b - 1
fibo_r(20)
end
return b
end
end