rubyx/test/bench/soml/helper.rb
Torsten Ruger da553f996f move compiler to typed
starting to get rid of soml, bit by bit
2016-12-08 15:25:20 +02:00

34 lines
440 B
Ruby

require_relative '../../soml/helper'
# Benchmarks for the stuff in results.md
module BenchTests
include RuntimeTests
def setup
@stdout = ""
@machine = Register.machine.boot
Typed::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
def connected
make_box
end
end