exe/benchmark_driver in benchmark_driver-0.2.3 vs exe/benchmark_driver in benchmark_driver-0.2.4
- old
+ new
@@ -14,10 +14,12 @@
options[:execs] << path
end
end
o.on('-r', '--rbenv [VERSION]', 'Ruby executable in rbenv') do |r|
options[:execs] ||= []
- options[:execs] << "#{r}::RBENV_VERSION='#{r}' ruby"
+ r.split(/;/).each do |version|
+ options[:execs] << "#{version}::#{`RBENV_VERSION='#{version}' rbenv which ruby`.rstrip}"
+ end
end
o.on('-i [DURATION]', '--ips [SECONDS]', "Measure IPS in duration seconds (default: #{BenchmarkDriver::DEFAULT_IPS_DURATION})") do |i|
options[:measure_type] = 'ips'
options[:measure_num] = Integer(i) if i
end