class BenchmarkInterface::BipsContext

Attributes

compare[RW]
hold[RW]
iterations[RW]
time[RW]
warmup[RW]

Public Instance Methods

compare!() click to toggle source
# File lib/benchmark-interface/frontends/bips.rb, line 19
def compare!
  # Ignore
end
config(options) click to toggle source
# File lib/benchmark-interface/frontends/bips.rb, line 15
def config(options)
  # Ignore
end
item(name=nil, code=nil, &block) click to toggle source
# File lib/benchmark-interface/frontends/bips.rb, line 23
def item(name=nil, code=nil, &block)
  raise 'cannot have both a string and a block' if code && block
  block = eval("Proc.new { #{code} }") if code
  BenchmarkInterface.benchmark name, &block
end
Also aliased as: report
report(name=nil, code=nil, &block)
Alias for: item