diff options
| author | Douglas Rumbaugh <dbr4@psu.edu> | 2023-06-26 10:22:06 -0400 |
|---|---|---|
| committer | Douglas Rumbaugh <dbr4@psu.edu> | 2023-06-26 10:22:06 -0400 |
| commit | 5b45c6523dfbd5611a907a5e121a1e3b41cc0c8d (patch) | |
| tree | 3ffc2bb98746c302fe8d8fe0e1f90cb2fe553a4a /benchmarks | |
| parent | 93f91df96053d47571204734b71d280b8ef56515 (diff) | |
| download | dynamic-extension-5b45c6523dfbd5611a907a5e121a1e3b41cc0c8d.tar.gz | |
Benchmark output format adjustments
Benchmarks should now return,
insert throughput
index size (not counting data arrays)
sampling latency
static index size
static sampling latency
Diffstat (limited to 'benchmarks')
| -rw-r--r-- | benchmarks/include/bench.h | 2 | ||||
| -rw-r--r-- | 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<ExtendedTSRQ, Rec>(de, datafile, insert_cnt, delete_prop, to_delete); + fprintf(stdout, "%ld\t", de.get_memory_usage()); query_latency_bench<ExtendedTSRQ, Rec, de::ts_range_query_parms<Rec>>(de, queries, 1); auto ts = de.create_static_structure(); + fprintf(stdout, "%ld\t", ts->get_memory_usage()); static_latency_bench<de::TrieSpline<Rec>, Rec, de::ts_range_query_parms<Rec>, de::TrieSplineRangeQuery<Rec>>( - ts, queries + ts, queries, 1 ); fprintf(stdout, "\n"); |