Lesson 5.3: Benchmarking PQC Performance, interactive lesson covering ML-KEM, ML-DSA, and SLH-DSA speed and size tradeoffs, constrained device challenges, and how performance shapes migration decisions.

Unit 5 ยท Level 4 โ†’ 5: Optimized, Certified, Future-Ready

Benchmarking PQC Performance

๐Ÿ“– Lesson 5.3 โฑ 30 minutes ๐Ÿ“‹ 3 comprehension questions

Part 1 โ€” Why performance numbers matter for migration decisions

Every migration decision you make has a performance dimension. Choosing between ML-KEM and SLH-DSA is not just a security question, it's a question about how much bandwidth you have, how much memory your device can spare, and how many operations per second your infrastructure needs to sustain.

This lesson is deliberately non-mathematical. You do not need to understand lattice problems or hash-based constructions to use these numbers well. What you need is a working model of three things:

The bottom line before you start: ML-KEM is fast and efficient, the easiest drop-in for most environments. ML-DSA has larger signatures than what you're replacing but acceptable performance. SLH-DSA is slower and larger but the most conservative security choice. IoT and constrained devices face the hardest tradeoffs of all three. By the end of this lesson you'll be able to explain why each of those statements is true.

Part 2 โ€” Algorithm performance profiles

Select each algorithm to see its performance characteristics, key sizes, and what that means in practice. All figures are representative benchmarks on modern server hardware; performance varies by implementation and platform.

FIPS 203
ML-KEM
Key encapsulation
FIPS 204
ML-DSA
Digital signatures
FIPS 205
SLH-DSA
Hash-based signatures

ML-KEM (Module Lattice Key Encapsulation Mechanism)

ML-KEM is the replacement for RSA and ECDH key exchange. It is the algorithm you will encounter most often in TLS, VPNs, and secure messaging. Its performance profile is the most favorable of the three NIST standards, fast key generation, fast encapsulation, fast decapsulation.

Key generation
~20 ยตs
Very fast
Encapsulate
~25 ยตs
Very fast
Decapsulate
~25 ยตs
Very fast
Public key size
1,184 B
ML-KEM-768
Ciphertext size
1,088 B
ML-KEM-768
vs ECDH-256
~12ร—
larger key/ct

Relative key size โ€” ML-KEM vs classical

ECDH P-256
64 B
Classical
ML-KEM-512
800 B
Level 1
ML-KEM-768
1,184 B
Level 3 โœ“
ML-KEM-1024
1,568 B
Level 5

Migration implication: ML-KEM keys are roughly 12โ€“25ร— larger than ECDH keys. For most server-to-server TLS, this adds negligible overhead, a few kilobytes in a handshake. For IoT devices with 32KB of RAM and constrained radio bandwidth, this size difference is a genuine engineering problem that requires careful selection of the right parameter set.

ML-DSA (Module Lattice Digital Signature Algorithm)

ML-DSA is the replacement for ECDSA and RSA signatures. It is used wherever you need to sign data, code signing, certificate issuance, document authentication, TLS certificate chains. Its performance is good, but its key and signature sizes are meaningfully larger than what ECDSA produces, and this creates real considerations for PKI deployments.

Key generation
~60 ยตs
Fast
Sign
~140 ยตs
Fast
Verify
~60 ยตs
Fast
Public key
1,952 B
ML-DSA-65
Signature
3,293 B
ML-DSA-65
vs ECDSA-256
~45ร—
larger signature

Signature size comparison

ECDSA P-256
72 B
Classical
ML-DSA-44
2,420 B
Level 2
ML-DSA-65
3,293 B
Level 3 โœ“
ML-DSA-87
4,627 B
Level 5

The PKI certificate chain implication: A standard TLS certificate chain has 2โ€“3 certificates. If each certificate's signature grows from 72 bytes to ~3,300 bytes, the total handshake data increases substantially. Modern TLS implementations handle this, but embedded systems, IoT clients, and bandwidth-constrained networks feel the difference. Certificate transparency logs and OCSP responses also grow, which affects CA infrastructure planning.

SLH-DSA (Stateless Hash-Based Digital Signature Algorithm)

SLH-DSA is the conservative backup. Where ML-DSA is built on lattice mathematics (a newer construction), SLH-DSA is built on hash functions, one of the most thoroughly studied and trusted foundations in cryptography. If you're skeptical of lattice-based security or operating in an environment where long-term conservatism is required, SLH-DSA is the answer. The tradeoff is real: it is slower to sign and its signatures are significantly larger.

