Commit 7917c19d authored by Philipp Götze's avatar Philipp Götze
Browse files

🐞 Quick fix - adapted erase benchmark to fit with common file

parent 7878b2b4
Pipeline #674 passed with stages
in 6 minutes and 44 seconds
...@@ -102,16 +102,16 @@ static void BM_TreeErase(benchmark::State &state) { ...@@ -102,16 +102,16 @@ static void BM_TreeErase(benchmark::State &state) {
treeRef.eraseFromLeafNodeAtPosition(leafNode, pos, KEYPOS); treeRef.eraseFromLeafNodeAtPosition(leafNode, pos, KEYPOS);
//}); //});
// pop.flush(leafRef.numKeys); pop.flush(leafRef.numKeys);
pop.flush(leafRef.bits); // pop.flush(leafRef.bits);
// pop.flush(&leafRef.slot.get_ro(), // pop.flush(&leafRef.slot.get_ro(),
// sizeof(leafRef.slot.get_ro()) + sizeof(leafRef.bits.get_ro())); // sizeof(leafRef.slot.get_ro()) + sizeof(leafRef.bits.get_ro()));
// pop.flush(&leafRef.bits.get_ro(), // pop.flush(&leafRef.bits.get_ro(),
// sizeof(leafRef.bits.get_ro()) + sizeof(leafRef.fp.get_ro())); // sizeof(leafRef.bits.get_ro()) + sizeof(leafRef.fp.get_ro()));
// pop.flush(&leafRef.keys.get_ro()[pos], sizeof(MyKey)); // pop.flush(&leafRef.keys.get_ro()[pos], sizeof(MyKey));
// pop.flush(&leafRef.values.get_ro()[pos], sizeof(MyTuple)); // pop.flush(&leafRef.values.get_ro()[pos], sizeof(MyTuple));
// pop.flush(&leafRef.keys.get_ro()[pos], (LEAFKEYS - 1 - pos) * sizeof(MyKey)); pop.flush(&leafRef.keys.get_ro()[pos], (LEAFKEYS - 1 - pos) * sizeof(MyKey));
// pop.flush(&leafRef.values.get_ro()[pos], (LEAFKEYS - 1 - pos) * sizeof(MyTuple)); pop.flush(&leafRef.values.get_ro()[pos], (LEAFKEYS - 1 - pos) * sizeof(MyTuple));
pop.drain(); pop.drain();
// leafNode.persist(pop); // leafNode.persist(pop);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment