Sha256: d97d05b388852c931a078a8981721ba8346527296781592d584be8b4df4af9ae

Contents?: true

Size: 701 Bytes

Versions: 3

Compression:

Stored size: 701 Bytes

Contents

require 'benchmark_driver/runner/ips'

class BenchmarkDriver::Runner::Time < BenchmarkDriver::Runner::Ips
  # JobParser returns this, `BenchmarkDriver::Runner.runner_for` searches "*::Job"
  Job = Class.new(BenchmarkDriver::DefaultJob)
  # Dynamically fetched and used by `BenchmarkDriver::JobParser.parse`
  JobParser = BenchmarkDriver::DefaultJobParser.for(Job)
  # Passed to `output` by `BenchmarkDriver::Runner.run`
  MetricsType = BenchmarkDriver::Metrics::Type.new(unit: 's')

  # Overriding BenchmarkDriver::Runner::Ips#build_metrics
  def build_metrics(duration:, executable:, loop_count:)
    BenchmarkDriver::Metrics.new(
      value: duration,
      executable: executable,
    )
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
benchmark_driver-0.9.2 lib/benchmark_driver/runner/time.rb
benchmark_driver-0.9.1 lib/benchmark_driver/runner/time.rb
benchmark_driver-0.9.0 lib/benchmark_driver/runner/time.rb