directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1550183 - /directory/mavibot/trunk/mavibot/src/test/java/org/apache/directory/mavibot/btree/memory/MultiThreadedBtreeTest.java
Date Wed, 11 Dec 2013 16:26:51 GMT
Author: elecharny
Date: Wed Dec 11 16:26:51 2013
New Revision: 1550183

URL: http://svn.apache.org/r1550183
Log:
Modified the tests which took too long to run

Modified:
    directory/mavibot/trunk/mavibot/src/test/java/org/apache/directory/mavibot/btree/memory/MultiThreadedBtreeTest.java

Modified: directory/mavibot/trunk/mavibot/src/test/java/org/apache/directory/mavibot/btree/memory/MultiThreadedBtreeTest.java
URL: http://svn.apache.org/viewvc/directory/mavibot/trunk/mavibot/src/test/java/org/apache/directory/mavibot/btree/memory/MultiThreadedBtreeTest.java?rev=1550183&r1=1550182&r2=1550183&view=diff
==============================================================================
--- directory/mavibot/trunk/mavibot/src/test/java/org/apache/directory/mavibot/btree/memory/MultiThreadedBtreeTest.java
(original)
+++ directory/mavibot/trunk/mavibot/src/test/java/org/apache/directory/mavibot/btree/memory/MultiThreadedBtreeTest.java
Wed Dec 11 16:26:51 2013
@@ -70,16 +70,16 @@ public class MultiThreadedBtreeTest
 
 
     /**
-     * Create a btree with 500 000 elements in it
+     * Create a btree with 50 000 elements in it
      * @throws IOException If the creation failed
      */
-    private void create500KBTree() throws IOException
+    private void create50KBTree() throws IOException
     {
         Random random = new Random( System.nanoTime() );
 
-        int nbElems = 500000;
+        int nbElems = 50000;
 
-        // Create a BTree with 500 000 entries
+        // Create a BTree with 50 000 entries
         btree.setPageSize( 32 );
 
         for ( int i = 0; i < nbElems; i++ )
@@ -91,7 +91,7 @@ public class MultiThreadedBtreeTest
             {
                 btree.insert( key, value );
 
-                if ( i % 100000 == 0 )
+                if ( i % 10000 == 0 )
                 {
                     System.out.println( "Written " + i + " elements" );
                 }
@@ -154,7 +154,7 @@ public class MultiThreadedBtreeTest
             {
                 try
                 {
-                    create500KBTree();
+                    create50KBTree();
                 }
                 catch ( Exception e )
                 {
@@ -202,7 +202,7 @@ public class MultiThreadedBtreeTest
 
         long t1 = System.currentTimeMillis();
 
-        System.out.println( " Time to create 500K entries and to have " + nbThreads + " threads
reading them : "
+        System.out.println( " Time to create 50K entries and to have " + nbThreads + " threads
reading them : "
             + ( ( t1 - t0 ) / 1000 ) + " seconds" );
     }
 



Mime
View raw message