directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1421152 - /directory/apacheds/trunk/core-integ/src/test/java/org/apache/directory/server/core/operations/getRootDse/GetRootDsePerfIT.java
Date Thu, 13 Dec 2012 09:08:56 GMT
Author: elecharny
Date: Thu Dec 13 09:08:55 2012
New Revision: 1421152

URL: http://svn.apache.org/viewvc?rev=1421152&view=rev
Log:
Improved the test to return more usable numbers

Modified:
    directory/apacheds/trunk/core-integ/src/test/java/org/apache/directory/server/core/operations/getRootDse/GetRootDsePerfIT.java

Modified: directory/apacheds/trunk/core-integ/src/test/java/org/apache/directory/server/core/operations/getRootDse/GetRootDsePerfIT.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core-integ/src/test/java/org/apache/directory/server/core/operations/getRootDse/GetRootDsePerfIT.java?rev=1421152&r1=1421151&r2=1421152&view=diff
==============================================================================
--- directory/apacheds/trunk/core-integ/src/test/java/org/apache/directory/server/core/operations/getRootDse/GetRootDsePerfIT.java
(original)
+++ directory/apacheds/trunk/core-integ/src/test/java/org/apache/directory/server/core/operations/getRootDse/GetRootDsePerfIT.java
Thu Dec 13 09:08:55 2012
@@ -47,7 +47,7 @@ public class GetRootDsePerfIT extends Ab
         Entry rootDse = getService().getOperationManager().getRootDse( getRootDseContext
);
 
         assertNotNull( rootDse );
-        int nbIterations = 150000;
+        int nbIterations = 1500000;
 
         long t0 = System.currentTimeMillis();
         long t00 = 0L;
@@ -57,7 +57,7 @@ public class GetRootDsePerfIT extends Ab
         {
             getRootDseContext.setCurrentInterceptor( 0 );
             
-            if ( i % 1000 == 0 )
+            if ( i % 100000 == 0 )
             {
                 long tt1 = System.currentTimeMillis();
 
@@ -65,7 +65,7 @@ public class GetRootDsePerfIT extends Ab
                 tt0 = tt1;
             }
 
-            if ( i == 50000 )
+            if ( i == 500000 )
             {
                 t00 = System.currentTimeMillis();
             }
@@ -76,6 +76,6 @@ public class GetRootDsePerfIT extends Ab
         long t1 = System.currentTimeMillis();
 
         Long deltaWarmed = ( t1 - t00 );
-        System.out.println( "Delta getRootDSE: " + deltaWarmed + "( " + ( ( ( nbIterations
- 50000 ) * 1000 ) / deltaWarmed ) + " per s ) /" + ( t1 - t0 ) );
+        System.out.println( "Delta getRootDSE: " + deltaWarmed + "( " + ( ( ( nbIterations
- 500000 ) * 1000 ) / deltaWarmed ) + " per s ) /" + ( t1 - t0 ) );
     }
 }



Mime
View raw message