Module: BME

Defined in:
lib/bme.rb

Overview

BenchMark Everything

Defined Under Namespace

Classes: Suite

Class Method Summary collapse

Class Method Details

.benchmark(options = {}) {|suite| ... } ⇒ Object

Use :iterations => n to set n number of iterations (defaults to 100,000)

Yields:

  • (suite)


7
8
9
10
11
# File 'lib/bme.rb', line 7

def benchmark(options = {}, &block)
  suite = BME::Suite.new(options[:iterations] || 100000)
  yield suite
  suite.run
end