commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pste...@apache.org
Subject svn commit: r1001555 - /commons/sandbox/performance/trunk/src/java/org/apache/commons/performance/Statistics.java
Date Sun, 26 Sep 2010 23:26:03 GMT
Author: psteitz
Date: Sun Sep 26 23:26:03 2010
New Revision: 1001555

URL: http://svn.apache.org/viewvc?rev=1001555&view=rev
Log:
Fixed aggregated statistics display.

Modified:
    commons/sandbox/performance/trunk/src/java/org/apache/commons/performance/Statistics.java

Modified: commons/sandbox/performance/trunk/src/java/org/apache/commons/performance/Statistics.java
URL: http://svn.apache.org/viewvc/commons/sandbox/performance/trunk/src/java/org/apache/commons/performance/Statistics.java?rev=1001555&r1=1001554&r2=1001555&view=diff
==============================================================================
--- commons/sandbox/performance/trunk/src/java/org/apache/commons/performance/Statistics.java
(original)
+++ commons/sandbox/performance/trunk/src/java/org/apache/commons/performance/Statistics.java
Sun Sep 26 23:26:03 2010
@@ -299,7 +299,24 @@ public class Statistics implements Seria
             buffer.append("Overall summary statistics (all threads combined) ");
             buffer.append(metric.toUpperCase());
             buffer.append("\n");
-            buffer.append(getOverallSummary(metric).toString());
+            /* Restore this when math 2.2 is released with MATH-420 fixed
+            buffer.append(getOverallSummary(metric).toString()); */
+            StatisticalSummaryValues summary = getOverallSummary(metric);
+            buffer.append("n: ");
+            buffer.append(summary.getN());
+            buffer.append("\n");
+            buffer.append("mean: ");
+            buffer.append(summary.getMean());
+            buffer.append("\n");
+            buffer.append("min: ");
+            buffer.append(summary.getMin());
+            buffer.append("\n");
+            buffer.append("max: ");
+            buffer.append(summary.getMax());
+            buffer.append("\n");
+            buffer.append("std dev: ");
+            buffer.append(summary.getStandardDeviation());
+            buffer.append("\n");
             buffer.append("********************************************\n");
         } 
         return buffer.toString();



Mime
View raw message