Sha256: 29f333b65520f0492943c10becc96ea7dcd8916c59c9496b8fd1f13b20bac79f
Contents?: true
Size: 778 Bytes
Versions: 14
Compression:
Stored size: 778 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) METRICS_TYPE = BenchmarkDriver::Metrics::Type.new(unit: 's') # Overriding BenchmarkDriver::Runner::Ips#set_metrics_type def set_metrics_type @output.metrics_type = METRICS_TYPE end # 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
14 entries across 14 versions & 1 rubygems