Wandering Giants Compute · Learn
Guide

What Is Tokens Per Second? Understanding LLM Inference Performance

The short answer

Tokens per second is how many output tokens an LLM generates each second. For one user it is limited mainly by GPU memory bandwidth: roughly 0.6–0.75 × bandwidth ÷ model bytes, so about 17–21 tokens/s for Llama 3.3 70B in FP8 on an H100 PCIe. Batching many users multiplies total throughput.

Single-stream rule
tokens/s ≈ 0.6–0.75 × memory bandwidth ÷ bytes read per token (estimate)
Llama 3.3 70B FP8, H100 PCIe
About 17–21 tokens/s per stream (estimate)
Llama 3.3 70B FP8, H200
About 41–51 tokens/s per stream (estimate)
Human reading speed
Roughly 4–7 tokens/s (200–300 words per minute)
Key latency metrics
TTFT (time to first token) and TPOT (time per output token)
Throughput vs latency
Batching raises total tokens/s while each user's speed falls slightly
Cost link
Cost per million tokens = hourly price ÷ (tokens/s × 3,600 ÷ 1,000,000)

Tokens per second is the number everyone quotes for LLM speed, and the one most often compared badly. One figure can mean a single user's streaming speed or a server's total output across a hundred users. Those can differ by a factor of fifty on the same GPU. This guide defines the metrics properly, shows how to estimate them from GPU specifications, and gives a script and a benchmark command to measure your own.

The estimates are calculated from published bandwidth figures and labelled as estimates. For the bigger picture of how inference works, see the complete guide to LLM inference.

What does tokens per second mean?

Tokens per second (tokens/s) is the rate at which a language model produces output tokens. It is quoted two ways: per-stream speed, what one user sees while an answer streams, and aggregate throughput, the total output across all concurrent requests on a server.

A token is a chunk of text from the model's tokeniser. For English prose, one token averages roughly three-quarters of a word, so 20 tokens/s is about 15 words/s. Code, numbers and most non-English languages need more tokens per word. Input tokens are processed much faster than output tokens, because the prompt is handled in one parallel prefill pass, so "tokens per second" nearly always means output.

Which LLM speed metrics actually matter?

Five numbers describe inference performance properly. Users feel the first two; your bill depends on the third.

MetricDefinitionWhat drives it
TTFT (time to first token)Request sent → first token receivedQueueing + prefill of the prompt
TPOT / ITL (time per output token, inter-token latency)Average gap between streamed tokensDecode step time: bandwidth, batch size, context
Per-stream tokens/s1 ÷ TPOTSame as TPOT
Output throughputTotal output tokens/s across all requestsBatch size, KV cache room, compute
GoodputRequests/s that meet your TTFT and TPOT targetsAll of the above under real load

They combine simply:

text
end-to-end latency ≈ TTFT + TPOT × (output tokens − 1)
per-stream tokens/s = 1 ÷ TPOT
output throughput ≈ concurrent streams × per-stream tokens/s

A 400-token answer with 0.5 s TTFT and 25 ms TPOT takes about 0.5 + 0.025 × 399 ≈ 10.5 seconds, and the user sees 40 tokens/s. Why TTFT and TPOT respond to different things is covered in prefill vs decode.

How many tokens per second is fast enough?

It depends on who or what reads the output. People read at roughly 200–300 words per minute, about 4–7 tokens per second, so streaming chat feels fast above about 15–20 tokens/s. Machines read instantly, so agents and pipelines always benefit from more.

UsePer-stream targetTTFT targetWhat matters most
Chat assistant15–30 tokens/sUnder 1 sTTFT and steady streaming
Voice assistant30+ tokens/sUnder 0.5 sTTFT above all
Coding assistant30–80 tokens/sUnder 1 sLong outputs finishing quickly
Agents (multi-step tool use)As high as possibleLowEnd-to-end latency across many calls
Batch jobs (summarise, classify, extract)Irrelevant per streamIrrelevantAggregate throughput and cost per token
Reasoning models40+ tokens/sUnder 1 sThinking traces of thousands of tokens

What determines tokens per second?

For a single stream, memory bandwidth and the bytes read per token decide it. Every decode step streams all active weights from VRAM to the compute units, and at batch size 1 the cores mostly wait for that data.

text
per-stream tokens/s ≈ (0.6 to 0.75) × memory bandwidth (GB/s) ÷ GB read per token
GB read per token ≈ parameters (billions) × bytes per parameter   (MoE: active parameters only)

