From 7c3fe4ea760f4773f0eb1a98ed3ba493a36015e2 Mon Sep 17 00:00:00 2001 From: Douglas Rumbaugh Date: Wed, 17 Sep 2025 17:52:22 -0400 Subject: Last updates for dissertation --- benchmarks/tail-latency/selectivity_sweep.cpp | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) (limited to 'benchmarks/tail-latency/selectivity_sweep.cpp') diff --git a/benchmarks/tail-latency/selectivity_sweep.cpp b/benchmarks/tail-latency/selectivity_sweep.cpp index 0fc0f42..55b499e 100644 --- a/benchmarks/tail-latency/selectivity_sweep.cpp +++ b/benchmarks/tail-latency/selectivity_sweep.cpp @@ -55,20 +55,24 @@ int main(int argc, char **argv) { query_sets.push_back(generate_uniform_range_queries(100, n, sel)); } - std::vector sfs = {2, 4, 8, 16, 32, 64, 128}; - size_t buffer_size = 8000; - std::vector policies = {0, 1}; + std::vector sfs = {8}; + std::vector stalls = {1}; + std::vector buffer_sizes = {100, 1000, 5000, 10000, 20000, 100000}; + std::vector policies = {0,1,2}; for (auto pol: policies) { for (size_t i=0; i(sfs[i], buffer_size, pol, n); + for (size_t j=0; j(sfs[i], bs, pol, n); auto config = Conf(std::move(policy)); config.recon_enable_maint_on_flush = false; config.recon_maint_disabled = true; - config.buffer_flush_trigger = 4000; + config.buffer_size = bs; + config.buffer_flush_trigger = config.buffer_size; config.maximum_threads = 8; - auto extension = new Ext(std::move(config)); + auto extension = new Ext(std::move(config), stalls[j]); /* warmup structure w/ 10% of records */ size_t warmup = .1 * n; @@ -88,7 +92,7 @@ int main(int argc, char **argv) { for (size_t j=warmup; jinsert(data[j])) { usleep(1); - fprintf(stderr, "insert blocked %ld\r", j); + //fprintf(stderr, "insert blocked %ld\r", j); } } TIMER_STOP(); @@ -105,7 +109,7 @@ int main(int argc, char **argv) { /* repeat the queries a bunch of times */ auto insert_throughput = (size_t) ((double) (n - warmup) / (double) total_insert_lat *1.0e9); - fprintf(stdout, "%ld\t%ld\t%ld\t%ld\t", pol, sfs[i], n, insert_throughput); + fprintf(stdout, "%ld\t%ld\t%ld\t%ld\t%lf\t%ld\t", pol, bs, sfs[i], extension->get_record_count(), stalls[j], insert_throughput); size_t total = 0; for (size_t l=0; l