Skip to content

Benchmarks ​

Hyper has three public benchmarks: one against the commercial SDKs from PDF Tools, Apryse and Nutrient, one against the open source tools Ghostscript, MuPDF and qpdf, and one of throughput: how many PDFs per hour it compresses as a service. Every file, result and script is in the repository, so you can rerun them.

Against commercial SDKs ​

Hyper was benchmarked against the PDF Tools, Apryse and Nutrient SDKs on 1,000 real PDFs (3.13 GB) from five public sources, at four levels, for a total of 13,000 engine runs. Each engine's settings were taken from its own documentation to match each level as closely as its options allow.

Size saved overall, at average page quality (SSIMULACRA2, where 100 is identical and 90 and up shows no visible difference):

EngineLossless200 dpi150 dpi72 dpi
Hyper18.0% @ 99.561.0% @ 89.870.2% @ 86.479.9% @ 67.9
PDF ToolsN/A55.1% @ 86.764.7% @ 82.975.6% @ 72.2
ApryseN/A41.8% @ 88.455.6% @ 85.874.6% @ 73.4
NutrientN/A55.2% @ 87.861.5% @ 82.872.0% @ 70.8

None of the three documents a lossless mode, so their lossless results are N/A.

EngineRunsFailedGrew the file
Hyper4,00000
Nutrient3,0006 (0.20%)5 (0.2%)
PDF Tools3,000064 (2.1%)
Apryse3,0008 (0.27%)120 (4.0%)

Median time per file, 4 files at a time on an Apple M4 laptop with 16 GB of memory, including process start for Hyper, PDF Tools and Apryse:

EngineLossless200 dpi150 dpi72 dpi
Hyper0.15 s0.21 s0.25 s0.33 s
PDF ToolsN/A0.81 s0.81 s0.81 s
ApryseN/A2.45 s2.47 s2.45 s
NutrientN/A0.18 s0.21 s0.17 s

Nutrient's .NET runtime takes about 9 seconds to start, so it ran as 4 long running processes and its times leave start-up out.

The engine versions, settings for each level, the corpus, how quality was measured, results by file size and the code are in the repository README and bench/sdk-comparison/, including MANIFEST.csv (every PDF with its download link and SHA-256) and RESULTS.csv (every run).

Against open source tools ​

Hyper Compress was benchmarked against Ghostscript, MuPDF and qpdf on 2,104 real world PDFs from four public corpora, for a total of 27,352 engine runs. The corpus selection was pre-registered with a fixed seed before any files were fetched, and every document's SHA-256 hash and origin URL are recorded, so the benchmark can be reproduced independently.

Visual fidelity was measured with Poppler, deliberately chosen as a renderer none of the tested engines share.

Size reduction ​

Median size reduction at the median worst-page SSIM:

TierHyperGhostscriptMuPDFqpdf
Lossless22.4% @ 1.00021.1% @ 0.9974.7% @ 1.0006.3% @ 1.000
300 dpi52.3% @ 1.00019.1% @ 0.99614.0% @ 1.000n/a
150 dpi58.2% @ 0.99942.4% @ 0.99419.4% @ 1.000n/a
72 dpi64.8% @ 0.99653.9% @ 0.99028.0% @ 0.999n/a

Robustness ​

EngineRunsCorruptGrew the file
Hyper8,41633 (0.39%)0
qpdf2,1041 (0.05%)53 (2.5%)
Ghostscript8,416256 (3.04%)2,089 (24.8%)
MuPDF8,416333 (3.96%)70 (0.8%)

Hyper had the lowest corruption rate of any engine that actually compresses images (qpdf's near-zero rate reflects that it only repacks streams, which is also why it saves 6 percent instead of 58), and it is the only engine that never returned a file larger than the input.

Reproduce it ​

The full methodology, per-file results and the complete document list live in comparison.md in the repository, alongside bench/MANIFEST.csv and bench/RESULTS.csv. To run the harness against your own documents:

bash
make bench CORPUS=path/to/corpus

Throughput ​

How many PDFs per hour Hyper compresses when it runs as an HTTP service. It ran from the public Docker image (version 1.2.0, medium preset) with one job per CPU (HYPER_CONCURRENCY equal to the CPU count), and a test client kept that many PDFs in flight for 10 minutes after a 1 minute warm-up.

The corpus is 5,003 real public PDFs, 25 GB in total, from 1 KB to 408 MB: everyday documents in four size bands, 600 files over 10 MB (50 over 100 MB), and 300 each of forms, signed, PDF/A and text-heavy documents, plus 254 scans. They come from Common Crawl (the SafeDocs set on Digital Corpora), GovDocs1, PubMed Central, arXiv, EUR-Lex, public web forms and public-domain Internet Archive books.

ServerPDFs per hourPer hour, files under 5 MBTypical fileErrorsCost per 1,000 PDFs
8-CPU Arm11,69465,4710.29 s0$0.031
32-CPU Arm36,888271,8400.25 s0$0.039
8-CPU Intel7,95037,4550.47 s0$0.051
44-CPU Intel35,052203,1060.44 s0$0.063

PDFs compressed per hour, every core busy

Every file completed, with no errors and no broken output, and every server's CPUs were 99% busy. Arm is Google Axion (Neoverse V2), Intel is Xeon Platinum 8481C (Sapphire Rapids); costs are Google Cloud on-demand list prices, November 2026. Memory peaked at 10 GB on the 8-CPU servers and 28 GB on the 44-CPU server.

Cost per 1,000 PDFs

By file size ​

How many PDFs per hour one server would do if every file were of one size, worked out from the full-load runs. Times are with every core busy.

FilesTypical file, 8-CPU Arm95 in 100 withinPer hour, 8-CPU ArmPer hour, 32-CPU ArmSize saved
under 100 KB0.07 s0.18 s340,5251,426,17435%
100 to 500 KB0.12 s0.44 s178,854732,65039%
0.5 to 2 MB0.38 s1.39 s57,709237,25154%
2 to 5 MB0.96 s3.50 s22,23191,57761%
5 to 10 MB1.77 s5.92 s11,89450,67266%
10 to 100 MB2.46 s12.3 s7,21930,94678%
over 100 MB2.6 min11.5 min11239359%
all under 5 MB0.19 s1.74 s65,471271,84056%

PDFs per hour on one 8-CPU server, by file size

On the 32-CPU Arm server, scans took nearly three times as long as everyday documents (0.57 s against 0.21 s for a typical file) because their images are re-encoded. Signed PDFs are returned unchanged by default, so they finish in a few hundredths of a second; they are 300 of the 5,003 files and are included in the totals.

Rerun it ​

The report with every table, the corpus list with each file's SHA-256 and public origin, the raw results and the scripts are in bench/throughput. To run it on your own server:

bash
python3 bench/throughput/fetch_corpus.py bench/throughput/manifest.csv corpus/
docker run -d --network host -e HYPER_CONCURRENCY=8 -e HYPER_QUEUE=16 -e HYPER_MAX_UPLOAD_MB=1024 \
  -e HYPER_TIMEOUT_MS=3600000 ghcr.io/alam00000/bentopdf-hyper-compress:v1.2.0
python3 bench/throughput/loadtest.py --corpus corpus/ --manifest bench/throughput/manifest.csv \
  --concurrency 8 --duration 600 --warmup 60 --out results/my-server

Next steps ​

Dual-licensed under AGPL-3.0 and Commercial License.