[jboss-cvs] JBossCache/tests/perf/org/jboss/cache ...

Manik Surtani manik at jboss.org
Wed May 23 05:01:42 EDT 2007


  User: msurtani
  Date: 07/05/23 05:01:42

  Modified:    tests/perf/org/jboss/cache  ReplicatedAsyncPerfTest.java
  Log:
  updated test
  
  Revision  Changes    Path
  1.11      +52 -44    JBossCache/tests/perf/org/jboss/cache/ReplicatedAsyncPerfTest.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: ReplicatedAsyncPerfTest.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/tests/perf/org/jboss/cache/ReplicatedAsyncPerfTest.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -b -r1.10 -r1.11
  --- ReplicatedAsyncPerfTest.java	16 Apr 2007 17:37:10 -0000	1.10
  +++ ReplicatedAsyncPerfTest.java	23 May 2007 09:01:42 -0000	1.11
  @@ -30,7 +30,7 @@
    * Replicated asynchronous mode performance test for transactional CacheImpl
    *
    * @author <a href="mailto:bwang at jboss.org">Ben Wang</a> May 20 2003
  - * @version $Revision: 1.10 $
  + * @version $Revision: 1.11 $
    */
   public class ReplicatedAsyncPerfTest extends TestCase
   {
  @@ -43,8 +43,10 @@
      final String FACTORY = "org.jboss.cache.transaction.DummyContextFactory";
   
      ArrayList nodeList_;
  -   static final int depth_ = 3;
  -   static final int children_ = 4;
  +   static final int depth_ = 4;
  +   static final int children_ = 5;
  +   static final int loops = 1000;
  +   static final boolean loop = true;
      DummyTransactionManager tm_;
   
      static
  @@ -356,6 +358,10 @@
   
      private int _add(CacheImpl cache, boolean hasTx) throws Exception
      {
  +      if (loop)
  +      {
  +         for (int c = 0; c < loops; c++)
  +         {
         UserTransaction tx = null;
         if (hasTx)
         {
  @@ -377,6 +383,8 @@
               cache.put((String) nodeList_.get(i), key, value);
            }
         }
  +         }
  +      }
   
         return nodeList_.size();
      }
  
  
  



More information about the jboss-cvs-commits mailing list