Cost of both signature verifiers: 2026-10-27, x86-64 reference VPS
Cost of checking every signature with both verifiers since v0.10.0, AWS-LC / OpenSSL and qanum-pqverify, on an x86-64 reference VPS, with raw data.
This page reproduces docs/benchmarks/2026-10-27_x86-64_first-verifier/README.md from qanum-core v0.11.0 (release tag). Links to files that are not published on this site are shown as plain text until the source repository is public.
Contents
Produced by examples/pq_first_bench on the x86-64 machine of
../2026-10-22_x86-64_second-verifier/,
with the same plan, rounds and records as pq_dual_bench there. It measures
what the node pays for checking every post-quantum signature with two
independent verifiers, now that the first verifier is AWS-LC (ML-DSA) and
OpenSSL (SLH-DSA) instead of liboqs; the second is qanum-pqverify.
The .jsonl files are the raw output; this page is a summary of those files.
Machine and method
| Core 1 | Core 3 | |
|---|---|---|
| Data | epyc-core1.jsonl |
epyc-core3.jsonl |
| Environment | epyc-core1.env.txt |
epyc-core3.env.txt |
| Run time | 17 s | 17 s |
- Machine: KVM guest, AMD EPYC-Milan, 6 vCPUs, Linux 6.8.0-138-generic.
Shared: a testnet seed node was mining on another vCPU during the runs
(its core is recorded before and after each run in the
.env.txtfiles), and the guest exposes no CPU frequency data. - Build:
cargo build --release --locked --example pq_first_bench, Rust 1.98.1 (rust-toolchain.toml; therustcfield of the files is empty becauserustcwas not on the run’sPATH). First verifieraws-lc 5.11.0 + openssl 3.5.9,qanum-pqverify0.1.0. - Command:
taskset -c <core> pq_first_bench --out epyc-core<core>.jsonl, undernice -n 10, one run after the other. - Four ways of checking the same valid signatures, interleaved, three
rounds each:
first(FirstVerifier, AWS-LC / OpenSSL, alone),qanum-pqverifyalone,dual enforce(DualVerifierin enforce mode: mainnet, regtest) anddual shadow(testnet). - Statistics: median of all samples of the three rounds for valid signatures; invalid signatures are one round.
- Spread between rounds: largest 1,815 basis points on core 1
(
firstML-DSA-87: 54.3 µs in the first round, 47.1 and 46.0 µs after) and 3,137 on core 3 (dual shadowML-DSA-44: 87.1 µs in the first round, 67.3 and 66.3 µs after). Every other way stayed under 1,000 on core 1 and under 800 on core 3, apart fromfirstML-DSA-44 on core 3 (2,449). - No disagreement: each run made 28,868 checks with
qanum-pqverifyand the two verifiers never disagreed.
Valid signatures
Median time per valid signature, core 1 / core 3.
| Suite | First verifier | qanum-pqverify alone |
dual enforce |
|---|---|---|---|
| ML-DSA-44 | 18.8 µs / 18.9 µs | 47.1 µs / 47.6 µs | 65.8 µs / 66.8 µs |
| ML-DSA-87 | 46.9 µs / 47.5 µs | 126 µs / 130 µs | 173 µs / 178 µs |
| SLH-DSA-128s | 600 µs / 609 µs | 547 µs / 566 µs | 1.15 ms / 1.17 ms |
| SLH-DSA-256s | 1.27 ms / 1.30 ms | 1.17 ms / 1.23 ms | 2.52 ms / 2.56 ms |
A valid signature costs the sum of both verifiers. dual shadow gives the
same times within 4 % (see the .jsonl files).
Invalid signatures (one byte flipped)
Median per invalid signature, core 1 / core 3.
| Suite | First verifier | dual enforce | dual shadow |
|---|---|---|---|
| ML-DSA-44 | 18.2 µs / 18.2 µs | 18.3 µs / 18.5 µs | 65.5 µs / 65.7 µs |
| ML-DSA-87 | 48.1 µs / 49.0 µs | 46.4 µs / 49.0 µs | 173 µs / 180 µs |
| SLH-DSA-128s | 596 µs / 613 µs | 775 µs / 620 µs | 1.20 ms / 1.20 ms |
| SLH-DSA-256s | 1.31 ms / 1.29 ms | 1.33 ms / 1.28 ms | 2.49 ms / 2.46 ms |
In enforce mode the second verifier is skipped when the first rejects, so an invalid signature costs what the first verifier costs. The SLH-DSA-128s enforce figure on core 1 (775 µs) is one round of 100 signatures on a shared machine; on core 3 it is 620 µs against 613 µs for the first verifier.
Verify Units under enforce mode
Estimate = ceil(100 × median / median of ML-DSA-44), both through
dual enforce. Core 1 / core 3.
| Suite | Estimate | Consensus VU |
|---|---|---|
| ML-DSA-44 | 100 / 100 | 100 |
| ML-DSA-87 | 263 / 267 | 290 |
| SLH-DSA-128s | 1753 / 1757 | 1600 |
| SLH-DSA-256s | 3824 / 3828 | 3600 |
Both SLH-DSA estimates are above their constants on this machine. With liboqs, SLH-DSA-128s already was (1622 / 1629, 2026-10-22). The reason is the unit: AWS-LC verifies ML-DSA-44 fast on this machine, so the ratio of the SLH-DSA suites to it grows. The Verify Units bound time, so the constants follow the slowest core, and in time the worst SLH-DSA block costs about the same as the others here (next table).
Worst-case block estimate
Signatures of one suite up to MAX_BLOCK_VERIFY_UNITS (200,000), times the
median of one signature, on one core. Core 1 / core 3.
| Suite (signatures) | First verifier | dual enforce |
|---|---|---|
| ML-DSA-44 (2000) | 38 ms / 38 ms | 132 ms / 134 ms |
| ML-DSA-87 (689) | 33 ms / 33 ms | 120 ms / 123 ms |
| SLH-DSA-128s (125) | 75 ms / 77 ms | 145 ms / 147 ms |
| SLH-DSA-256s (55) | 70 ms / 72 ms | 139 ms / 141 ms |
Against the liboqs measurement of 2026-10-22
dual enforce, median per valid signature, core 1. 2026-10-22 is stage 4
of ../2026-10-22_x86-64_second-verifier/
(liboqs and qanum-pqverify).
| Suite | 2026-10-22 (liboqs) | 2026-10-27 (AWS-LC / OpenSSL) |
|---|---|---|
| ML-DSA-44 | 69.4 µs | 65.8 µs |
| ML-DSA-87 | 185.4 µs | 173 µs |
| SLH-DSA-128s | 1.13 ms | 1.15 ms |
| SLH-DSA-256s | 2.45 ms | 2.52 ms |
The first verifier alone: ML-DSA-87 54.2 µs with liboqs and 46.9 µs with AWS-LC; SLH-DSA-256s 1.20 ms with liboqs and 1.27 ms with OpenSSL.