Skip to content

Commit

Permalink
Add a flag that allows for a warmup in low latency mode.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 594258271
  • Loading branch information
bvliu authored and copybara-github committed Dec 28, 2023
1 parent e7b6a57 commit 5f8a20c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions perfkitbenchmarker/linux_packages/ycsb.py
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,11 @@
'Runs the lowest latency workload with a fixed QPS instead of searching.'
' Useful when the optimal throughput throughput is already known.',
)
_LOWEST_LATENCY_WARMUP = flags.DEFINE_bool(
'ycsb_lowest_latency_warmup',
False,
'If true, runs a warmup before the actual load.',
)


def _ValidateCpuTargetFlags(flags_dict):
Expand Down Expand Up @@ -1404,6 +1409,8 @@ def _ProcessSamples(
return samples

if _LOWEST_LATENCY_TARGET_QPS.value:
if _LOWEST_LATENCY_WARMUP.value:
_RunWorkload(_LOWEST_LATENCY_TARGET_QPS.value)
return _ProcessSamples(
_RunWorkload(_LOWEST_LATENCY_TARGET_QPS.value), database
)
Expand Down

0 comments on commit 5f8a20c

Please sign in to comment.