Skip to content
Browse files

rounding performance increase

  • Loading branch information...
1 parent 3aaf1df commit 3682f5b60c6775d12c2d3ac779a88df76e164099 @kassens kassens committed Apr 20, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 benchmark/seqpar_benchmark.rb
View
2 benchmark/seqpar_benchmark.rb
@@ -98,7 +98,7 @@ def benchmark
size, time = line.split(' ')
performance_increases << (before[size].to_f - time.to_f) / before[size].to_f unless time == "0" || before[size] == "0"
end
- puts "Average performance increase: #{performance_increases.mean * 100}%"
+ puts "Average performance increase: #{(performance_increases.mean * 100 * 10).round / 10.0}%"
end
end

0 comments on commit 3682f5b

Please sign in to comment.
Something went wrong with that request. Please try again.