module Benchmark

Constants

CAPTION
FORMAT

Public Class Methods

benchmark(caption='', label_width=nil, format=nil, *labels) { |benchmark_context| ... } click to toggle source
# File lib/benchmark-interface/frontends/benchmark.rb, line 34
def self.benchmark(caption='', label_width=nil, format=nil, *labels)
  yield BenchmarkInterface::BenchmarkContext.new
end
bm(label_width=0, *labels) { |benchmark_context| ... } click to toggle source
# File lib/benchmark-interface/frontends/benchmark.rb, line 42
def self.bm(label_width=0, *labels)
  yield BenchmarkInterface::BenchmarkContext.new
end
bmbm(label_width=0) { |benchmark_context| ... } click to toggle source
# File lib/benchmark-interface/frontends/benchmark.rb, line 46
def self.bmbm(label_width=0)
  yield BenchmarkInterface::BenchmarkContext.new
end
ips() { |bips_context| ... } click to toggle source
# File lib/benchmark-interface/frontends/bips.rb, line 36
def self.ips
  yield BenchmarkInterface::BipsContext.new
end
measure(name=nil, &block) click to toggle source
# File lib/benchmark-interface/frontends/benchmark.rb, line 26
def self.measure(name=nil, &block)
  BenchmarkInterface.benchmark name, &block
end
realtime(name=nil, &block) click to toggle source
# File lib/benchmark-interface/frontends/benchmark.rb, line 30
def self.realtime(name=nil, &block)
  BenchmarkInterface.benchmark name, &block
end