exe/benchmark-driver in benchmark_driver-0.10.0 vs exe/benchmark-driver in benchmark_driver-0.10.1
- old
+ new
@@ -3,11 +3,10 @@
require 'benchmark_driver'
require 'optparse'
require 'yaml'
-
# Parse command line options
config = BenchmarkDriver::Config.new.tap do |c|
executables = []
bundler = false
parser = OptionParser.new do |o|
@@ -32,10 +31,10 @@
o.on('--rbenv [VERSIONS]', 'Ruby executables in rbenv (x.x.x,arg1,...;y.y.y,arg2,...;...)') do |r|
abort '--rbenv must take argument but not given' if r.nil?
r.split(';').each do |spec|
version, *args = spec.split(',')
executables << BenchmarkDriver::Config::Executable.new(
- name: version,
+ name: spec,
command: [BenchmarkDriver::Rbenv.ruby_path(version), *args],
)
end
end
o.on('--repeat-count [NUM]', 'Try benchmark NUM times and use the fastest result (TODO)') do |v|