Benchmarking a vLLM deployment with vllm bench before go-live
A self-hosted vLLM server about to take real traffic needs measured numbers, not assumptions. Run vllm bench serve against the running endpoint with a dataset and load that resemble your workload, and record latency and throughput before go-live. The tool sends requests to an OpenAI-compatible endpoint, such as /v1/completions or /v1/chat/completions, and reports how the server behaves under that load, including time to first token (TTFT), time per output token (TPOT) and inter-token latency (ITL). Teams reach for it in three situations: a sizing check that confirms a chosen GPU layout can hold the expected load, a configuration comparison between two sets of server flags, and a pre-launch acceptance test against targets the business has agreed. The command is documented in the vLLM benchmark CLI reference.
The tool cannot tell you everything on its own. It measures one server, one model and one traffic shape at a time. Results from a synthetic random dataset do not predict behavior on your prompts, your multi-turn sessions or your tenant mix, and a run on a lightly loaded test node says little about peak hours. It also does not measure the surrounding path: the API gateway, authentication layer, network hops or any retrieval step in front of the model. Confirm with your platform team which of those will sit between users and the server, and measure them separately if they add meaningful latency.
vLLM is Apache-2.0 licensed and has no paid edition, so the cost of testing is the accelerator hours used for the runs and the time of the engineers who design, execute and interpret them. Those costs are mostly one-time for acceptance, but they recur whenever you upgrade vLLM, change the model or alter server flags. Ask your team to budget for repeat runs after each change, because a benchmark is only evidence for the exact configuration it ran against.
Benchmark options and when each fits
This table compares the main vllm bench serve choices, what each one controls and the trade-off it brings. Read each row against the workload you plan to serve, because a benchmark run is only as representative as the dataset, concurrency and request pattern behind it.
| Option | What it controls | Trade-off and when it fits |
|---|---|---|
| Random dataset with fixed lengths | Synthetic prompts with set input and output token counts, such as the 1024 input and 1024 output setting in the Llama 3.3 70B recipe | Repeatable and easy to compare across runs and releases. It does not reflect real prompt variety, so use it for capacity baselines and sweeps, not as proof of production behavior. |
| Real dataset or production-like trace | Prompts and response lengths drawn from actual or representative traffic | Closer to live load, including uneven lengths and shared prefixes. Harder to reproduce exactly, and it needs data handling review if the prompts contain sensitive content. |
| --max-concurrency | How many requests are in flight at once from the client | Set it near the server's --max-num-seqs to test a full batch. Too low hides queueing, and too high measures queue wait rather than the engine you planned for. |
| --num-prompts | Total number of requests in the run | More prompts give steadier percentiles but lengthen the run. The recipe uses at least five times the concurrency value, so the run reaches steady state. |
| --ignore-eos | Whether generation continues past the end-of-sequence token | Forces each response to reach its target output length, which keeps output token counts fixed for comparison. It can overstate decode work for models that stop early in real use. |
| Request rate | Arrival pattern of new requests per second, independent of how quickly responses finish | Models open-loop traffic, closer to public or API load. Rates above what the server can absorb inflate TTFT and queueing, so pick rates from your expected peak. |
| Chat versus completions endpoint | Whether requests go to the chat completions or completions API, and whether the chat template is applied | Chat adds template tokens and depends on the model's chat template being correct. Benchmark the endpoint your applications call, and confirm the flag for the backend in the benchmark CLI docs for your installed release. |
Running a benchmark that matches production concurrency
This sequence produces a benchmark whose load level, request sizes and run repetition reflect the traffic the server will carry, so the TTFT, TPOT and ITL figures can be compared against your targets. Each step ends with a check that tells you whether the run is valid before you trust its numbers.
Fix the model, precision and server flags
The platform or performance engineer starts the vLLM server with the final model, precision, parallelism and memory settings the go-live configuration will use. Do not change these between runs, because each change alters the numbers you are trying to compare. Confirm the server is ready by checking the startup log for completion and by sending a single test request to the OpenAI-compatible endpoint, such as /v1/completions, and receiving a complete response. If the server is not ready or a flag is still under review, stop here, since a benchmark on an unsettled configuration measures nothing you can deploy.
Record the server's max-num-seqs value
Read the effective --max-num-seqs value from the server configuration or startup log, not from memory or from a default assumed by a recipe. The benchmark load must be set against the value the server actually runs with. Write the value, the model name and the vLLM version into the benchmark record so later runs can be compared to this one. Done when the three values are saved together with the server flags from the previous step.
Set max-concurrency to match the server
Set --max-concurrency in vllm bench serve to the recorded --max-num-seqs value. This keeps the client offering as many simultaneous requests as the server can schedule, so the test reflects a full batch rather than an idle or artificially overloaded server. If your production traffic is known to sit below that ceiling, run a second pass at the lower expected concurrency and label it clearly, because the two results answer different questions. Done when the command records the concurrency value in its output header.
Set num-prompts to at least five times concurrency
Set --num-prompts to at least five times the concurrency value. A run with only one batch of requests mostly measures the ramp up and the drain down, not sustained behavior. Calculate the value from the concurrency you set in the previous step and write it into the run record. Done when the number of completed requests in the summary is at least the value you set, which confirms the run reached steady state rather than stopping early.
Choose dataset and lengths from real traffic
Choose a dataset and input and output lengths that match the requests your applications send. The vLLM recipe for Llama 3.3 70B uses the random dataset with 1024 input tokens, 1024 output tokens and --ignore-eos, which is a reasonable reference point for a fixed-length test but not a substitute for your own distribution. Ask the application owners for typical prompt and completion lengths, and use a dataset that reflects them where possible. Keep --ignore-eos only when you need fixed output lengths for comparability, and say so in the record. Done when the dataset, input length and output length are written down alongside the results.
Run a warm-up before measuring
Run a short warm-up pass with the same server and settings before the measured run, and discard its output. The first requests after startup can include compilation and cache effects that do not reflect steady operation. Confirm the warm-up finished without errors, then start the measured run immediately so the server state stays comparable. Done when the warm-up completes and the server still answers the test endpoint.
Check each run for errors and truncation
After every measured run, check the output for failed requests, HTTP errors, timeouts and outputs that stopped early. A run with failures or truncated generations does not measure the intended load, so mark it invalid and rerun after finding the cause in the server log. Also confirm that the output length matches the configured target when --ignore-eos is used. Done when the run reports zero failed requests and the output lengths match the settings you chose.
Repeat runs until results are stable
Repeat the measured run several times with identical settings and compare the TTFT, TPOT and ITL results across runs. The number of repetitions and the acceptable spread are decisions your team should set before testing, and they should be written into the benchmark plan. If the spread is wide, look for background load on the GPUs or host, changes in the server state, or preemption, and fix those before accepting the numbers. Done when the repeated results fall within the spread your team agreed to and that spread is recorded with the final figures.
Reading TTFT, TPOT and ITL correctly
TTFT, or time to first token, is the delay between sending a request and receiving the first streamed token. It is dominated by two things: the prefill pass over the input prompt, and the time the request waits in the queue before the scheduler starts it. For an interactive chat user, TTFT is the moment the application feels responsive or stalls, so it is the metric that most often drives a latency complaint.
- Prompt length: Long system prompts and retrieved documents increase prefill work, so TTFT rises with input size even when the server is idle.
- Queueing: When concurrent requests exceed what the server can schedule with
--max-num-seqs, new requests wait, and that wait is added directly to TTFT. - Concurrency sweeps: Plot TTFT against concurrency to find the point where queueing begins to dominate, since it usually grows sharply past that knee.
- Chunked prefill effects: Scheduling settings change how prefill shares the batch with decode work, so compare TTFT only between runs with the same batching configuration.
- Cold starts: The first requests after startup can carry warm-up cost, so exclude them from the measured window.
Check whether your target TTFT is met at the concurrency your traffic actually reaches, not only at light load.
TPOT, or time per output token, measures the average time to generate each token after the first one. It reflects decode speed for a single request while the server shares its batch with other requests. For a chat user, TPOT determines how fast the answer streams once it has started, and for batch jobs it sets how long each completion takes to finish.
- Batch sharing: As more sequences decode together, each sequence typically generates tokens more slowly, so TPOT rises with concurrency even as total throughput improves.
- Output length: Benchmarks with fixed output lengths and ignored end-of-sequence tokens give comparable TPOT across runs, which real traffic does not.
- Throughput trade-off: A setting that raises aggregate tokens per second can also raise TPOT for each user, so decide which side of that trade matters for the workload.
- Formula differences: Some tools compute TPOT over the whole response and others over the decode phase only, so confirm the definition before comparing numbers.
- Hardware and parallelism: Changes in GPU layout or quantization move TPOT directly, which makes it the metric to check after those changes.
Record TPOT next to concurrency and output length so the number can be reproduced.
ITL, or inter-token latency, measures the gap between consecutive streamed chunks as the client receives them. It captures what the user sees as stutter or smoothness during streaming. ITL is closely related to TPOT, but it looks at the distribution of gaps rather than their average, so a stream can have a healthy average while still pausing noticeably at intervals.
- Scheduling pauses: Prefill work for new requests can interrupt decode steps, producing visible gaps in active streams.
- Chunk boundaries: Servers may deliver several tokens in one chunk, so ITL depends on how chunks are grouped as well as on generation speed.
- Client and network effects: Proxies, gateways and browsers add jitter, so measure from a client close to the application path when possible.
- Tail behavior: High ITL percentiles reveal stalls that averages hide, which matter most for voice and live assistant experiences.
- Comparability: Confirm whether the benchmark tool reports ITL per token or per chunk before comparing with another tool's output.
If ITL spikes appear under load, check scheduling and batching settings before blaming the model or the GPU.
Averages hide the requests users remember. A mean TTFT can look acceptable while a meaningful share of requests waits far longer, because queueing is uneven across bursts. For that reason, report percentiles, usually the median along with a high percentile such as p95 or p99, and read the spread between them as a measure of stability. Metric names and formulas also differ across benchmarking tools, so results are only comparable when they share definitions.
- Use percentiles: Compare median and tail values at each concurrency level rather than a single average.
- Match definitions: Confirm where each timer starts and stops, whether TPOT excludes the first token, and how ITL is grouped.
- Keep one tool: Run before and after comparisons with the same
vllm bench serveversion, dataset and flags. - Record the inputs: Store concurrency,
--num-prompts, input and output lengths and the server configuration with each result. - Avoid cross-tool tables: Do not place figures from another benchmark tool next to vLLM results without checking their formulas.
Before sharing any table, confirm that every number in it was produced with the same definitions and settings.
Running parameter sweeps without fooling yourself
A sweep compares settings, so small mistakes in method can look like performance differences. The practices below keep each run comparable, so the result you pick for go-live reflects the setting rather than the conditions around it.
Change one setting at a time
Vary a single flag per series, such as --max-num-seqs or --gpu-memory-utilization, and hold everything else constant. When two flags move together, you cannot tell which one caused a shift in TTFT or throughput. Keep the client concurrency tied to the server limit for each point in the series, so the load you test matches the setting you are judging.
Fix the dataset and seed
Use the same dataset, input and output length, request count and random seed for every run in a comparison. A different prompt mix changes prefill cost and output length, which shifts latency without any change in the server. Record the exact vllm bench serve command so another engineer can rerun the series and get comparable inputs.
Record version and flags
Log the vLLM version, the model revision, the GPU type and driver, and every server flag for each run, not only the ones you changed. A minor release can change scheduler defaults, so a result from one release may not carry over to the next. Keep these records with the results so a later upgrade can be measured against the same baseline.
Discard cold-start runs
Startup work, CUDA graph capture, compilation and the first requests after a restart can all inflate early latency numbers. Run a warm-up pass before the measured run, and confirm that the first requests are not included in the summary. Compare runs taken from a server in the same state, so a warm process is not measured against a freshly started one.
Watch for preemption and cache exhaustion
When the KV cache runs out, vLLM can preempt requests, and that work appears as sudden tail latency or lower throughput. A point that looks fast may be the one where requests were quietly delayed or recomputed. Check the server logs and /metrics for preemption and KV cache use during each run, and mark any run where they occur so it is not read as a clean result.
Judge against the latency target
The highest throughput number is rarely the right pick, because it often comes from a load where interactive latency is already poor. Set the TTFT and TPOT targets with the product owner before the sweep, then choose the best setting that meets them under your expected concurrency. Confirm the target values for your model, traffic pattern and users, because they depend on the workload rather than on any default.
How the benchmark client, server and metrics fit together
The run starts with the operator launching vllm serve with the flags under test, then pointing vllm bench serve at the OpenAI-compatible endpoints across the network boundary. The server schedules each request against GPU compute and KV cache, while the client records TTFT, TPOT and ITL from its own side of the connection. Check the client numbers against the server's /metrics endpoint, and treat any gap between them as a question about where each measurement starts and stops.
Client, server and metrics endpoint in one benchmark run, with the network boundary marked.
Security and operational considerations during testing
A benchmark run puts real load on a model server and touches endpoints, datasets and results that carry risk. The cards below cover where the load runs, which endpoints stay exposed, how to use metrics during a run, and how to keep the evidence.
Run benchmarks on an isolated network
Run vllm bench serve from a network segment that can reach the vLLM server and nothing else that matters. Benchmark clients generate sustained load, so a misconfigured run can starve production traffic or reach hosts it should not. Confirm which routes the benchmark host has before the first run, and confirm that the server's multi-node traffic, if any, stays on its own isolated network as the vLLM security docs require.
Do not rely on the API key alone
The --api-key option protects only the endpoints under /v1, /v2, /inference and /cohere. It does not protect /invocations, /pause, /resume, /abort_requests, /metrics or /health. Pause and abort endpoints can change server state during a test, so a benchmark host that can reach them is a risk. The docs recommend a reverse proxy that allowlists only the endpoints users need, and that proxy should be in place before the server is reachable from anywhere beyond the test network.
Use metrics to cross-check each run
The server exposes Prometheus-format metrics at /metrics, covering request counts, token throughput, latency histograms and KV cache use. Scrape them during each run and compare KV cache usage and token throughput with the client-side numbers from vllm bench serve. A large gap, or KV cache near full while throughput flattens, shows that the client and server views disagree and that the result needs a closer look before anyone acts on it.
Keep test datasets in your environment
Benchmark datasets can contain sensitive text, especially when teams replay production prompts or sample logs to match real traffic. Keep those files in the controlled environment where the benchmark runs, restrict who can read them, and avoid copying them into shared notebooks or public issue reports. Synthetic datasets such as random token sets avoid this exposure and are often enough for sizing, so confirm with the data owner which dataset your team is allowed to use.
Retain results and configs as change evidence
Store each benchmark result together with the exact vLLM version, model revision, server flags, client command and dataset identifier. These records show why a go-live configuration was chosen and let you reproduce or challenge it after an upgrade. Ask your change process whom they must be retained for and where, since the answer depends on your own policies rather than on vLLM.
Questions teams ask before benchmarking vLLM
How long does a vLLM benchmark take to run?
The run time depends on how many workloads you test, how many concurrency levels and parameter sweeps you include, and how long each run must last to produce stable numbers. A single vllm bench serve run is short, but a useful pass covers several concurrency levels, repeated runs and comparison against the settings you plan to ship. The bigger time cost is usually preparing representative prompts, standing up the server with the production flags and reviewing the results with the people who own the latency targets. Ask any partner to break the schedule into setup, test matrix, execution and reporting so you can see which part you are paying for. Accelerator hours are a separate line item that depends on how long the GPUs are reserved for testing.
Can our team run vLLM benchmarks without outside help?
Yes, if an engineer can start a vLLM server, install the benchmark tooling and read the output carefully. The benchmark CLI is part of the vLLM project, so the tooling itself has no license cost. What tends to be harder internally is choosing a realistic dataset, matching --max-concurrency to the server's --max-num-seqs, keeping the metric definitions straight and avoiding results that look good only because the test was too short or too narrow. Teams that benchmark for a go-live decision usually benefit from a second reviewer who has run the test before. Outside help makes most sense when you need a defensible report for a capacity or compliance review, or when the GPUs you need for testing are not available to your own team.
What would a partner deliver from a vLLM benchmark engagement?
A partner should deliver a written test plan, the benchmark configuration and commands used, the raw results and a report that explains what the numbers mean for your workload. In practice that means results for time to first token, time per output token and inter-token latency at the concurrency levels you care about, the server settings tested, and a clear statement of what was and was not measured. The report should also list the settings that changed results, the risks you should retest after an upgrade and the open questions for your team. The exact deliverables, formats and timelines are agreed in writing in a fixed-scope engagement before work starts, so ask for a list of deliverables in the scope document.
What do we need to provide for a vLLM benchmark?
Most of the work depends on four inputs from your side. First, access to a server or a staging environment with the same accelerators, drivers and network path you plan to use in production. Second, representative prompts or a dataset that reflects your input and output lengths, since synthetic datasets only approximate real traffic. Third, the exact server flags you intend to run, including the model, parallelism and the --max-num-seqs value. Fourth, reserved hardware time, because GPU capacity is usually the largest recurring cost during testing. Agree on who approves changes to the server during the test window, and whether benchmark traffic can touch systems that serve real users.
Does vLLM have a license fee for benchmarking?
No. vLLM is licensed under Apache-2.0 according to its GitHub repository and has no paid edition, so the software itself costs nothing to benchmark. The costs come from the GPU or other accelerator capacity you run tests on, the surrounding infrastructure such as storage and networking, implementation work if you hire a partner and the engineering time needed to run and interpret the tests. Accelerator capacity is the main variable: a test on hardware you already own has a different cost profile from a test on rented capacity. Ask any quote to separate hardware time, people time and report preparation so you can compare options fairly.
How often should we rerun vLLM benchmarks after upgrades?
Rerun the benchmark whenever the engine version, the model, the quantization, the parallelism layout or the key server flags change, because any of these can shift latency and throughput. vLLM ships new minor releases about every two weeks, for example v0.30.0 on September 22 and v0.31.0 on October 5, 2026, so a fixed schedule for every release is rarely practical. A common approach is to keep a small regression suite that runs on each candidate version before it reaches production, and to run the full sweep only on major configuration changes. Keep the commands, datasets and metric definitions under version control so that results from different releases can be compared directly.
What should we ask for in a vLLM benchmark quote?
Ask for a written scope that names the model, the hardware, the vLLM version, the datasets, the concurrency levels and the parameter sweeps to be tested. The quote should list the deliverables, the number of test rounds included, what happens if results need a retest, and who provides hardware time. Ask how the partner will handle metric definitions, since names such as time to first token are not standardized across tools, and how results will be compared with your latency targets. Confirm whether the quote includes a retest after a vLLM upgrade and what support is available afterward. DeployOpen does not publish a price list, and a quote follows from the written scope.
Official vLLM benchmarking and serving documentation
Before you run your first load test, read the vLLM benchmark CLI documentation. It describes the vllm bench serve subcommand, the dataset options and the flags that control request rate and concurrency, and it is the source of truth for what each reported metric measures. The documentation also notes that metric names are not standardized across benchmarking tools, so a figure from another tool may use a different measurement point or formula. Confirm the exact definitions in the version of the docs that matches the vLLM release you plan to run, since releases ship about every two weeks and flags can change between them. Pair that reading with the Llama 3.3 70B recipe, which shows a complete benchmark setup: a random dataset at 1024 input and 1024 output tokens, --ignore-eos, --max-concurrency matched to the server's --max-num-seqs, and --num-prompts set to at least five times the concurrency. Treat the recipe as a starting template and change the dataset and lengths to match your own traffic.
Next, read the online serving documentation to confirm which endpoints your benchmark will exercise, since the vllm serve process exposes OpenAI-compatible routes such as /v1/completions, /v1/chat/completions and /v1/responses, and the benchmark should target the same route your applications call. Then read the production metrics documentation, which explains the Prometheus-format data served at /metrics, including request counts, token throughput, latency histograms and KV cache usage. Your load test results should be checked against these server-side metrics, because a client-side number that disagrees with the server histograms usually points to a measurement or queuing problem worth investigating before go-live. Ask your platform team to confirm that /metrics is reachable from the benchmark host and that the histogram buckets cover the latency range you care about, since default buckets may hide the tail behavior you need to see.
How DeployOpen scopes and delivers vLLM benchmarking
DeployOpen approaches benchmarking a vLLM deployment as a measured step before go-live, run inside your own infrastructure against the server you plan to operate. We agree the workload, the concurrency targets and the metrics in writing first, then run the benchmark, document the results and hand over the scripts so your team can repeat them.
How we scope
- Agree in writing which models, server flags and hardware the benchmark covers before any runs start
- Define the traffic shape to test, such as chat-style prompts or a dataset closer to your real requests
- Set target TTFT, TPOT and ITL values and the concurrency levels that match your planned max-num-seqs
- Confirm which endpoints, network paths and accelerators are in scope, and who approves production access
How we build
- Prepare a repeatable vllm bench serve command set with fixed dataset, input and output lengths, and request counts
- Match --max-concurrency to the server's max-num-seqs and send enough prompts to reach a steady state
- Run parameter sweeps over memory, batching and decoding settings, recording each configuration with its results
- Record metric definitions and measurement points so results from different tools are compared on the same basis
How we hand over
- Deliver a written report with raw results, charts, the configurations tested and the conditions of each run
- Provide the benchmark scripts, dataset choices and configuration files so your team can rerun them after upgrades
- Walk your platform and SRE engineers through reading TTFT, TPOT and ITL and the limits of each reading
- Document the go-live thresholds agreed in scope and the open questions still to confirm in your environment
How we support
- Repeat the benchmark after a vLLM release, model change or hardware change, with the same method and scripts
- Continue benchmarking and tuning under a retainer if your workload or traffic pattern changes over time
- Review production metrics exposed at the /metrics endpoint against the benchmark baseline when issues appear
- Confirm support terms, response expectations and retest scope in the written agreement before work starts

