finally creating less objects in the test

basic still #23 , now applied
Basic size of 20, interpreter gets 50 and the full set is 1024

Tests run more than twice as fast!!
This commit is contained in:
Torsten Ruger
2019-02-09 12:44:35 +02:00
parent 37eeb81f45
commit a89301d623
11 changed files with 84 additions and 43 deletions

View File

@ -7,7 +7,7 @@ module Risc
include ScopeHelper
def setup
compiler = RubyX::RubyXCompiler.new(RubyX.default_test_options)
compiler = RubyX::RubyXCompiler.new(RubyX.interpreter_test_options)
@linker = compiler.ruby_to_binary(@string_input, :interpreter)
@interpreter = Interpreter.new(@linker)
@interpreter.start_program