exe/benchmark-driver in benchmark_driver-0.10.16 vs exe/benchmark-driver in benchmark_driver-0.11.0

- old
+ new

@@ -33,11 +33,11 @@ abort '--rbenv must take argument but not given' if r.nil? r.split(';').each do |version| executables << BenchmarkDriver::Rbenv.parse_spec(version) end end - o.on('--repeat-count [NUM]', 'Try benchmark NUM times and use the fastest result (TODO)') do |v| + o.on('--repeat-count [NUM]', 'Try benchmark NUM times and use the fastest result or the worst memory usage') do |v| begin c.repeat_count = Integer(v) rescue ArgumentError abort "-r, --repeat-count must take Integer, but got #{v.inspect}" end @@ -55,12 +55,12 @@ abort "--verbose must take Integer, but got #{v.inspect}" end end o.on('--run-duration [SECONDS]', 'Warmup estimates loop_count to run for this duration (default: 3)') do |v| begin - c.run_duration = Integer(v) + c.run_duration = Float(v) rescue ArgumentError - abort "--run-duration must take Integer, but got #{v.inspect}" + abort "--run-duration must take Float, but got #{v.inspect}" end end end c.paths = parser.parse!(ARGV) if c.paths.empty?