# Throughput

- **Canonical URL:** https://getaimath.com/dictionary/throughput/
- **Topics:** [LLM Inference: Prefill & Decode](https://getaimath.com/dictionary/category/llm-inference-prefill-and-decode/), [AI Infrastructure & Runtime](https://getaimath.com/dictionary/category/ai-infrastructure-and-runtime/), [AI Evaluation & Performance Metrics](https://getaimath.com/dictionary/category/ai-evaluation-and-performance-metrics/)
- **Also called:** Inference Throughput
- **Last updated:** 2026-11-25

## What is Throughput?

**In one sentence:** Throughput is the total amount of work a system completes over time, like the number of tokens or requests per second across all users.

A server can have high throughput but each user may still wait, or low latency for one user but low throughput overall. Batching increases throughput.

![How an AI Replies: 1. Read Your Question → 2. Type the Answer — Simple two-step cartoon: Step 1 (Prefill) shows the AI scanning your entire question in one flash (causing the brief pause before it starts talking); Step 2 (Decode) shows it typing out the reply one word at a time.](https://getaimath.com/diagrams/llm-inference-prefill-and-decode.png)
*Napkin Diagram (LLM Inference: Prefill & Decode): Every AI reply has two halves: gulping down your whole prompt at once, then speaking the answer one word at a time.*

### Quick Math / Rule of Thumb

Single-stream ceiling (tokens/s) ≈ Memory Bandwidth (GB/s) ÷ Model Weights Size (GB). E.g., 400 GB/s ÷ 5 GB (8B Q4) ≈ up to ~80 tokens/s.

## What is an example of Throughput?

A server generating 10,000 tokens per second across all its users has a throughput of 10,000 tokens per second.

## Why does Throughput matter?

Throughput sets how much an AI service can handle and how much it costs per token.

## Throughput vs. Latency

Latency measures how fast one single user gets their answer (seconds), while throughput measures how many total tokens per second a server delivers across all concurrent users.

| Dimension | Throughput | [Latency](https://getaimath.com/dictionary/latency/) |
| --- | --- | --- |
| Unit | Total tokens/sec or requests/sec across server | Milliseconds or seconds per request |
| Effect of bigger batches | Greatly increases total GPU throughput | Usually makes each user wait a bit longer |
| Who cares most | Infrastructure team paying the GPU bill | Individual user waiting on a reply |

## Related Concepts

- [Sampling](https://getaimath.com/dictionary/sampling/): Sampling is how a model picks the next token from its list of possible options, using their probabilities.
- [Latency](https://getaimath.com/dictionary/latency/): Latency is the delay between asking for something and getting a response.
- [Concurrency](https://getaimath.com/dictionary/concurrency/): Concurrency is handling many requests or tasks at the same time.
- [Tokens Per Second (TPS)](https://getaimath.com/dictionary/tokens-per-second-tps/): Tokens per second is how many tokens a model produces, or processes, every second.
- [Beam Search](https://getaimath.com/dictionary/beam-search/): Beam search keeps several possible sentences going at once and picks the one with the best overall score at the end.
- [Memory Bandwidth](https://getaimath.com/dictionary/memory-bandwidth/): Memory bandwidth is how fast data can move between a chip's memory and its processors, usually measured in gigabytes per second.

---
Source: The AI Math Dictionary (https://getaimath.com/dictionary/throughput/)
