diff options
| author | Douglas Rumbaugh <dbr4@psu.edu> | 2025-02-24 11:14:52 -0500 |
|---|---|---|
| committer | Douglas Rumbaugh <dbr4@psu.edu> | 2025-02-24 11:14:52 -0500 |
| commit | d116b94389538aa8e0e7354fae77693b980de4f0 (patch) | |
| tree | 918e29a6734c726f398f2d06894fdb42d9752fa9 /benchmarks/tail-latency/mixed_workload.cpp | |
| parent | 40fe2e7ea56d49a065a4a53b7f8a4a918a5d78b0 (diff) | |
| download | dynamic-extension-d116b94389538aa8e0e7354fae77693b980de4f0.tar.gz | |
Query Preemption: still has one or two bugs, but mostly works
Diffstat (limited to 'benchmarks/tail-latency/mixed_workload.cpp')
| -rw-r--r-- | benchmarks/tail-latency/mixed_workload.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/benchmarks/tail-latency/mixed_workload.cpp b/benchmarks/tail-latency/mixed_workload.cpp index f4bfdda..7be07b6 100644 --- a/benchmarks/tail-latency/mixed_workload.cpp +++ b/benchmarks/tail-latency/mixed_workload.cpp @@ -38,7 +38,7 @@ typedef de::DEConfiguration<Shard, Q, de::DeletePolicy::TOMBSTONE, std::atomic<size_t> idx; std::atomic<bool> inserts_done = false; -size_t query_ratio = 3; +ssize_t query_ratio = 3; std::atomic<size_t> total_res = 0; size_t reccnt = 0; @@ -51,7 +51,7 @@ void operation_thread(Ext *extension, std::vector<QP> *queries, while (!inserts_done.load()) { auto type = rand() % 10; - if (type < 8) { + if (type < query_ratio) { auto q_idx = rand() % queries->size(); auto q = (*queries)[q_idx]; |