The 0.6–0.75 factor accounts for kernels not reaching peak bandwidth and for the KV cache reads on top of the weights. Other factors in order of impact:

  • Precision. FP8 reads half the bytes of BF16, so it roughly doubles single-stream speed; 4-bit nearly doubles it again.
  • Model architecture. Mixture-of-experts models read only active experts, so Qwen3 30B-A3B decodes at roughly small-model speed.
  • Context length. Each step also reads the KV cache for all previous tokens; at long contexts this becomes a noticeable share of traffic.
  • Batch size. More concurrent streams raise total throughput, with a small drop in each stream's speed.
  • Tensor parallelism. Splitting across GPUs adds their bandwidth together, minus communication overhead, which is higher over PCIe than NVLink.
  • Speculative decoding. A small draft model or n-gram lookup proposes several tokens that the big model verifies in one pass. It can raise per-stream speed when drafts are often right. vLLM configures it with --speculative-config.

Memory bandwidth versus FLOPS explains why the headline TFLOPS figure says little about single-user speed.

How many tokens per second does each GPU give?

Applying the rule to three common model sizes gives the single-stream estimates below. They are estimates from published bandwidth, not benchmark results; real figures vary with engine version, context length and kernel support.

GPUBandwidth8B, BF16 (16 GB)32B, FP8 (33 GB)70B, FP8 (70 GB)
RTX 40901,008 GB/s38–47does not fitdoes not fit
L40S864 GB/s32–4116–20 (short context)does not fit
A100 80GB PCIe1,935 GB/s73–9135–44 (weight-only FP8)tight fit
H100 80GB PCIe2,000 GB/s75–9436–4517–21
RTX PRO 6000 Blackwell1,800 GB/s68–8433–4115–19
H2004,800 GB/s180–22587–10941–51
B2008,000 GB/s300–375145–18269–86

Treat the high figures for small models on very fast cards as ceilings: at that speed, kernel launch overhead and sampling start to matter more than bandwidth. The A100 has no FP8 tensor cores, so it runs FP8 checkpoints with weight-only kernels; the bytes saved still help decode.

How does batching change tokens per second?

Batching shares each read of the weights across many sequences, so total throughput climbs almost linearly with concurrency while each user's speed falls only slightly. This is the single biggest lever on cost.

An idealised memory-bound model shows the shape. Take Llama 3.3 70B FP8 on an H200, effective bandwidth 0.675 × 4,800 = 3,240 GB/s, 70 GB of weights, and conversations averaging 2,048 tokens of context with an FP8 KV cache (0.164 MB per token, so 0.34 GB per sequence). Each step reads the weights once plus every sequence's KV cache:

text
step time = (70 GB + batch × 0.34 GB) ÷ 3,240 GB/s
Concurrent streamsStep timePer-stream tokens/sAggregate tokens/s$ per M tokens at $9.09/hr
121.7 ms4646$54.89
822.4 ms45357$7.07
3224.9 ms401,284$1.97
6428.2 ms352,266$1.11

At 64 streams the step does 2 × 70 × 10⁹ × 64 ≈ 9 × 10¹² FLOPs, which takes about 9 ms at half the H200's roughly 1,979 dense FP8 TFLOPS. That is still under the 28 ms memory time, so the model stays memory-bound. This is an idealised upper bound. Real engines lose throughput to scheduling, prefills interleaved with decodes and sampling, so plan on well under these aggregates. The dollar column is our live H200 price × 1,000,000 ÷ (aggregate tokens/s × 3,600). The H200's specifications are on NVIDIA's H200 page.

The lesson holds regardless: cost per token is set by how full you keep the GPU, not by the per-hour price alone. The H100 cost per million tokens analysis applies the same reasoning to one card in detail.

How do you measure tokens per second yourself?

Measure with your own prompts, output lengths and concurrency; published numbers rarely match your traffic. Two tools cover most needs: a streaming script for one request, and vLLM's benchmark for load.

A single-request check against any OpenAI-compatible endpoint:

python
import os, time
from openai import OpenAI

client = OpenAI(base_url=os.environ["BASE_URL"], api_key=os.environ["API_KEY"])
model = client.models.list().data[0].id

t0 = time.perf_counter()
first, n_tokens = None, 0
stream = client.chat.completions.create(
    model=model,
    messages=[{"role": "user", "content": "Write a 300-word explanation of HTTP caching."}],
    max_tokens=500,
    stream=True,
    stream_options={"include_usage": True},
)
for chunk in stream:
    if chunk.choices and chunk.choices[0].delta.content and first is None:
        first = time.perf_counter()
    if chunk.usage:
        n_tokens = chunk.usage.completion_tokens
end = time.perf_counter()

