What this benchmark helps you decide
TensorRT-LLM is NVIDIA's serving engine and carries a reputation for being the fastest option on NVIDIA hardware. For a team renting GPUs, that raises a practical question: on a modest, widely available card, does the hardware vendor's engine produce meaningfully more per hour than the open-source engines, and what does it ask of the operator in return?
This test uses the same GPU type, model, request shape, load generator and cost formula as the vLLM and SGLang tests. It helps teams weighing a move to TensorRT-LLM for throughput, and anyone planning how a new server should be brought into service.
Compare the baseline in the vLLM A40 report or read the vLLM, SGLang and TensorRT-LLM A40 comparison.
Why I ran this test
vLLM and SGLang matched each other on throughput and differed on how evenly tokens arrived. TensorRT-LLM completes the A40 column with the engine most likely to change the throughput answer.
- Why TensorRT-LLM: It is built and tuned by NVIDIA for NVIDIA GPUs, and version 1.2.1 serves Hugging Face models directly through a PyTorch backend with trtllm-serve, an OpenAI-compatible server, without the separate engine-build step older versions needed.
- Why the same A40 and model: Holding everything else fixed makes the comparison fair. TensorRT-LLM reserved about 470,000 tokens of KV cache after loading 14.4 GiB of weights.
- Why engine defaults: Most teams start with defaults. I kept those settings to compare the experience of running each engine out of the box.
Test setup
| Field | Value |
|---|---|
| Provider and location | RunPod Secure Cloud, on-demand, CA-MTL-1 |
| GPU and cost basis | NVIDIA A40 48 GB at a rounded $0.60 per hour |
| Model | Qwen/Qwen2.5-7B-Instruct in BF16 |
| Serving engine | TensorRT-LLM 1.2.1 (PyTorch backend) with default settings, in NVIDIA's release image |
| Request shape | 512 input tokens and 256 output tokens |
| Load generation | vllm bench serve 0.34.0 on the same Pod as the server, using random prompts |
The $0.60 hourly basis is RunPod's $0.59 GPU rate plus about $0.014 for the 100 GB container disk this image needed. NVIDIA's release image is about 16 GB compressed, so the Pod needs more disk and takes longer to pull than the other two tests. RunPod's billing record shows $3.00 of GPU time and $0.07 of disk, $3.08 in total for about 5.1 hours, consistent with those rates. About four of those hours were idle before setup began; the benchmark itself took about 50 minutes. Idle time does not change the figures on this page, which come from the hourly rate and measured throughput. The billing record is in the downloads, with the Pod ID removed.
The server log records the defaults that shaped this run. TensorRT-LLM reserved 470,428 tokens of KV cache, between SGLang's 428,234 and vLLM's 505,856. Chunked prefill was off, so each 512-token prompt was processed in one piece, with up to 8,192 tokens of work per scheduling step. Decode CUDA graphs were captured for batch sizes 1 to 32, 64 and 128, so a full batch at concurrency 64 had a prepared graph, while SGLang's stopped at 32. Prefix caching (KV cache block reuse) was on, as it was for the other two engines.
Repeatability, and a warm-up to plan for
The full sweep ran twice with identical settings, and both sweeps have raw JSON exports and checksums. The second sweep supplies the tables on this page. Output throughput agreed within 0.6% at concurrency 8, 32 and 64. Both sweeps used the same prompts and the second ran on a warm cache, so that agreement shows a stable run rather than independent repeats.
Concurrency 1 did not agree. The first sweep produced 27.6 tokens per second against 34.9 in the second, because one request stalled. That run lasted 96 seconds longer than its repeat (463.3 against 367.3 seconds), and its mean time to first token was 2,025 milliseconds against a median of 98, which together point to a single request that waited roughly 96 seconds before its first token. It was the first traffic the server received after start-up, and the log shows no error.
The stall repeated on two more cards. A single probe request sent straight after start-up waited 81.3 seconds for its first token on an RTX 6000 Ada and 74.9 seconds on a later A40. A freshly started TensorRT-LLM server can make its first user wait well over a minute: send a few warm-up requests before routing real traffic to a new server, and allow for it in any autoscaling plan.
| Concurrency | Sweep 1 tok/s | Sweep 2 tok/s |
|---|---|---|
| 1 | 27.63 | 34.85 |
| 8 | 262.40 | 260.76 |
| 32 | 872.61 | 869.39 |
| 64 | 1,489.34 | 1,490.01 |
Benchmark results
Swipe or scroll horizontally to compare every column.
| Concurrency | Requests | Output tok/s | Median TTFT | p99 TTFT | Median TPOT | p99 ITL | $ / 1M output (derived) | $ / 1K requests (derived) |
|---|---|---|---|---|---|---|---|---|
| 1 | 50 | 34.9 | 98 ms | 116 ms | 28.4 ms | 36.9 ms | $4.78 | $1.22 |
| 8 | 80 | 260.8 | 116 ms | 582 ms | 29.5 ms | 37.3 ms | $0.64 | $0.16 |
| 32 | 320 | 869.4 | 861 ms | 1,833 ms | 32.7 ms | 66.9 ms | $0.19 | $0.049 |
| 64 | 640 | 1,490.0 | 495 ms | 4,112 ms | 35.8 ms | 58.8 ms | $0.11 | $0.029 |
Every valid request completed and produced 256 output tokens. Median time per output token rose from 28.4 to 35.8 milliseconds. p99 inter-token latency stayed below 70 milliseconds at every load, and p99 time to first token reached about 4.1 seconds at the highest load. With a cold cache, the medians at concurrency 32 and 64 would be considerably higher.
What these figures include: a warm prefix cache
Every load level in this test reused the prompts of the level before it, and the second sweep, which supplies the tables above, repeated the first exactly. TensorRT-LLM's KV cache block reuse was on by default, so much of the prompt processing in the published run was served from cache. The figures describe a warm cache, not traffic in which every prompt is new.
A later A40 run measured both on one card: a cold sweep with new prompts at every level on a freshly started server, then this test's warm method. At concurrency 64, TensorRT-LLM's cold throughput was 17% below its warm figure and its median time to first token rose from 341 to 2,933 milliseconds; at concurrency 1 the difference was under 1%. Applied to this result, cold traffic at full load would cost about $0.14 per million output tokens rather than $0.11. The same check on an RTX 6000 Ada found a 20% drop.
That later A40 was about 20% faster than the card in this test, most likely because it had ECC memory protection off, so use the percentage change rather than its absolute figures. Its first request after start-up waited 74.9 seconds, so the warm-up stall has now appeared on three cards. After a restart on that same machine, the next first request waited 123 milliseconds, as on the RTX 6000 Ada.
What still holds: the engines tied on throughput, TensorRT-LLM's streaming sat between SGLang's and vLLM's, and its first-request warm-up stall repeated. What does not: any ranking built on a lead of a few percent.
Swipe or scroll horizontally to compare every column.
| Concurrency | Requests | Output tok/s | Median TTFT | p99 TTFT | Median TPOT | p99 ITL | $ / 1M output (derived) | $ / 1K requests (derived) |
|---|---|---|---|---|---|---|---|---|
| 1 | 50 | 41.4 | 94 ms | 108 ms | 23.9 ms | 28.0 ms | $4.02 | $1.03 |
| 8 | 80 | 297.7 | 574 ms | 679 ms | 24.6 ms | 28.7 ms | $0.56 | $0.14 |
| 32 | 320 | 956.5 | 1,567 ms | 2,129 ms | 27.6 ms | 32.8 ms | $0.17 | $0.045 |
| 64 | 640 | 1,436.3 | 2,932 ms | 4,198 ms | 33.1 ms | 116.5 ms | $0.12 | $0.030 |
With new prompts on that A40, the three engines finished within 3% of each other at concurrency 64, and their p99 time to first token at that load was within about 1.5%. TensorRT-LLM's p99 inter-token latency at full load rose from 55 milliseconds warm to 116 cold on that card, the opposite of the RTX 6000 Ada, where it fell from 153 to 76; the cause was not traced.
The warm and cold runs, with the engines' own cache counters, are in the same-card A40 run notes and its summary CSV.
Where TensorRT-LLM's lead came from, and where it did not
At concurrency 64, TensorRT-LLM produced 1,490 tokens per second against 1,453 for SGLang and 1,449 for vLLM. A lead of under 3% is small: on this card it moves the derived cost per million output tokens by less than half a cent. One likely contributor is CUDA graph coverage: whenever the batch was full at 64, TensorRT-LLM had a prepared graph for it, while SGLang's graphs stopped at 32. Batch sizes between 33 and 63 had no graph in either engine. With cold prompts, the three engines finished within 1.3% of each other at concurrency 64 on an RTX 6000 Ada and within 3% on a later A40, so the lead is best treated as a tie.
At low concurrency the order reversed. With one request at a time, TensorRT-LLM was about 1% behind vLLM and 2% behind SGLang, and its p99 inter-token latency was 37 milliseconds against 28 to 30 for the other two, with a similar median. With no batching to explain it, that small tail comes from somewhere in the per-token path; this test did not trace where.
Streaming at high load sat between the other two engines: p99 inter-token latency of 67 milliseconds at concurrency 32 and 59 at 64, well clear of vLLM's spikes of about 275 to 295 milliseconds but above SGLang's 33 and 44. That fits how TensorRT-LLM schedules work. Its in-flight batching runs new requests' prompt processing in the same step as token generation for requests already running, so some generation steps carry extra work. With chunked prefill off and a budget of 8,192 tokens per step, those steps were heavier than SGLang's but lighter than vLLM's worst. This test did not trace scheduler steps, so the explanation is the most likely cause rather than a measured one.
Self-hosted or API: where the break-even sits
On 20 November 2026, I recorded an OpenRouter list price of $0.10 per million input tokens and $0.20 per million output tokens for this model. A later check left the price unverified, so I use it here as a historical reference. The vLLM A40 report has the full note.
| Concurrency | Req/s | Self-hosted (derived) | API (historical reference) | API lower (modelled) | Cheaper |
|---|---|---|---|---|---|
| 1 | 0.14 | $1.22 | $0.10 | $0.046 | API |
| 8 | 1.02 | $0.16 | $0.10 | $0.046 | API |
| 32 | 3.40 | $0.049 | $0.10 | $0.046 | Depends on rate |
| 64 | 5.82 | $0.029 | $0.10 | $0.046 | Self-hosted |
The break-even depends on the hourly rate and the API price, not on the engine, so it matches the other two tests: about 1.6 requests per second sustained at the recorded price, or about 3.6 at the modelled lower price. TensorRT-LLM's small throughput lead only matters above that line, and at full load on this card it was worth less than half a cent per million output tokens. Its larger image and warm-up stall also lengthen the time between starting a Pod and serving useful traffic, which an API does not charge for.
Idle hours still cost $0.60 each, while an API charges nothing between requests. The comparison also excludes the engineering time required to operate and monitor a server.
How the attributed cost was calculated
This isolates the rented GPU time, including the Pod's own disk, attached to one million output tokens. A production model also includes other storage, transfer, cold starts, idle capacity, retries, observability and engineering work. The methodology keeps measured, published and modelled evidence distinct.
What this result can support
- On this card and traffic, TensorRT-LLM's throughput advantage at full load was under 3%, a margin I treat as a tie. The gap between a busy GPU and an idle one was much larger.
- New TensorRT-LLM servers should be warmed up before they take real traffic. The first request after start-up waited 96 seconds on this A40, 75 seconds on a later A40 and 81 seconds on an RTX 6000 Ada.
- The image, disk and start-up time are part of the operating cost. Plan scale-up time and disk size around a 16 GB image.
- Benchmarks that repeat prompts measure the prefix cache as well as the engine. Test with traffic that matches how often your own prompts repeat.
Use the GPU memory estimator to examine model fit before choosing hardware.
Evidence boundary
The result covers one GPU type, one model, TensorRT-LLM 1.2.1 with default settings and synthetic random prompts of fixed length. Every load level reused the previous level's prompts and the second sweep repeated the first, with KV cache block reuse on, so the published figures reflect a warm cache. The cold effect quoted on this page was measured on a later, faster A40 and on an RTX 6000 Ada, not on this card.
TensorRT-LLM exposes many tuning options, such as max_num_tokens, chunked prefill and its scheduler policy, and a tuned configuration could change both throughput and latency. The A40 is an Ampere card without FP8 support, so this test does not cover the FP8 paths TensorRT-LLM is often chosen for on newer GPUs. The load generator shared the Pod's CPU, and time from Pod creation to a ready server was not measured. The API comparison uses a list price on one date, not a measured API run.
Read GPU billing explained to compare billing increments, minimum charges and stop events.
Where this test sits in the research
This test forms part of the A40 column in the research matrix. The tests share a model, request shape and cost formula, with each engine running on a separate A40.
- Same card, all three engines: vLLM, SGLang and now TensorRT-LLM. The three-engine comparison brings the row together.
- Same engine, other card: the RTX 6000 Ada, the same 48 GB on a newer, more expensive chip with FP8 support. Read the TensorRT-LLM RTX 6000 Ada benchmark.
| Serving engine | NVIDIA A40 48 GB | NVIDIA RTX 6000 Ada 48 GB |
|---|---|---|
| vLLM | Field test 001 | Field test 004 |
| SGLang | Field test 002 | Field test 005 |
| TensorRT-LLM | This test | Field test 006 |
Frequently asked questions about this benchmark
What did this TensorRT-LLM A40 benchmark measure?
It measured output throughput, time to first token, time per output token and inter-token latency while Qwen2.5-7B-Instruct ran through TensorRT-LLM 1.2.1 on one rented NVIDIA A40. The four load levels used concurrency 1, 8, 32 and 64 with the same 512-token input and 256-token output shape as the vLLM and SGLang tests.
Was TensorRT-LLM faster than vLLM and SGLang?
At full load, slightly, in these warm-cache runs: about 2.8% more output per hour than vLLM and 2.5% more than SGLang at concurrency 64. At concurrency 1 and 8 it was 1% to 2% behind both. With cold prompts on two other cards the three were within 3%, so treat it as a tie. The derived cost at full load was about $0.11 per million output tokens for all three.
Why did the first request take so long?
In the first sweep, one request waited about 96 seconds for its first token. It was the first traffic after the server started, and the log showed no error. The cause was not traced, but the same stall repeated on an RTX 6000 Ada, at 81 seconds, and on a later A40, at 75 seconds, so it is a trait to plan for. Send warm-up requests to a new server before routing users to it.
How smooth was token streaming?
Between the other two engines. At concurrency 64, p99 inter-token latency was 59 milliseconds, against 44 for SGLang and 293 for vLLM. The most likely reason is that TensorRT-LLM processes new prompts in the same step as ongoing generation, without splitting them into chunks by default.
Did the prefix cache affect the results?
Yes, at the higher loads. The test reused prompts, so KV cache block reuse served much of the prompt processing. Measured warm and cold on one later A40, throughput at concurrency 64 was 17% lower with new prompts and the median wait for the first token was several times longer, with almost no difference at concurrency 1.
When was the rented GPU cheaper than the API?
Using the historical OpenRouter price I recorded on 20 November 2026, unverified on recheck, the break-even was about 1.6 requests per second sustained. The API was cheaper at the two lower load levels and the rented A40 was cheaper at concurrency 64.
Which costs are included?
The derived figures attribute the rounded hourly GPU and disk rate to output measured with a warm prefix cache. They exclude idle capacity, storage, transfer, retries, observability and engineering work.
Download and inspect the evidence
- Benchmark notes and method
- Download the summary CSV
- Raw JSON at concurrency 1
- Raw JSON at concurrency 8
- Raw JSON at concurrency 32
- Raw JSON at concurrency 64
- First-sweep JSON at concurrency 1
- First-sweep JSON at concurrency 8
- First-sweep JSON at concurrency 32
- First-sweep JSON at concurrency 64
- TensorRT-LLM server log
- Environment record: engine version
- Environment record: GPU
- Environment record: package list
- RunPod billing record
- SHA-256 checksums
- Prefix-cache check notes (RTX 6000 Ada, warm and cold)
- Prefix-cache check summary CSV
- Qwen2.5-7B-Instruct model card
- OpenRouter model page (price not currently shown)
- TensorRT-LLM in-flight batching documentation
- Questions and corrections: data@compareaicost.com