class BenchmarkDriver::Output::Compare

def show_durations

def show_durations
  @job_results.each do |result|
    $stdout.print(' %3.6fs' % result.duration)
  end
  # Show pretty seconds / clocks too. As it takes long width, it's shown only with a single executable.
  if @job_results.size == 1
    result = @job_results.first
    sec = result.duration
    iter = result.loop_count
    if File.exist?('/proc/cpuinfo') && (clks = estimate_clock(sec, iter)) && (clks < 1_000)
      $stdout.print(" (#{pretty_sec(sec, iter)}/i, #{clks}clocks/i)")
    else
      $stdout.print(" (#{pretty_sec(sec, iter)}/i)")
    end
  end
end