Test working directory set to the binary output directory in order to
[libcds.git] / tests / unit / map2 / map_insdel_string.cpp
1 //$$CDS-header$$
2
3 #include "map2/map_insdel_string.h"
4
5 namespace map2 {
6     CPPUNIT_TEST_SUITE_REGISTRATION( Map_InsDel_string );
7
8     void Map_InsDel_string::setUpParams( const CppUnitMini::TestCfg& cfg )
9     {
10         c_nInsertThreadCount = cfg.getSizeT("InsertThreadCount", c_nInsertThreadCount );
11         c_nDeleteThreadCount = cfg.getSizeT("DeleteThreadCount", c_nDeleteThreadCount );
12         c_nThreadPassCount = cfg.getSizeT("ThreadPassCount", c_nThreadPassCount );
13         c_nMapSize = cfg.getSizeT("MapSize", c_nMapSize );
14         c_nMaxLoadFactor = cfg.getSizeT("MaxLoadFactor", c_nMaxLoadFactor );
15         c_bPrintGCState = cfg.getBool("PrintGCStateFlag", c_bPrintGCState );
16
17         c_nCuckooInitialSize = cfg.getSizeT("CuckooInitialSize", c_nCuckooInitialSize);
18         c_nCuckooProbesetSize = cfg.getSizeT("CuckooProbesetSize", c_nCuckooProbesetSize);
19         c_nCuckooProbesetThreshold = cfg.getSizeT("CuckooProbesetThreshold", c_nCuckooProbesetThreshold);
20
21         c_nFeldmanMap_HeadBits = cfg.getSizeT("FeldmanMapHeadBits", c_nFeldmanMap_HeadBits);
22         c_nFeldmanMap_ArrayBits = cfg.getSizeT("FeldmanMapArrayBits", c_nFeldmanMap_ArrayBits);
23
24         if ( c_nInsertThreadCount == 0 )
25             c_nInsertThreadCount = std::thread::hardware_concurrency();
26         if ( c_nDeleteThreadCount == 0 )
27             c_nDeleteThreadCount = std::thread::hardware_concurrency();
28     }
29 } // namespace map2