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

Hardware, model, engine and traffic assumptions used for every valid TensorRT-LLM run.
FieldValue
Provider and locationRunPod Secure Cloud, on-demand, CA-MTL-1
GPU and cost basisNVIDIA A40 48 GB at a rounded $0.60 per hour
ModelQwen/Qwen2.5-7B-Instruct in BF16
Serving engineTensorRT-LLM 1.2.1 (PyTorch backend) with default settings, in NVIDIA's release image
Request shape512 input tokens and 256 output tokens
Load generationvllm 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.

Output throughput in both TensorRT-LLM sweeps. Sweep 2 is published.
ConcurrencySweep 1 tok/sSweep 2 tok/s
127.6334.85
8262.40260.76
32872.61869.39
641,489.341,490.01

Benchmark results

Swipe or scroll horizontally to compare every column.

Measured TensorRT-LLM throughput and latency from the second sweep, which reused the first sweep's prompts with KV cache block reuse (prefix caching) on, so it reflects a warm cache. Cost is derived from throughput and a rounded $0.60 hourly rate.
ConcurrencyRequestsOutput tok/sMedian TTFTp99 TTFTMedian TPOTp99 ITL$ / 1M output (derived)$ / 1K requests (derived)
15034.998 ms116 ms28.4 ms36.9 ms$4.78$1.22
880260.8116 ms582 ms29.5 ms37.3 ms$0.64$0.16
32320869.4861 ms1,833 ms32.7 ms66.9 ms$0.19$0.049
646401,490.0495 ms4,112 ms35.8 ms58.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.

TensorRT-LLM with new prompts at every level on a later A40, measured after a fresh server start. That card was about 20% faster than the one in this test (ECC off), so read the change from warm to cold on that card, given in the paragraph above, rather than comparing these figures with the tables on this page. Cost is derived at $0.60 an hour.
ConcurrencyRequestsOutput tok/sMedian TTFTp99 TTFTMedian TPOTp99 ITL$ / 1M output (derived)$ / 1K requests (derived)
15041.494 ms108 ms23.9 ms28.0 ms$4.02$1.03
880297.7574 ms679 ms24.6 ms28.7 ms$0.56$0.14
32320956.51,567 ms2,129 ms27.6 ms32.8 ms$0.17$0.045
646401,436.32,932 ms4,198 ms33.1 ms116.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.

Cost per 1,000 requests on the rented A40 at each measured load, from the warm second sweep, compared with the recorded API rate and a modelled lower rate.
ConcurrencyReq/sSelf-hosted (derived)API (historical reference)API lower (modelled)Cheaper
10.14$1.22$0.10$0.046API
81.02$0.16$0.10$0.046API
323.40$0.049$0.10$0.046Depends on rate
645.82$0.029$0.10$0.046Self-hosted
break-even requests per second = hourly GPU cost ÷ (API cost per request × 3,600)

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

hourly GPU cost × 1,000,000 ÷ (output tokens per second × 3,600)

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 engines tested against GPUs. Published cells link to their field tests.
Serving engineNVIDIA A40 48 GBNVIDIA RTX 6000 Ada 48 GB
vLLMField test 001Field test 004
SGLangField test 002Field test 005
TensorRT-LLMThis testField 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

Continue through the research