Key generation
~1 ms
Acceptable
Sign
~5โ€“50 ms
Slow (varies by params)
Verify
~1โ€“2 ms
Acceptable
Public key
32โ€“64 B
Very small
Signature
7โ€“50 KB
Very large
vs ECDSA-256
up to 700ร—
larger signature

What makes SLH-DSA unusual: Its public key is tiny (32โ€“64 bytes, smaller than ECDSA) but its signatures are enormous by comparison. The signing operation is also slow because it requires many hash computations. Verification is relatively fast. This profile makes SLH-DSA well-suited for use cases where you sign rarely, verify often, and trust matters more than efficiency, for example, firmware signing on critical infrastructure or long-term document archival where you need cryptographic conservatism over decades.

Where SLH-DSA fits

The slow signing speed eliminates SLH-DSA from most high-throughput scenarios. Its appropriate use cases are those where the signing event happens infrequently but the trust requirement is extremely high:

  • โ†’ Signing root CA certificates (done once every 10โ€“20 years)
  • โ†’ Firmware signing for critical infrastructure devices
  • โ†’ Long-term archival signatures on legal or medical records
  • โ†’ High-assurance environments requiring hash-based security guarantees

Part 3 โ€” Head-to-head comparison

This table summarizes the key performance dimensions across all three standards and their classical predecessors. Use it as a reference for migration planning conversations.

Algorithm Operation speed Key / cert size Signature size Best use case
ECDH P-256
Classical โ€” being replaced
Very fast Very small (64 B) N/A (KEM) Key exchange
ML-KEM-768
FIPS 203 โ€” recommended
Very fast Larger (~1.2 KB) N/A (KEM) TLS, VPN, messaging key exchange
ECDSA P-256
Classical โ€” being replaced
Very fast Very small (64 B) 72 bytes Certificates, code signing
ML-DSA-65
FIPS 204 โ€” recommended
Fast Larger (~2 KB) ~3.3 KB TLS certificates, code signing, PKI
SLH-DSA-128s
FIPS 205 โ€” conservative
Slow (signing) Tiny key (32 B) ~7โ€“50 KB Root CA signing, firmware, archival

Part 4 โ€” The constrained device problem

The hardest performance tradeoffs in PQC migration are not in your data centers, they're in the devices that live at the edge of your network and have been running on hardware designed for classical cryptography. Select a device category to see what the PQC migration challenge looks like for that environment.

๐Ÿ“ก
IoT sensors
Microcontrollers, 32โ€“256 KB RAM
๐Ÿ’ณ
Smart cards
Hardware tokens, <64 KB RAM
๐Ÿ”
HSMs
Hardware security modules
โš™๏ธ
Embedded systems
Industrial control, SCADA

IoT sensors and microcontrollers face the most acute PQC challenge. A typical ARM Cortex-M0+ running a TLS stack has 32โ€“64 KB of RAM. ML-KEM-768 alone requires ~2 KB of working memory for a key exchange operation, feasible on better-resourced microcontrollers, but tight. ML-DSA signatures (~3.3 KB each) plus the certificate chain overhead can exceed available working memory on the smallest devices entirely.

The practical options: (1) move PQC processing off-device to a gateway that handles cryptographic operations on behalf of a cluster of sensors, (2) use ML-KEM-512 (smaller parameter set, lower security level but still quantum-safe), or (3) accept that some legacy endpoints cannot be migrated without hardware replacement. Hardware replacement cycles for IoT are often 10โ€“15 years, this is a procurement decision that needs to start now.

Smart cards and hardware tokens (PIV cards, FIDO2 keys, banking tokens) have the most constrained environment of all. Classic smart card hardware was designed for RSA-2048 operations. Many cannot run ML-KEM or ML-DSA at all without a firmware or hardware upgrade, the CPU is too slow and the RAM too limited for lattice-based operations.

NIST and card manufacturers are actively working on this. Some modern smart card chips have hardware accelerators that can handle ML-KEM. But the installed base, millions of government PIV cards, banking tokens, and identity credentials, represents a replacement cycle measured in years and billions of dollars. This is the reason smart card migration is listed as a separate and explicitly flagged category in Unit 4's hardware migration checklist.

