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;
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 )
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;