Performance & sizing¶
Reference performance figures and hardware requirements for planning an on-premises deployment.
Figures are measured, not estimated. They come from the full-coverage scan pipeline benchmark, run on three machines with the whole stack and the load driver on one host, so no network time is included.
Validation latency¶
Per-filter cost for a 467 character payload, one request at a time, above the pipeline's own baseline. Each filter was measured alone, on the same corpus, with every model on GPU.
Content of 512 characters or more is split into chunks of up to 500 characters, so a 467-character payload is scanned as one chunk of close to the largest size a chunk carries.
These figures assume a GPU
GPU_ACCELERATION defaults to False in the deployment template, so an
on-premises install runs every filter on CPU unless a GPU is assigned. The table
below was measured with a GPU and applies only to deployments with one. It does
not describe a CPU deployment: the translation filter alone is four to seven
times slower on CPU (see below).
| Filter | 2x RTX A4000 | Tesla T4 | NVIDIA L4 |
|---|---|---|---|
| Language | under 1 ms | under 1 ms | under 1 ms |
| Content, 8 predefined topics | 14 ms | 22 ms | 14 ms |
| Content, 28 predefined topics | 30 ms | 27 ms | 14 ms |
| Content, 1 custom topic | 33 ms | 39 ms | 19 ms |
| Content, 4 custom topics | 89 ms | 96 ms | 54 ms |
| Content, 16 custom topics | 231 ms | 306 ms | 167 ms |
| PII, PERSON + LOCATION | 17 ms | 29 ms | 12 ms |
| PII, 8 regex entity types | 30 ms | 34 ms | 19 ms |
| PII, all 10 entity types | 48 ms | 55 ms | 29 ms |
| Prompt injection | 32 ms | 19 ms | 10 ms |
| Custom Filter denylist | 27 ms | 25 ms | 17 ms |
| Baseline, no filters configured | 22 ms | 39 ms | 22 ms |
Five things this table does not say on its own¶
The content filter has two paths, and choosing the wrong one costs 10x. Topics from the predefined list are scored by a single model pass however many are configured: 8 topics cost 14 ms and 28 cost 30 ms. Custom topics are scored by a general-purpose model, one comparison per topic, and 16 of them cost 231 ms. If a custom topic can be expressed as a predefined one, it should be.
The baseline is not idle. Language detection runs on every chunk of every request whatever the configuration, because the product must know a message's language before it can decide whether to translate it. Turning the Language filter on adds only a check against the configured list, which is why it costs under a millisecond, and why configuring 60 languages costs the same as one.
Filters do not add up. They run concurrently, so a configuration costs close to its most expensive filter rather than the sum. On the A4000, every filter type enabled together costs 87 ms against 70 ms for the PII filter alone.
Cost scales with payload size, but sub-linearly. Content of 512 characters or more is split into chunks of up to 500 characters that are scanned concurrently, so twelve times the text costs about four times the time, not twelve. Note that the threshold counts characters, not bytes: a 467-character Chinese message is 1,288 bytes and is still scanned as a single chunk.
Cost scales with concurrent load, steeply. These are single-request figures. Each filter processes one inference at a time, so concurrent requests queue. On the A4000 a 467-character payload with every filter type on costs 87 ms alone and 1,090 ms with 32 requests in flight. Size a deployment for its concurrency, not for its payloads.
Translation¶
Non-English content is translated before the content and prompt injection filters see it. That cost is not in the table above because it depends on the source language and on whether the translation service has a GPU.
By default the translation filter runs on CPU, which is how it ships. The figures below are with a GPU assigned to it, and it is between four and seven times slower without one:
| 470 char payload | 2,900 char payload | |
|---|---|---|
| German | 158 ms | 332 ms |
| Arabic | 186 ms | 383 ms |
| French, Spanish, Italian | 185-197 ms | 417-433 ms |
| Dutch, Russian | 194-210 ms | 442-443 ms |
| Chinese, Japanese | 320 ms | 721 ms |
German is the cheapest because it has a dedicated translation model; French, Spanish and Italian share a larger multi-language model. Chinese and Japanese cost roughly twice the others for the same number of characters, because those scripts carry far more meaning per character.
Reference hardware¶
The figures above were measured on these three machines. All model filters used the GPU.
| GPU | Notes | |
|---|---|---|
| Workstation | 2x NVIDIA RTX A4000, 16 GB each | Ampere generation |
| Cloud VM | NVIDIA Tesla T4, 16 GB | Turing generation, the oldest of the three |
| Cloud VM | NVIDIA L4, 24 GB | Ada generation, the fastest of the three |
GPU generation accounts for about a 1.5x spread between the fastest and slowest of these. That is smaller than the effect of payload size (about 10x across the supported range) and much smaller than the effect of concurrent load (about 23x between one request and thirty-two). Plan for load first, payload size second, and hardware third.
On-premises system requirements¶
For the current prerequisites, see Requirements.