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:
10
test/bench/rubyx/hello.rb
Normal file
10
test/bench/rubyx/hello.rb
Normal 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
5
test/bench/rubyx/noop.rb
Normal file
@ -0,0 +1,5 @@
|
||||
class Space
|
||||
def main(arg)
|
||||
return 0
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user