class Benchmark::IPS::Report::Entry

def body

Returns:
  • (String) - Left justified body.
def body
  per_iter = (" (%s/i)" % Helpers.humanize_duration(1_000_000_000 / @stats.central_tendency)).rjust(15)
  case Benchmark::IPS.options[:format]
  when :human
    left = ("%s (±%4.1f%%) i/s" % [Helpers.scale(@stats.central_tendency), @stats.error_percentage]).ljust(20)
    iters = Helpers.scale(@iterations)
    if @show_total_time
      left + per_iter + (" - %s in %10.6fs" % [iters, runtime])
    else
      left + per_iter + (" - %s" % iters)
    end
  else
    left = ("%10.1f (±%.1f%%) i/s" % [@stats.central_tendency, @stats.error_percentage]).ljust(20)
    if @show_total_time
      left + per_iter + (" - %10d in %10.6fs" % [@iterations, runtime])
    else
      left + per_iter + (" - %10d" % @iterations)
    end
  end
end