Generated by packages/pqc-engine/src/bench.test.ts (QUANTLAYER_BENCH=1) on 2026-11-13. Raw data: benchmarks.json.
Re-run on target hardware before capacity planning.
- Machine: Apple M2, 8 cores, 16 GiB, darwin 27.0.0, Node v26.13.1
- Build: Rust release, portable code paths (no SIMD: libcrux's verified portable implementation), 1 KiB message, hedged signing.
- Method: median latency after a warm-up; single thread. "Rust" is measured in-process by
quantlayer-pqc-bench. "Node" goes through the Node-API bindings (@quantlayer-protocol/pqc-engine), including call and copy overhead.
- Memory: "peak heap" is the largest extra heap allocation during one operation (counting allocator). libcrux and fips205 work mostly on the stack, which this does not capture. Node resident-set growth over the whole TypeScript run was 28.1 MiB.
Signatures
| Algorithm | NIST cat. | Public key | Signature | Seed (stored) | Keygen (Rust) | Sign (Rust) | Verify (Rust) | Sign (Node) | Verify (Node) | Peak heap: keygen / sign / verify |
|---|
| ML-DSA-44 | 2 | 1,312 B | 2,420 B | 32 B | 54.1 µs | 111.9 µs | 30.5 µs | 99.9 µs | 29.7 µs | 3,904 / 2,420 / 0 B |
| ML-DSA-65 | 3 | 1,952 B | 3,309 B | 32 B | 56.8 µs | 155.9 µs | 45.6 µs | 171.4 µs | 46.8 µs | 6,016 / 3,309 / 0 B |
| ML-DSA-87 | 5 | 2,592 B | 4,627 B | 32 B | 69.0 µs | 192.2 µs | 70.4 µs | 205.7 µs | 72.3 µs | 7,520 / 4,627 / 0 B |
| SLH-DSA-SHA2-128s | 1 | 32 B | 7,856 B | 48 B | 101 ms | 877 ms | 741.6 µs | 876 ms | 772.6 µs | 144 / 7,856 / 0 B |
| SLH-DSA-SHA2-128f | 1 | 32 B | 17,088 B | 48 B | 1.58 ms | 39 ms | 2.19 ms | 39 ms | 2.19 ms | 144 / 17,088 / 0 B |
| SLH-DSA-SHA2-256s | 5 | 64 B | 29,792 B | 96 B | 97 ms | 1,323 ms | 1.63 ms | 1,324 ms | 1.64 ms | 288 / 29,792 / 0 B |
Key encapsulation
| Algorithm | NIST cat. | Encapsulation key | Ciphertext | Seed (stored) | Keygen (Rust) | Encaps (Rust) | Decaps (Rust) | Encaps (Node) | Decaps (Node) | Peak heap: keygen / encaps / decaps |
|---|
| ML-KEM-512 | 1 | 800 B | 768 B | 64 B | 7.4 µs | 6.4 µs | 6.6 µs | 9.3 µs | 8.2 µs | 2,496 / 768 / 0 B |
| ML-KEM-768 | 3 | 1,184 B | 1,088 B | 64 B | 13.5 µs | 11.0 µs | 11.5 µs | 14.0 µs | 13.0 µs | 3,648 / 1,088 / 0 B |
| ML-KEM-1024 | 5 | 1,568 B | 1,568 B | 64 B | 19.8 µs | 15.3 µs | 16.3 µs | 18.2 µs | 17.9 µs | 4,800 / 1,568 / 0 B |
Reading the numbers
- ML-DSA-65 (default) signs in a fraction of a millisecond. A signature is 3,309 B, about 52× an Ed25519 signature.
- SLH-DSA rests only on hash-function security, but signing is slow (the "s" sets take about a second). Calls run synchronously on the calling thread, so in Node run SLH-DSA signing in a worker thread, or prefer
SLH-DSA-SHA2-128f. Use SLH-DSA for long-lived roots of trust, not per-request signing.
- Hybrid Ed25519+ML-DSA-65 costs one ML-DSA-65 signature plus one classical signature, and is 3,379 B on the wire (6 B header + 64 + 3,309).