Author: erans
Date: Thu Sep 15 12:09:58 2011
New Revision: 1171067

URL: http://svn.apache.org/viewvc?rev=1171067&view=rev
Log:
Correct factor for reporting total time.

Modified:
    
commons/proper/math/trunk/src/test/java/org/apache/commons/math/PerfTestUtils.java

Modified: 
commons/proper/math/trunk/src/test/java/org/apache/commons/math/PerfTestUtils.java
URL: 
http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math/PerfTestUtils.java?rev=1171067&r1=1171066&r2=1171067&view=diff
==============================================================================
--- 
commons/proper/math/trunk/src/test/java/org/apache/commons/math/PerfTestUtils.java
 (original)
+++ 
commons/proper/math/trunk/src/test/java/org/apache/commons/math/PerfTestUtils.java
 Thu Sep 15 12:09:58 2011
@@ -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(),


Reply via email to