W3cubDocs

/Crystal

class Benchmark::IPS::Job

Defined in:

benchmark/ips.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(calculation = 5, warmup = 2, interactive = STDOUT.tty?)Source

Instance Method Detail

def executeSource

def items : Array(Entry)Source

List of all entries in the benchmark. After #execute, these are populated with the resulting statistics.

def items=(items : Array(Entry))Source

List of all entries in the benchmark. After #execute, these are populated with the resulting statistics.

def report(label = "", &action)Source

Adds code to be benchmarked

def reportSource

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