3 #include "map2/map_insdel_item_string.h"
6 CPPUNIT_TEST_SUITE_REGISTRATION( Map_InsDel_Item_string );
8 void Map_InsDel_Item_string::setUpParams( const CppUnitMini::TestCfg& cfg )
10 c_nThreadCount = cfg.getSizeT("ThreadCount", c_nThreadCount );
11 c_nMapSize = cfg.getSizeT("MapSize", c_nMapSize );
12 c_nGoalItem = cfg.getSizeT("GoalItem", c_nMapSize / 2 );
13 c_nAttemptCount = cfg.getSizeT("AttemptCount", c_nAttemptCount );
14 c_nMaxLoadFactor = cfg.getSizeT("MaxLoadFactor", c_nMaxLoadFactor );
15 c_bPrintGCState = cfg.getBool("PrintGCStateFlag", true );
17 c_nCuckooInitialSize = cfg.getSizeT("CuckooInitialSize", c_nCuckooInitialSize);
18 c_nCuckooProbesetSize = cfg.getSizeT("CuckooProbesetSize", c_nCuckooProbesetSize);
19 c_nCuckooProbesetThreshold = cfg.getSizeT("CuckooProbesetThreshold", c_nCuckooProbesetThreshold);
21 c_nFeldmanMap_HeadBits = cfg.getSizeT("FeldmanMapHeadBits", c_nFeldmanMap_HeadBits);
22 c_nFeldmanMap_ArrayBits = cfg.getSizeT("FeldmanMapArrayBits", c_nFeldmanMap_ArrayBits);
24 if ( c_nThreadCount == 0 )
25 c_nThreadCount = std::thread::hardware_concurrency() * 2;