Post-quantum signatures in Thruput: first numbers
December 4, 2026We shipped support for “post-quantum” signatures (PQC) on day 1 in Stellar Project Thruput, but with the recent news about timelines possibly moving forward on the death of elliptic curve cryptography, we’ve been debating if we should just make the fancy PQC sigs the default. Like, now.
The question, of course, is will system performance go down catastrophically, which would be a real bummer, or will Project Thruput’s distributed validator architecture just “shrug it off”? TL;DR: bit of both!
The 7M payments/sec benchmark we published on launch used Ed25519 sigs, and while we’ve microbenchmarked ML-DSA speed in order to set gas metering, we’d never done a full-scale benchmark run with them. So I swapped Ed25519 for ML-DSA-65 in Thruput’s executor benchmark and ran the same core-scaling curve on EC2 so you can reproduce it if you’re so inclined.
On one 64-core executor, ML-DSA-65 does 848k tx/s. Ed25519 does 1.45M tx/s.
Which isn’t great! Don’t worry, though. It’s not the end of the world. Up to 32 cores, ML-DSA costs a steady 31-33% of throughput. That’s mostly the extra CPU to check a bigger signature. CPU is the part we designed Thruput to scale: Thruput can check signatures on more cores, or on separate auth servers.
The harder part for all chains trying to move a lot of tx/s, including Thruput, is the size of the txs with PQC signatures. An ML-DSA-65 payment is 3,492 bytes, which is 14x bigger than an Ed25519 one. At 64 cores the executor host moves close to 30 Gbps, the limit of its NIC on the reference EC2 instance type we selected for our benchmark runs, and throughput stops scaling.
The rest of this post covers what we ran, where the CPU is being used, when the network limit shows up, and probably the most interesting part (for us at least): the work we need to grind through to deliver a Thruput that’s both fast and safe even in a PQC world.
Quick Background
ML-DSA-65 is the FIPS 204 lattice signature scheme at NIST security category 3. Its keys and signatures are much bigger than Ed25519’s:
| Item | Ed25519 | ML-DSA-65 | Ratio |
|---|---|---|---|
| Public key | 32 B | 1,952 B | 61x |
| Signature | 64 B | 3,309 B | 52x |
| Payment tx in this benchmark | 248 B | 3,492 B | 14x |
In this benchmark every account is a wallet contract. The contract stores the owner’s public key and checks the signature on each payment, inside the executor. So a payment carries only the signature, not the key. The rest of the tx, about 180 bytes, is the same for both schemes.
To run this, we added three things to hogd:
- A wallet contract that checks ML-DSA-65 signatures, the same pattern as the Ed25519 one.
- An option in the load generator to sign payments with ML-DSA-65.
- ML-DSA verification with mldsa-native’s AVX2 code on builds for CPUs that have AVX2. Before, every build used the portable C code. Our generic release builds still use the portable code, so they run on older CPUs.
The gas price of an ML-DSA verify is still set from the portable code. The idea is it has to cover the slowest verifier we ship, but one thing we’re now aware of is we may want to change that and dynamically set it based on CPU features or something like that. Practically speaking, you’re going to want AVX2-capable CPUs to run a Thruput node most efficiently.
Setup
We used Whitney, our EC2 benchmark for the executor. Each cluster is 4 r8a.16xlarge hosts (64 vCPUs, up to 30 Gbps network) in us-west-2c. One host runs the load generator, one the executor, one the database and one the event server.
The executor gets K cores, from 1 to 64, with one hog-exec process per 8-core L3 cache domain. Each run is 1 warmup block and 10 timed blocks of ERC20 payments between 100 accounts, 7,500 tx per core per block. We ran each curve 3 times, each time on a fresh cluster, with the K values in random order.
We ran three variants:
- Ed25519, the baseline.
- ML-DSA-65 with AVX2, as our Zen 5 build runs it.
- ML-DSA-65 portable, the C code our generic builds use. We ran it at K = 8, 32 and 64 only.
All three use the same hogd commit and the same settings. The only change is the signature scheme, and for the portable run, the verify code. We report the median tx/s of the 10 timed blocks, then the median of the 3 runs. The 3 runs agree within 4% at every point except two ML-DSA AVX2 points: K = 1 (6%) and K = 64 (7%, see below).
A coarse look into where the CPU is being used
With AVX2, an ML-DSA-65 payment costs the executor ~35% more CPU than an Ed25519 payment. The signature check accounts for about 10 of the extra 23 core-microseconds. Where did the other 12 or so go?
We profiled hog-exec with perf at K = 8, on one of our own test hosts (AMD EPYC 9554). CPU time per tx, in core-microseconds:
| Verifier | Total | Signature check | Everything else |
|---|---|---|---|
| Ed25519 | 64.1 | 23.5 | 40.6 |
| ML-DSA-65, AVX2 | 86.8 | 33.9 | 52.9 |
| ML-DSA-65, portable | 136.6 | 82.7 | 53.9 |
A few things stand out:
- AVX2 matters. It cuts the ML-DSA check from 82.7 to 33.9 us, 2.4x. With it, the check costs only 1.4x the Ed25519 check.
- The rest grows by about 12 µs. About 5 µs of that is the contract VM handling 3.3 KB of calldata in place of 64 bytes. We have not broken down the rest yet.
- The kernel costs 19-24 µs per tx in all three. That is networking and syscalls, and it does not depend on the scheme. It is an optimization target in its own right.
- Keccak is 11% of the AVX2 run. Part of that is hashing the 1,952-byte public key on every check. The key only changes when the owner changes it, so we could cache that hash.
Our dedicated auth server benchmark, on one core, gives the same picture: 23 µs to check an Ed25519 signature, 32 µs for ML-DSA-65 with AVX2 and 80 µs for portable ML-DSA-65.
I took 64.1, divided by 86.8, and figured ML-DSA with AVX2 ought to get us about 74% of Ed25519 throughput. On EC2 we got 67–69% up to 32 cores. A little farther off than I’d like to admit on the prediction, we’ll have to do a little more work to break that down further and understand wher the 5% went.
Results
ML-DSA-65 with AVX2 tracks Ed25519 at a steady ratio up to 32 cores, then falls behind at 64.
Median tx/s across three runs in us-west-2c, Dec 4, 2026. Whitney results.
Ed25519 scales close to linearly up to 32 cores, and gets 1.69x going from 32 to 64 (a reduction in scaling efficiency that was also in the previous benchmark run - we’re working on!). Portable ML-DSA-65 holds a flat 0.42x of Ed25519 at all three points we ran, so its CPU cost scales the same way. ML-DSA with AVX2 is the only one that bends at 64 cores. So what happened to those last 32 cores?
Network limit on this run
At 64 cores, ML-DSA-65 with AVX2 runs the executor host’s NIC close to its 30 Gbps limit. We’ve always been CPU limited in our benchmark runs, so this is kinda fun.
Peak network traffic, from per-second sar samples:
| Run | Executor in | Executor out | Event server in |
|---|---|---|---|
| Ed25519, K = 64 | 4.5 Gbps | 11.1 Gbps | 5.9 Gbps |
| ML-DSA-65 AVX2, K = 32 | 16.3 Gbps | 18.9 Gbps | 16.8 Gbps |
| ML-DSA-65 AVX2, K = 64 | 25.1 Gbps | 28.6 Gbps | 25.4 Gbps |
The arithmetic is pretty simple. 848k tx/s at 3,492 bytes is 23.7 Gbps of transactions into the executor. The executor then sends each signed transaction on to the event server with its events, so the same bytes go out again. Ed25519 at 1.45M tx/s is only 2.9 Gbps of transactions.
The K = 64 runs also vary more than the others, from about 800k to 851k tx/s. That fits the pattern of a run bumping into the link’s bandwidth limit.
Portable ML-DSA-65 at 64 cores is 601k tx/s, about 16.8 Gbps of transactions. That is under the limit, which is why it still scales like Ed25519. With AVX2, a faster verify gets us to the network limit sooner, basically.
What this means for us
CPU. An ML-DSA-65 payment costs the executor about 35% more CPU today than an Ed25519 payment. In this run the executor checked every signature itself. Each check is independent, so Thruput can move that work onto dedicated auth servers and add more of them as load grows. That’s the design, anyway. If I’m honest, I never really know how well one of these things scales until I throw load at it. Next run we’ll move the ML-DSA checks onto auth servers, add servers, and see what happens to payments/sec.
Bytes. Adding servers does not make a transaction smaller. Every component that receives a transaction has to deal with all these extra bytes. At 1M tx/s, ML-DSA-65 payments are 28 Gbps for each copy on the wire, against 2 Gbps for Ed25519. That is the real limit past about 1M tx/s on this hardware.
But some good news: none of this stops a PQ-native Thruput from running fast. It does give us a fairly concrete to-do list.
- More network. Our own test cluster has 100 GbE, and EC2 has instance types with more than 30 Gbps. That alone could move the limit by about 3x and let us see if/where we hit other limits.
- Fewer copies. The executor sends each signed transaction on to the event server. We will look at which components still need the full signature after it has been checked.
- Smaller signatures. ML-DSA-44 has 2,420-byte signatures, at a lower security level. FN-DSA (Falcon) signatures are about 666 bytes, but signing needs floating-point sampling that is hard to implement safely. We want to measure both the same way and be able to switch schemes when/if new approaches emerge.
- CPU time we’d like back. Cache the public-key hash (Keccak is 11% of the AVX2 run), cut the 19-24 µs of kernel time per tx, and make the contract VM handle large calldata with less work. There are probably 20 other things we haven’t thought of yet.
Next, and how to run it yourself
These numbers are just a first look at our current baseline. Our commitment is we’ll re-run and re-publish results each time we have new insights. We’re all fairly early in dealing with these new schemes, so we hope by sharing early and often, we’ll help advance everyone’s knowledge of how to build and scale systems in this new era.
Next, I plan to:
- Run the same curve on instances with faster networking, to confirm the limit moves with the NIC.
- Turn on more detailed profiling metrics to break out CPU usage even more.
- Move the “loadgen” benchmark signature checks to dedicated auth servers and scale them, to see how much of the CPU cost moves out of the executor and how well auth scales in practice.
You can find the three scenarios and the run summary in Whitney PR #3. To repeat the AVX2 run, check out Whitney at 2a49a4f and use the same hogd commit we did. Fill in your EC2 settings first.
whitney sweep scenarios/exec-cores-l3-pq-mldsa.toml
--set hogd_ref=8eabc30db --set availability_zone=us-west-2c
--set ami_id="<Ubuntu 26.04 AMI>" --bucket "<bucket>"
--ssh-key-name "<key pair>" --ssh-identity "<key file>"
--operator-cidr "<your IP>/32" For the other two curves, swap in exec-cores-l3-pq-ed25519.toml or exec-cores-l3-pq-mldsa-portable.toml.