tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1390486 - /tomcat/trunk/test/org/apache/tomcat/util/collections/TesterPerformanceSynchronizedStack.java
Date Wed, 26 Sep 2012 13:47:08 GMT
Author: markt
Date: Wed Sep 26 13:47:08 2012
New Revision: 1390486

URL: http://svn.apache.org/viewvc?rev=1390486&view=rev
Log:
Lower thread count by default

Modified:
    tomcat/trunk/test/org/apache/tomcat/util/collections/TesterPerformanceSynchronizedStack.java

Modified: tomcat/trunk/test/org/apache/tomcat/util/collections/TesterPerformanceSynchronizedStack.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/test/org/apache/tomcat/util/collections/TesterPerformanceSynchronizedStack.java?rev=1390486&r1=1390485&r2=1390486&view=diff
==============================================================================
--- tomcat/trunk/test/org/apache/tomcat/util/collections/TesterPerformanceSynchronizedStack.java
(original)
+++ tomcat/trunk/test/org/apache/tomcat/util/collections/TesterPerformanceSynchronizedStack.java
Wed Sep 26 13:47:08 2012
@@ -23,7 +23,7 @@ import org.junit.Test;
 
 public class TesterPerformanceSynchronizedStack {
 
-    private static final int THREAD_COUNT = 40;
+    private static final int THREAD_COUNT = 4;
     private static final int ITERATIONS = 1000000;
 
     private static final SynchronizedStack<Object> STACK =
@@ -99,7 +99,7 @@ public class TesterPerformanceSynchroniz
                 if (obj == null) {
                     obj = new Object();
                 }
-                QUEUE.add(obj);
+                QUEUE.offer(obj);
             }
             super.run();
         }



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message