module Benchmark::Sweet::IPS

Public Instance Methods

run_ips() click to toggle source
# File lib/benchmark/sweet/ips.rb, line 4
def run_ips
  require "benchmark/ips"
  rpt = Benchmark.ips(warmup: options[:warmup], time: options[:time], quiet: options[:quiet]) do |x|
    items.each { |e| x.item(e.label, e.action || e.block) }
    #x.compare! if compare
  end
  rpt.entries.each do |entry|
    add_entry(entry.label, "ips", entry.stats)
  end
end