In this article
Locust wait_time applies after a task; preserve explicit turn boundaries when a task contains several inference requests.
The comparison being tested
A conversational load test puts an entire dialogue inside one Locust task and sets wait_time to represent user thinking. The author expects pauses between turns, but requests inside that task run without those task-level waits. The server receives a compact burst followed by a pause after the dialogue. The generated workload differs from the intended session even though the configured waiting interval looks correct.
The confounding mechanism
Locust documentation states that wait times apply after task execution, not after every request inside a task. Constant pacing and throughput functions also concern task runs. A task containing several requests therefore changes the relationship between task rate and request rate. A named simulated user is not sufficient evidence that the implementation preserves conversational dependencies and inter-turn timing.
Fix the experimental contract
Define a session’s turn sequence, response dependencies and intended pause boundaries independently of the test framework. Decide whether each task represents one turn or a complete workflow. If explicit waiting occurs within a task, follow the documented lifecycle behavior and record where it happens. Keep model response duration separate from user think time so slower generation does not silently change the chosen arrival-model interpretation.
A step-by-step comparison
Validate the harness against a harmless controlled endpoint before using model resources. Record task starts, request dispatches, response completion and waits for a short synthetic session. Compare observed gaps with the intended turn table. Test both the single-workflow task and the chosen corrected structure. Include a slow response control to reveal whether pacing and completion interact as the declared workload model expects.
Evidence required for the result
Acceptance evidence includes task composition, wait configuration, session manifest and actual dispatch timeline. Count task iterations and requests separately. Verify that pauses occur at the intended turn boundaries rather than only between whole dialogues. A matching average request rate cannot compensate for different burst structure, and a successful conversation transcript does not establish that its timing resembles the target workload.
Interpretation and limits
This protocol does not claim one universal think-time distribution or that simulated pauses describe real users. Locust lifecycle and cancellation behavior must also be checked for the installed version. The result is a verified mapping from session design to generated timing, not a production demand forecast or a model-throughput result. Preserve any deviation when comparing cache reuse, queue growth and concurrent-session capacity.
Primary references and related reading
Locust wait_time applies after a task; preserve explicit turn boundaries when a task contains several inference requests. Locust user tasks and wait time; Locust User task and wait API.
The proposed investigation of locust task wait conversation gaps is not an executed deployment benchmark. Related reading: Open and closed load models for an inference API; llm-perf: replay coding-agent workloads without losing the denominator.
Earn rental income from GPUs
Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.