From 5b45c6523dfbd5611a907a5e121a1e3b41cc0c8d Mon Sep 17 00:00:00 2001 From: Douglas Rumbaugh Date: Mon, 26 Jun 2023 10:22:06 -0400 Subject: Benchmark output format adjustments Benchmarks should now return, insert throughput index size (not counting data arrays) sampling latency static index size static sampling latency --- benchmarks/include/bench.h | 2 +- benchmarks/triespline_rq_bench.cpp | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/benchmarks/include/bench.h b/benchmarks/include/bench.h index db8fc77..b12f3e6 100644 --- a/benchmarks/include/bench.h +++ b/benchmarks/include/bench.h @@ -68,7 +68,7 @@ static bool insert_tput_bench(DE &de_index, std::fstream &file, size_t insert_cn size_t throughput = (((double) (applied_inserts + applied_deletes) / (double) total_time) * 1e9); - fprintf(stdout, "\n%ld\n", throughput); + fprintf(stdout, "%ld\t", throughput); reset_de_perf_metrics(); return continue_benchmark; diff --git a/benchmarks/triespline_rq_bench.cpp b/benchmarks/triespline_rq_bench.cpp index c723830..a61b273 100644 --- a/benchmarks/triespline_rq_bench.cpp +++ b/benchmarks/triespline_rq_bench.cpp @@ -44,12 +44,14 @@ int main(int argc, char **argv) size_t insert_cnt = record_count - warmup_cnt; insert_tput_bench(de, datafile, insert_cnt, delete_prop, to_delete); + fprintf(stdout, "%ld\t", de.get_memory_usage()); query_latency_bench>(de, queries, 1); auto ts = de.create_static_structure(); + fprintf(stdout, "%ld\t", ts->get_memory_usage()); static_latency_bench, Rec, de::ts_range_query_parms, de::TrieSplineRangeQuery>( - ts, queries + ts, queries, 1 ); fprintf(stdout, "\n"); -- cgit v1.2.3