lib/benchmark_driver/metric.rb in benchmark_driver-0.13.3 vs lib/benchmark_driver/metric.rb in benchmark_driver-0.14.0
- old
+ new
@@ -33,9 +33,10 @@
:duration, # @param [Float,nil] - Time taken to run the benchmark job (optional)
:loop_count, # @param [Integer,nil] - Times to run the benchmark job (optional)
:environment, # @param [Hash] - Any other key -> value pairs to express the benchmark context
defaults: { environment: {} },
)
+ Result::ERROR = 0.0
# A kind of thing to be measured
Metric = ::BenchmarkDriver::Struct.new(
:name, # @param [String] - Metric name or description like "Max Resident Set Size"
:unit, # @param [String] - A unit like "MiB"