test: perf_row_cache_update: Drain background cleaner before starting the test

This commit is contained in:
Tomasz Grabiec
2022-06-29 17:31:01 +02:00
parent 5d4bd5d6d5
commit daf0f041be

View File

@@ -56,6 +56,11 @@ void run_test(const sstring& name, schema_ptr s, MutationGenerator&& gen) {
});
std::cout << format("Memtable fill took {:.6f} [ms]", fill_d.count() * 1000) << std::endl;
std::cout << "Draining..." << std::endl;
auto drain_d = duration_in_seconds([&] {
mt->cleaner().drain().get();
});
std::cout << format("took {:.6f} [ms]", drain_d.count() * 1000) << std::endl;
auto prev_compacted = logalloc::memory_compacted();
auto prev_allocated = logalloc::memory_allocated();