renames Typed to Vm

This commit is contained in:
Torsten Ruger
2017-01-14 19:28:44 +02:00
parent 75c7ca950e
commit bd78a2d555
95 changed files with 61 additions and 61 deletions

43
test/bench/vm/integer.rb Normal file
View File

@ -0,0 +1,43 @@
require_relative 'helper'
class BenchInt < MiniTest::Test
include BenchTests
def test_adds
@main = "int count = 100352 - 352
while_plus( count - 1)
40.fibw( )
count = count - 1
end
return count"
check_remote 0
end
def test_calls
@main = "int count = 1000
while_plus( count - 1)
20.fibr( )
count = count - 1
end
return count"
check_remote 0
end
def test_itos
@main = "int count = 100352 - 352
while_plus( count - 1)
count.to_s( )
count = count - 1
end
return count"
check_remote 0
end
def test_loop
@main = "int count = 100352 - 352
while_plus( count - 1)
count = count - 1
end
return count"
check_remote 0
end
end