Adjusts sequential map test cases
[libcds.git] / test / stress / sequential / sequential-map / insdelfind / map_insdelfind.cpp
index ea0c970445da33f666c7196fa2ee1378706dafe1..63fe8762258a064df5b5d90d3de1cd127e5374a9 100644 (file)
@@ -34,6 +34,15 @@ namespace map {
 
     size_t Map_InsDelFind::s_nMapSize = 500000;
     size_t Map_InsDelFind::s_nThreadCount = 8;
+
+    size_t Map_InsDelFind::s_nPassCount = 100;
+    size_t Map_InsDelFind::s_nFeldmanPassCount = 100;
+    size_t Map_InsDelFind::s_nBronsonAVLTreeMapPassCount = 100;
+    size_t Map_InsDelFind::s_nEllenBinTreeMapPassCount = 100;
+    size_t Map_InsDelFind::s_nMichaelMapPassCount = 100;
+    size_t Map_InsDelFind::s_nSkipListMapPassCount = 100;
+    size_t Map_InsDelFind::s_nSplitListMapPassCount = 100;
+
     size_t Map_InsDelFind::s_nMaxLoadFactor = 8;
     unsigned int Map_InsDelFind::s_nInsertPercentage = 5;
     unsigned int Map_InsDelFind::s_nDeletePercentage = 5;
@@ -52,7 +61,7 @@ namespace map {
 
     void Map_InsDelFind::SetUpTestCase()
     {
-        cds_test::config const& cfg = get_config( "map_insdelfind" );
+        cds_test::config const& cfg = get_config( "sequential_real_map_insdelfind" );
 
         s_nMapSize = cfg.get_size_t( "InitialMapSize", s_nMapSize );
         if ( s_nMapSize < 1000 )
@@ -62,6 +71,41 @@ namespace map {
         if ( s_nThreadCount == 0 )
             s_nThreadCount = std::min( 16u, std::thread::hardware_concurrency() * 2 );
 
+        s_nPassCount =
+            cfg.get_size_t("PassCount", s_nPassCount);
+        if (s_nPassCount == 0)
+          s_nPassCount = 500;
+
+        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_nMaxLoadFactor = cfg.get_size_t( "MaxLoadFactor", s_nMaxLoadFactor );
         if ( s_nMaxLoadFactor == 0 )
             s_nMaxLoadFactor = 1;