class Benchmark::IPS::Report

def add_entry label, microseconds, iters, stats, measurement_cycle

Returns:
  • (Report::Entry) - Last added entry.

Parameters:
  • measurement_cycle (Integer) -- Number of cycles.
  • stats (Object) -- Statistical results.
  • iters (Integer) -- Iterations.
  • microseconds (Integer) -- Measured time in microsecond.
  • label (String) -- Entry label.
def add_entry label, microseconds, iters, stats, measurement_cycle
  entry = Entry.new(label, microseconds, iters, stats, measurement_cycle)
  @entries.delete_if { |e| e.label == label }
  @entries << entry
  entry
end