Skip to content

class Benchmark::IPS::Entry
inherits Reference

Class methods

.new(label : String, action : -> )

View source

Methods

#action : ->

Code to be benchmarked

View source

#action=(action : -> )

Code to be benchmarked

View source

#bytes_per_op : UInt64

Number of bytes allocated per operation

#bytes_per_op=(bytes_per_op : UInt64)

Number of bytes allocated per operation

View source

#bytes_per_op? : UInt64?

Number of bytes allocated per operation

#calculate_stats(samples)

View source

#call

View source

#call_for_100ms

View source

#cycles : Int32

Number of cycles needed to run for approx 100ms Calculated during the warmup stage

#cycles=(cycles : Int32)

Number of cycles needed to run for approx 100ms Calculated during the warmup stage

View source

#cycles? : Int32?

Number of cycles needed to run for approx 100ms Calculated during the warmup stage

#human_compare

View source

#human_iteration_time

View source

#human_mean

View source

#label : String

Label of the benchmark

View source

#label=(label : String)

Label of the benchmark

View source

#mean : Float64

Statistical mean from calculation stage

#mean=(mean : Float64)

Statistical mean from calculation stage

View source

#mean? : Float64?

Statistical mean from calculation stage

#ran? : Bool

View source

#relative_stddev : Float64

Relative standard deviation as a percentage

#relative_stddev=(relative_stddev : Float64)

Relative standard deviation as a percentage

View source

#relative_stddev? : Float64?

Relative standard deviation as a percentage

#set_cycles(duration, iterations)

View source

#size : Int32

Number of 100ms runs during the calculation stage

#size=(size : Int32)

Number of 100ms runs during the calculation stage

View source

#size? : Int32?

Number of 100ms runs during the calculation stage

#slower : Float64

Multiple slower than the fastest entry

#slower=(slower : Float64)

Multiple slower than the fastest entry

View source

#slower? : Float64?

Multiple slower than the fastest entry

#stddev : Float64

Statistical standard deviation from calculation stage

#stddev=(stddev : Float64)

Statistical standard deviation from calculation stage

View source

#stddev? : Float64?

Statistical standard deviation from calculation stage

#variance : Float64

Statistical variance from calculation stage

#variance=(variance : Float64)

Statistical variance from calculation stage

View source

#variance? : Float64?

Statistical variance from calculation stage