Skip to main content
DupeHell Logo

Synthetic data generator for record linkage benchmarking.
Rust + Python — 40 domains, 500K+ rec/s.

Generate synthetic multi-entity datasets with realistic schemas, controlled duplicates, hard negatives, and ground-truth labels. Designed for benchmarking entity resolution (deduplication) and record linkage pipelines.


Quick start

Python (pip)

pip install dupehell
from dupehell import generate

r = generate(domain="publishing", size=10000, seed=42, difficulty="hell")
print(r.dataset)       # ./publishing_<hash>.parquet
print(r.ground_truth)  # ./publishing_<hash>_ground_truth.parquet
print(r.total_records) # ~10225

CLI (Rust)

cargo run --release -- --domain kyc --size 100000 --seed 42

Output

Format Extension Notes
Parquet .parquet Default, ZSTD compressed
IPC (Arrow) .ipc Via --output-format ipc, fastest write

Each run produces:

  • {domain}_{hash}.parquet — main dataset
  • {domain}_{hash}_ground_truth.parquet — ground-truth labels
  • {domain}_{hash}_nodes.parquet / {domain}_{hash}_edges.parquet — property graph (only with --graph / generate_graph=True, see below)

CLI options

Option Default Description
--domain kyc Domain name
--size 1000000 Base records
--seed 42 PRNG seed
--difficulty medium light / medium / hell
--output-format parquet parquet or ipc
--output-dir . Output directory
--graph off Also emit a property graph (nodes + edges)
--graph-format parquet parquet or ipc, only used with --graph
--skip-ground-truth off Skip ground-truth computation and the _ground_truth file (faster stress-test runs; incompatible with --graph)

Full option list (--only-entity, --chunk-size, --locale, --estimate, …): see docs/API.md.

Graph generation

Add --graph (CLI) or generate_graph=True (Python) to additionally emit a property graph alongside the usual tabular dataset — nodes (one per record, same attributes as the dataset) and typed edges (fk, exact_dup, fuzzy_dup, hard_neg) linking record_ids that a record-linkage/graph pipeline should resolve to the same entity or a hard negative. Disabled by default: tabular output, RNG sequence, and memory footprint are unchanged when omitted.

r = generate(domain="fintech", size=10000, seed=42, generate_graph=True)
print(r.nodes)  # ./fintech_<hash>_nodes.parquet
print(r.edges)  # ./fintech_<hash>_edges.parquet
cargo run --release -- --domain fintech --size 10000 --seed 42 --graph

Features

  • 40 domains — KYC, publishing, fintech, blockchain, technology, banking, healthcare, ecommerce, automotive, cybersecurity, gaming, and 30 more
  • Multi-entity schemas — 2–7 entity types per domain (e.g. person, account, address, transaction), linked by foreign keys
  • Controlled noise — typos, OCR errors, homoglyphs, date swaps, phonetic variants, Unicode pollution
  • Hard negatives — same_field, mix_identifier, mix_arrays primitives
  • Ground truth — full match labels (exact_dup, fuzzy_dup, hard_neg, singleton) with cluster statistics
  • Graph generation — optional property graph output (nodes, typed edges) for graph-based entity resolution and community detection benchmarking
  • Deterministic — seeded RNG (rand_pcg) for reproducible output

Performance

All runs on Lenovo ThinkPad P16 Gen 2 — Intel Core i7 13th, 32 GB DDR5, SK Hynix 1 TB NVMe. Difficulty hell, IPC format. Throughput averaged across all 40 domains.

Multi-domain throughput (hell, IPC)

Size Ø rec/s Fastest domain Slowest domain Range
1M 695,476 renewable_energy 1.0s kyc 3.2s 2.2s
10M 718,822 renewable_energy 9.6s kyc 34.7s 25.1s
20M 704,888 renewable_energy 20.1s kyc 72.6s 52.5s
50M 659,987 social_media 56.4s kyc 165.2s 108.8s

Refreshed against the current pipeline, all 40 domains, single consistent sweep (see docs/BENCHMARK.md for the full per-domain table). kyc is a persistent outlier at every scale — its natural_person entity is the widest, most PII-dense schema in the crate, and at hell all 9 noise categories are simultaneously active on it (vs. often a single active category on sparser schemas). Excluding kyc, the 1M average is 705,333 rec/s. Throughput drops noticeably at 50M for the heavier/denser schemas (crm, ecommerce, insurance, technology, supplychain, telecom) — a known non-monotonic slowdown at higher record counts.

IPC vs Parquet

Difficulty hell, domain-average throughput across all 40 domains. Parquet is the CLI default (ZSTD(3) compressed); IPC is the internal/streaming-oriented format.

Size IPC Parquet Overhead
1M 695.5K rec/s 650.9K rec/s -6.4%
5M 734.8K rec/s 705.8K rec/s -3.9%
10M 718.8K rec/s 700.2K rec/s -2.6%
20M 704.9K rec/s 690.2K rec/s -2.1%

