summaryrefslogtreecommitdiffstats
path: root/benchmarks/include/bench.h
diff options
context:
space:
mode:
authorDouglas Rumbaugh <dbr4@psu.edu>2023-07-23 14:17:38 -0400
committerDouglas Rumbaugh <dbr4@psu.edu>2023-07-23 14:17:38 -0400
commitfc8b4c14bd2814447b5d3180c4ecf3742196c6bf (patch)
tree0496dfead96639d2813f0a364f92dec0d7871cde /benchmarks/include/bench.h
parent4c616412f938bc06a12e7526c4e314e4451c083c (diff)
downloaddynamic-extension-fc8b4c14bd2814447b5d3180c4ecf3742196c6bf.tar.gz
Benchmarking updates
Diffstat (limited to 'benchmarks/include/bench.h')
-rw-r--r--benchmarks/include/bench.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/benchmarks/include/bench.h b/benchmarks/include/bench.h
index 3e1c6b2..e0f4c1d 100644
--- a/benchmarks/include/bench.h
+++ b/benchmarks/include/bench.h
@@ -12,7 +12,7 @@
template <typename DE, de::RecordInterface R, bool PROGRESS=true, size_t BATCH=1000>
static bool insert_tput_bench(DE &de_index, std::fstream &file, size_t insert_cnt,
- double delete_prop, std::vector<R> &to_delete) {
+ double delete_prop, std::vector<R> &to_delete, bool binary=false) {
size_t delete_cnt = insert_cnt * delete_prop;
@@ -31,7 +31,7 @@ static bool insert_tput_bench(DE &de_index, std::fstream &file, size_t insert_cn
size_t total_time = 0;
while (applied_inserts < insert_cnt && continue_benchmark) {
- continue_benchmark = build_insert_vec(file, insert_vec, BATCH, delete_prop, to_delete);
+ continue_benchmark = build_insert_vec(file, insert_vec, BATCH, delete_prop, to_delete, binary);
if (applied_deletes < delete_cnt) {
build_delete_vec(to_delete, delete_vec, BATCH*delete_prop);
delete_idx = 0;
@@ -104,7 +104,6 @@ static bool query_latency_bench(DE &de_index, std::vector<QP> queries, size_t tr
size_t query_latency = total_time / (trial_cnt * queries.size());
fprintf(stdout, "%ld\t", query_latency);
- fprintf(stderr, "%ld\n", total_results);
fflush(stdout);
return true;
@@ -146,7 +145,6 @@ static bool static_latency_bench(Shard *shard, std::vector<QP> queries, size_t t
size_t query_latency = total_time / (trial_cnt * queries.size());
fprintf(stdout, "%ld\t", query_latency);
- fprintf(stderr, "%ld\n", total_results);
fflush(stdout);
return true;