Ice PhiIce Phi
  • Pricing
  • Documentation
  • Pricing
  • API Reference
Getting Started
    Enterprise Shield AIIntegrations and SDK
Metrics
    Performance Benchmark
Legal and Compliance
    Terms of ServicePrivacy Policy
powered by Zuplo
Metrics

Performance Benchmark

Building an In-Process ONNX Guardrail: How Enterprise Shield Hits ~10ms Latency Without Sacrificing Recall

When building production LLM agents, security and latency are locked in a constant tug-of-war. Most enterprise guardrails force a painful architectural compromise: route prompts through a heavy, external API transformer model, add 140ms to 380ms+ of network and inference lag, or risk missing injection vectors entirely.

For agentic loops that execute multiple recursive prompt evaluations per user request, adding hundreds of milliseconds of overhead degrades performance.

Enterprise Shield solves this problem by shifting security processing directly in-memory using an optimized ONNX runtime. Below is a transparent breakdown of how it stacks up against standard solutions using real local benchmark data.


The Benchmark Data

To evaluate performance objectively, local benchmark evaluations compared Enterprise Shield against industry standards (ProtectAI DeBERTa-v3 and the Deepset Injection Detector) across two distinct threat and classification datasets.

1. Dataset: deepset/prompt-injections (343 evaluation samples)

This dataset tests baseline prompt injection detection capabilities under standard operational loads.

GuardrailAccuracyRecall (Defense)F1False Positivesp50 Latencyp95 Latency
Enterprise Shield (Direct In-Memory)91.03%92.61%0.8834/343 (9.91%)10.40 ms33.28 ms
ProtectAI DeBERTa-v379.12%46.31%0.625/343 (1.46%)134.32 ms277.24 ms
Deepset Injection Detector99.82%100.00%1.001/343 (0.29%)140.53 ms394.43 ms

2. Dataset: jackhhao/jailbreak-classification (262 evaluation samples)

This dataset pushes guardrails against complex, multi-layered jailbreak attempts and adversarial framing.

GuardrailAccuracyRecall (Defense)F1False Positivesp50 Latencyp95 Latency
Enterprise Shield (Direct In-Memory)76.34%95.68%0.8156/123 (45.53%)92.65 ms300.61 ms
ProtectAI DeBERTa-v391.22%84.89%0.912/123 (1.63%)344.55 ms1162.49 ms
Deepset Injection Detector55.73%100.00%0.71116/123 (94.31%)387.66 ms1446.25 ms

Key Takeaways from the Architecture

1. Blazing Speed via In-Memory ONNX Execution

  • The Numbers: Enterprise Shield handles standard prompt injection checking with a p50 latency of ~10.40ms, making it roughly 13x faster than external API-bound detectors sitting at 140ms+.
  • Why it matters: Executing directly in-process via an optimized ONNX runtime eliminates network serialization overhead and round-trip HTTP latency. This allows security middleware to run inline without dragging down application performance.

2. High Defense Recall on Complex Jailbreaks

  • The Numbers: On the jackhhao/jailbreak-classification dataset, Enterprise Shield achieved a 95.68% defense recall, outperforming ProtectAI DeBERTa-v3 (84.89%) while maintaining a fraction of the latency.
  • Why it matters: When dealing with aggressive jailbreak vectors, failing to catch an exploit creates critical vulnerabilities. Enterprise Shield prioritizes threat mitigation by catching the vast majority of advanced attacks.

3. Engineering Trade-offs: False Positives

  • The Reality: Achieving sub-15ms execution speeds with high recall involves a design trade-off—Enterprise Shield exhibits a higher false positive rate on edge-case inputs compared to heavier, slower models.
  • The Implementation: For systems prioritizing real-time responsiveness and high-recall threat mitigation, trading marginal false-positive overhead for a 10ms execution loop provides an optimal production trade-off.

Try It Locally

Payloads can be tested directly in the live sandbox, or packages can be downloaded to run local benchmarks against application logs:

  • Python: pip install icephi-python
  • TypeScript: npm i @ice_phi/icephi-ts
  • API Docs & Sandbox: icephi.com/api/agentic-guardrail
Last modified on August 8, 2026
Integrations and SDKTerms of Service
On this page
  • Building an In-Process ONNX Guardrail: How Enterprise Shield Hits ~10ms Latency Without Sacrificing Recall
    • The Benchmark Data
    • Key Takeaways from the Architecture
    • Try It Locally