Correct factor for reporting total time.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1171067 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gilles Sadowski 2011-09-15 12:09:58 +00:00
parent 88c71bb962
commit c1b1b191e0

View File

@ -195,10 +195,10 @@ public class PerfTestUtils {
repeatStat,
runGC,
methods);
final double refSum = time[0].getSum();
final double refSum = time[0].getSum() * repeatChunk;
for (int i = 0, max = time.length; i < max; i++) {
final StatisticalSummary s = time[i];
final double sum = s.getSum();
final double sum = s.getSum() * repeatChunk;
System.out.println(String.format(format,
methods[i].getName(),
s.getMean(),