Last updated: December 3, 2026
How fast are TrustGuard's guardrails? On one NVIDIA L4 GPU, NeuralTrust's seven detection models check a 128-token prompt in 3.0 to 4.8 ms, and one GPU serves up to 860 requests per second for that prompt size. A full 4,000-token document scan for indirect prompt injection takes 32.8 ms. On one CPU thread with no GPU, the same 128-token check takes 174 to 538 ms.
These figures come from NeuralTrust's own firewall performance benchmark, measured on December 3, 2026, with every token scored and caching off. The Firewall runs on trustrt, an inference runtime that NeuralTrust wrote from scratch with custom CUDA kernels in C++, replacing PyTorch on GPU.
In a second benchmark against NeuralTrust's previous firewall, trustrt served 2.30x the requests per second on the L4 at the median, and 1.15x on CPU. NeuralTrust engineer Martí Jordà ran both benchmarks.
TL;DR
- Latency on a GPU: 3.0 to 4.8 ms to check a 128-token prompt, across all seven models, on one NVIDIA L4. A 4,000-token document takes 32.8 ms for indirect prompt injection.
- Throughput on a GPU: 860 requests per second at peak for 128-token prompts, and more than 1.6 million checks per hour from one GPU with any of the seven models.
- Reliability in the test: 0 failed requests out of 558,180 served under sustained load, on GPU and on CPU.
- CPU is slower and grows with length: one inference thread answers in 174 to 538 ms at 128 tokens, and in seconds at 4,000 tokens, apart from complexity routing.
- trustrt, our own runtime: the current Firewall runs on trustrt, written from scratch with custom CUDA kernels in C++, replacing PyTorch on GPU. Against the previous firewall on one L4, it served 2.30x the requests per second at the median (up to 3.67x), used 72% less RAM per worker, and answered a single request 1.89x faster at the median. On CPU it served 1.15x at the median and used 22% to 45% less RAM per worker.
- Limits: one worker, no network time, and NeuralTrust ran the test itself.
At a glance: the benchmark in numbers
Quick Answer
Do runtime guardrails add noticeable latency? In this test, a TrustGuard check on a short prompt costs a few milliseconds on a GPU. Latency grows with input length, and it is much higher on a single CPU thread. Your real overhead also includes network hops and your own traffic mix, so measure it in your environment before you set a latency budget.
How we wrote this
This post reports two internal NeuralTrust benchmarks, measured on December 3, 2026, by NeuralTrust engineer Martí Jordà: a firewall performance benchmark and a comparison of trustrt with the previous firewall. Neither is a public report, so no independent party has verified them. We use only the figures from those benchmarks and NeuralTrust's public documentation, and we do not compare them with any other vendor's product.
What was measured
The benchmark measures seven NeuralTrust detection models in two ways: how fast one request is answered, and how many requests one machine serves every second. NeuralTrust's documentation describes the Firewall as the set of ML detectors that TrustGuard calls, hosted by NeuralTrust by default and runnable in your own cluster. In this post, "the Firewall" means those detectors, and "TrustGuard" means the runtime security product that sends traffic to them and returns a verdict.
The seven models are:
- Prompt jailbreak. Serves TrustGuard's prompt guard on every request.
- Indirect prompt injection. Finds hostile instructions in what a tool hands back, and in tool descriptions.
- Toxicity. Finds abusive, hateful or unsafe language.
- Topic guard. Serves TrustGuard topic policies. See Custom Moderation in the detector catalog.
- Multi-turn guard. Follows a conversation and keeps history per
session_id. - Data loss prevention. Finds personal data and secrets.
- Complexity routing. TrustGate's smart-routing scorer.
You can see the full list of detectors in the TrustGuard detector catalog, and which part of a request each one reads in Where each detector applies.
The test machines
Both machines are standard x86-64 cloud servers. The Firewall ran as one worker process with one inference thread.
| GPU machine | CPU-only machine | |
|---|---|---|
| Accelerator | 1x NVIDIA L4, 24 GB | None |
| CPU | x86-64 cloud vCPUs, AVX2 or newer | x86-64 cloud vCPUs, AVX2 or newer |
| Firewall CPU use | About one vCPU | One inference thread, about one vCPU |
| Memory | 16 GB RAM | 16 GB RAM |
| Requests in flight for throughput | 32 | 8 |
How it was measured
- Setup: each model ran in one Firewall worker process with one inference thread and its default production settings, on one L4 or on CPU alone.
- Latency: it covers the worker's whole HTTP endpoint, including authentication, parsing, tokenization, inference and the response. Requests were sent one at a time, and each figure is the median of 24. The client ran next to the worker, so no network time is included.
- Throughput: the test kept 32 requests in flight on the GPU and 8 on the CPU for at least 30 seconds and counted completed requests per second. The load generator was a separate process, and each figure is the mean of two runs.
- Inputs: every request carried a different text of the exact token count. The whole input was scored with no truncation, and caching was off.
- Special cases: the multi-turn guard received conversations made of user messages of up to 100 tokens, which means 2 messages at 128 tokens and 40 at 4,000. Topic guard checked one topic per request. Complexity routing scores the first 256 tokens of a prompt, so its time stays nearly flat.
Results on one NVIDIA L4 GPU
At 128 tokens, every model answers in 3.0 to 4.8 ms, and the fastest to answer is toxicity at 3.0 ms.
)
Source: NeuralTrust firewall performance benchmark, Dec 3, 2026.
GPU latency by input length
Median time to answer one request, in milliseconds.
| Model | 128 tokens | 512 tokens | 1,024 tokens | 4,000 tokens |
|---|---|---|---|---|
| Prompt jailbreak | 3.5 | 5.9 | 10.3 | 33.0 |
| Indirect prompt injection | 3.5 | 5.7 | 10.2 | 32.8 |
| Toxicity | 3.0 | 5.8 | 10.1 | 35.9 |
| Topic guard | 3.1 | 5.3 | 9.5 | 37.0 |
| Multi-turn guard | 4.8 | 7.6 | 12.8 | 52.2 |
| Data loss prevention | 3.4 | 6.2 | 10.9 | 37.4 |
| Complexity routing | 4.7 | 6.3 | 7.3 | 7.9 |
Latency rises with input length for six of the seven models, because the whole input is scored. For those six models, the range at 4,000 tokens is 32.8 to 52.2 ms. Complexity routing stays between 4.7 and 7.9 ms because it scores only the first 256 tokens.
GPU throughput by input length
Completed requests per second, with 32 requests in flight.
| Model | 128 tokens | 512 tokens | 1,024 tokens | 4,000 tokens |
|---|---|---|---|---|
| Prompt jailbreak | 819 | 244 | 111 | 27 |
| Indirect prompt injection | 774 | 236 | 109 | 27 |
| Toxicity | 842 | 191 | 97 | 24 |
| Topic guard | 768 | 192 | 99 | 24 |
| Multi-turn guard | 570 | 171 | 84 | 20 |
| Data loss prevention | 860 | 340 | 169 | 42 |
| Complexity routing | 450 | 246 | 239 | 239 |
At 128 tokens, throughput runs from 450 to 860 requests per second. The slowest model, complexity routing, still serves 450 requests per second, which is more than 1.6 million checks per hour (450 requests per second times 3,600 seconds is 1,620,000). For six of the seven models, throughput falls as input grows, because each request has more tokens to score.
)
Source: NeuralTrust firewall performance benchmark, Dec 3, 2026.
Results on a single CPU thread, with no GPU
The CPU-only machine shows what happens with no accelerator at all. These figures are for a single inference thread, and a deployment adds threads or replicas to serve more traffic.
CPU latency by input length
Median time to answer one request.
| Model | 128 tokens | 512 tokens | 1,024 tokens | 4,000 tokens |
|---|---|---|---|---|
| Prompt jailbreak | 504 ms | 2.1 s | 4.1 s | 15.6 s |
| Indirect prompt injection | 294 ms | 1.1 s | 2.2 s | 8.9 s |
| Toxicity | 484 ms | 2.0 s | 4.0 s | 15.8 s |
| Topic guard | 384 ms | 2.0 s | 3.8 s | 15.3 s |
| Multi-turn guard | 538 ms | 2.1 s | 4.1 s | 16.2 s |
| Data loss prevention | 312 ms | 1.2 s | 2.3 s | 9.0 s |
| Complexity routing | 174 ms | 178 ms | 173 ms | 177 ms |
CPU throughput by input length
Completed requests per second, with 8 requests in flight.
| Model | 128 tokens | 512 tokens | 1,024 tokens | 4,000 tokens |
|---|---|---|---|---|
| Prompt jailbreak | 3.2 | 0.80 | 0.39 | 0.10 |
| Indirect prompt injection | 2.1 | 0.51 | 0.25 | 0.06 |
| Toxicity | 2.3 | 0.54 | 0.27 | 0.07 |
| Topic guard | 3.0 | 0.59 | 0.30 | 0.07 |
| Multi-turn guard | 1.8 | 0.48 | 0.24 | 0.06 |
| Data loss prevention | 3.3 | 0.87 | 0.42 | 0.11 |
| Complexity routing | 7.2 | 7.2 | 7.2 | 7.2 |
On one CPU thread, a 128-token check takes 174 to 538 ms, and at 4,000 tokens it takes 8.9 to 16.2 s for every model except complexity routing, which stays near 177 ms. Treat the CPU figures as a single-thread floor. They show why input length matters on CPU, and they are not a target for production traffic.
Why it's fast: trustrt vs the previous firewall
NeuralTrust's current Firewall runs on trustrt (version 0.3.3), an inference runtime that NeuralTrust wrote from scratch for its models. It replaces PyTorch on GPU, and it uses custom CUDA kernels written in C++. NeuralTrust engineer Martí Jordà ran a second benchmark that compares trustrt with the previous firewall, which is the last version before trustrt and ran PyTorch on GPU and ONNX Runtime on CPU. Both versions load the same production checkpoint of each model. The comparison is against NeuralTrust's own earlier version only, and not against any other product.
Headline figures
| Measure | Previous firewall | trustrt | Result |
|---|---|---|---|
| L4 throughput, median across 28 model and prompt-size combinations | Baseline | 2.30x | More requests per second in 28 of 28 combinations, up to 3.67x |
| CPU throughput, median across 28 combinations | Baseline | 1.15x | More requests per second in 28 of 28 combinations |
| One request alone on the L4, median speed-up | Baseline | 1.89x faster | Faster in 35 of 35 combinations |
| RAM per worker on the L4 | 5,536 MB | 1,572 MB | 72% less |
| GPU memory per worker | 1,550 MiB | 1,015 MiB | 35% less |
| GPU Docker image | 10.31 GB | 7.04 GB | 32% less |
| Startup on the L4, to a healthy worker | 27.2 s | 17.3 s | Faster |
The RAM, GPU memory and startup figures are the median across the seven model workers.
Throughput on the L4, per model
At 512 tokens, trustrt serves between 1.18x and 3.58x the requests per second of the previous firewall, depending on the model.
)
Source: NeuralTrust trustrt benchmark, Dec 3, 2026.
Requests per second with 32 requests in flight, previous firewall to trustrt. The gain is trustrt divided by the previous firewall. Complexity routing is shown with truncation on, where both versions score one window.
| Model | Gain across prompt sizes | 128 tokens (req/s) | 4,000 tokens (req/s) |
|---|---|---|---|
| Prompt jailbreak | 2.02 to 3.62x | 406 to 819 | 12.3 to 27.0 |
| Indirect prompt injection | 2.10 to 3.67x | 368 to 774 | 11.7 to 27.1 |
| Toxicity | 2.04 to 2.91x | 398 to 842 | 11.7 to 23.8 |
| Topic guard | 2.64 to 3.58x | 291 to 768 | 7.12 to 24.0 |
| Multi-turn guard | 2.09 to 3.32x | 172 to 570 | 9.51 to 19.9 |
| Data loss prevention | 1.90 to 2.49x | 345 to 860 | 22.0 to 41.9 |
| Complexity routing | 1.17 to 1.48x | 304 to 450 | 203 to 239 |
One request alone
Median speed-up of trustrt over the previous firewall for one request at a time, which is 1.89x at the median on the L4 and faster in 35 of 35 L4 combinations. Complexity routing is shown with truncation on. The trustrt latencies themselves are in the results tables above.
| Model | L4, 128 tokens | L4, 4,000 tokens | CPU, 128 tokens | CPU, 4,000 tokens |
|---|---|---|---|---|
| Prompt jailbreak | 1.63x | 2.30x | 1.55x | 1.02x |
| Indirect prompt injection | 1.62x | 2.30x | 1.88x | 1.42x |
| Toxicity | 1.66x | 1.96x | 1.53x | 1.00x |
| Topic guard | 1.95x | 4.10x | 1.05x | 1.55x |
| Multi-turn guard | 1.92x | 1.89x | 1.09x | 1.00x |
| Data loss prevention | 1.71x | 1.53x | 1.64x | 1.07x |
| Complexity routing | 1.29x | 1.29x | 0.98x | 0.96x |
Resources per worker on the L4
| Model | RAM (MB) | GPU memory (MiB) | Startup (s) |
|---|---|---|---|
| Prompt jailbreak | 5,579 to 1,572 (-72%) | 1,577 to 1,015 (-36%) | 27.2 to 24.2 (-11%) |
| Indirect prompt injection | 5,576 to 1,572 (-72%) | 1,577 to 1,015 (-36%) | 29.0 to 23.4 (-19%) |
| Toxicity | 5,536 to 1,544 (-72%) | 1,478 to 1,004 (-32%) | 25.7 to 17.3 (-33%) |
| Topic guard | 5,489 to 1,728 (-69%) | 1,550 to 1,176 (-24%) | 21.2 to 15.6 (-26%) |
| Multi-turn guard | 6,078 to 1,622 (-73%) | 1,869 to 1,365 (-27%) | 28.0 to 17.4 (-38%) |
| Data loss prevention | 5,413 to 1,825 (-66%) | 855 to 839 (-2%) | 20.0 to 13.7 (-32%) |
| Complexity routing | 5,240 to 1,376 (-74%) | 1,386 to 998 (-28%) | 27.2 to 16.5 (-39%) |
The GPU image is 3.27 GB smaller, from 10.31 GB to 7.04 GB (32% less, compressed in the registry), because trustrt replaces PyTorch. The CPU image goes from 7.04 GB to 6.89 GB (2% less), because it already ran without PyTorch.
Under load at 512 tokens, GPU utilization rises for every model, for example from 91% to 98% for prompt jailbreak and from 40% to 90% for data loss prevention. The benchmark notes that trustrt often uses more of the GPU because it serves more requests, and worker CPU use at 512 tokens also rises for most models.
trustrt on CPU
On CPU, trustrt serves more requests per second than the previous firewall in 28 of 28 model and prompt-size combinations. The median gain is 1.15x, and the range is 1.02x to 1.80x. The gains are largest for short prompts, and for topic guard at long ones. The gain is smaller than on the L4. The previous firewall already ran ONNX Runtime on CPU, not PyTorch. Under load, both versions use about 0.98 to 0.99 CPU cores per worker, so trustrt does more work on the same CPU budget. It also uses 22% to 45% less RAM per worker.
Requests per second under load with 8 requests in flight, previous firewall to trustrt.
| Model | Gain across prompt sizes | 128 tokens (req/s) | 4,000 tokens (req/s) |
|---|---|---|---|
| Prompt jailbreak | 1.26 to 1.80x | 1.78 to 3.21 | 0.0779 to 0.0979 |
| Indirect prompt injection | 1.03 to 1.61x | 1.32 to 2.12 | 0.0607 to 0.0639 |
| Toxicity | 1.02 to 1.59x | 1.42 to 2.25 | 0.065 to 0.0684 |
| Topic guard | 1.09 to 1.71x | 2.76 to 3.01 | 0.0455 to 0.0733 |
| Multi-turn guard | 1.02 to 1.24x | 1.51 to 1.83 | 0.0558 to 0.0567 |
| Data loss prevention | 1.04 to 1.66x | 2.02 to 3.34 | 0.107 to 0.111 |
| Complexity routing | 1.09 to 1.12x | 6.67 to 7.24 | 6.52 to 7.19 |
Resources per worker on CPU. Startup is the time to a healthy worker.
| Model | RAM (MB) | Startup (s) |
|---|---|---|
| Prompt jailbreak | 2,357 to 1,579 (-33%) | 10.8 to 12.8 (+19%) |
| Indirect prompt injection | 2,374 to 1,553 (-35%) | 15.2 to 26.3 (+73%) |
| Toxicity | 2,358 to 1,534 (-35%) | 13.4 to 14.7 (+10%) |
| Topic guard | 2,345 to 1,839 (-22%) | 15.4 to 7.0 (-55%) |
| Multi-turn guard | 2,728 to 1,511 (-45%) | 21.8 to 21.0 (-4%) |
| Data loss prevention | 2,289 to 1,631 (-29%) | 20.3 to 16.4 (-19%) |
| Complexity routing | 1,384 to 871 (-37%) | 14.1 to 13.6 (-4%) |
The CPU Docker image goes from 7.04 GB to 6.89 GB (2% less). It already ran without PyTorch and is mostly the models, so it loses only 0.15 GB.
Where trustrt is still slower
- Complexity routing on CPU, one request at a time. The previous firewall took 171, 173 and 170 ms at 128, 1,000 and 4,000 tokens. trustrt took 174, 177 and 177 ms (0.98x, 0.98x and 0.96x). That is 2 to 4% slower, within noise.
- Startup on CPU for three models. The time to a healthy worker is longer for prompt jailbreak (10.8 to 12.8 s, +19%), indirect prompt injection (15.2 to 26.3 s, +73%) and toxicity (13.4 to 14.7 s, +10%). On the L4, startup is shorter for every model.
- Long inputs, one request at a time. Several CPU latencies at 4,000 tokens are unchanged (1.00x to 1.02x).
- Under load, no exceptions. trustrt serves more requests in every combination on both devices.
- Noise. Per-pass latency medians differ by up to 26% on CPU and 32% on the L4, so treat differences of a few percent as noise.
How the comparison was run
- Both versions ran back to back in the same cloud container, with two alternating passes each.
- Every request used a different text. Truncation was disabled, and the score, embedding and decision caches were off.
- Latency is the median of 24 requests sent one at a time. Load runs kept a fixed number of requests in flight (32 on the L4, 8 on CPU) for 30 seconds, and each figure is the mean of two passes.
- Each container had 1 inference thread and 16 GiB of RAM, plus one L4 for the GPU runs. Most CPU hosts had AVX2 without AVX-512, and two of the 28 containers had AVX-512, each running both versions.
- Multi-turn guard messages are split into chunks of at most 100 tokens.
What the numbers mean for your latency budget
- Short prompts on a GPU are cheap. A 128-token check costs 3.0 to 4.8 ms at the Firewall endpoint, before network time.
- Long documents cost more. A 4,000-token document takes 32.8 to 52.2 ms on the GPU for the six models that score the whole input, so plan document and tool-result scanning separately.
- Budget for the detectors you attach. The benchmark measured each model on its own, so it gives no combined figure. Test your own policy.
- Size CPU deployments by input length, and add your own network path. The benchmark client ran next to the worker.
Where TrustGuard fits
TrustGuard is runtime security for AI agents. According to NeuralTrust's documentation, it inspects prompts, responses and tool activity, and it returns a verdict that a collector enforces, such as a gateway, a coding-agent hook or your own code. A collector waits for the verdict before it acts, so the speed of the detectors matters. For examples of collectors, see the Apache APISIX integration, the Gemini Enterprise integration through TrustGate and the Kiro integration. To learn how verdicts are enforced, read How TrustGuard works.
Limits of these benchmarks
- NeuralTrust measured them. There is no independent verification, and the benchmarks are not public.
- The trustrt comparison is against NeuralTrust's own previous firewall. It says nothing about any other product.
- One worker, one inference thread. The figures are not a deployment sizing guide. A deployment adds threads or replicas to serve more traffic.
- No network time. The client ran next to the worker.
- Each model on its own. The tests did not measure several detectors running together in one policy.
- Specific hardware and inputs. Results depend on hardware, input mix and configuration, and every request had an exact token count.
- CPU latency is high at long inputs. It reaches seconds from 512 tokens for six of the seven models.
- Zero failures covers the first benchmark only. It means 0 failed out of 558,180 requests under sustained load in those runs.
Bottom Line: Guardrails That Fit a Latency Budget
For short prompts on a GPU, NeuralTrust's own test puts a TrustGuard check in the single-digit milliseconds, with one GPU serving up to 860 requests per second, and trustrt cut RAM per worker by 72% against the previous firewall. For long inputs and for CPU-only setups, the cost is higher and has to be sized on purpose. Treat the figures as a starting point: create a policy, attach it to a collector, start in Observe mode as NeuralTrust's quickstart recommends, and compare end-to-end latency with and without the check.
Try TrustGuard Free
Start with the free plan or book a demo to see runtime guardrails on your own traffic.
Related Guides
- Apache APISIX TrustGuard Integration
- Secure Gemini Enterprise MCP Tool Calls
- Kiro Security: NeuralTrust Integration
- AI Gateway Security
- Prompt Injection Detection in the LLM Stack
- AI Model Data Leakage Prevention
FAQs about TrustGuard Performance
1. How fast are TrustGuard's detection models on a GPU?
On one NVIDIA L4 GPU, NeuralTrust measured 3.0 to 4.8 ms to check a 128-token prompt across all seven models. A 4,000-token document takes 32.8 ms for indirect prompt injection. These are median figures at the worker's HTTP endpoint, with no network time and with caching off.
2. How many requests can one GPU handle?
With 32 requests in flight, one NVIDIA L4 reached 860 requests per second at peak for 128-token prompts. That equals more than 1.6 million checks per hour with any of the seven models. Throughput falls as inputs get longer, down to 20 to 42 requests per second at 4,000 tokens for six of the models.
3. Can TrustGuard's detectors run on CPU only?
Yes, in this benchmark they ran on a single CPU thread with no GPU. A 128-token check took 174 to 538 ms, and a 4,000-token check took 8.9 to 16.2 seconds, except complexity routing at about 177 ms. A deployment adds threads or replicas to serve more traffic.
4. Does the benchmark include network time?
No. The client ran next to the worker, so no network time is included. The latency does cover the worker's whole HTTP endpoint: authentication, parsing, tokenization, inference and the response. Your end-to-end figure will be higher, depending on where your collector and the Firewall sit.
5. Did any requests fail during the test?
No. NeuralTrust reports 0 failed requests out of 558,180 served under sustained load, on both GPU and CPU. That result covers this benchmark only. Results depend on hardware, input mix and configuration, so test your own traffic before you rely on it.
6. Who ran the benchmark, and can I verify it?
NeuralTrust engineer Martí Jordà ran both benchmarks on December 3, 2026, and the reports are not public, so there is no independent verification. The post lists the hardware, input rules and method so you can design a comparable test. To validate the numbers, run your own traffic through a TrustGuard collector in Observe mode.
7. Does TrustGuard use PyTorch?
No. The current Firewall runs on trustrt, an inference runtime NeuralTrust wrote from scratch with custom CUDA kernels in C++, and it replaces PyTorch on GPU. The previous firewall used PyTorch on GPU. On one L4, trustrt served 2.30x the requests per second of that version at the median, and used 72% less RAM per worker.
About the Author
Roger Howroyd is Head of Global SEO and AI at NeuralTrust, where he leads the company's search strategy across SEO, AEO, GEO, and LLM optimization. He specializes in AI-powered search, content strategy, and SEM. Connect on LinkedIn.
NeuralTrust is the leading platform for securing and scaling AI agents. Named a Pioneer in the Gartner Emerging Market Quadrant for AI Application Security 2026, recognized across four Gartner Hype Cycle reports in 2026, and featured in the Gartner Market Guide for Guardian Agents 2026, the Gartner Market Guide for AI Gateways 2025 and the KuppingerCole Leadership Compass for Generative AI Defense 2025. Headquartered in Barcelona with offices in London and New York. ISO 27001 certified.
Sources
Accessed December 3, 2026.
- NeuralTrust, "Firewall performance benchmark, December 2026" (internal benchmark, measured on December 3, 2026 by NeuralTrust engineer Martí Jordà, not public).
- NeuralTrust, "Old firewall against trustrt" (internal benchmark, measured on December 3, 2026, trustrt 0.3.3, not public).
- NeuralTrust Docs, "TrustGuard".
- NeuralTrust Docs, "Detector catalog".
- NeuralTrust Docs, "Where each detector applies".
- NeuralTrust Docs, "How it works".
- NeuralTrust Docs, "Quickstart".
)
)
)
)
)
)