diff options
| author | Douglas B. Rumbaugh <doug@douglasrumbaugh.com> | 2024-12-06 16:54:05 -0500 |
|---|---|---|
| committer | Douglas B. Rumbaugh <doug@douglasrumbaugh.com> | 2024-12-06 16:54:05 -0500 |
| commit | 9876d74e503df64eb9e82e540ca41fcf593ebf64 (patch) | |
| tree | 3512690afa8c04f702bd8de500bf8f41b05571c4 /benchmarks | |
| parent | e2b81a2d311470d503edae93e68e82791f6bb17c (diff) | |
| download | dynamic-extension-master.tar.gz | |
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')
| -rw-r--r-- | benchmarks/include/standard_benchmarks.h | 6 | ||||
| -rw-r--r-- | benchmarks/vldb/ts_parmsweep.cpp | 2 |
2 files changed, 3 insertions, 5 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"); diff --git a/benchmarks/vldb/ts_parmsweep.cpp b/benchmarks/vldb/ts_parmsweep.cpp index a9203ab..0141c53 100644 --- a/benchmarks/vldb/ts_parmsweep.cpp +++ b/benchmarks/vldb/ts_parmsweep.cpp @@ -18,7 +18,7 @@ typedef de::Record<uint64_t, uint64_t> Rec; typedef de::TrieSpline<Rec> Shard; -typedef de::rc::Query<Shard, true> Q; +typedef de::rc::Query<Shard> Q; typedef de::DynamicExtension<Shard, Q, de::LayoutPolicy::TEIRING, de::DeletePolicy::TOMBSTONE, de::SerialScheduler> Ext; typedef de::DynamicExtension<Shard, Q, de::LayoutPolicy::LEVELING, de::DeletePolicy::TOMBSTONE, de::SerialScheduler> Ext2; typedef Q::Parameters QP; |