fixing test to pass

and extract own kind of same tests to bench
bench tests will need some loop, but not as large as c
This commit is contained in:
2019-07-25 21:25:15 +03:00
parent 14c965360d
commit 95af84e752
6 changed files with 23 additions and 7 deletions

10
test/bench/rubyx/hello.rb Normal file
View File

@ -0,0 +1,10 @@
class Space
def main(arg)
b = 2*1000
while( b >= 1 )
b = b - 1
"Hello-there\n".putstring
end
return b
end
end

5
test/bench/rubyx/noop.rb Normal file
View File

@ -0,0 +1,5 @@
class Space
def main(arg)
return 0
end
end