Sha256: 5c2d12f7e94de710ac0571c06ea0aaa05ed2836e02834ec4ab3f3e740bfa4315
Contents?: true
Size: 638 Bytes
Versions: 7
Compression:
Stored size: 638 Bytes
Contents
require 'benchmark_driver/runner/time' # For having a metric label compatible with RubyBench class BenchmarkDriver::Runner::Seconds < BenchmarkDriver::Runner::Time METRIC = BenchmarkDriver::Metric.new(name: 'Execution time', unit: 'Seconds', larger_better: false) # 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(klass: Job, metrics: [METRIC]) # Overriding BenchmarkDriver::Runner::Ips#metric def metric METRIC end end
Version data entries
7 entries across 7 versions & 1 rubygems