Part of the AI & Machine Learning suite · 36 calculators

Batching Latency–Throughput Calculator

What happens to throughput and latency when a serving system batches requests — from the single-request time, how much each extra request adds, the arrival rate and the maximum wait to fill a batch.

A GPU does a batch of eight in much less than eight times the time of one, because the weights are read once and the arithmetic units are better used; a marginal factor of 0.

Results update as you type
Results
Throughput at this batch size
64.5 req/s
Time to run the batch
Average wait to fill the batch
Typical latency (wait + run)
Without batching
Against the target
Reviewed September 2026. Model arithmetic is the same everywhere: the same formulas in every market, in your own currency. The NIST framework is voluntary guidance; it does not prescribe cost or sizing methods.
No account required · Google Analytics off unless allowedCalculator arithmetic runs in your browserResults update as you type
All calculations run 100% in your browser. The calculator code does not submit your figures to GlobalCalc to obtain a result.
About batching latency–throughput

How the batching latency–throughput calculator works

A GPU does a batch of eight in much less than eight times the time of one, because the weights are read once and the arithmetic units are better used; a marginal factor of 0.3 means each extra request adds 30% of a single request’s time. Throughput rises with batch size, but a request now waits for the batch to fill — (B − 1) ÷ arrival rate, capped by a timeout — and then for the longer batch to run. The calculator shows both sides so you can pick the batch that meets a latency target.

Formula: batch time = t₁ × (1 + (B − 1) × k); throughput = B ÷ batch time; latency ≈ min(fill time, timeout) + batch time

Worked examples

InputsThroughput at this batch sizeNote
40 ms alone, k 0.3, batch 8, 100 req/s64.5 req/s65 req/s — overloaded at 100/s
Batch 32 at the same rate77.7 req/s82 req/s — still short
Cheap batching: k 0.1, batch 16, 200 req/s160 req/s160 req/s at about 137 ms

Frequently asked questions

What is a typical marginal factor?

For transformer inference on a GPU, 0.1–0.3 at small batches — the work is memory-bound and extra requests are nearly free — rizing toward 1 once the arithmetic units saturate. Measure it: time batch 1 and batch 8 and solve for k.

Why does latency rize with batch size?

Two ways: a request waits for the batch to fill, and the batch takes longer to run than a single request. At low arrival rates the fill wait dominates and batching hurts; at high rates the batch fills instantly and only the run time matters.

What is the timeout for?

To bound the wait when traffic is light: the server runs whatever it has after the timeout rather than waiting for a full batch. It trades a little throughput for predictable latency.

What is continuous batching?

For token generation, adding new requests to a batch as others finish instead of waiting for whole batches — it keeps the GPU full without the fill wait. The trade-off here still applies per decoding step.

Where these figures come from

Last checked: September 2026. The relationships here are architectural, not vendor-specific: bytes per parameter follow the numeric format, KV-cache size follows the transformer definition, and token-per-word ratios come from published tokeniser behaviour.