class

Benchmark::IPS::Job

Inherits Reference / Object

Constructors

new(calculation calculation_time : Time::Span = 5.seconds, warmup warmup_time : Time::Span = 2.seconds, interactive : Bool = STDOUT.tty?)
Source
new(calculation = 5, warmup = 2, interactive = STDOUT.tty?)

DEPRECATED Use .new(Time::Span, Time::Span, Bool) instead.

Source

Instance methods

execute
Source
items

List of all entries in the benchmark. After #execute, these are populated with the resulting statistics.

Source
items=(items : Array(Entry))

List of all entries in the benchmark. After #execute, these are populated with the resulting statistics.

Source
report(label : String = "", &action : -> ) : Benchmark::IPS::Entry

Adds code to be benchmarked

Source
report
Source