Module: Benchmark::Runner

Defined in:
lib/benchmark/runner.rb

Defined Under Namespace

Classes: Call, Eval, Exec

Class Method Summary collapse

Class Method Details

.find(name) ⇒ Object

Benchmark::Runner is pluggable. Create ‘Benchmark::Runner::FooBar` as benchmark-runner-foo_bar.gem and specify `runner: foo_bar`.

Parameters:

  • name (Symbol)


6
7
8
9
# File 'lib/benchmark/runner.rb', line 6

def self.find(name)
  class_name = Benchmark::Driver::Configuration.camelize(name.to_s)
  Benchmark::Runner.const_get(class_name, false)
end