Only activates insdelfind for sequential set test case
[libcds.git] / test / stress / sequential / sequential-set / insdel_find / set_insdelfind.cpp
index a03a87a..ec8effc 100644 (file)
 namespace set {
 
     size_t Set_InsDelFind::s_nSetSize = 500000;      // initial set size
-    size_t Set_InsDelFind::s_nPassCount = 500000;      // initial pass count 
+    size_t Set_InsDelFind::s_nPassCount = 500000;      // initial pass count
+    size_t Set_InsDelFind::s_nFeldmanPassCount = 100;
+    size_t Set_InsDelFind::s_nBronsonAVLTreeMapPassCount = 100;
+    size_t Set_InsDelFind::s_nEllenBinTreeMapPassCount = 100;
+    size_t Set_InsDelFind::s_nMichaelMapPassCount = 100;
+    size_t Set_InsDelFind::s_nSkipListMapPassCount = 100;
+    size_t Set_InsDelFind::s_nSplitListMapPassCount = 100;
 
     size_t Set_InsDelFind::s_nThreadCount = 8;       // thread count
     size_t Set_InsDelFind::s_nMaxLoadFactor = 8;     // maximum load factor
@@ -53,7 +59,7 @@ namespace set {
 
     void Set_InsDelFind::SetUpTestCase()
     {
-        cds_test::config const& cfg = get_config( "sequential_map_insdelfind" );
+        cds_test::config const& cfg = get_config( "sequential_set_insdelfind" );
 
         s_nSetSize = cfg.get_size_t( "InitialMapSize", s_nSetSize );
         if ( s_nSetSize < 1000 )
@@ -63,6 +69,36 @@ namespace set {
         if ( s_nPassCount < 1000 )
             s_nPassCount = 1000;
 
+        s_nFeldmanPassCount =
+            cfg.get_size_t("FeldmanPassCount", s_nFeldmanPassCount);
+        if (s_nFeldmanPassCount == 0)
+          s_nFeldmanPassCount = 500;
+
+        s_nBronsonAVLTreeMapPassCount = cfg.get_size_t(
+            "BronsonAVLTreeMapPassCount", s_nBronsonAVLTreeMapPassCount);
+        if (s_nBronsonAVLTreeMapPassCount == 0)
+          s_nBronsonAVLTreeMapPassCount = 500;
+
+        s_nEllenBinTreeMapPassCount = cfg.get_size_t(
+            "EllenBinTreeMapPassCount", s_nEllenBinTreeMapPassCount);
+        if (s_nEllenBinTreeMapPassCount == 0)
+          s_nEllenBinTreeMapPassCount = 500;
+
+        s_nMichaelMapPassCount =
+            cfg.get_size_t("MichaelMapPassCount", s_nMichaelMapPassCount);
+        if (s_nMichaelMapPassCount == 0)
+          s_nMichaelMapPassCount = 500;
+
+        s_nSkipListMapPassCount =
+            cfg.get_size_t("SkipListMapPassCount", s_nSkipListMapPassCount);
+        if (s_nSkipListMapPassCount == 0)
+          s_nSkipListMapPassCount = 500;
+
+        s_nSplitListMapPassCount =
+            cfg.get_size_t("SplitListMapPassCount", s_nSplitListMapPassCount);
+        if (s_nSplitListMapPassCount == 0)
+          s_nSplitListMapPassCount = 500;
+
         s_nThreadCount = cfg.get_size_t( "ThreadCount", s_nThreadCount );
         if ( s_nThreadCount == 0 )
             s_nThreadCount = 2;