directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1221820 - in /directory/apacheds/branches/apacheds-txns/core-integ/src/test/java/org/apache/directory/server/core/operations: add/AddPerfIT.java lookup/LookupPerfIT.java
Date Wed, 21 Dec 2011 17:38:33 GMT
Author: elecharny
Date: Wed Dec 21 17:38:33 2011
New Revision: 1221820

URL: http://svn.apache.org/viewvc?rev=1221820&view=rev
Log:
Small improvements to performance tests

Modified:
    directory/apacheds/branches/apacheds-txns/core-integ/src/test/java/org/apache/directory/server/core/operations/add/AddPerfIT.java
    directory/apacheds/branches/apacheds-txns/core-integ/src/test/java/org/apache/directory/server/core/operations/lookup/LookupPerfIT.java

Modified: directory/apacheds/branches/apacheds-txns/core-integ/src/test/java/org/apache/directory/server/core/operations/add/AddPerfIT.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-txns/core-integ/src/test/java/org/apache/directory/server/core/operations/add/AddPerfIT.java?rev=1221820&r1=1221819&r2=1221820&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-txns/core-integ/src/test/java/org/apache/directory/server/core/operations/add/AddPerfIT.java
(original)
+++ directory/apacheds/branches/apacheds-txns/core-integ/src/test/java/org/apache/directory/server/core/operations/add/AddPerfIT.java
Wed Dec 21 17:38:33 2011
@@ -73,11 +73,13 @@ public class AddPerfIT extends AbstractL
     {
         LdapConnection connection = IntegrationUtils.getAdminConnection( getService() );
 
+        //Entry entry = new DefaultEntry( getService().getSchemaManager(), dn );
         Dn dn = new Dn( "cn=test,ou=system" );
-        Entry entry = new DefaultEntry( getService().getSchemaManager(), dn );
-        entry.add( "ObjectClass", "top", "person" );
-        entry.add( "sn", "TEST" );
-        entry.add( "cn", "test" );
+        Entry entry = new DefaultEntry( dn,
+            "ObjectClass: top",
+            "ObjectClass: person",
+            "sn: TEST",
+            "cn: test" );
 
         connection.add( entry );
         int nbIterations = 15000;

Modified: directory/apacheds/branches/apacheds-txns/core-integ/src/test/java/org/apache/directory/server/core/operations/lookup/LookupPerfIT.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-txns/core-integ/src/test/java/org/apache/directory/server/core/operations/lookup/LookupPerfIT.java?rev=1221820&r1=1221819&r2=1221820&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-txns/core-integ/src/test/java/org/apache/directory/server/core/operations/lookup/LookupPerfIT.java
(original)
+++ directory/apacheds/branches/apacheds-txns/core-integ/src/test/java/org/apache/directory/server/core/operations/lookup/LookupPerfIT.java
Wed Dec 21 17:38:33 2011
@@ -61,7 +61,7 @@ public class LookupPerfIT extends Abstra
 
         assertNotNull( entry );
 
-        int nbIterations = 150000;
+        int nbIterations = 1500000;
 
         long t0 = System.currentTimeMillis();
         long t00 = 0L;



Mime
View raw message