From d116b94389538aa8e0e7354fae77693b980de4f0 Mon Sep 17 00:00:00 2001 From: Douglas Rumbaugh Date: Mon, 24 Feb 2025 11:14:52 -0500 Subject: Query Preemption: still has one or two bugs, but mostly works --- benchmarks/tail-latency/mixed_workload_average.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'benchmarks/tail-latency/mixed_workload_average.cpp') diff --git a/benchmarks/tail-latency/mixed_workload_average.cpp b/benchmarks/tail-latency/mixed_workload_average.cpp index cbf3a82..c740ed7 100644 --- a/benchmarks/tail-latency/mixed_workload_average.cpp +++ b/benchmarks/tail-latency/mixed_workload_average.cpp @@ -38,7 +38,7 @@ typedef de::DEConfiguration idx; std::atomic inserts_done = false; -size_t query_ratio = 3; +ssize_t query_ratio = 5; std::atomic total_res = 0; size_t reccnt = 0; @@ -56,7 +56,7 @@ void operation_thread(Ext *extension, std::vector *queries, while (!inserts_done.load()) { auto type = rand() % 10; - if (type < 8) { + if (type < query_ratio) { total_query_count.fetch_add(1); auto q_idx = rand() % queries->size(); -- cgit v1.2.3