From fbe7dcdce1f7c81248c7086cac5d3f6a375b0c42 Mon Sep 17 00:00:00 2001 From: Douglas Rumbaugh Date: Wed, 29 Oct 2025 11:50:51 -0400 Subject: Updates for dynamic rate limiting --- benchmarks/tail-latency/isam_latency_dist.cpp | 40 +++++++++++++-------------- 1 file changed, 20 insertions(+), 20 deletions(-) (limited to 'benchmarks/tail-latency/isam_latency_dist.cpp') diff --git a/benchmarks/tail-latency/isam_latency_dist.cpp b/benchmarks/tail-latency/isam_latency_dist.cpp index c116413..e9faa47 100644 --- a/benchmarks/tail-latency/isam_latency_dist.cpp +++ b/benchmarks/tail-latency/isam_latency_dist.cpp @@ -25,10 +25,10 @@ typedef de::Record Rec; typedef de::ISAMTreeShard; typedef de::rc::Query Q; -typedef de::DynamicExtension Ext; +typedef de::DynamicExtension Ext; typedef Q::Parameters QP; typedef de::DEConfiguration + de::FIFOScheduler> Conf; void usage(char *progname) { @@ -50,9 +50,9 @@ int main(int argc, char **argv) { auto data = read_sosd_file(d_fname, n); auto queries = read_range_queries(q_fname, .0001); - std::vector policies = {0, 1}; - std::vector buffers = {1000, 8000, 16000}; - std::vector sfs = {4}; + std::vector policies = {6}; + std::vector buffers = {12000}; + std::vector sfs = {3}; for (size_t l=0; lawait_version(); - /* repeat the queries a bunch of times */ - for (size_t l=0; l<10; l++) { - for (size_t i=0; iquery(std::move(q)); - res.get(); - TIMER_STOP(); + // /* repeat the queries a bunch of times */ + // for (size_t l=0; l<10; l++) { + // for (size_t i=0; iquery(std::move(q)); + // res.get(); + // TIMER_STOP(); - fprintf(stdout, "Q\t%ld\t%ld\t%d\t%ld\n", sfs[k], buffers[j], policies[l], TIMER_RESULT()); - } - } + // fprintf(stdout, "Q\t%ld\t%ld\t%d\t%ld\n", sfs[k], buffers[j], policies[l], TIMER_RESULT()); + // } + // } - QP p = {0, 10000}; - auto res =extension->query(std::move(p)); + // QP p = {0, 10000}; + // auto res =extension->query(std::move(p)); - fprintf(stderr, "%ld\n", res.get()); + // fprintf(stderr, "%ld\n", res.get()); delete extension; }}} -- cgit v1.2.3