lib/benchmark_driver/runner/ips.rb in benchmark_driver-0.14.3 vs lib/benchmark_driver/runner/ips.rb in benchmark_driver-0.14.4
- old
+ new
@@ -121,10 +121,10 @@
METRIC
end
# Overridden by BenchmarkDriver::Runner::Time
def value_duration(duration:, loop_count:)
- if duration == BenchmarkDriver::Result::ERROR
+ if BenchmarkDriver::Result::ERROR.equal?(duration)
[BenchmarkDriver::Result::ERROR, BenchmarkDriver::Result::ERROR]
else
[loop_count.to_f / duration, duration]
end
end