class Benchmark::IPS::Entry

Defined in:

base58/extensions/benchmark.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(label : String, action : Proc(Nil)) #

[View source]
def self.new(label : String | Colorize::Object(String), action : Int32 -> _ | -> _) #

[View source]

Instance Method Detail

def action : Proc(Int32, Nil) | Proc(Nil) #

Code to be benchmarked


[View source]
def action=(action : Proc(Int32, Nil) | Proc(Nil)) #

[View source]
def calculate_stats(samples) : Nil #

[View source]
def call : Nil #

[View source]
def call_for_100ms : Nil #

[View source]
def label : String | Colorize::Object(String) #

Label of the benchmark


[View source]
def label=(label : String | Colorize::Object(String)) #

[View source]
def ran=(ran : Bool) #

[View source]
def separator=(separator : Bool) #

[View source]
def separator? : Bool #

[View source]