Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
code
PMem-based Data Structures
Commits
7917c19d
Commit
7917c19d
authored
Jun 15, 2020
by
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
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
bench/trees/tree_erase.cpp
View file @
7917c19d
...
...
@@ -102,16 +102,16 @@ static void BM_TreeErase(benchmark::State &state) {
treeRef
.
eraseFromLeafNodeAtPosition
(
leafNode
,
pos
,
KEYPOS
);
//});
//
pop.flush(leafRef.numKeys);
pop
.
flush
(
leafRef
.
bits
);
pop
.
flush
(
leafRef
.
numKeys
);
//
pop.flush(leafRef.bits);
// pop.flush(&leafRef.slot.get_ro(),
// sizeof(leafRef.slot.get_ro()) + sizeof(leafRef.bits.get_ro()));
// pop.flush(&leafRef.bits.get_ro(),
// sizeof(leafRef.bits.get_ro()) + sizeof(leafRef.fp.get_ro()));
// pop.flush(&leafRef.keys.get_ro()[pos], sizeof(MyKey));
// pop.flush(&leafRef.values.get_ro()[pos], sizeof(MyTuple));
//
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
.
keys
.
get_ro
()[
pos
],
(
LEAFKEYS
-
1
-
pos
)
*
sizeof
(
MyKey
));
pop
.
flush
(
&
leafRef
.
values
.
get_ro
()[
pos
],
(
LEAFKEYS
-
1
-
pos
)
*
sizeof
(
MyTuple
));
pop
.
drain
();
// leafNode.persist(pop);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment