test_app/benchmark.rb in a9n-0.6.2 vs test_app/benchmark.rb in a9n-0.7.0
- old
+ new
@@ -20,10 +20,12 @@
end
A9n.app = SampleBenchmarkApp.new
results = []
-(1..10).each do
+10.times do
results << Benchmark.realtime { A9n.app.run }
end
-puts (results.reduce(&:+) / 10).round(4)
+human_result = (results.reduce(&:+) / 10).round(4)
+
+puts human_result