diff options
Diffstat (limited to 'benchmark/lib/benchmark_driver/runner/peak.rb')
-rw-r--r-- | benchmark/lib/benchmark_driver/runner/peak.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/benchmark/lib/benchmark_driver/runner/peak.rb b/benchmark/lib/benchmark_driver/runner/peak.rb index e00d667353..0ba8af42c5 100644 --- a/benchmark/lib/benchmark_driver/runner/peak.rb +++ b/benchmark/lib/benchmark_driver/runner/peak.rb @@ -40,7 +40,7 @@ class BenchmarkDriver::Runner::Peak run_benchmark(job, context: context) end @output.with_context(name: context.name, executable: context.executable, gems: context.gems, prelude: context.prelude) do - @output.report(values: { METRIC => value }, loop_count: job.loop_count) + @output.report(values: { metric => value }, loop_count: job.loop_count) end end end @@ -80,6 +80,11 @@ class BenchmarkDriver::Runner::Peak 'peak' end + # Overridden by BenchmarkDriver::Runner::Size + def metric + METRIC + end + def with_script(script) if @config.verbose >= 2 sep = '-' * 30 |