renames Typed to Vm
This commit is contained in:
34
test/bench/vm/helper.rb
Normal file
34
test/bench/vm/helper.rb
Normal file
@ -0,0 +1,34 @@
|
||||
require_relative '../../typed/helper'
|
||||
|
||||
# Benchmarks for the stuff in results.md
|
||||
|
||||
module BenchTests
|
||||
|
||||
include RuntimeTests
|
||||
|
||||
def setup
|
||||
@stdout = ""
|
||||
@machine = Register.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
|
Reference in New Issue
Block a user