Sha256: 5ea4e56a906a1b133850d9767344b877478f3f9a4d3a730883c0b86a40cdedb6
Contents?: true
Size: 645 Bytes
Versions: 1
Compression:
Stored size: 645 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) unless Benchmark::Output.const_defined?("#{class_name}::REQUIRED_FIELDS") require "benchmark/output/#{name}" end Benchmark::Output.const_get(class_name, false) end end end require 'benchmark/output/ips' require 'benchmark/output/markdown' require 'benchmark/output/memory' require 'benchmark/output/time'
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
benchmark_driver-0.8.6 | lib/benchmark/output.rb |