Why most LLM speed numbers can't be compared
"80 tokens per second" means little on its own. The same GPU can show very different numbers depending on:
- the model and quantisation: an 8B model at 4-bit is a quarter the size of the same model at 16-bit, and generates far faster;
- the runtime and its version: llama.cpp, vLLM, Ollama and others perform differently, and each release changes results;
- the phase being measured: reading the prompt (prompt processing) is compute-bound and fast, while writing the answer (generation) is memory-bandwidth-bound and slower;
- the context length: generation slows as the conversation grows;
- the number of simultaneous requests: total throughput rises with more users while each user's speed falls.
Before testing anything, work out the theoretical ceiling: memory bandwidth ÷ model file size gives a rough upper limit for one user's generation speed. Our GPU guide shows the calculation. A measured result far below the ceiling usually means the model doesn't fully fit in VRAM.
Step 1: record the conditions
Write these down before the first run. If any of them change, it's a different test.
| Item | Example of what to write |
|---|---|
| Hardware | GPU model and count, VRAM, CPU, system RAM, storage |
| Software | OS and kernel, GPU driver version, CUDA/ROCm/oneAPI version, runtime name and exact version or commit |
| Model | Exact model name and file (for example a specific GGUF file and quantisation such as Q4_K_M), with its size in GB |
| Settings | GPU layers offloaded, context size, batch size, KV-cache precision, flash attention on or off |
| Workload | Prompt length, output length, number of simultaneous requests, number of repetitions |
| Environment | Room temperature, power limit if set, whether the machine was warmed up |
| Date | Test date. Results go out of date as runtimes improve. |
Step 2: single-user speed with llama-bench
llama.cpp includes llama-bench, which runs two standard tests: prompt processing (pp), reading a prompt of a set length, and text generation (tg), generating a set number of tokens. By default it uses a 512-token prompt and 128 generated tokens, and repeats each test five times.
llama-bench -m model.gguf -ngl 99 -p 512 -n 128 -r 5 -o json
-nglsets how many layers run on the GPU. Make sure the whole model is on the GPU when you're testing the GPU.- Run it again with a longer prompt (for example
-p 4096) to see how speed changes with long documents. -o json(or csv) saves results in a file you can share and compare later.
Step 3: many users with vllm bench serve
For a server shared by a team, single-user speed isn't enough. Start the model with vllm serve, then run vllm bench serve against it from the same or another machine. It reports:
- Time to first token (TTFT): how long a user waits before the answer starts.
- Time per output token (TPOT) and inter-token latency (ITL): how fast the answer streams once it has started.
- Throughput: requests per second and output tokens per second across all users.
Use --max-concurrency to set how many requests run at once, and repeat at several levels, for example 1, 4, 8 and 16. Use the random dataset with fixed lengths (--random-input-len, --random-output-len) so the test is repeatable, or a sample of your own real prompts so it's realistic. vLLM's documentation describes this tool as mainly for feature evaluation and regression testing. For formal production load testing, it points to dedicated tools.
Step 4: memory and power
- Peak GPU memory: watch it during the run with
nvidia-smi(NVIDIA),rocm-smi(AMD) or your vendor's tool. It tells you how much headroom is left for longer context or more users. - Wall power: measure at the socket with a plug-in power meter, at idle and during generation. Board power reported by software covers only the GPU. Wall power is what you pay for and what your UPS has to supply.
- Temperature over time: run a long test (15–30 minutes). A machine that's fast for one minute and then slows because it's too hot will behave the same way in an Indian summer.
Step 5: report the results
Use a table like this. It is a blank template, not a result: fill it in only with numbers you have measured, and attach the raw output file.
| Field | Run 1 | Run 2 |
|---|---|---|
| Test date | — | — |
| Hardware (GPU × count, VRAM) | — | — |
| Runtime and version | — | — |
| Model file and quantisation (size in GB) | — | — |
| Context size / prompt tokens / output tokens | — | — |
| Simultaneous requests | — | — |
| Prompt processing, tokens/s | — | — |
| Generation, tokens/s (per user) | — | — |
| Time to first token | — | — |
| Total throughput, tokens/s | — | — |
| Peak GPU memory | — | — |
| Wall power, idle / under load | — | — |
| Theoretical ceiling (bandwidth ÷ model size) | — | — |
We haven't published measured results on this site yet. When we do, each table will name the test date and link the raw output files.
Common mistakes
- Comparing different quantisations of the same model as if they were the same test.
- Quoting prompt-processing speed as if it were generation speed. Prompt processing is often many times faster.
- Testing with a tiny context and then deploying with long documents.
- Measuring once, on a cold machine, for a few seconds.
- Reporting total throughput at high concurrency as if every user gets that speed.
- Leaving part of the model in system RAM without noticing.
What to ask any hardware supplier
If someone quotes you a speed for a workstation or server, ask for the full conditions table above and the raw output file. A trustworthy figure comes with its model file, runtime version, context length and concurrency. To size hardware before you test, start with our VRAM guide and workstation builds.
Sources
More on this topic: Local LLM Hardware · All guides