Workload intensity in performance testing

Compare arrival-rate testing with a fixed number of virtual users and see how the workload changes when the system responds more slowly.

What happens to load when latency rises?

Increase response time and compare how much work starts and how much stays in progress under each model.

Open workload model. New attempts may start independently of earlier completions.

0.5 s 2 s

Reference → simulation

Open workload modelFixed arrival rate200/sClosed workload modelPredefined concurrency100VUs

Mean concurrencyjourneys in progress

100400

Mean concurrencyjourneys in progress

100100

Effective arrival ratejourneys/s

200200

Effective arrival ratejourneys/s

20050

With the same arrival rate, a slower response means more work in progress. With a fixed number of virtual users, a slower cycle means fewer new starts per second.

Adjust the test load
200/s
100
0 s

Steady-state estimates with all arrivals admitted in the open model and work always available in the closed model. Virtual users in think time are between journeys.

A store launches a promotion. Shoppers can keep arriving while checkout slows down. At an operations desk, each operator picks up the next case after finishing the current one. A slowdown can reduce the rate at which that team starts new work. To choose a workload model, identify what triggers the start of each unit of work.

What each model controls

Open workload model. An external process starts work independently of completions of the unit being modeled. The arrival rate λ(t) can vary over time and can be expressed in sessions per minute or checkout attempts per second. If the effective arrival rate holds and work takes longer, more work remains in progress. Schroeder, Wierman, and Harchol-Balter, NSDI 2006

Closed workload model. A fixed population N alternates between operations in progress and think time. Completing an operation enables the same client to start another cycle. The cycle rate is endogenous. Consider an operations desk with a fixed number of people, each working one case at a time. Denning and Buzen, ACM Computing Surveys, 1978

A virtual user (VU) is a unit of execution in the load generator. In k6, it can represent a client repeating its cycle or execute iterations scheduled at an arrival rate. A VU limit caps the iterations that can execute at once. The workload model depends on the rule for starting new work. Arrival-rate VU allocation

What happens when the journey slows down

Consider two steady-state periods. The average journey takes 0.5 s in the first and 2 s in the second. The closed population always has work and repeats the journey without pauses. The open scenario admits 200 journeys per second in both periods.

What you measure Open model at 200 arrivals/s Closed model with 100 virtual users
Mean concurrency (journeys in progress) 100 → 400 100 → 100
Effective arrival rate (journeys/s) 200 → 200 200 → 50

The effective arrival rate measures how many journeys enter the boundary you are observing per second. In the open model, arrivals hold at 200 per second and the slowdown raises mean concurrency. In the closed model, longer cycles reduce the rate at which virtual users start new journeys. If there is think time, some users are between cycles, so mean concurrency can be lower than the configured VU count.

The interactive response time law expresses throughput as X = N / (R + Z), where R is mean response time and Z is mean think time before the next cycle. With balanced flow, cycle starts and completions converge to the same average rate. Little’s Law relates mean concurrency L, effective arrival rate λ, and mean time in the system W as L = λW. Use the same unit of work and measurement boundary for all three. Denning and Buzen · Little, 1961

How to choose a workload intensity for your test

  1. Define what starts. A session, a checkout attempt, and an HTTP request are different units. One checkout can generate several requests.
  2. Reproduce the demand profile. Use production logs to count starts per time window and journey type. Preserve peaks, their duration, bursts, and the workload mix. If the busiest minute has 1,200 starts, it averages 20 per second. Inspect shorter windows to see how those starts are distributed within the minute.
  3. Check the workload you applied. Compare scheduled starts with actual starts. If the system controls admission, count accepted and rejected arrivals. Plot total and successful throughput alongside p95/p99 latency, errors, backlog, and load generator CPU and memory. Dropped iterations

If you planned 200 starts per second and the load generator started 150, investigate the gap before interpreting latency. If it started 200 and the service rejected some, those rejections describe how the service responded to the offered demand. Evaluate sustainable capacity using the rate achieved, the latency and error targets, and the backlog trend.

Partly open sessions and service desks

In a partly open workload model, sessions arrive independently. Within each session, an operation can depend on the response to the previous one. For example, visitors arrive during a store’s campaign, and they select shipping after confirming their cart. Schroeder and colleagues found latency differences between the models even at the same load and service demand in the cases they studied. Schroeder, Wierman, and Harchol-Balter, NSDI 2006

A branch with external arrivals and 40 staffed desks is open at the queue boundary. The desks provide service capacity. To measure the internal application used by those operators, you can model their cycles as a closed population if work is always available. Define the component you want to measure first.