lib/benchmark/inputs.rb in benchmark-inputs-1.0.0 vs lib/benchmark/inputs.rb in benchmark-inputs-1.0.1
- old
+ new
@@ -87,10 +87,10 @@
r.add_sample(bench(reps){|x| yield(x) } - bench(reps){|x| x })
i -= 1
end
$stdout.puts(r.label)
- $stdout.printf(" %.1f i/s (\u00B1%.2f%%)\n", r.ips, r.stddev / r.ips)
+ $stdout.printf(" %.1f i/s (\u00B1%.2f%%)\n", r.ips, r.stddev / r.ips * 100)
@reports << r
r
end
# Prints the relative speeds (from fastest to slowest) of all