Benchmark::IPS::Entry

class Benchmark::IPS::Entry

Defined in:

benchmark/ips.cr

Class Method Summary

Instance Method Summary

Class Method 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 calculate_stats(samples)Source

def callSource

def call_for_100msSource

def cycles

def cycles=(cycles : Int32)Source

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

def cycles? : Int32?

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

def mean=(mean : Float64)Source

Statistical mean from calculation stage

def mean? : Float64?

def ran? : BoolSource

def relative_stddev

def relative_stddev=(relative_stddev : Float64)Source

Relative standard deviation as a percentage

def relative_stddev? : Float64?

def set_cycles(duration, iterations)Source

def size

def size=(size : Int32)Source

Number of 100ms runs during the calculation stage

def size? : Int32?

def slower

def slower=(slower : Float64)Source

Multiple slower than the fastest entry

def slower? : Float64?

def stddev

def stddev=(stddev : Float64)Source

Statistical standard deviation from calculation stage

def stddev? : Float64?

def variance

def variance=(variance : Float64)Source

Statistical variance from calculation stage

def variance? : Float64?

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

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部