---
title: "Open-Source PII Detection Benchmarked: Presidio and Others"
description: "Presidio, scrubadub and GLiNER multi PII compared on 500 synthetic finance records (1,600 run) in English, German and French: precision, recall, F1."
url: https://sensitivedatadiscoverytools.com/benchmark/
canonical: https://sensitivedatadiscoverytools.com/benchmark/
reviewed: 2026-12-04
last_updated: 2026-12-04
---

# Open-source PII detection benchmark: Presidio, scrubadub and GLiNER on 500 labeled records

On 500 labeled synthetic finance records in English, German and French, GLiNER multi PII reached recall 0.89 at precision 0.55, against recall 0.39 for Presidio and 0.04 for scrubadub. Presidio and scrubadub ran with default settings; GLiNER ran at threshold 0.5 with 12 labels.

Last reviewed December 4, 2026.

## Key facts

- On the same 500 records, Presidio scored 0 recall on 620 organization spans and 0.09 on 379 street address spans, because it has no organization recognizer and its location recognizer finds cities, not street addresses ([Presidio supported entities](https://presidio.dataprivacystack.org/supported_entities/)).
- GLiNER took 2.36 seconds a record on 2 vCPU (500 records); Presidio took 69.2 ms (1,600 records) and scrubadub 1.1 ms.
- Presidio's patterns produced 568 false driver license matches on 8 English gold spans (precision 0.01), mostly numeric strings in finance text ([benchmark data](/api/benchmark.json)).
- The data is the Apache-2.0 [gretelai synthetic finance PII set](https://huggingface.co/datasets/gretelai/synthetic_pii_finance_multilingual), pinned to one revision.

## What was measured

Three open-source detectors ran on one labeled dataset, scored by precision, recall and F1 per language and entity type. The detectors are [Presidio](/tools/presidio/) ([repository](https://github.com/data-privacy-stack/presidio)), [scrubadub](https://github.com/LeapBeyond/scrubadub) and [GLiNER multi PII](https://huggingface.co/urchade/gliner_multi_pii-v1).

The dataset labels are mapped to 12 common types. Twelve labels are not scored: time, employee ID, SWIFT/BIC code, customer ID, BBAN, bank routing number, account PIN, card security code, latitude and longitude, API key, password and user name. Predictions that overlap them are dropped, not counted as false positives.

## Overall results

All three detectors are compared on the same 500 records (300 English, 100 German, 100 French), the sample GLiNER ran on. Every per-language and per-entity table and bullet below uses those 500. Presidio and scrubadub also ran on all 1,600 records (1,000 English, 300 German, 300 French); their 1,600-record scores are in the last table of this section.

Table: Overall precision, recall and F1 on the same 500 records (all three detectors)

| Detector | Precision | Recall | F1 |
|---|---|---|---|
| Presidio | 0.18 | 0.39 | 0.25 |
| scrubadub | 0.33 | 0.04 | 0.06 |
| GLiNER multi PII | 0.55 | 0.89 | 0.68 |

Presidio and scrubadub were rescored on the first 300 English, 100 German and 100 French records of the sample by `subset500.py`; the per-language rows are in `results_subset500` of the [benchmark data](/api/benchmark.json).

Table: F1 per detector and language, same 500 records for all three

| Detector | English (300 records) | German (100 records) | French (100 records) |
|---|---|---|---|
| Presidio | 0.245 | 0.321 | 0.214 |
| scrubadub | 0.064 | 0.068 | 0.057 |
| GLiNER | 0.649 | 0.749 | 0.714 |

Table: Presidio and scrubadub on all 1,600 records

| Detector | Precision | Recall | F1 |
|---|---|---|---|
| Presidio | 0.18 | 0.40 | 0.25 |
| scrubadub | 0.37 | 0.04 | 0.07 |

## Findings per entity

An en dash means the sample holds no spans of that type for that language. In the language table the number in brackets is the count of spans of that type in that language, and a count under 20 rests on too few to compare. Precision, recall and the true and false positive counts for every row, including all 1,600 records for Presidio and scrubadub, are in the [benchmark CSV](/downloads/benchmark.csv).

Table: F1 per entity type, all three languages, same 500 records for every detector

| Entity type | Spans | Presidio | scrubadub | GLiNER |
|---|---|---|---|---|
| Credit card | 15 | 0.333 | 0.333 | 0.581 |
| Date | 186 | 0.233 | 0.000 | 0.396 |
| Driver license | 13 | 0.017 | 0.000 | 0.813 |
| Email address | 45 | 0.417 | 0.404 | 0.510 |
| IBAN | 18 | 0.839 | 0.000 | 0.800 |
| IP address | 12 | 0.774 | 0.000 | 0.357 |
| Organization | 620 | 0.000 | 0.000 | 0.745 |
| Passport number | 22 | 0.267 | 0.000 | 0.864 |
| Person name | 648 | 0.529 | 0.000 | 0.673 |
| Phone number | 71 | 0.397 | 0.430 | 0.835 |
| Social Security number | 13 | 0.305 | 0.000 | 0.480 |
| Street address | 379 | 0.049 | 0.000 | 0.822 |

Table: F1 per entity type and language (Presidio / scrubadub / GLiNER), same 500 records

| Entity type | English (300 records) | German (100 records) | French (100 records) |
|---|---|---|---|
| Credit card | 0.50 / 0.50 / 0.67 (9) | – | 0.00 / 0.00 / 0.50 (6) |
| Date | 0.21 / 0.00 / 0.38 (121) | 0.39 / 0.00 / 0.46 (32) | 0.29 / 0.00 / 0.41 (33) |
| Driver license | 0.02 / 0.00 / 0.84 (8) | 0.00 / 0.00 / 0.80 (2) | 0.00 / 0.00 / 0.75 (3) |
| Email address | 0.42 / 0.40 / 0.51 (31) | 0.69 / 0.69 / 0.69 (11) | 0.18 / 0.17 / 0.29 (3) |
| IBAN | 0.94 / 0.00 / 0.67 (9) | 0.40 / 0.00 / 0.86 (4) | 0.89 / 0.00 / 1.00 (5) |
| IP address | 0.88 / 0.00 / 0.40 (7) | – | 1.00 / 0.00 / 0.36 (5) |
| Organization | 0.00 / 0.00 / 0.70 (379) | 0.00 / 0.00 / 0.84 (130) | 0.00 / 0.00 / 0.80 (111) |
| Passport number | 0.29 / 0.00 / 0.81 (14) | 0.00 / 0.00 / 1.00 (4) | 0.00 / 0.00 / 0.89 (4) |
| Person name | 0.58 / 0.00 / 0.64 (400) | 0.53 / 0.00 / 0.77 (98) | 0.40 / 0.00 / 0.73 (150) |
| Phone number | 0.44 / 0.36 / 0.82 (49) | 0.32 / 0.32 / 0.82 (9) | 0.35 / 0.77 / 0.93 (13) |
| Social Security number | 0.32 / 0.00 / 0.60 (11) | 0.00 / 0.00 / 0.00 (1) | 0.00 / 0.00 / 0.00 (1) |
| Street address | 0.01 / 0.00 / 0.82 (243) | 0.17 / 0.00 / 0.80 (61) | 0.05 / 0.00 / 0.85 (75) |

- Presidio's precision was 1.00 on IBAN and 0.63 on IP addresses (same 500 records, all languages; [benchmark data](/api/benchmark.json)). It flags many extra dates and passport numbers (precision 0.14 and 0.17), because its patterns match numeric strings in finance text that the dataset does not label as those types.
- scrubadub matched only email, phone and credit card numbers. Its name detector needs optional extras that this run did not install, and its SSN filth type matched nothing, so PERSON and SSN recall is 0 by configuration.
- GLiNER's recall on organizations (0.94) and phone numbers (1.00) was above its overall 0.89; address (0.87) and passport (0.86) were slightly below it. Dates (precision 0.26) and email addresses (precision 0.37) came with many extra spans.

## Confusion cases

All six are Presidio results on English records.

Table: Where Presidio went wrong: examples from the synthetic records

| Text (synthetic) | Expected | Found | Note |
|---|---|---|---|
| …Apt. 694+CITY+STATE+ZIP' NAD+SU+5055551::9+5055551+2345 Elm… | none (no mapped gold span) | DRIVER_LICENSE: 5055551 | false positive |
| …PAYMENT ADVICE :DFI_Account: 987654321 :DFI_Identification: 234567890 :Amount:… | none (no mapped gold span) | SSN: 987654321 | false positive |
| …Engineer Employment Status: Full-time Years with Current Employer: 5 years Monthly… | none (no mapped gold span) | DATE: Years | false positive |
| …management, and carbon emissions. Édith Christelle Schneider has demonstrated a strong commitment… | PERSON: Édith Christelle Schneider | no matching span | missed |
| …States" "5","Facebook Inc","Technology"… | ORG: Facebook Inc | no matching span | missed |
| …regards, [Your Name] IT Support Team Acme Corp. Bank Routing Number: 928890510 Street… | ORG: Acme Corp. | no matching span | missed |

## Why the numbers look the way they do

- [Presidio's evaluation page](https://presidio.dataprivacystack.org/evaluation/) says vanilla Presidio is not very accurate and that a tuned configuration raised its F score by about 30 percent, as measured by the project.
- Gold labels cover only the dataset's own types. A real name or date the authors did not annotate counts as a false positive, so precision is understated for every detector.
- For German and French, Presidio used its language-agnostic recognizers plus spaCy models. The US-specific recognizers (SSN, passport, driver license) do not target German or French formats. Presidio's [supported entities page](https://presidio.dataprivacystack.org/supported_entities/) lists German recognizers such as DE_PASSPORT and DE_TAX_ID; this run did not load them, so the German and French passport, Social Security number and driver license rows were scored with the US-oriented recognizers only.
- GLiNER ran on 500 records because of CPU time. The run gave it 12 labels (listed in the detectors table), each mapped to one scored type, at threshold 0.5, with untuned label wording. It reads at most 384 words per call, and the run passed whole records without splitting them. By GLiNER's own word splitter, 102 of the 500 records have more than 384 words (`count_truncation.py` writes the count to `truncation.json`). Labeled spans after the cut count as misses, so GLiNER's recall is a lower bound.
- A span counts if it has the same type and overlaps the gold span by at least half of the longer span. Exact-match scoring would give equal or lower scores.
- Scores are micro-averaged across entity types, including types a detector does not support, so scrubadub's overall recall counts its zero on names and addresses.

## Setup and versions

Table: Datasets used and their licenses

| Dataset | License | Records used | Languages | Sample rule |
|---|---|---|---|---|
| [gretelai/synthetic_pii_finance_multilingual (test split, English/German/French files)](https://huggingface.co/datasets/gretelai/synthetic_pii_finance_multilingual), revision 7b844d1 | [Apache-2.0](https://huggingface.co/datasets/gretelai/synthetic_pii_finance_multilingual/blob/main/README.md) | 1,600 (1,000 en, 300 de, 300 fr) | en, de, fr | Seeded random sample per language (seed 20261204); GLiNER on the first 300 en, 100 de and 100 fr. |
| [ai4privacy/pii-masking-300k (NOT USED)](https://huggingface.co/datasets/ai4privacy/pii-masking-300k) | [Academic and non-commercial use only](https://huggingface.co/datasets/ai4privacy/pii-masking-300k/blob/main/LICENSE.md); derivatives need written permission. Not used. | 0 | none | Not used |

Table: Detectors and exact versions

| Detector | Version | Configuration | License |
|---|---|---|---|
| [Presidio Analyzer](https://github.com/data-privacy-stack/presidio) | presidio-analyzer 2.2.366; spaCy 3.8.18; en_core_web_lg 3.8.0, de_core_news_md 3.8.0, fr_core_news_md 3.8.0 | default predefined recognizers for en/de/fr, score threshold 0 (presidio-analyzer default; run.py passes none), language passed per record | MIT |
| [scrubadub](https://github.com/LeapBeyond/scrubadub) | 2.0.1 | default Scrubber() detectors; the run mapped the email, phone, name, credit_card and ssn filth types to scored types, and only email, phone and credit_card matched anything | MIT |
| [GLiNER multi PII (urchade/gliner_multi_pii-v1)](https://huggingface.co/urchade/gliner_multi_pii-v1) | gliner 0.2.30, torch 2.15.0+cpu, transformers 5.22.2; model revision 1fcf13e85f4eef5394e1fcd406cf2ca9ea82351d | threshold 0.5, 12 zero-shot labels (person, organization, email, phone number, address, credit card number, iban, social security number, date, ip address, passport number, driver license number); CPU, 2 vCPU | Apache-2.0 |
| [piiranha (iiiorg/piiranha-v1-detect-personal-information)](https://huggingface.co/iiiorg/piiranha-v1-detect-personal-information) | not run | Excluded: non-commercial, no-derivatives license | CC-BY-NC-ND-4.0 |

Table: Run time on 2 vCPU

| Detector | Records | Seconds | Per record |
|---|---|---|---|
| Presidio | 1,600 | 110.7 | 69.2 ms |
| scrubadub | 1,600 | 1.8 | 1.1 ms |
| GLiNER multi PII | 500 | 1,179.0 | 2.36 s |

## Repeat the run

The scripts are published at [/downloads/benchmark-code/](/downloads/benchmark-code/): `download.py`, `run.py`, `subset500.py`, `count_truncation.py` and `assemble.py`. From that folder:

```bash
python3 -m venv /tmp/benchvenv
/tmp/benchvenv/bin/pip install presidio-analyzer==2.2.366 scrubadub==2.0.1 gliner==0.2.30 spacy==3.8.18 transformers==5.22.2 torch==2.15.0 pandas==3.1.2 pyarrow==26.0.1 tiktoken==0.14.0 sentencepiece==0.2.3 protobuf==7.36.2 --extra-index-url https://download.pytorch.org/whl/cpu
for m in en_core_web_lg de_core_news_md fr_core_news_md; do /tmp/benchvenv/bin/python -I -m spacy download $m-3.8.0 --direct; done
/tmp/benchvenv/bin/python -I download.py /tmp/bench-data
export HF_HOME=/dev/shm/hf   # only if disk is small; the model is about 1.2 GB
/tmp/benchvenv/bin/python -I run.py /tmp/bench-data raw_results.json   # about 25 min on 2 vCPU
/tmp/benchvenv/bin/python -I subset500.py /tmp/bench-data subset500_raw.json
/tmp/benchvenv/bin/python -I count_truncation.py /tmp/bench-data truncation.json
/tmp/benchvenv/bin/python -I assemble.py raw_results.json benchmark.json subset500_raw.json truncation.json
```

The run used Python 3.14.4. Run each script by path with `-I`, which keeps the downloaded data directory out of Python's import path.

## Limits

- The data is one synthetic finance set generated by a language model; no real or non-finance data was scored.
- A separate scorer re-ran Presidio and scrubadub on all 1,600 records; the true positive, false positive and false negative totals for all three languages matched. GLiNER was not re-run.
- Rows with fewer than 20 spans (credit card, driver license, IBAN, IP and SSN across all languages, and many per-language rows for other types) change sharply when a few records are added or removed.
- Run times are from one shared 2 vCPU runner and vary with load.

## Cite this

Sensitive Data Discovery Tools, "Open-source PII detection benchmark, December 2026," https://sensitivedatadiscoverytools.com/benchmark/, run December 4, 2026. Data under CC BY 4.0.

## Downloads

- [Benchmark results, JSON](/api/benchmark.json)
- [Benchmark results, CSV](/downloads/benchmark.csv)
- [Benchmark code: README, download.py, run.py, assemble.py, subset500.py, count_truncation.py, truncation.json and the license](/downloads/benchmark-code/)

## Changelog

- December 4, 2026: first edition.

## Sources

1. [Presidio supported entities](https://presidio.dataprivacystack.org/supported_entities/)
2. [Presidio documentation, evaluation](https://presidio.dataprivacystack.org/evaluation/)
3. [presidio-research](https://github.com/data-privacy-stack/presidio-research)
4. [Presidio repository](https://github.com/data-privacy-stack/presidio)
5. [scrubadub repository](https://github.com/LeapBeyond/scrubadub)
6. [gretelai/synthetic_pii_finance_multilingual dataset card](https://huggingface.co/datasets/gretelai/synthetic_pii_finance_multilingual)
7. [ai4privacy/pii-masking-300k license](https://huggingface.co/datasets/ai4privacy/pii-masking-300k/blob/main/LICENSE.md)
8. [piiranha model card](https://huggingface.co/iiiorg/piiranha-v1-detect-personal-information)
9. [GLiNER multi PII model card](https://huggingface.co/urchade/gliner_multi_pii-v1)
