summaryrefslogtreecommitdiffstats
path: root/benchmarks/include
diff options
context:
space:
mode:
authorDouglas B. Rumbaugh <doug@douglasrumbaugh.com>2024-12-06 16:54:05 -0500
committerDouglas B. Rumbaugh <doug@douglasrumbaugh.com>2024-12-06 16:54:05 -0500
commit9876d74e503df64eb9e82e540ca41fcf593ebf64 (patch)
tree3512690afa8c04f702bd8de500bf8f41b05571c4 /benchmarks/include
parente2b81a2d311470d503edae93e68e82791f6bb17c (diff)
downloaddynamic-extension-master.tar.gz
Adjusted query result interfacesHEADmaster
Now, the vector<> is part of the user-defined type, not required by the framework. This should allow for more flexibility in either using alternative containers, or for more sensible implementations of queries with single value results (like range count).
Diffstat (limited to 'benchmarks/include')
-rw-r--r--benchmarks/include/standard_benchmarks.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/benchmarks/include/standard_benchmarks.h b/benchmarks/include/standard_benchmarks.h
index 797b0c5..d3408c1 100644
--- a/benchmarks/include/standard_benchmarks.h
+++ b/benchmarks/include/standard_benchmarks.h
@@ -55,17 +55,15 @@ static void run_queries(DE *extension, std::vector<typename Q::Parameters> &quer
itr++;
}
}else if constexpr (std::is_same_v<PGM, DE>) {
- size_t tot = 0;
auto ptr = extension->find(queries[i].lower_bound);
while (ptr != extension->end() && ptr->first <= queries[i].upper_bound) {
- tot++;
++ptr;
}
} else {
auto q = queries[i];
auto res = extension->query(std::move(q));
if constexpr (!BSM) {
- auto result = res.get();
+ [[maybe_unused]] auto result = res.get();
#ifdef BENCH_PRINT_RESULTS
fprintf(stdout, "\n\n");
for (int i=result.size()-1; i>=0; i--) {
@@ -111,7 +109,7 @@ static void run_static_queries(S *shard, std::vector<typename Q::Parameters> &qu
std::vector<typename Q::LocalQuery*> local_queries = {Q::local_preproc(shard, q)};
Q::distribute_query(q, local_queries, nullptr);
- auto res = Q::local_query(shard, local_queries[0]);
+ [[maybe_unused]] auto res = Q::local_query(shard, local_queries[0]);
#ifdef BENCH_PRINT_RESULTS
fprintf(stdout, "\n\n");