From 78ecacfa46f6418fca7562cda8e79c766ddf7191 Mon Sep 17 00:00:00 2001 From: Douglas Rumbaugh Date: Fri, 14 Feb 2025 16:25:09 -0500 Subject: Retooled dist benchmark to actually print dist info --- benchmarks/tail-latency/standard_latency_dist.cpp | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/benchmarks/tail-latency/standard_latency_dist.cpp b/benchmarks/tail-latency/standard_latency_dist.cpp index 7cce48c..2b1ca68 100644 --- a/benchmarks/tail-latency/standard_latency_dist.cpp +++ b/benchmarks/tail-latency/standard_latency_dist.cpp @@ -76,33 +76,32 @@ int main(int argc, char **argv) { TIMER_INIT(); - TIMER_START(); for (size_t j=warmup; jinsert(data[j])) { usleep(1); } + TIMER_STOP(); + fprintf(stdout, "I\t%ld\n", TIMER_RESULT()); } - TIMER_STOP(); - - size_t insert_tput = (double) (n - warmup) / (double) (TIMER_RESULT()) * 1e9; extension->await_version(); size_t total = 0; - TIMER_START(); /* repeat the queries a bunch of times */ for (size_t l=0; l<10; l++) { for (size_t j=0; jquery(std::move(q)); total += res.get(); + TIMER_STOP(); + fprintf(stdout, "Q\t%ld\n", TIMER_RESULT()); } } - TIMER_STOP(); - size_t query_lat = (double) TIMER_RESULT() / (10*queries.size()); + fprintf(stderr, "%ld\n", total); - fprintf(stdout, "S\t%ld\t%ld\t%ld\t%ld\t%ld\t%ld\t%ld\t%ld\n", pol, sfs[i], extension->get_height(), extension->get_shard_count(), extension->get_record_count(), total, insert_tput, query_lat); extension->print_structure(); delete extension; } -- cgit v1.2.3