X-Git-Url: http://plrg.eecs.uci.edu/git/?p=libcds.git;a=blobdiff_plain;f=tests%2Funit%2Fmap2%2Fmap_delodd.cpp;fp=tests%2Funit%2Fmap2%2Fmap_delodd.cpp;h=7a3b1dde61f6728d4181547d8e886c6586548135;hp=7c65caf29cdee2cf18d7e52e3bc2b32079b9b7a9;hb=bb3ab6816ad59712e8f425c787bae156dc3d51f4;hpb=6e91431b002dbc4c387dd6d9dbaa3f15f9cdaa41 diff --git a/tests/unit/map2/map_delodd.cpp b/tests/unit/map2/map_delodd.cpp index 7c65caf2..7a3b1dde 100644 --- a/tests/unit/map2/map_delodd.cpp +++ b/tests/unit/map2/map_delodd.cpp @@ -5,12 +5,12 @@ namespace map2 { CPPUNIT_TEST_SUITE_REGISTRATION( Map_DelOdd ); - size_t Map_DelOdd::c_nMapSize = 1000000 ; // max map size - size_t Map_DelOdd::c_nInsThreadCount = 4 ; // insert thread count - size_t Map_DelOdd::c_nDelThreadCount = 4 ; // delete thread count - size_t Map_DelOdd::c_nExtractThreadCount = 4 ; // extract thread count - size_t Map_DelOdd::c_nMaxLoadFactor = 8 ; // maximum load factor - bool Map_DelOdd::c_bPrintGCState = true; + //size_t Map_DelOdd::c_nMapSize = 1000000 ; // max map size + //size_t Map_DelOdd::c_nInsThreadCount = 4 ; // insert thread count + //size_t Map_DelOdd::c_nDelThreadCount = 4 ; // delete thread count + //size_t Map_DelOdd::c_nExtractThreadCount = 4 ; // extract thread count + //size_t Map_DelOdd::c_nMaxLoadFactor = 8 ; // maximum load factor + //bool Map_DelOdd::c_bPrintGCState = true; void Map_DelOdd::setUpParams( const CppUnitMini::TestCfg& cfg ) { c_nMapSize = cfg.getULong("MapSize", static_cast(c_nMapSize) ); @@ -19,6 +19,9 @@ namespace map2 { c_nExtractThreadCount = cfg.getULong("ExtractThreadCount", static_cast(c_nExtractThreadCount) ); c_nMaxLoadFactor = cfg.getULong("MaxLoadFactor", static_cast(c_nMaxLoadFactor) ); c_bPrintGCState = cfg.getBool("PrintGCStateFlag", true ); + c_nMultiLevelMap_HeadBits = cfg.getULong("MultiLevelMap_HeadBits", static_cast(c_nMultiLevelMap_HeadBits) ); + c_nMultiLevelMap_ArrayBits = cfg.getULong("MultiLevelMap_ArrayBits", static_cast(c_nMultiLevelMap_ArrayBits) ); + if ( c_nInsThreadCount == 0 ) c_nInsThreadCount = cds::OS::topology::processor_count(); @@ -37,21 +40,4 @@ namespace map2 { shuffle( m_arrRemove.begin(), m_arrRemove.end() ); } - void Map_DelOdd::myRun(const char *in_name, bool invert /*= false*/) - { - setUpParams( m_Cfg.get( "Map_DelOdd" )); - - run_MichaelMap(in_name, invert); - run_SplitList(in_name, invert); - run_SkipListMap(in_name, invert); - run_EllenBinTreeMap(in_name, invert); - run_BronsonAVLTreeMap(in_name, invert); - //run_StripedMap(in_name, invert); - //run_RefinableMap(in_name, invert); - run_CuckooMap(in_name, invert); - //run_StdMap(in_name, invert); - - endTestCase(); - } - } // namespace map2