lib/benchmark_driver/output/compare.rb in benchmark_driver-0.10.0 vs lib/benchmark_driver/output/compare.rb in benchmark_driver-0.10.1
- old
+ new
@@ -53,10 +53,10 @@
@current_job = job
@job_metrics = []
block.call
ensure
$stdout.print(@metrics_type.unit)
- if job.loop_count
+ if job.respond_to?(:loop_count) && job.loop_count
$stdout.print(" - #{humanize(job.loop_count)} times")
if @job_metrics.all? { |metrics| metrics.duration }
$stdout.print(" in")
show_durations
end