From 4eb9ac58b1fffae5e47ff83180ea94edacb2cf80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johannes=20W=C3=BCnsche?= Date: Tue, 9 Apr 2024 15:35:26 +0200 Subject: [PATCH] benchmark: add comment to workaround --- betree/haura-benchmarks/haura-plots/haura_plots/ycsb_plots.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/betree/haura-benchmarks/haura-plots/haura_plots/ycsb_plots.py b/betree/haura-benchmarks/haura-plots/haura_plots/ycsb_plots.py index 45aa723f..7af652fd 100644 --- a/betree/haura-benchmarks/haura-plots/haura_plots/ycsb_plots.py +++ b/betree/haura-benchmarks/haura-plots/haura_plots/ycsb_plots.py @@ -11,6 +11,9 @@ def plot_c(path): # op / s first = data["ops"][0] / (data["time_ns"][0] / 10**9) second = data["ops"][1] / (data["time_ns"][1] / 10**9) + # in some cases in local tests the proper scaling behavior only happened + # with 2 or more threads, this is uncommon but can be easily checked like + # this to not make the optimal scaling curve entirely useless if first < second / 2: first = second / 2 optimal_scaling = [x * first for x in data["threads"]]