lib/benchmark_driver/runner/once.rb in benchmark_driver-0.14.3 vs lib/benchmark_driver/runner/once.rb in benchmark_driver-0.14.4
- old
+ new
@@ -33,10 +33,10 @@
@output.with_benchmark do
jobs.each do |job|
@output.with_job(name: job.name) do
job.runnable_contexts(@contexts).each do |context|
duration = run_benchmark(job, context: context) # no repeat support
- if duration == BenchmarkDriver::Result::ERROR
+ if BenchmarkDriver::Result::ERROR.equal?(duration)
value = BenchmarkDriver::Result::ERROR
else
value = 1.0 / duration
end