class Benchmark::IPS::Report
def add_entry label, microseconds, iters, ips, ips_sd, measurement_cycle
-
(Report::Entry)
- Last added entry.
Parameters:
-
measurement_cycle
(Integer
) -- Number of cycles. -
ips_sd
(Float
) -- Standard deviation of iterations per second. -
ips
(Float
) -- Average Iterations per second. -
iters
(Integer
) -- Iterations. -
microseconds
(Integer
) -- Measured time in microsecond. -
label
(String
) -- Entry label.
def add_entry label, microseconds, iters, ips, ips_sd, measurement_cycle entry = Entry.new(label, microseconds, iters, ips, ips_sd, measurement_cycle) @entries.delete_if { |e| e.label == label } @entries << entry entry end