Skip to content

Commit

Permalink
benchmark: add comment to workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
Johannes Wünsche committed Apr 9, 2024
1 parent 2a58dcb commit 4eb9ac5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions betree/haura-benchmarks/haura-plots/haura_plots/ycsb_plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]]
Expand Down

0 comments on commit 4eb9ac5

Please sign in to comment.