Sha256: 80a882f6d0a55f8ce074cfcc54af351b0be675b69e16ee919b298f1f8cf0f2cc

Contents?: true

Size: 476 Bytes

Versions: 9

Compression:

Stored size: 476 Bytes

Contents

module Benchmark::Output
  class << self
    # Benchmark::Output is pluggable.
    # Create `Benchmark::Output::FooBar` as benchmark-output-foo_bar.gem and specify `output: foo_bar`.
    #
    # @param [Symbol] name
    def find(name)
      class_name = Benchmark::Driver::Configuration.camelize(name.to_s)
      Benchmark::Output.const_get(class_name, false)
    end
  end
end

require 'benchmark/output/ips'
require 'benchmark/output/memory'
require 'benchmark/output/time'

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
benchmark_driver-0.6.0 lib/benchmark/output.rb
benchmark_driver-0.5.1 lib/benchmark/output.rb
benchmark_driver-0.5.0 lib/benchmark/output.rb
benchmark_driver-0.4.5 lib/benchmark/output.rb
benchmark_driver-0.4.4 lib/benchmark/output.rb
benchmark_driver-0.4.3 lib/benchmark/output.rb
benchmark_driver-0.4.2 lib/benchmark/output.rb
benchmark_driver-0.4.1 lib/benchmark/output.rb
benchmark_driver-0.4.0 lib/benchmark/output.rb