Parquet's cost shrinks as scale grows — the fixed per-file ZSTD compression overhead gets amortized over more rows. Parquet is a reasonable default at any scale tested here; IPC remains the better choice for pure raw-throughput or internal streaming use cases.

See docs/BENCHMARK.md for the full per-domain matrix (all 3 difficulties, --graph overhead, FK edge weighting) and single-domain metrics at scale.


Architecture

lib.rs / main.rs → Context (151 pools) → PipelineConfig → run_pipeline()
                                                          │
         ┌────────────────────────────────────────────────┼────────────────────┐
         ▼                                                ▼                    ▼
  entity_gen.rs                                    fk_remap.rs           hn_common.rs
  (batch gen)                                      (FK cross-ref)        (hard negatives)
         │                                                │                    │
         └────────────────────────────────────────────────┴────────────────────┘
                                                          ▼
                                                     pipeline.rs
                                               (merge + GT + write)
                                                          ▼
                                   {domain}_{hash}.parquet + _ground_truth.parquet

Documentation

File Description
docs/GETTING_STARTED.md Installation, quick start, output formats
docs/API.md Full Python & Rust API reference
docs/CONTRIBUTING.md Architecture, development workflow
docs/BENCHMARK.md Performance metrics (up to 50M records)
docs/SECURITY.md Security policy & vulnerability reporting

Domains

Academia · Agriculture · Automotive · Aviation · Banking · Biotech · Blockchain · Construction · CRM · Cybersecurity · Ecommerce · Education · Energy · Fashion · Fintech · Food & Beverage · Gaming · Healthcare · Hospitality · HR · Insurance · KYC · Legal · Logistics · Manufacturing · Maritime · Media · Mining · Nonprofit · Pharma · Publishing · Real Estate · Renewable Energy · Retail · Social Media · Sports · Supply Chain · Technology · Telecom · Travel


Development

cargo test        # 164 tests
cargo build --release
cargo clippy      # 0 warnings
cargo fmt --check # all formatted

Python wheel

pip install maturin
maturin build --release
pip install target/wheels/dupehell-*.whl

License

MIT.

This software is intended for research and educational use: generating synthetic data for record linkage / entity resolution benchmarking. It must not be used for fraud, identity theft, surveillance, or any illegal activity. See ETHICS.md for the full list of prohibited uses and responsible disclosure policy.

If you use DupeHell in your research, please cite:

@software{dupehell2026,
  author = {DupeHell Contributors},
  title = {DupeHell: Synthetic Multi-Domain Dataset Generator for
           Record Linkage Benchmarking},
  year = {2026},
  url = {https://github.com/vntoinekaio/DupeHell}
}

Metadata

Release files for dupehell 0.6.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for dupehell 0.6.0
File Interpreter ABI Platform Actions
dupehell-0.6.0-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details for dupehell-0.6.0-cp310-abi3-win_amd64.whl
dupehell-0.6.0-cp310-abi3-manylinux_2_34_x86_64.whl CPython 3.10 abi3 Linux glibc 2.34+ x86-64 Details for dupehell-0.6.0-cp310-abi3-manylinux_2_34_x86_64.whl
dupehell-0.6.0-cp310-abi3-macosx_11_0_arm64.whl CPython 3.10 abi3 macOS 11.0+ ARM64 Details for dupehell-0.6.0-cp310-abi3-macosx_11_0_arm64.whl

Total release size: 13.7 MB

Release files / dupehell-0.6.0-cp310-abi3-win_amd64.whl

Download URL dupehell-0.6.0-cp310-abi3-win_amd64.whl
Size 4.8 MB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
02dfaefdaec2d26b9e32ce45f8c43cb8ff0200e6ba295b7eac6b51e6cd778a52
BLAKE2b-256 checksum
How to use checksums
82e0f5b65f8af9a0a318ee3e88b87a8c810b4598c67add8567695184d686a0a9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.16.0

Release files / dupehell-0.6.0-cp310-abi3-manylinux_2_34_x86_64.whl

Download URL dupehell-0.6.0-cp310-abi3-manylinux_2_34_x86_64.whl
Size 4.7 MB
Tags CPython 3.10 Linux glibc 2.34+ x86-64 abi3
SHA-256 checksum
How to use checksums
729879faaaed9fb50c6395be5e3b4123430fe15248275291c5d48eba624aae5b
BLAKE2b-256 checksum
How to use checksums
3e27ddccec8c49dd38a51f59cbb02e1f26f88d41b9448f4b8a7896eeffce512b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.16.0

Release files / dupehell-0.6.0-cp310-abi3-macosx_11_0_arm64.whl

Download URL dupehell-0.6.0-cp310-abi3-macosx_11_0_arm64.whl
Size 4.2 MB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
a599a803922ed5c40a499d9209ba92b773981fb07c2c40a2dbf8ad377356a6a4
BLAKE2b-256 checksum
How to use checksums
dfae59f12aa6f964728c5f80d54a699ef19f73515e499063caa786023f373440
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.16.0

Security for dupehell 0.6.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page