How to benchmark vLLM at a fixed request rate

Run the same request mix at your intended peak requests per second and at one lower rate. Compare client p95 time to first token (TTFT), the actual dispatch rate and failures. A result at the lower rate only supports that tested traffic level.

Choose an offered rate from your traffic

Choose a peak window and preserve its mix of prompt lengths, output limits and burstiness. Requests per second measure new arrivals. Concurrency measures outstanding work. If the load generator queues requests behind a concurrency cap, actual dispatch can fall below the offered rate. Record both before evaluating the result.

Similar output throughput can coincide with different client TTFT. In six historical A100 SXM runs, throughput was roughly 1,135–1,139 output tokens per second. Run-level first-token p95 ranged from about 752 to 1,261 ms. These loopback tests used one allocation per offer and fixed concurrency. They motivate measuring latency at your workload rate against your own service, rather than treating the historical figures as a capacity claim.

Run two synthetic checks on an endpoint you control

This vLLM 0.30.0 example assumes a running local OpenAI-compatible vLLM server, Bash and the served model name and matching local tokenizer you supply. The random prompts are for load diagnostics. Use a representative, authorized workload through the real application path before a procurement decision.

for rate in 4 8; do
vllm bench serve --backend vllm \
--base-url http://127.0.0.1:8000 \
--endpoint /v1/completions \
--model YOUR_SERVED_MODEL \
--tokenizer YOUR_LOCAL_TOKENIZER \
--dataset-name random \
--random-input-len 1000 \
--random-output-len 250 \
--num-prompts 500 --seed 17 \
--request-rate "$rate" \
--percentile-metrics ttft \
--metric-percentiles 95 \
--save-result \
--save-detailed \
--result-filename "rate-$rate.json"
done

The finite request rate is a target average. With the default burstiness setting, vLLM samples Poisson arrivals. The two 500-attempt examples have different expected durations. Test equivalent, documented windows over representative traffic for the buying decision. Before each measured run, use a consistent warm-up and record cache state. Keep the model, payload mix, client placement and concurrency policy fixed. vLLM 0.30.0 benchmark arguments.

Record the result of each rate separately

Copy these fields for each run. Fill them from the benchmark client and your application test records.

  • Peak or lower rate, measured window, target requests/s and actual dispatch requests/s.
  • Attempt count, successful streamed requests, errors, timeouts and any requests that failed before a first token.
  • Application-client p95 TTFT for measurable requests, count above your limit and the policy for classifying failures.
  • Task acceptance, output throughput, cache policy and configuration revision.

A fast p95 among successful requests can conceal timed-out requests. Apply your declared failure policy and check both the latency and failure limits. If the intended rate was never delivered, repeat the test or hold the decision. One passing and one failing rate bracket this trial only if the arrival patterns were comparable. Use the evidence checker to assess whether the sample supports your target.

Check your latency trial evidence