Method: BME::Suite#run

Defined in:
lib/bme.rb

#runObject



27
28
29
30
31
32
33
34
35
36
37
# File 'lib/bme.rb', line 27

def run
  adjust_benchmark_names!

  Benchmark.bm do |bench|
    @benchmarks.each do |name, options, block|
      bench.report(name) do 
        (options[:iterations] || @iterations).times { block.call }
      end
    end
  end
end