diff options
| author | Douglas Rumbaugh <dbr4@psu.edu> | 2025-02-14 16:25:09 -0500 |
|---|---|---|
| committer | Douglas Rumbaugh <dbr4@psu.edu> | 2025-02-14 16:25:09 -0500 |
| commit | 78ecacfa46f6418fca7562cda8e79c766ddf7191 (patch) | |
| tree | 06fa8e0ff372857b51b54852ff86535c87bb8c5a | |
| parent | ffbca7e200d8e7937592cd4a70d41f4d6ed9cb65 (diff) | |
| download | dynamic-extension-78ecacfa46f6418fca7562cda8e79c766ddf7191.tar.gz | |
Retooled dist benchmark to actually print dist info
| -rw-r--r-- | benchmarks/tail-latency/standard_latency_dist.cpp | 15 |
1 files 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; j<data.size(); j++) { + TIMER_START(); while (!extension->insert(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; j<queries.size(); j++) { + TIMER_START(); auto q = queries[j]; auto res = extension->query(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; } |