lib/benchmark_driver/runner.rb in benchmark_driver-0.10.16 vs lib/benchmark_driver/runner.rb in benchmark_driver-0.11.0
- old
+ new
@@ -3,10 +3,11 @@
require 'benchmark_driver/runner/command_stdout'
require 'benchmark_driver/runner/ips'
require 'benchmark_driver/runner/memory'
require 'benchmark_driver/runner/once'
require 'benchmark_driver/runner/recorded'
+ require 'benchmark_driver/runner/ruby_stdout'
require 'benchmark_driver/runner/time'
end
class << Runner
# Main function which is used by both CLI and `Benchmark.driver`.
@@ -26,12 +27,13 @@
verbose: config.verbose,
)
jobs.group_by(&:class).each do |klass, jobs_group|
runner = runner_for(klass)
- output = Output.find(config.output_type).new(
- jobs: jobs,
- executables: config.executables,
+ output = Output.new(
+ type: config.output_type,
+ job_names: jobs.map(&:name),
+ context_names: config.executables.map(&:name),
)
with_clean_env do
runner.new(config: runner_config, output: output).run(jobs)
end
end