class Benchmark::IPS::Entry

Defined in:

base58/extensions/benchmark.cr

Constructors

Instance Method Summary

Constructor Detail

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

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

Instance Method Detail

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

Code to be benchmarked


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

def calculate_stats(samples) : Nil #

def call : Nil #

def call_for_100ms : Nil #

def label : String | Colorize::Object(String) #

Label of the benchmark


def label=(label : String | Colorize::Object(String)) #

def ran=(ran : Bool) #

def separator=(separator : Bool) #

def separator? : Bool #