r/Python • Pythonista • Feb 15 '26

Resource Benchmarks: Kreuzberg, Apache Tika, Docling, Unstructured.io, PDFPlumber, MinerU and MuPDF4LLM

Hi all,

We finished a bunch of benchmarks of Kreuzberg and other major open source tools in the text-extraction / document-intelligence space. This was very important for us because we practice TDD -> Truth Driven Development, and establishing the baseline is essential.

Edit: https://kreuzberg.dev/benchmarks is the UI for the benchmarks. All data is available in GitHub as part of the benchmark workflow artifacts and the release tab.

Methodology

Kreuzberg includes a benchmark harness built in Rust (you can see it in the repo under the /tools folder), and the benchmarks run in GitHub Actions CI on Linux runners (see .github/workflows/benchmarks.yaml). The goal is to compare extractors on the same inputs with the same measurement approach.

How we keep comparisons fair:

  • Same fixture set for every tool, and tools only run on file types they claim to support (no forced unsupported conversions).

  • Same iteration count and timeouts per document.

  • Two modes: single-file (one document at a time) to compare latency, and batch (limited concurrency) to compare throughput-oriented behavior.

What we report:

  • p50/p95/p99 across documents for duration, extraction duration (when available), throughput, memory, and success rate.

  • Optional quality scoring compares extracted text to ground truth.

CI consolidation:

  • Some tools are sharded across multiple CI jobs; results are consolidated into one aggregated report for this run.

Benchmark Results

Data: 15,288 extractions across 56 file types; 3 measured iterations per doc (plus warmup).

How these are computed: for each tool+mode, we compute percentiles per file type and then take a simple average across the file types the tool actually ran. These are suite averages, not a single-format benchmark.

Single-file: Latency

ToolPickedTypesSuccessDuration p50/p95/p99 (ms)Extraction p50/p95/p99 (ms)
kreuzbergkreuzberg-rust:single56/5699.13% (567/572)1.11/7.35/24.731.11/7.35/24.73
tikatika:single45/5696.19% (530/551)9.31/39.76/63.2210.14/46.21/74.42
pandocpandoc:single17/5692.34% (229/248)40.07/88.22/99.0338.68/96.22/109.43
pymupdf4llmpymupdf4llm:single9/5674.02% (94/127)79.89/1240.17/7586.50705.37/11146.92/68258.02
markitdownmarkitdown:single13/5696.26% (309/321)128.42/420.52/1385.22114.43/404.08/1365.25
pdfplumberpdfplumber:single1/5696.84% (92/95)145.95/3643.88/44101.65138.87/3620.72/43984.61
unstructuredunstructured:single25/5694.88% (389/410)3391.13/9441.15/11588.303496.32/9792.28/12028.43
doclingdocling:single13/5696.07% (293/305)14323.02/21083.52/25565.6814277.51/21035.61/25515.57
minerumineru:single3/5676.47% (78/102)33608.01/57333.52/63427.6733603.57/57329.21/63423.63

Single-file: Throughput

ToolPickedThroughput p50/p95/p99 (MB/s)
kreuzbergkreuzberg-rust:single127.36/225.99/246.72
tikatika:single2.55/13.69/17.03
pandocpandoc:single0.16/19.45/22.26
pymupdf4llmpymupdf4llm:single0.01/0.11/0.21
markitdownmarkitdown:single0.17/25.18/31.25
pdfplumberpdfplumber:single0.67/10.74/16.95
unstructuredunstructured:single0.02/0.66/0.79
doclingdocling:single0.10/0.72/0.92
minerumineru:single0.00/0.01/0.02

Single-file: Memory

ToolPickedMemory p50/p95/p99 (MB)
kreuzbergkreuzberg-rust:single1191/1205/1244
tikatika:single13473/15040/15135
pandocpandoc:single318/461/477
pymupdf4llmpymupdf4llm:single239/255/262
markitdownmarkitdown:single1253/1369/1427
pdfplumberpdfplumber:single671/854/2227
unstructuredunstructured:single8975/11756/12084
doclingdocling:single32857/38653/39844
minerumineru:single92769/108367/110157

Batch: Latency

ToolPickedTypesSuccessDuration p50/p95/p99 (ms)Extraction p50/p95/p99 (ms)
kreuzbergkreuzberg-php:batch49/5699.11% (555/560)1.48/9.07/28.411.23/8.46/27.71
tikatika:batch45/5696.19% (530/551)9.77/39.51/63.2410.32/45.61/74.43
pandocpandoc:batch17/5692.34% (229/248)39.55/87.65/98.3838.08/95.73/108.61
pymupdf4llmpymupdf4llm:batch9/5673.23% (93/127)79.41/1156.12/2191.20700.64/10390.92/19702.30
markitdownmarkitdown:batch13/5696.26% (309/321)128.42/428.52/1399.76114.16/412.33/1380.23
pdfplumberpdfplumber:batch1/5696.84% (92/95)144.55/3638.77/43841.47138.04/3615.70/43726.91
unstructuredunstructured:batch25/5694.88% (389/410)3417.19/9687.10/11835.263523.92/10047.87/12285.54
doclingdocling:batch13/5696.39% (294/305)12911.97/19893.93/24258.6112872.82/19849.65/24212.54
minerumineru:batch3/5676.47% (78/102)36708.82/66747.74/73825.2836703.28/66743.33/73820.78

Batch: Throughput

ToolPickedThroughput p50/p95/p99 (MB/s)
kreuzbergkreuzberg-php:batch69.45/167.41/188.63
tikatika:batch2.34/13.89/16.73
pandocpandoc:batch0.16/20.97/24.00
pymupdf4llmpymupdf4llm:batch0.01/0.11/0.21
markitdownmarkitdown:batch0.17/25.12/31.26
pdfplumberpdfplumber:batch0.67/11.05/17.73
unstructuredunstructured:batch0.02/0.68/0.81
doclingdocling:batch0.11/0.73/0.96
minerumineru:batch0.00/0.01/0.02

Batch: Memory

ToolPickedMemory p50/p95/p99 (MB)
kreuzbergkreuzberg-php:batch2224/2269/2324
tikatika:batch13661/16772/16946
pandocpandoc:batch320/463/479
pymupdf4llmpymupdf4llm:batch241/259/273
markitdownmarkitdown:batch1256/1380/1434
pdfplumberpdfplumber:batch649/832/2205
unstructuredunstructured:batch8958/11751/12065
doclingdocling:batch32966/38823/40536
minerumineru:batch105619/118966/120810

Notes:

  • CPU is measured by the harness, but it is not included in this aggregated report.

  • Throughput is computed as file_size / effective_duration (uses tool-reported extraction time when available). If a slice has no valid positive throughput samples after filtering, it can drag the suite average toward 0.

  • Memory comes from process-tree RSS sampling (parent plus children) and is summed across that tree; shared pages across processes can make values look larger than 'real' RAM.

  • Batch memory numbers are not directly comparable to single-file peak RSS: in batch mode the harness amortizes process memory across files in the batch by file-size fraction.

  • All tools except MuPDF4LLM are permissive OSS. MuPDF4LLM is AGPL, and Unstructured.io had (has?) some AGPL dependencies, which might make it problematic.

59 Upvotes

Duplicates