Modifies more sequential test cases for sets
[libcds.git] / test / stress / sequential / sequential-set / insdel_string / set_insdel_string.cpp
index 40f066e..262e8f2 100644 (file)
@@ -36,6 +36,8 @@ namespace set {
     size_t Set_InsDel_string::s_nInsertThreadCount = 4;  // count of insertion thread
     size_t Set_InsDel_string::s_nDeleteThreadCount = 4;  // count of deletion thread
     size_t Set_InsDel_string::s_nThreadPassCount = 4;    // pass count for each thread
+    size_t Set_InsDel_string::s_nFeldmanThreadPassCount = 4;    // pass count for Feldman
+    size_t Set_InsDel_string::s_nSkiplistThreadPassCount = 4;    // pass count for Skiplist 
     size_t Set_InsDel_string::s_nMaxLoadFactor = 8;      // maximum load factor
 
     size_t Set_InsDel_string::s_nCuckooInitialSize = 1024;// initial size for CuckooSet
@@ -50,7 +52,7 @@ namespace set {
 
     void Set_InsDel_string::SetUpTestCase()
     {
-        cds_test::config const& cfg = get_config( "map_insdel_string" );
+        cds_test::config const& cfg = get_config( "sequential_map_insdel_string" );
 
         s_nSetSize = cfg.get_size_t( "MapSize", s_nSetSize );
         if ( s_nSetSize < 1000 )
@@ -68,7 +70,17 @@ namespace set {
         if ( s_nThreadPassCount == 0 )
             s_nThreadPassCount = 4;
 
-        s_nMaxLoadFactor = cfg.get_size_t( "MaxLoadFactor", s_nMaxLoadFactor );
+        s_nFeldmanThreadPassCount =
+            cfg.get_size_t("FeldmanThreadPassCount", s_nFeldmanThreadPassCount);
+        if (s_nFeldmanThreadPassCount == 0)
+          s_nFeldmanThreadPassCount = 4;
+
+        s_nSkiplistThreadPassCount = cfg.get_size_t("SkiplistThreadPassCount",
+                                                    s_nSkiplistThreadPassCount);
+        if (s_nSkiplistThreadPassCount == 0)
+          s_nSkiplistThreadPassCount = 4;
+
+        s_nMaxLoadFactor = cfg.get_size_t("MaxLoadFactor", s_nMaxLoadFactor);
         if ( s_nMaxLoadFactor == 0 )
             s_nMaxLoadFactor = 1;