Start facade past window in bench
This commit is contained in:
@@ -5,7 +5,7 @@
|
|||||||
void monotonicallyIncreasing() {
|
void monotonicallyIncreasing() {
|
||||||
constexpr int kWindow = 1000;
|
constexpr int kWindow = 1000;
|
||||||
ankerl::nanobench::Bench bench;
|
ankerl::nanobench::Bench bench;
|
||||||
Facade facade{0};
|
Facade facade{kWindow + 1};
|
||||||
|
|
||||||
bench.minEpochIterations(kWindow * 10);
|
bench.minEpochIterations(kWindow * 10);
|
||||||
|
|
||||||
@@ -20,8 +20,7 @@ void monotonicallyIncreasing() {
|
|||||||
};
|
};
|
||||||
facade.addMutations(mutations, sizeof(mutations) / sizeof(mutations[0]),
|
facade.addMutations(mutations, sizeof(mutations) / sizeof(mutations[0]),
|
||||||
facade.getVersion() + 1);
|
facade.getVersion() + 1);
|
||||||
facade.setOldestVersion(
|
facade.setOldestVersion(facade.getVersion() - kWindow);
|
||||||
std::max<int64_t>(0, facade.getVersion() - kWindow));
|
|
||||||
});
|
});
|
||||||
|
|
||||||
const auto v = facade.getVersion() - kWindow / 2;
|
const auto v = facade.getVersion() - kWindow / 2;
|
||||||
|
Reference in New Issue
Block a user