3 #include "map2/map_insfind_int.h"
6 CPPUNIT_TEST_SUITE_REGISTRATION( Map_InsFind_int );
8 void Map_InsFind_int::setUpParams( const CppUnitMini::TestCfg& cfg )
10 c_nThreadCount = cfg.getSizeT("ThreadCount", c_nThreadCount );
11 c_nMapSize = cfg.getSizeT("MapSize", c_nMapSize);
12 c_nMaxLoadFactor = cfg.getSizeT("MaxLoadFactor", c_nMaxLoadFactor);
13 c_bPrintGCState = cfg.getBool("PrintGCStateFlag", c_bPrintGCState );
15 c_nCuckooInitialSize = cfg.getSizeT("CuckooInitialSize", c_nCuckooInitialSize);
16 c_nCuckooProbesetSize = cfg.getSizeT("CuckooProbesetSize", c_nCuckooProbesetSize);
17 c_nCuckooProbesetThreshold = cfg.getSizeT("CuckooProbesetThreshold", c_nCuckooProbesetThreshold);
19 c_nFeldmanMap_HeadBits = cfg.getSizeT("FeldmanMapHeadBits", c_nFeldmanMap_HeadBits);
20 c_nFeldmanMap_ArrayBits = cfg.getSizeT("FeldmanMapArrayBits", c_nFeldmanMap_ArrayBits);
22 if ( c_nThreadCount == 0 )
23 c_nThreadCount = std::thread::hardware_concurrency();