Hardware security modules are in a better position than most constrained devices, but migration is not trivial. HSMs are purpose-built cryptographic hardware, they are fast, but they run firmware that must explicitly support each algorithm. An HSM that does not have ML-KEM or ML-DSA in its firmware cannot perform those operations, regardless of how powerful the underlying hardware is.

The good news: major HSM vendors (Thales, Entrust, Utimaco, AWS CloudHSM) have announced or begun shipping PQC firmware updates. The migration path is a firmware update and re-enrollment process, not a hardware replacement. The risk: firmware updates require testing, change management, and re-certification in regulated environments. Plan for 6โ€“12 months of lead time in environments where HSMs are in regulatory scope.

Embedded systems in industrial control and SCADA environments combine the worst of all categories: constrained hardware, long replacement cycles, air-gapped update processes, and safety-critical operation that makes downtime nearly impossible. A PLC running DNSSEC or TLS-secured communications with 10-year-old firmware may have no path to PQC without physical replacement.

The migration strategy here is rarely direct. Most organizations planning OT (operational technology) PQC migration use a combination of: (1) gateway devices that provide a PQC-secured perimeter while the inner OT network continues running legacy protocols, (2) network segmentation to isolate OT from the public internet until hardware renewal is feasible, and (3) extended vendor support agreements to ensure security updates continue until replacement is funded. This environment is the strongest argument for starting your CBOM now, you need years of lead time.

Part 5 โ€” Which algorithm for which deployment?

Answer two questions about a deployment scenario to get an algorithm recommendation with reasoning.

Algorithm selection guide

Select both options to see your recommendation
What operation does this deployment need?
Key exchange / session setup
Signing (certs, code, documents)
What best describes the environment?
Server / cloud / modern hardware
IoT / embedded / constrained
Rare signing, max conservatism

Part 6 โ€” Applying this in your context

Persona A โ€” Motivated Learner

Performance benchmarking is a topic that comes up constantly in PKIC working group conversations, both in the PQC WG and the TCWG. Being able to say "ML-DSA signatures are roughly 45ร— larger than ECDSA, which creates real considerations for certificate transparency log infrastructure and bandwidth-constrained clients" is a contribution to that conversation, not just background knowledge.

If you're exploring a Web3 or decentralized PKI angle (covered in Lesson 5.8), note that the performance profile applies there too. Blockchain-based identity systems that rely on cryptographic signatures face the same ML-DSA size tradeoffs as traditional PKI, and many current decentralized identity implementations have not yet addressed this.

Persona B โ€” SMB Decision-Maker

For most SMBs, the practical performance question is simple: will PQC make my systems slower or more expensive to run? The honest answer for most server-based infrastructure is: slightly, at the margins, and probably not noticeably. ML-KEM and ML-DSA on modern server hardware run in microseconds.

Where SMBs feel performance differences is in bandwidth and certificate chain size, if you're running a web application on a thin hosting plan with tight bandwidth limits, or operating over satellite or low-bandwidth links, the larger certificate chain sizes are worth knowing about in advance. Ask your hosting provider and CDN whether they support hybrid TLS and how they handle larger certificate objects.

Persona C โ€” IT Professional

The most operationally important performance insight in this lesson is the constrained device problem. When you're building your migration priority list, systems that sit behind a gateway (where the gateway handles PQC and the internal systems speak classical protocols) are much easier to migrate than endpoint devices that must perform cryptographic operations themselves.

Use this framing when you present migration timelines: "These 40 servers migrate in Phase 1 because they can run ML-KEM and ML-DSA natively. These 200 IoT sensors migrate in Phase 3 because they require either gateway mediation or hardware replacement, and we need procurement approval to fund that." That kind of phased, performance-aware framing is exactly what a CISO or CFO needs to approve a realistic plan.

?

Comprehension check

Question 1 of 3
A security engineer is designing a PQC migration plan for a fleet of 10,000 industrial IoT sensors with 48 KB of RAM. She proposes using ML-DSA-65 for all device authentication. What is the most significant concern with this approach?
Question 2 of 3
An organization is choosing between ML-DSA and SLH-DSA for signing their root CA certificate, which is issued once every 15 years. Which is the better fit and why?
Question 3 of 3
A vendor claims their product "supports post-quantum cryptography with no performance impact compared to classical algorithms." Based on what you know about PQC key and signature sizes, what is the most accurate response to this claim?
โ€“
out of 3 correct

Coming up next
Lesson 5.4 โ€” Quantum Networking: Where It Fits in the Timeline