Benchmarks

gopdfrab, veraPDF and PDFBox Preflight validating the same 773-file PDF/A-1b corpus on one machine.

gopdfrab, veraPDF and Apache PDFBox Preflight over the same 773-file PDF/A-1b corpus, measured 2026-08-04. Each row states its unit and whether higher or lower is better.
Metric gopdfrabPDFBox PreflightveraPDF
Batch throughput files / sec · higher is better2,939155130
Cold single-file latency ms · lower is better9.5295991
Peak memory MB · lower is better80945728
Deployment footprint MB · lower is better4.311.715.3

Batch throughput

files / sec · higher is better
gopdfrab2,939
PDFBox Preflight155
veraPDF130

Whole 773-file corpus in one process. gopdfrab finishes in 0.27 s.

Cold single-file latency

ms · lower is better
gopdfrab9.5
PDFBox Preflight295
veraPDF991

One process per file, median corpus file, including process/VM startup.

Peak memory

MB · lower is better
gopdfrab80
PDFBox Preflight945
veraPDF728

Max RSS over the batch run.

Deployment footprint

MB · lower is better
gopdfrab, verify only4.3
gopdfrab CLI11.9
PDFBox Preflight11.7
veraPDF15.3

The CLI includes the fonts, colour profiles and renderer needed for PDF/A conversion. Both Java-based tools also require a JRE (+40 to 200 MB).

Methodology

One run of the benchmark harness in the gopdfrab repo (commit 1834292, 2026-08-04) over the combined Isartor + veraPDF PDF/A-1b corpora (773 files), on one Intel Core Ultra 7 255H running linux/amd64, against veraPDF 1.30.2 and PDFBox Preflight 3.0.7. Cold runs one process per file and includes VM startup, batch runs one process for the whole corpus and isolates the engine. Startup alone is 7.9 ms for gopdfrab against 102 ms for Preflight and 648 ms for veraPDF. Absolute numbers depend on hardware and other factors. Batch throughput measures the engine. Cold latency includes process startup, which is what a CI step or serverless call pays.

Measured2026-08-04
HardwareIntel Core Ultra 7 255H, linux/amd64
gopdfrabcommit 1834292, go1.26.5
veraPDF1.30.2
PDFBox Preflight3.0.7
Corpus773 files (Isartor + veraPDF PDF/A-1b)

Scope

This measures cost per validation, not coverage. veraPDF also covers PDF/A-3, PDF/A-4 and PDF/UA. Within PDF/A-1b and PDF/A-2b, gopdfrab passes 569/569 files of veraPDF's corpus and 204/204 of Isartor. The harness is in the gopdfrab repository.