lib/benchmark_driver/runner.rb in benchmark_driver-0.9.1 vs lib/benchmark_driver/runner.rb in benchmark_driver-0.9.2
- old
+ new
@@ -9,13 +9,20 @@
class << Runner
# Main function which is used by both CLI and `Benchmark.driver`.
# @param [Array<BenchmarkDriver::*::Job>] jobs
# @param [BenchmarkDriver::Config] config
def run(jobs, config:)
+ if config.verbose >= 1
+ config.executables.each do |exec|
+ $stdout.puts "#{exec.name}: #{IO.popen([*exec.command, '-v'], &:read)}"
+ end
+ end
+
runner_config = Config::RunnerConfig.new(
executables: config.executables,
repeat_count: config.repeat_count,
run_duration: config.run_duration,
+ verbose: config.verbose,
)
jobs.group_by(&:class).each do |klass, jobs_group|
runner = runner_for(klass)
output = Output.find(config.output_type).new(