rubyx/test/bench/vm/helper.rb
Torsten Ruger aa79e41d1c rename register to risc
seems to fit the layer much better as we really have a very reduced
instruction set
2017-01-19 09:02:29 +02:00

35 lines
506 B
Ruby

require_relative '../../typed/helper'
# Benchmarks for the stuff in results.md
module BenchTests
include RuntimeTests
def setup
@stdout = ""
@machine = Risc.machine.boot
# Vm::Compiler.load_parfait
# most interesting parts saved as interger/word .soml in this dir
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