You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ps...@apache.org on 2008/03/23 07:40:38 UTC
svn commit: r640162 - in
/commons/sandbox/performance/trunk/src/test/org/apache/commons/performance:
LoadGeneratorTest.java pool/config-pool.xml
Author: psteitz
Date: Sat Mar 22 23:40:38 2008
New Revision: 640162
URL: http://svn.apache.org/viewvc?rev=640162&view=rev
Log:
Modified test config parameters to increase speed of tests and made latency mean test more tolerant of slow execution environment.
Modified:
commons/sandbox/performance/trunk/src/test/org/apache/commons/performance/LoadGeneratorTest.java
commons/sandbox/performance/trunk/src/test/org/apache/commons/performance/pool/config-pool.xml
Modified: commons/sandbox/performance/trunk/src/test/org/apache/commons/performance/LoadGeneratorTest.java
URL: http://svn.apache.org/viewvc/commons/sandbox/performance/trunk/src/test/org/apache/commons/performance/LoadGeneratorTest.java?rev=640162&r1=640161&r2=640162&view=diff
==============================================================================
--- commons/sandbox/performance/trunk/src/test/org/apache/commons/performance/LoadGeneratorTest.java (original)
+++ commons/sandbox/performance/trunk/src/test/org/apache/commons/performance/LoadGeneratorTest.java Sat Mar 22 23:40:38 2008
@@ -103,7 +103,7 @@
Statistics statistics = generator.getStatistics();
SummaryStatistics stats = null;
stats = statistics.getMeanSummary("latency");
- assertEquals(50, stats.getMean(), 3.0);
+ assertEquals(50, stats.getMean(), 100.0);
stats = statistics.getMeanSummary("one");
assertEquals(10, stats.getMean(), 1.0);
stats = statistics.getMeanSummary("two");
Modified: commons/sandbox/performance/trunk/src/test/org/apache/commons/performance/pool/config-pool.xml
URL: http://svn.apache.org/viewvc/commons/sandbox/performance/trunk/src/test/org/apache/commons/performance/pool/config-pool.xml?rev=640162&r1=640161&r2=640162&view=diff
==============================================================================
--- commons/sandbox/performance/trunk/src/test/org/apache/commons/performance/pool/config-pool.xml (original)
+++ commons/sandbox/performance/trunk/src/test/org/apache/commons/performance/pool/config-pool.xml Sat Mar 22 23:40:38 2008
@@ -24,9 +24,9 @@
<factory>
<activate-latency>0</activate-latency>
<destroy-latency>0</destroy-latency>
- <make-latency>100</make-latency>
+ <make-latency>0</make-latency>
<passivate-latency>0</passivate-latency>
- <validate-latency>100</validate-latency>
+ <validate-latency>0</validate-latency>
<waiter-latency>0</waiter-latency>
</factory>
@@ -61,12 +61,12 @@
<run>
<!-- integerIndexed, integerScan, or textScan -->
<iterations>100</iterations>
- <clients>50</clients>
- <delay-min>250</delay-min>
- <delay-max>500</delay-max>
+ <clients>20</clients>
+ <delay-min>0</delay-min>
+ <delay-max>100</delay-max>
<delay-sigma>50</delay-sigma>
<!-- constant, gaussian, or poisson -->
- <delay-type>gaussian</delay-type>
+ <delay-type>constant</delay-type>
<!-- none, linear, random -->
<ramp-type>random</ramp-type>
<ramp-period>5000</ramp-period>