directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1330900 - /directory/apacheds/branches/index-work/core-integ/src/test/java/org/apache/directory/server/core/operations/search/SearchPerfIT.java
Date Thu, 26 Apr 2012 15:22:32 GMT
Author: elecharny
Date: Thu Apr 26 15:22:32 2012
New Revision: 1330900

URL: http://svn.apache.org/viewvc?rev=1330900&view=rev
Log:
Improvd the results by removing the first 500K searches to be sure the JVM will be warm when
we start the measure.

Modified:
    directory/apacheds/branches/index-work/core-integ/src/test/java/org/apache/directory/server/core/operations/search/SearchPerfIT.java

Modified: directory/apacheds/branches/index-work/core-integ/src/test/java/org/apache/directory/server/core/operations/search/SearchPerfIT.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/index-work/core-integ/src/test/java/org/apache/directory/server/core/operations/search/SearchPerfIT.java?rev=1330900&r1=1330899&r2=1330900&view=diff
==============================================================================
--- directory/apacheds/branches/index-work/core-integ/src/test/java/org/apache/directory/server/core/operations/search/SearchPerfIT.java
(original)
+++ directory/apacheds/branches/index-work/core-integ/src/test/java/org/apache/directory/server/core/operations/search/SearchPerfIT.java
Thu Apr 26 15:22:32 2012
@@ -82,7 +82,7 @@ public class SearchPerfIT extends Abstra
                 tt0 = tt1;
             }
 
-            if ( i == 50000 )
+            if ( i == 500000 )
             {
                 t00 = System.currentTimeMillis();
             }
@@ -94,7 +94,7 @@ public class SearchPerfIT extends Abstra
         long t1 = System.currentTimeMillis();
 
         Long deltaWarmed = ( t1 - t00 );
-        System.out.println( "Delta : " + deltaWarmed + "( " + ( ( ( nbIterations - 50000
) * 1000 ) / deltaWarmed )
+        System.out.println( "Delta : " + deltaWarmed + "( " + ( ( ( nbIterations - 500000
) * 1000 ) / deltaWarmed )
             + " per s ) /" + ( t1 - t0 ) );
         connection.close();
     }
@@ -139,7 +139,7 @@ public class SearchPerfIT extends Abstra
                 tt0 = tt1;
             }
 
-            if ( i == 50000 )
+            if ( i == 500000 )
             {
                 t00 = System.currentTimeMillis();
             }
@@ -151,7 +151,7 @@ public class SearchPerfIT extends Abstra
         long t1 = System.currentTimeMillis();
 
         Long deltaWarmed = ( t1 - t00 );
-        System.out.println( "Delta : " + deltaWarmed + "( " + ( ( ( nbIterations - 50000
) * 1000 ) / deltaWarmed )
+        System.out.println( "Delta : " + deltaWarmed + "( " + ( ( ( nbIterations - 500000
) * 1000 ) / deltaWarmed )
             + " per s ) /" + ( t1 - t0 ) );
         connection.close();
     }
@@ -180,7 +180,7 @@ public class SearchPerfIT extends Abstra
 
         assertEquals( 10, i );
 
-        int nbIterations = 1500000;
+        int nbIterations = 15000000;
 
         long t0 = System.currentTimeMillis();
         long t00 = 0L;
@@ -196,7 +196,7 @@ public class SearchPerfIT extends Abstra
                 tt0 = tt1;
             }
 
-            if ( i == 50000 )
+            if ( i == 500000 )
             {
                 t00 = System.currentTimeMillis();
             }
@@ -208,7 +208,7 @@ public class SearchPerfIT extends Abstra
         long t1 = System.currentTimeMillis();
 
         Long deltaWarmed = ( t1 - t00 );
-        System.out.println( "Delta : " + deltaWarmed + "( " + ( ( ( nbIterations - 50000
) * 1000 ) / deltaWarmed )
+        System.out.println( "Delta : " + deltaWarmed + "( " + ( ( ( nbIterations - 500000
) * 1000 ) / deltaWarmed )
             + " per s ) /" + ( t1 - t0 ) );
         connection.close();
     }



Mime
View raw message