Skip to contentRedact PII for your data. Get a quote

PIIMark v1

A benchmark for PII redaction

Every tool runs on the same 80,575 test items of PIIMark v1, the whole test split. For each one we publish structured personal data found (recall), harmless items masked by mistake (false positives), recall on all categories and median time per item. Our two modes run the full engine: every detector, plus the model in Full.

Our two modes

One library, one setting apart. Fast is the default, with rules only; Full adds a small local model that finds more, including people's names and organisations in running text.

The OpenAnonymizer authors built this eval, so it follows our labelling policy. It is published so anyone can check it.

The Rust engine matched the Python one. The Rust engine replaced our earlier Python engine. Before names were added, Fast returned the same spans in both on all 80,575 items of the PIIMark v1 test split: same position, type and value. The model behind Full returns the same spans in Rust as in Python on a 34,229-text development set, not on the test split.

Fast

structured PII found (recall)
90.6%
false positives
8.6%

Median time: 0.10 ms per text

Full

structured PII found (recall)
91.8%
false positives
13.0%

Median time: 5.8 ms per text

How speed was measured ↓

Every tool on the same data

16 systems on the same 80,575 test items. Sort the table by any column. Speed has its own section below.

Recall vs false positives

Bottom right is best. Recall counts structured personal data: IDs, document and company numbers, phones, emails, cards, IBANs, addresses, dates of birth, IPs, device IDs and secrets. The dashed line joins our two modes. In the ideal box: OA Fast.

OpenAnonymizer (OA)Other toolsIdeal: ≥90% structured recall, ≤10% false positives

All results

Structured recall, false positives, recall on all categories and median time per item for each tool, all on the same test items
Tool
OA Fast90.6%8.6%58.0%0.100.10 ms
OA Full91.8%13.0%71.5%5.85.8 ms
DataFog30.9%26.5%14.3%not yet measured
scrubadub30.4%37.7%40.5%not yet measured
piiranha54.5%41.3%37.4%63.263.2 ms
GLiNER multi-PII53.0%47.1%59.9%75.475.4 ms
NVIDIA GLiNER-PII51.0%55.5%55.8%298298 ms
OpenAI Privacy Filter75.4%56.6%55.3%773773 ms
privaite77.8%67.2%59.4%18.118.1 ms
Phileas51.5%68.6%30.7%0.400.40 ms
GLiNER259.4%69.4%65.2%103103 ms
ai4privacy36.5%74.2%18.5%42.542.5 ms
philter51.7%79.3%54.7%33.033.0 ms
LLM Guard53.0%80.1%52.2%not yet measured
Presidio65.5%89.8%61.6%9.29.2 ms
GLiNER-PII (knowledgator)69.5%91.9%73.9%not yet measured

All categories also counts names, quasi-identifiers (age, gender, job, city) and special categories (health, religion, politics). Fast finds names by rules where they are labelled (form fields, letters, signatures, chat speakers) and leaves names in running prose; Full's model also finds them in running text, which is most of its lead here. Neither mode targets quasi-identifiers or special categories by default.

Time is the median per item, one call per text, on one server CPU with the same harness for every tool. Our two modes run the full engine; see the Speed section ↓.

OA: OpenAnonymizer

How we measured

Dataset
PIIMark v1: 114K items (97,446 with personal data, 16,635 harmless) in 34 languages plus code and config snippets, from 21,116 sentence templates. Licence: CC BY-NC 4.0.
How it was built
Language-model writers wrote the templates in each language, not translated from one another. Every value is synthetic: IDs with real checksums and invalid twins, valid phone numbers, secrets in 218 provider formats, and 15 kinds of noise. No real people.
Test split
All 80,575 items of the test split, for every tool. No template is in both dev and test.
Recall
Share of personal data found, over every category except names, quasi-identifiers and special categories. A value counts only when every required character is masked. Higher is better.
All categories
Recall with names, quasi-identifiers and special categories added. For the last two, any overlapping mask counts.
False positives
Share of harmless items where the tool masked anything at all, including tools that mask places, organisations or dates by design. Lower is better.
Time
Median per item, one call per text, on one server CPU with the same harness for every timed tool, all on the same items. Our two modes run the full engine; Speed below has the details.
Tools
Each with its default settings and all its entity types on. Tonic was not run.
Limits
Templates are written by language models, and some situations repeat across languages. Documents are mostly 120 to 250 words. Secrets are a small category. Some values do not fit their context (for example a gender cue against the name). Passport and licence formats come partly from secondary sources, and postcodes partly from memory. Some harmless traps are debatable, such as documented example keys and IBANs, or test IDs that pass checksums.

Speed

On one server CPU, with no GPU and no API calls, the median text takes 0.10 ms in Fast and 5.8 ms in Full, which adds the model; its name tagger reads every text, so Full's time grows with length. Every package runs this engine; WebAssembly runs Fast only.

Fast
0.10 msper text, median
Full
5.8 msper text, median

On the same machine and items, the 10 other tools we timed take 0.40 ms to 773 ms per item (median). At the median, Fast takes less time than each of them. The other 4 were scored but not timed on this setup.

Recall vs time per text

Top left is best: more personal data found, in less time. Time is the median per text on a log scale, so each gridline to the right is ten times slower. The dashed line joins our two modes. In the ideal corner: OA Fast. Not timed on this setup, so not plotted: GLiNER-PII (knowledgator), LLM Guard, DataFog, scrubadub.

OpenAnonymizer (OA)Other toolsIdeal: ≥90% structured recall, under 1 ms per text

Beyond the median

Slowest texts, Fast
p95 1.3 ms and p99 3.3 ms per text. The slowest texts are the first to use a given rule, which compiles on that first use; later texts reuse it, so the tail shrinks as the engine warms up.
Slowest texts, Full
p95 45.7 ms and p99 64.2 ms, with the model on 8 threads. The name tagger reads every text, so long texts make the tail.
Cold start, Fast
0.12 s from starting the process to the first result.
WebAssembly package
1.45 MB gzipped (4.05 MB uncompressed).

How we measured speed

Engine
The full OpenAnonymizer engine: every detector, and the model in Full, so its times include the model. WebAssembly ships Fast only, with no model.
Hardware
One server CPU, the same machine and harness as every other timed tool in the results table. No GPU, no API calls.
Texts
Items of the PIIMark v1 test split, the same texts for every timed tool.
Time per text
One call per text, with the harness pinned to 8 cores. The median (p50) for each mode, plus p95 and p99.

The PIIMark dataset is open

Download PIIMark v1 from Hugging Face, with the scorer we used, and rerun it on any tool, including ours. The dataset is under CC BY-NC 4.0. If you find a case we get wrong, tell us.