Amortize cost of searching for continueKey

This commit is contained in:
2024-06-05 10:41:21 -07:00
parent 742f1da722
commit f1d10a1fed
3 changed files with 34 additions and 21 deletions

View File

@@ -8,7 +8,7 @@ void monotonicallyIncreasing() {
ankerl::nanobench::Bench bench;
Facade facade{kWindow + 1};
bench.minEpochIterations(kWindow * 10);
bench.minEpochIterations(kWindow * 20);
bench.warmup(kWindow).run("monotonically increasing", [&] {
const int64_t remove = __builtin_bswap64(facade.getVersion() - kWindow);
@@ -106,4 +106,4 @@ void bulkFirstGeq() {
int main() {
monotonicallyIncreasing();
bulkFirstGeq();
}
}