incubator-connectors-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwri...@apache.org
Subject svn commit: r1207362 - in /incubator/lcf/branches/CONNECTORS-286/warthog/src/test/java/org/apache/warthog/tests: MultiThreadTest.java PerformanceTest.java SanityTest.java
Date Mon, 28 Nov 2011 16:11:11 GMT
Author: kwright
Date: Mon Nov 28 16:11:10 2011
New Revision: 1207362

URL: http://svn.apache.org/viewvc?rev=1207362&view=rev
Log:
Use powers of two for hash size

Modified:
    incubator/lcf/branches/CONNECTORS-286/warthog/src/test/java/org/apache/warthog/tests/MultiThreadTest.java
    incubator/lcf/branches/CONNECTORS-286/warthog/src/test/java/org/apache/warthog/tests/PerformanceTest.java
    incubator/lcf/branches/CONNECTORS-286/warthog/src/test/java/org/apache/warthog/tests/SanityTest.java

Modified: incubator/lcf/branches/CONNECTORS-286/warthog/src/test/java/org/apache/warthog/tests/MultiThreadTest.java
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-286/warthog/src/test/java/org/apache/warthog/tests/MultiThreadTest.java?rev=1207362&r1=1207361&r2=1207362&view=diff
==============================================================================
--- incubator/lcf/branches/CONNECTORS-286/warthog/src/test/java/org/apache/warthog/tests/MultiThreadTest.java
(original)
+++ incubator/lcf/branches/CONNECTORS-286/warthog/src/test/java/org/apache/warthog/tests/MultiThreadTest.java
Mon Nov 28 16:11:10 2011
@@ -37,7 +37,7 @@ public class MultiThreadTest
     
     int repeatCount = totalInserts/threadCount;
 
-    WHAtomicKeyValueStore store = new InMemAtomicKeyValueStore(10000000);
+    WHAtomicKeyValueStore store = new InMemAtomicKeyValueStore(16777216);
     
     WHTableStore ts = new TableStore(new InMemTransactionalStoreImpl(store));
 
@@ -114,7 +114,7 @@ public class MultiThreadTest
     
     int repeatCount = totalCount/threadCount;
 
-    WHAtomicKeyValueStore store = new InMemAtomicKeyValueStore(10000000);
+    WHAtomicKeyValueStore store = new InMemAtomicKeyValueStore(16777216);
     
     WHTableStore ts = new TableStore(new InMemTransactionalStoreImpl(store));
 

Modified: incubator/lcf/branches/CONNECTORS-286/warthog/src/test/java/org/apache/warthog/tests/PerformanceTest.java
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-286/warthog/src/test/java/org/apache/warthog/tests/PerformanceTest.java?rev=1207362&r1=1207361&r2=1207362&view=diff
==============================================================================
--- incubator/lcf/branches/CONNECTORS-286/warthog/src/test/java/org/apache/warthog/tests/PerformanceTest.java
(original)
+++ incubator/lcf/branches/CONNECTORS-286/warthog/src/test/java/org/apache/warthog/tests/PerformanceTest.java
Mon Nov 28 16:11:10 2011
@@ -32,7 +32,7 @@ public class PerformanceTest
   public void rowCreateTest()
     throws Exception
   {
-    WHTableStore ts = new TableStore(new InMemTransactionalStoreImpl(new InMemAtomicKeyValueStore(10000000)));
+    WHTableStore ts = new TableStore(new InMemTransactionalStoreImpl(new InMemAtomicKeyValueStore(16777216)));
 
     ts.beginTransaction();
     ts.createTable("testtable",new String[]{"colA","colB","colC","colD","colE","colF","colG","colH","colI","colJ"});

Modified: incubator/lcf/branches/CONNECTORS-286/warthog/src/test/java/org/apache/warthog/tests/SanityTest.java
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-286/warthog/src/test/java/org/apache/warthog/tests/SanityTest.java?rev=1207362&r1=1207361&r2=1207362&view=diff
==============================================================================
--- incubator/lcf/branches/CONNECTORS-286/warthog/src/test/java/org/apache/warthog/tests/SanityTest.java
(original)
+++ incubator/lcf/branches/CONNECTORS-286/warthog/src/test/java/org/apache/warthog/tests/SanityTest.java
Mon Nov 28 16:11:10 2011
@@ -458,7 +458,7 @@ public class SanityTest
   protected WHTableStore createInMemTableStore()
     throws WHException
   {
-    return new TableStore(new InMemTransactionalStoreImpl(new InMemAtomicKeyValueStore(10000)));
+    return new TableStore(new InMemTransactionalStoreImpl(new InMemAtomicKeyValueStore(32768)));
   }
     
   protected void buildNonOverlappingTestTable(WHTableStore ts)



Mime
View raw message