module Benchmark
for compatibility with ‘benchmark.rb’ (standard library)
Public Class Methods
bm(width=nil, &block)
click to toggle source
# File lib/benchmarker.rb, line 1028 def self.bm(width=nil, &block) #; [!2nf07] defines and runs benchmark. __new_bm(width, &block).run() nil end
bmbm(width=nil, &block)
click to toggle source
# File lib/benchmarker.rb, line 1034 def self.bmbm(width=nil, &block) #; [!ezbb8] defines and runs benchmark twice, reports only 2nd result. __new_bm(width, &block).run(warmup: true) nil end