Sha256: a6a3e32ee42f871758a5811dc630de9396db59d7ee59666ed9735532393c5d0c

Contents?: true

Size: 1.17 KB

Versions: 10

Compression:

Stored size: 1.17 KB

Contents

require 'benchmark_driver/struct'

module BenchmarkDriver
  # All CLI options
  Config = ::BenchmarkDriver::Struct.new(
    :runner_type,  # @param [String]
    :output_type,  # @param [String]
    :paths,        # @param [Array<String>]
    :executables,  # @param [Array<BenchmarkDriver::Config::Executable>]
    :filters,      # @param [Array<Regexp>]
    :repeat_count, # @param [Integer]
    :run_duration, # @param [Integer]
    :verbose,      # @param [Integer]
    defaults: {
      runner_type: 'ips',
      output_type: 'compare',
      filters: [],
      repeat_count: 1,
      run_duration: 3,
      verbose: 0,
    },
  )

  # Subset of FullConfig passed to JobRunner
  Config::RunnerConfig = ::BenchmarkDriver::Struct.new(
    :executables,  # @param [Array<BenchmarkDriver::Config::Executable>]
    :repeat_count, # @param [Integer]
    :run_duration, # @param [Integer]
    :verbose,      # @param [Integer]
  )

  Config::Executable = ::BenchmarkDriver::Struct.new(
    :name,    # @param [String]
    :command, # @param [Array<String>]
  )
  Config.defaults[:executables] = [
    BenchmarkDriver::Config::Executable.new(name: RUBY_VERSION, command: [RbConfig.ruby]),
  ]
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
benchmark_driver-0.10.9 lib/benchmark_driver/config.rb
benchmark_driver-0.10.8 lib/benchmark_driver/config.rb
benchmark_driver-0.10.6 lib/benchmark_driver/config.rb
benchmark_driver-0.10.5 lib/benchmark_driver/config.rb
benchmark_driver-0.10.4 lib/benchmark_driver/config.rb
benchmark_driver-0.10.3 lib/benchmark_driver/config.rb
benchmark_driver-0.10.2 lib/benchmark_driver/config.rb
benchmark_driver-0.10.1 lib/benchmark_driver/config.rb
benchmark_driver-0.10.0 lib/benchmark_driver/config.rb
benchmark_driver-0.9.2 lib/benchmark_driver/config.rb