Skip to content

Commit 5d0c46f

Browse files
author
Ziqi Wang
committed
Adding btreertm as one of the available option
1 parent d780097 commit 5d0c46f

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

util.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ Index<KeyType, KeyComparator> *getInstance(const int type, const uint64_t kt) {
6060
return new BTreeOLCIndex<KeyType, KeyComparator>(kt);
6161
else if (type == TYPE_SKIPLIST)
6262
return new SkipListIndex<KeyType, KeyComparator>(kt);
63+
else if (type == TYPE_BTREERTM)
64+
return new BTreeRTMIndex<KeyType, KeyComparator>(kt);
6365
else {
6466
fprintf(stderr, "Unknown index type: %d\n", type);
6567
exit(1);

workload.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,7 @@ int main(int argc, char *argv[]) {
568568
std::cout << " \"none\" type means we just load the file and exit. \n"
569569
"This serves as the base line for microbenchamrks\n";
570570
std::cout << "2. key distribution: rand, mono\n";
571-
std::cout << "3. index type: bwtree skiplist masstree artolc btreeolc\n";
571+
std::cout << "3. index type: bwtree skiplist masstree artolc btreeolc btreertm\n";
572572
std::cout << "4. number of threads (integer)\n";
573573
std::cout << " --hyper: Whether to pin all threads on NUMA node 0\n";
574574
std::cout << " --mem: Whether to monitor memory access\n";
@@ -615,6 +615,8 @@ int main(int argc, char *argv[]) {
615615
index_type = TYPE_BTREEOLC;
616616
else if (strcmp(argv[3], "skiplist") == 0)
617617
index_type = TYPE_SKIPLIST;
618+
else if (strcmp(argv[3], "btreertm") == 0)
619+
index_type = TYPE_BTREERTM;
618620
else if (strcmp(argv[3], "none") == 0)
619621
// This is a special type used for measuring base cost (i.e.
620622
// only loading the workload files but do not invoke the index)

0 commit comments

Comments
 (0)