W3cubDocs

/Crystal

class Benchmark::IPS::Entry

Defined in:

benchmark/ips.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(label : String, action : -> )Source

Instance Method Detail

def action : ->Source

Code to be benchmarked

def action=(action : -> )Source

Code to be benchmarked

def bytes_per_op : UInt64

Number of bytes allocated per operation

def bytes_per_op=(bytes_per_op : UInt64)Source

Number of bytes allocated per operation

def bytes_per_op? : UInt64?

Number of bytes allocated per operation

def calculate_stats(samples)Source

def callSource

def call_for_100msSource

def cycles : Int32

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

def cycles=(cycles : Int32)Source

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

def cycles? : Int32?

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

def human_compareSource

def human_iteration_timeSource

def human_meanSource

def label : StringSource

Label of the benchmark

def label=(label : String)Source

Label of the benchmark

def mean : Float64

Statistical mean from calculation stage

def mean=(mean : Float64)Source

Statistical mean from calculation stage

def mean? : Float64?

Statistical mean from calculation stage

def ran? : BoolSource

def relative_stddev : Float64

Relative standard deviation as a percentage

def relative_stddev=(relative_stddev : Float64)Source

Relative standard deviation as a percentage

def relative_stddev? : Float64?

Relative standard deviation as a percentage

def set_cycles(duration, iterations)Source

def size : Int32

Number of 100ms runs during the calculation stage

def size=(size : Int32)Source

Number of 100ms runs during the calculation stage

def size? : Int32?

Number of 100ms runs during the calculation stage

def slower : Float64

Multiple slower than the fastest entry

def slower=(slower : Float64)Source

Multiple slower than the fastest entry

def slower? : Float64?

Multiple slower than the fastest entry

def stddev : Float64

Statistical standard deviation from calculation stage

def stddev=(stddev : Float64)Source

Statistical standard deviation from calculation stage

def stddev? : Float64?

Statistical standard deviation from calculation stage

def variance : Float64

Statistical variance from calculation stage

def variance=(variance : Float64)Source

Statistical variance from calculation stage

def variance? : Float64?

Statistical variance from calculation stage

© 2012–2020 Manas Technology Solutions.
Licensed under the Apache License, Version 2.0.
https://crystal-lang.org/api/0.35.1/Benchmark/IPS/Entry.html