print(f"TTFT: {first - t0:.2f} s")
print(f"TPOT: {(end - first) / max(n_tokens - 1, 1) * 1000:.1f} ms")
print(f"Per-stream speed: {(n_tokens - 1) / (end - first):.1f} tokens/s over {n_tokens} tokens")

A load test with vLLM's built-in benchmark, run from any machine with vLLM installed, against a server started with vllm serve:

bash
vllm bench serve \
  --backend openai-chat \
  --base-url http://localhost:8000 \
  --endpoint /v1/chat/completions \
  --model meta-llama/Llama-3.3-70B-Instruct \
  --dataset-name random \
  --random-input-len 1000 --random-output-len 300 \
  --num-prompts 300 --max-concurrency 32

It reports mean and percentile TTFT, TPOT and ITL, plus request and output-token throughput. Repeat at several --max-concurrency values (1, 8, 32, 64) to find where TPOT crosses your target; that is your usable capacity per GPU. Use the model name the server reports at /v1/models. Older vLLM releases ship the same tool as benchmarks/benchmark_serving.py. The vLLM documentation lists the options.

How do you get more tokens per second?

Pick the lever that matches the metric you are short of.

  • Per-stream speed too low: quantise to FP8 or 4-bit, use a GPU with more bandwidth, try speculative decoding, or use a MoE model.
  • TTFT too high: enable prefix caching for shared prompts, use chunked prefill, shorten prompts, or add compute.
  • Throughput too low: use an engine with continuous batching (vLLM or SGLang rather than a naive loop), add KV room with FP8 KV cache or a larger-memory GPU, and raise --max-num-seqs.
  • Throughput collapses at high load: the KV cache is full and requests are being pre-empted. Cap concurrency or add memory; see how much GPU memory LLMs need.

If you are choosing between Hopper cards for this, H200 vs H100 for inference compares them directly.

When renting from Wandering Giants Compute fits

Benchmarking is the right way to choose a GPU, and per-minute billing makes it cheap. On Wandering Giants Compute you can launch an RTX 4090 at $1.59/hr, an H100 at $4.99/hr or an H200 at $9.09/hr. Use API mode to get a vLLM-served model behind an OpenAI-compatible endpoint you can point the script above at, or Root to run vllm bench serve with your own settings. An hour on each of the three cards costs just the sum of those three hourly prices, and the machine stops itself if credit runs out.

We don't publish benchmark figures of our own. Every speed on this page is an estimate from published specifications, so measure on the card before you commit.

Frequently asked questions

What is a good tokens per second for an LLM?

For chat, anything above about 15–20 tokens per second per user feels fast, since people read at roughly 4–7 tokens per second. Agents, coding tools and batch jobs benefit from much more, because they consume output without reading it.

Why does my LLM get slower as the conversation gets longer?

Each decode step reads the KV cache for every previous token as well as the weights, so long contexts add memory traffic per token. Prefill also grows with prompt length, which raises time to first token.

Are tokens per second the same as words per second?

No. A token is a piece of a word; for English text with modern tokenisers, a token averages roughly three-quarters of a word. So 20 tokens per second is about 15 words per second. Code and non-English text usually need more tokens per word.

Why is total throughput so much higher than single-user speed?

In decode, the GPU spends most of each step reading the weights from memory. When many sequences share one step, the weights are read once for all of them, so total tokens per second rises nearly in proportion to batch size until KV cache memory or compute runs out.

Which GPU gives the most tokens per second?

For a single stream, the one with the highest memory bandwidth that holds your model: among common rentals, B200 and B300 (8 TB/s), then H200 (4.8 TB/s), then H100 SXM, H100 PCIe and A100. For many users, VRAM for KV cache matters as much as bandwidth.

How do I benchmark tokens per second?

Use vllm bench serve against your server with prompt and output lengths that match your traffic and a set concurrency, and read TTFT, TPOT and output throughput. For a quick check, stream one request and time the first token and the rest.

Wandering Giants Compute

Rent the GPU for this, by the minute.

Rent the bandwidth your model needs, from an RTX 4090 to a B300, and benchmark your real tokens per second by the minute.

Prepaid credit, billed by the minute, stops itself when credit runs out. Prices in £, $, €, ¥, CA$, A$, CHF and S$; UK prices include VAT.

Keep reading

About this article. Written by the Wandering Giants Compute team, the people who run Wandering Giants Compute. Hardware figures are the manufacturers’ published specifications. Speeds and costs marked as estimates are worked out from those specifications and our current prices, with the method shown; they are not measured benchmarks. Wandering Giants prices are taken live from our price list each time this page is built.

Last reviewed 25 November 2026.