#793 · AI & Technology Tool

Prompt Caching Throughput Calculator

Estimate sustainable request throughput for a GPU pool serving prompts with reusable cached prefixes. The calculator converts prefill, cache-handling, and decode capacity into requests per second, then uses the tightest stage as the end-to-end limit. It also reports hourly tasks, token throughput, and headroom against an optional traffic target.

Calculator

Capacity and request profile
GPUs
Devices allocated to workload capacity.
tokens
Tokens processed by normal prefill.
tokens
Reusable cached-prefix tokens.
tokens
Average generated tokens.
tok/s
Effective uncached input capacity.
tok/s
Effective cache-handling capacity.
tok/s
Aggregate output capacity.
%
Fraction of peak capacity made schedulable.
req/s
Traffic target used for headroom comparison.

How to use this calculator

  1. Enter available workload GPUs and the average token profile of one request.
  2. Use effective per-GPU throughput for each processing stage.
  3. Set planned utilization below peak and optionally enter a target request rate.
  4. Use sustainable requests per second as the overall capacity and inspect the bottleneck stage.

Formula

Stage request capacity = GPUs × utilization × stage token throughput/GPU ÷ stage tokens/request
Sustainable throughput = minimum(non-empty stage capacities)

What the result means

The main result is the request rate that every active stage can sustain. Hourly tasks assumes steady demand. Token throughput multiplies this request rate by total tokens per request and includes cached tokens as processed workload.

Zero-token stages are excluded rather than treated as unlimited numeric results. Real throughput can be lower because of memory, batching, routing, or queueing constraints.

Example calculation

With 4 GPUs at 70% utilization, 800 uncached, 3,200 cached, and 400 output tokens, and rates of 50k, 500k, and 8k tok/s/GPU:

Prefill capacity = 175 req/s
Cache capacity = 437.5 req/s
Decode capacity = 56 req/s
Sustainable throughput = 56 req/s

Tips for better results

  • Use the same token distribution as production traffic.
  • Benchmark with the intended batching and scheduler.
  • Investigate the reported bottleneck before adding GPUs.
  • Reserve separate redundancy if GPU count here represents only active capacity.
  • Run short- and long-output scenarios because decode demand changes sharply.

Frequently asked questions

Why is throughput the minimum stage capacity?

A request must pass every active stage, so the slowest stage limits the sustainable end-to-end rate.

How are zero cached tokens handled?

The cache stage is excluded when it has no tokens, preventing division by zero and reflecting that no cache work is required.

Does tasks per hour assume continuous utilization?

Yes. It is sustainable requests per second multiplied by 3,600, assuming steady demand and the entered utilization.

Are cached tokens included in total token throughput?

Yes, as processed workload, even though their computational cost per token may be lower.

Why might observed throughput be lower?

Memory limits, uneven request lengths, batching inefficiency, routing, and queueing can reduce observed throughput.

Variables and units

VariableMeaningUnit
GWorkload GPUsGPUs
uPlanned utilizationdecimal
S stagePer-GPU stage throughputtokens/second
T stageStage tokens per requesttokens/request
QSustainable throughputrequests/second

Browse calculator categories

22 category hubs