Scenario
Two clients, two numbers, one server
RolesInference EngineeringAI Evaluation and Reliability
- Engine
- vLLM 0.31.0, measured by the SGLang 0.5.22 client and by vllm bench serve
- Model
- Qwen/Qwen3-0.6B
- Hardware
- the shared second L4 of a two-GPU node, throttled but steady at 420 to 495 MHz
Situation
Two engineers evaluate one vLLM server that serves Qwen/Qwen3-0.6B on a shared L4, for a report that decides whether the team keeps the engine. The first uses the SGLang benchmark client at temperature 0.7, the temperature of the product, and files a median wait of 1,212 ms for the first token at 16 users and 331 output tokens each second at 64 users. The second uses vllm bench serve at temperature 0 and files 1,027 ms and 379 output tokens each second on that server.
The first engineer concludes that the server regressed between the two sessions and asks for a rollback of the last image. The second says the first client is broken. A third teammate ran all three clients, the SGLang client and the two versions of the vLLM client, against one server in interleaved rounds, and hands you the output.
Questions
- Before you read any table, list what differed between the two filings besides the server.
- Which cells of the TTFT table isolate the client, and what is the size of the client effect?
- Which cells isolate the temperature, and which metric does temperature move most?
- Why does one round at one user not count against the throughput finding?
- The two clients send different prompts. Why is that a confound here and not a cause?
- Write the benchmark rule that would have prevented this dispute, in four lines.
Commit to a cause after each listing. Write it down before you read the next one.
Evidence
one server, three clients, and the rules of the run
Read the clock line and the last line: the cache was flushed before every run and the clients took turns.
Three benchmark clients against one server (backlog B-14)
Date: 2026-10-23
Machine: NVIDIA L4, the second GPU of the node (GPU1), shared with its owner. The clock was throttled but steady at 420 to 495 MHz for every run.
Server: one vLLM 0.31.0 server with Qwen/Qwen3-0.6B.
Clients: the SGLang 0.5.22 client with --backend vllm and the random-ids dataset, vllm bench serve with the random dataset, and vllm bench serve with VLLM_USE_RUST_BENCH=1.
All runs: 512 tokens in and 128 out, ignore EOS, seed 1, prefix cache flushed before every run, 2 rounds interleaved by client.Source: manuals/vllm-101/capture/gpu/out-l4/bench-client-bias.txt, lines 1-6
median TTFT in ms from three clients at two temperatures
Compare the SGLang client column with the vllm bench column on each row.
Median TTFT in ms, two rounds per cell:
users temperature SGLang client vllm bench vllm bench, Rust
1 0 154, 164 149, 150 144, 144
1 0.7 165, 165 149, 150 150, 150
16 0 1,077, 1,045 1,033, 1,027 1,088, 1,038
16 0.7 1,212, 1,089 1,027, 1,038 1,066, 1,042
64 0 1,688, 1,838 1,624, 1,667 1,674, 1,789
64 0.7 1,765, 1,726 1,705, 1,675 1,687, 1,879Source: manuals/vllm-101/capture/gpu/out-l4/bench-client-bias.txt, lines 8-16
output tokens per second from three clients
Compare the columns at 16 and 64 users, then look at the first SGLang round at one user.
Output throughput in tok/s, two rounds per cell:
users temperature SGLang client vllm bench vllm bench, Rust
1 0 39.9, 31.0 32.0, 31.9 32.2, 31.8
16 0 218, 216 222, 222 223, 223
64 0 359, 348 379, 377 371, 365
64 0.7 331, 343 360, 363 356, 353Source: manuals/vllm-101/capture/gpu/out-l4/bench-client-bias.txt, lines 18-24
the four findings written under the tables
The third line names the confound, and the fourth gives the cost of temperature.
The two vllm bench clients agree within noise.
The SGLang client reads 3 to 10 percent higher TTFT than vllm bench. At 16 and 64 users it reads 2 to 8 percent lower throughput. At 1 user, one SGLang round read 39.9 tok/s against about 32 for every other round, so the throughput gap does not hold there. One outlier round reached 18 percent at 16 users and temperature 0.7.
The clients use different prompt token sets (random-ids against random), which is a confound for small gaps.
Temperature 0.7 against 0: TPOT about 10 to 13 percent higher at 1 user (34 ms at 0.7 against 30 ms at 0), and 3 to 6 percent higher at 16 and 64 users. Throughput 3 to 10 percent lower.Source: manuals/vllm-101/capture/gpu/out-l4/bench-client-bias.txt, lines 26-29
how the SGLang manual reads the same table
Read the last sentence.
- Our client read a median TTFT 3 to 10 percent higher than `vllm bench serve`. At 16 and 64 users, it read an output throughput 2 to 8 percent lower. At one user, one of its rounds read a higher throughput than every other round, so we give no throughput gap there.
- The Python and the Rust versions of `vllm bench serve` agreed within the noise.
- The clients send different prompt tokens from their random datasets, so part of a small gap can come from the prompts.
- Temperature 0.7 raised the median TPOT over temperature 0. It was 10 to 13 percent higher at one user, and 3 to 6 percent higher at 16 and 64 users.
So a gap of a few percent between two published numbers can come from the client alone. Report the client and the temperature with every result.Source: manuals/sglang-101/sections/5-1-sglang-benchmark-serving.md, lines 353-358
the four mistakes that make two runs disagree
Each item is one variable to hold fixed.
## Avoid the four mistakes
1. **Reusing a warm cache.** With the random dataset and a fixed seed, a second run sends the same prompts. The prefix cache then serves part of them, and the second run looks faster. The next section gives the protocol.
2. **Letting the model stop early.** Without `--ignore-eos`, some answers end before the output length. The run then measures fewer tokens than you asked for.
3. **Skipping the warmup.** The first requests after a start pay for compiled kernels and cold caches. Use `--num-warmups` or send a few requests before you measure.
4. **Ignoring the clock.** A GPU that throttles or that other work shares runs slower. Record `nvidia-smi --query-gpu=clocks.sm,temperature.gpu --format=csv -l 1` during the run. Compare two runs only at similar clocks.Source: manuals/vllm-101/sections/5-1-benchmark-your-server-in-15-minutes.md, lines 79-84
The answer
Show the walkthrough
- List the variables first. The two filings differ in the client, the dataset the client draws from, the temperature and the session, and so in the clock and the cache state. The server is the one thing they share. A disagreement of this size has four candidate causes before the server is one of them.
- Read the setup. The third teammate's run holds four of those variables fixed. One server. The clock sat between 420 and 495 MHz for every run, throttled but steady, so the clock cannot separate the clients. The prefix cache was flushed before every run. Two rounds, interleaved by client, so drift over the session hits every client alike. Every run sent 512 tokens in and 128 out with seed 1 and ignored the end token.
- Isolate the client in the TTFT table. Compare cells at the same temperature across the columns. At one user and temperature 0, the SGLang client read 154 and 164 ms,
vllm bench149 and 150, and its Rust version 144 and 144. At 16 users: 1,077 and 1,045 against 1,033 and 1,027. At 64 users: 1,688 and 1,838 against 1,624 and 1,667. The SGLang client reads a higher first token in every cell. The two vLLM clients agree with each other within the noise, which puts the noise floor at a few milliseconds at one user and tens at 64. - Isolate the temperature. Compare rows at the same client. For the SGLang client at 16 users, temperature 0.7 read 1,212 and 1,089 ms against 1,077 and 1,045 at 0. The notes under the tables give the metric that temperature moves most: the median TPOT was about 10 to 13 percent higher at one user, 34 ms against 30, and 3 to 6 percent higher at 16 and 64 users. Throughput was 3 to 10 percent lower. Sampling costs the server a kernel per token, and the client pays nothing for it, so the server is slower at 0.7 by that much on this card.
- Read the throughput table with its outlier. At 16 users the SGLang client read 218 and 216 tokens per second against 222 and 222. At 64 users, 359 and 348 against 379 and 377. At one user, one SGLang round read 39.9 against about 32 for every other round. One round out of two cannot stand as a finding, so the notes give no throughput gap at one user. The gap at 16 and 64 users is 2 to 8 percent, and the TTFT gap is 3 to 10 percent.
- Name the confound. The SGLang client drew its prompts from
random-ids, andvllm benchfromrandom. The two clients therefore sent different token sets, and part of a gap of a few percent can be the prompts, not the client code. The run cannot split those two, so it reports the combined client effect and names the confound. A cause would need the same prompts through both clients. - Put the two filings together. The first filing is the SGLang client at 0.7. The second is
vllm benchat 0. The gap between them is the client effect plus the temperature effect, measured on different days with no shared clock record. Nothing in it points at the image.
Show the resolution
No regression and no broken client. The two reports measured two methods. On this server, the SGLang client reads a median TTFT 3 to 10 percent higher and an output 2 to 8 percent lower than vllm bench serve at 16 and 64 users, with a prompt confound inside that gap, and temperature 0.7 adds 10 to 13 percent to the time per token at one user against temperature 0. The two vLLM clients agreed within noise, which is the size of a real difference on this card.
The rollback is cancelled. The team's rule has four lines: one client, one dataset and one temperature, written next to every number; interleaved rounds, at least two; a cache flush before each run; and the SM clock recorded, because the only reason this comparison held is that the clock stayed at 420 to 495 MHz throughout. A future report that uses a different client or temperature is a new baseline, not a comparison.
Show the wrong turns
“The server regressed, roll back the image.”
The two filings changed the client and the temperature at the same time, in different sessions. The controlled run shows that those two alone account for a gap of this size.
“The SGLang client is broken, because it reads a slower server.”
Both vLLM clients also read a slower server at 0.7 than at 0, and the SGLang client's offset is 3 to 10 percent with a prompt confound inside it. A client that reads a few percent higher is a different ruler, not a wrong one.
“Average the two filings.”
They measure different things. A mean of a run at 0.7 and a run at 0 is a number for a temperature nobody serves.
“Run at one user, where the numbers are tightest.”
At one user one SGLang round read 39.9 tokens per second against about 32 for every other round. Small loads are not immune to outliers, and a single outlier flips a two-round cell.
Show the general rule
A benchmark number is a property of the whole method, not of the server. Two numbers are comparable only when every part of the method that is not the thing under test stays fixed: the client, the dataset, the sampling settings, the cache state, the clock and the order of the runs. When two reports disagree, list what differed before you blame the system, and measure the size of each difference with a run that changes one thing at a time.
Taught in
The vLLM manual compares the three clients in the benchmark page, the SGLang manual reads the same table in its benchmark page, and the load testing lesson explains why the harness changes the number.