Module: Benchmark::Sweet::IPS

Included in:
Job
Defined in:
lib/benchmark/sweet/ips.rb

Instance Method Summary collapse

Instance Method Details

#run_ipsObject



4
5
6
7
8
9
10
11
12
13
# 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