Jump to text
On this page
Copy and source
Published source confirmed at last check

Source changed 2026-11-23 00:01:58 UTC · snapshot created 2026-11-23 00:02:28 UTC · last check 2026-11-23 09:15:10 UTC

SYSE.6:4.4.2 - Derive performance claims from the actual path

Separate latency, the elapsed time for one requested result, from throughput, completed results per unit time. For an illustrative three-stage pipeline, suppose each item requires 2, 8 and 2 milliseconds of service, each stage has one dedicated worker, and independent items stream without batching, transport cost or contention. The first item needs 12 ms. Once filled, the pipeline can complete at most one item per 8 ms, or 125 items/s. Executing all three transformations on one worker would allow at most 1/0.012, about 83 items/s. Pipelining can therefore improve throughput without reducing that item’s service latency.

Two independent workers at the middle stage raise its ideal capacity to 250 items/s; the other stages each allow 500 items/s. That bound assumes independent items can be routed to either worker and there is no shared serialization point. If every item must update the same locked state, or a later stage waits for a complete batch, this calculation does not apply. Queueing, retries and networking add elapsed time. At a sustained arrival rate above the slowest stage’s capacity, backlog grows unless work is rejected, reduced or capacity changes. Below that bound, variability can make a tail-latency target fail. Calculate the dependency path and capacity constraints. Use qualified evidence for the performance commitment. Obtain representative measurements if the commitment needs them and the existing evidence falls short.

The same reasoning applies to services. Five dependent remote calls add waiting and partial-failure cases; five independent computations may run concurrently, but the result waits for whichever contributions it requires. Count the actual calls and shared resources. A style rating such as “high performance” cannot answer whether a caller receives the needed result within its deadline. For a high-rate image conversion job, separating and scaling a slow filter may be useful; for a short local lookup, the added transport may cost more than the transformation.