lib/benchmark_driver/runner/ips.rb in benchmark_driver-0.14.13 vs lib/benchmark_driver/runner/ips.rb in benchmark_driver-0.14.14

- old
+ new

@@ -50,14 +50,20 @@ @output.with_benchmark do jobs.each do |job| @output.with_job(name: job.name) do job.runnable_contexts(@contexts).each do |context| repeat_params = { config: @config, larger_better: true, rest_on_average: :average } - value, duration = BenchmarkDriver::Repeater.with_repeat(repeat_params) do + result = BenchmarkDriver::Repeater.with_repeat(repeat_params) do run_benchmark(job, context: context) end + value, duration = result.value @output.with_context(name: context.name, executable: context.executable, gems: context.gems, prelude: context.prelude) do - @output.report(values: { metric => value }, duration: duration, loop_count: job.loop_count) + @output.report( + values: { metric => value }, + all_values: { metric => result.all_values }, + duration: duration, + loop_count: job.loop_count, + ) end end end end end