diff options
| author | Douglas Rumbaugh <dbr4@psu.edu> | 2025-06-02 19:54:15 -0400 |
|---|---|---|
| committer | Douglas Rumbaugh <dbr4@psu.edu> | 2025-06-02 19:54:15 -0400 |
| commit | 6088ede2b5a8f580f78d4422162d423a7a11f520 (patch) | |
| tree | 9124cab872af7a02209c3af758d4a4bf95b1aa26 /benchmarks/tail-latency/fixed_shard_count.cpp | |
| parent | 7f0acb5dc66cc93045ab0e40ebd5570388f9102b (diff) | |
| download | dynamic-extension-6088ede2b5a8f580f78d4422162d423a7a11f520.tar.gz | |
updates
Diffstat (limited to 'benchmarks/tail-latency/fixed_shard_count.cpp')
| -rw-r--r-- | benchmarks/tail-latency/fixed_shard_count.cpp | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/benchmarks/tail-latency/fixed_shard_count.cpp b/benchmarks/tail-latency/fixed_shard_count.cpp index e980bcf..45c62fb 100644 --- a/benchmarks/tail-latency/fixed_shard_count.cpp +++ b/benchmarks/tail-latency/fixed_shard_count.cpp @@ -2,6 +2,7 @@ * */ +#include "framework/scheduling/SerialScheduler.h" #define ENABLE_TIMER #define TS_TEST @@ -9,8 +10,9 @@ #include "framework/DynamicExtension.h" #include "framework/scheduling/FIFOScheduler.h" -#include "shard/TrieSpline.h" +#include "shard/ISAMTree.h" #include "query/rangecount.h" +#include "framework/util/Configuration.h" #include "framework/interface/Record.h" #include "file_util.h" #include "standard_benchmarks.h" @@ -23,10 +25,11 @@ typedef de::Record<uint64_t, uint64_t> Rec; -typedef de::TrieSpline<Rec> Shard; +typedef de::ISAMTree<Rec> Shard; typedef de::rc::Query<Shard> Q; -typedef de::DynamicExtension<Shard, Q, de::DeletePolicy::TOMBSTONE, de::FIFOScheduler> Ext; +typedef de::DynamicExtension<Shard, Q, de::DeletePolicy::TOMBSTONE, de::SerialScheduler> Ext; typedef Q::Parameters QP; +typedef de::DEConfiguration<Shard, Q, de::DeletePolicy::TOMBSTONE, de::SerialScheduler> Conf; void usage(char *progname) { fprintf(stderr, "%s reccnt datafile queryfile\n", progname); @@ -52,10 +55,16 @@ int main(int argc, char **argv) { for (size_t i=0; i<shard_counts.size(); i++) { auto policy = get_policy<Shard, Q>(shard_counts[i], buffer_size, 4, n); - auto extension = new Ext(std::move(policy)); + auto config = Conf(std::move(policy)); + config.recon_enable_maint_on_flush = false; + config.recon_maint_disabled = true; + config.buffer_flush_trigger = 4000; + config.maximum_threads = 8; + + auto extension = new Ext(std::move(config)); /* warmup structure w/ 10% of records */ - size_t warmup = .1 * n; + size_t warmup = .3 * n; for (size_t i=0; i<warmup; i++) { while (!extension->insert(data[i])) { usleep(1); |