3 #include "map2/map_insdel_int.h"
6 CPPUNIT_TEST_SUITE_REGISTRATION( Map_InsDel_int );
8 size_t Map_InsDel_int::c_nMapSize = 1000000;
9 size_t Map_InsDel_int::c_nInsertThreadCount = 4;
10 size_t Map_InsDel_int::c_nDeleteThreadCount = 4;
11 size_t Map_InsDel_int::c_nThreadPassCount = 4;
12 size_t Map_InsDel_int::c_nMaxLoadFactor = 8;
13 bool Map_InsDel_int::c_bPrintGCState = true;
16 void Map_InsDel_int::setUpParams( const CppUnitMini::TestCfg& cfg ) {
17 c_nInsertThreadCount = cfg.getSizeT("InsertThreadCount", c_nInsertThreadCount );
18 c_nDeleteThreadCount = cfg.getSizeT("DeleteThreadCount", c_nDeleteThreadCount );
19 c_nThreadPassCount = cfg.getSizeT("ThreadPassCount", c_nThreadPassCount );
20 c_nMapSize = cfg.getSizeT("MapSize", c_nMapSize );
21 c_nMaxLoadFactor = cfg.getSizeT("MaxLoadFactor", c_nMaxLoadFactor );
22 c_bPrintGCState = cfg.getBool("PrintGCStateFlag", c_bPrintGCState );
25 void Map_InsDel_int::myRun(const char *in_name, bool invert /*= false*/)
27 setUpParams( m_Cfg.get( "Map_InsDel_int" ));
29 run_MichaelMap(in_name, invert);
30 run_SplitList(in_name, invert);
31 run_SkipListMap(in_name, invert);
32 run_EllenBinTreeMap(in_name, invert);
33 run_BronsonAVLTreeMap(in_name, invert);
34 run_StripedMap(in_name, invert);
35 run_RefinableMap(in_name, invert);
36 run_CuckooMap(in_name, invert);