lib/benchmark_driver/runner/ips.rb in benchmark_driver-0.10.10 vs lib/benchmark_driver/runner/ips.rb in benchmark_driver-0.10.11
- old
+ new
@@ -30,11 +30,11 @@
@output.with_warmup do
jobs = jobs.map do |job|
next job if job.loop_count # skip warmup if loop_count is set
@output.with_job(job) do
- result = run_warmup(job, exec: @config.executables.first)
+ result = run_warmup(job, exec: job.runnable_execs(@config.executables).first)
metrics = build_metrics(result)
@output.report(metrics)
loop_count = (result.fetch(:loop_count).to_f * @config.run_duration / result.fetch(:duration)).floor
Job.new(job.to_h.merge(loop_count: loop_count))
@@ -44,10 +44,10 @@
end
@output.with_benchmark do
jobs.each do |job|
@output.with_job(job) do
- @config.executables.each do |exec|
+ job.runnable_execs(@config.executables).each do |exec|
best_metrics = with_repeat(@config.repeat_count) do
run_benchmark(job, exec: exec)
end
@output.report(best_metrics)
end