rubyx/test/bench/soml/helper.rb

34 lines
439 B
Ruby
Raw Normal View History

require_relative '../../soml/helper'
# Benchmarks for the stuff in results.md
module BenchTests
include RuntimeTests
def setup
@stdout = ""
@machine = Register.machine.boot
Soml::Compiler.load_parfait
end
def main
runko = <<HERE
class Object
int main()
PROGRAM
end
end
HERE
runko.sub("PROGRAM" , @main )
end
def check_remote val
check_r val , true
end
2015-11-30 15:09:55 +01:00
def connected
make_box
end
end