2016-12-11 11:55:03 +01:00
|
|
|
require_relative '../../typed/helper'
|
2015-11-21 15:33:43 +01:00
|
|
|
|
|
|
|
# Benchmarks for the stuff in results.md
|
|
|
|
|
|
|
|
module BenchTests
|
|
|
|
|
|
|
|
include RuntimeTests
|
|
|
|
|
|
|
|
def setup
|
|
|
|
@stdout = ""
|
|
|
|
@machine = Register.machine.boot
|
2017-01-14 18:28:44 +01:00
|
|
|
# Vm::Compiler.load_parfait
|
2016-12-08 19:13:08 +01:00
|
|
|
# most interesting parts saved as interger/word .soml in this dir
|
2015-11-21 15:33:43 +01:00
|
|
|
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
|
2015-11-21 15:33:43 +01:00
|
|
|
end
|