Benchmark a vLLM endpoint
Measure a vLLM endpoint with the workloads of the industry, find how many users it holds within a service level, and compare runs.
On this page
This guide shows how to measure a vLLM endpoint, how to read the results, and how to compare two runs.
How a benchmark works
A benchmark is a client. Kosken runs vllm bench serve on the machine of the endpoint, on the CPU, from the same vLLM image as the server. The client sends requests to 127.0.0.1. It never stops or restarts the endpoint. During the run the endpoint gets many requests at the same time, so its other users wait more until the run ends.
The benchmark saves the flags of the endpoint with the results, so you can compare runs after an Edit.
Run a benchmark
- Select AI Ops, the Benchmarks tab, then Run a benchmark. A benchmark needs a vLLM endpoint that runs.
- Pick the endpoint.
- Pick a Preset. A preset only fills the scenarios, the levels and the requests per user. You can change each one.
- Pick the Scenarios, the levels of Concurrent users and the Requests per user.
- Pick the Service level.
- Check the estimate of time and requests, then select Run benchmark.
| Preset | Scenarios | Users | Requests per user |
|---|---|---|---|
| Quick | Chat, RAG, ShareGPT | 1, 4, 16, 64 | 2 |
| Standard | Chat, Reasoning, RAG, ShareGPT | 1, 4, 8, 16, 32, 64 | 3 |
| Full | All five | 1, 4, 8, 16, 32, 64, 128 | 5 |
Each level sends the requests per user times the users, and at least 4 requests. Before each level, the client sends up to 4 warm-up requests that do not count. A level above --max-num-seqs measures the queue: the form shows it dashed.
Scenarios
| Scenario | Input and output | What it shows |
|---|---|---|
| Chat 1k/1k | 1,024 tokens in, 1,024 out | The classic chat turn. Random tokens with exact lengths, the same on every run. |
| Reasoning 1k/8k | 1,024 in, 8,192 out | Long answers, like a model that thinks. Shows how decode holds up. Best up to 16 users. |
| RAG 8k/1k | 8,192 in, 1,024 out | Long prompts, short answers. Shows prefill and the KV cache. |
| ShareGPT | Real conversations | The historic benchmark of vLLM, with the real lengths of real chats. The machine downloads the file once (670 MB). |
| Shared prefix | 2,048 shared, 256 new, 256 out | Many requests with the same system prompt. Shows what prefix caching gives. |
Service level
The service level is the limits that a request must meet to count as good. Kosken reports the most users that the endpoint holds within them.
- MLPerf Interactive: TTFT p99 up to 450 ms and TPOT p99 up to 40 ms. A chat that feels instant.
- MLPerf Server: TTFT p99 up to 2 s and TPOT p99 up to 200 ms. An API with relaxed latency.
- Your own: type the two limits.
Read the results
While the run goes on, the page shows the scenario and the level that run, the levels done, and the time left. The numbers of a scenario come when the run ends. Each scenario has its own tab, and Client log shows the output of vllm bench serve.
- Peak output: the most output tokens per second, and at which level.
- Users within SLO: the most users that hold the service level.
- TTFT p99 and TPOT p99 at that level, with p50 and the limit.
- Per user: the output speed that one user sees.
- Errors: failed requests of all requests.


The chart shows Throughput, TTFT, TPOT, ITL, E2E or Goodput by concurrent users. The table By level has every number, and a p99 over the limit shows in red. Result says in one sentence what the endpoint holds, and where it misses.
| Number | What it measures |
|---|---|
| TTFT | Time to first token: from the request to the first token of the answer. It includes the time in the queue. |
| TPOT | Time per output token after the first one. The reading speed of one user. |
| ITL | Inter-token latency: the time between two tokens of the stream. |
| E2E | The time of the whole request. |
| Goodput | The share of the requests that met the service level. |
A p99 is the value under which 99% of the requests fall. With 4 requests, the p99 is almost the slowest one. To trust a small difference, use more requests per user.
Compare two runs
In Compare, pick another run. By default it is the run before of the same endpoint. The card shows the change of peak output, users within the service level and TTFT p99, and the flags that changed between the two runs. Each table then shows both runs level by level. Green is better.
A benchmark that a run of Optimize took says so under its title, for example Round 1 of OP-2, and compares with the benchmark before of that run.
Export, run again, cancel, delete
- Export (.md) downloads the run as Markdown: the setup, the flags and the table of each scenario.
- Run again opens the form with the same choices.
- Cancel stops a run. The levels that ended stay.
- Delete removes the run and its results.
Something here does not match the app? Tell us