diff --git a/lib/rubyx/rubyxc.rb b/lib/rubyx/rubyxc.rb index dc136487..3b1a2da4 100644 --- a/lib/rubyx/rubyxc.rb +++ b/lib/rubyx/rubyxc.rb @@ -3,7 +3,8 @@ require "rubyx" require "risc/interpreter" class RubyXC < Thor - class_option :parfait , type: :numeric + class_option :integers , type: :numeric + class_option :mesages , type: :numeric desc "compile FILE" , "Compile given FILE to binary" @@ -98,7 +99,8 @@ class RubyXC < Thor private def extract_options - opt = { factory: options[:parfait] || 1024 } + opt = { Integer: options[:integers] || 1024 , + Message: options[:messages] || 1024} return {parfait: opt} end diff --git a/test/bench/results.md b/test/bench/results.md index 22e3b4b2..1660f936 100644 --- a/test/bench/results.md +++ b/test/bench/results.md @@ -1,4 +1,4 @@ -# Benchmarks + # Benchmarks hello - output hello world to measure kernel calls add - run integer adds by linear fibonacci of 40 @@ -25,6 +25,6 @@ Results (in ms) should be seen as relative, not absolute. language | noop | hello | add | call | loop c | 55 | 380 | 88 | 135 | 6 go | 52 | 450 | 9 | 77 | 2 -rubyx | 42 | 200 | 1700 | 1700 | 480 +rubyx | 42 | 200 | 1700 | 1450 | 470 ruby | 1570 | 650 | 1090 | 1500 | 180 mruby | 86 | 1200 | 1370 | 2700 | 300