mirror of
https://github.com/apache/commons-math.git
synced 2025-02-11 12:36:05 +00:00
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:
parent
88c71bb962
commit
c1b1b191e0
@ -195,10 +195,10 @@ public class PerfTestUtils {
|
|||||||
repeatStat,
|
repeatStat,
|
||||||
runGC,
|
runGC,
|
||||||
methods);
|
methods);
|
||||||
final double refSum = time[0].getSum();
|
final double refSum = time[0].getSum() * repeatChunk;
|
||||||
for (int i = 0, max = time.length; i < max; i++) {
|
for (int i = 0, max = time.length; i < max; i++) {
|
||||||
final StatisticalSummary s = time[i];
|
final StatisticalSummary s = time[i];
|
||||||
final double sum = s.getSum();
|
final double sum = s.getSum() * repeatChunk;
|
||||||
System.out.println(String.format(format,
|
System.out.println(String.format(format,
|
||||||
methods[i].getName(),
|
methods[i].getName(),
|
||||||
s.getMean(),
|
s.getMean(),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user