Module: BenchmarkDriver::Output::Compare::MinisculeToZero
- Included in:
- BenchmarkDriver::Output::Compare
- Defined in:
- lib/benchmark_driver/runner/ips_zero_fail.rb
Overview
monkey-patch to convert miniscule values to 0.0
Instance Method Summary collapse
Instance Method Details
#humanize(value, width = 10) ⇒ Object
14 15 16 |
# File 'lib/benchmark_driver/runner/ips_zero_fail.rb', line 14 def humanize(value, width = 10) value <= 0.0.next_float.next_float ? 0.0 : super(value, width) end |