50 Real Live Protocol Benchmarks

AMD EPYC 9B45 · 50/50 live stacks PASS · 24,788 total wire bytes saved vs. ML-KEM-768 · Full source in examples/

50 / 50
Real live stacks passing & smaller than ML-KEM-768
1.61× faster
OpenSSL 3.5.9 decaps vs built-in ML-KEM-768 (20.6 vs 33.2 µs)
1-pkt QUIC
TLS 1.3 ClientHello 1,126 B (≤1,200 B); ML-KEM spills to 2
−1,267 B
Peak single-session UDP savings (DNS-over-QUIC RFC 9250)

Flagship Deep-Dive Views (Click to Expand)

#1 Real Patched OpenSSH 10.0p2 (live ssh ↔ sshd, 20 sessions each)

Upstream OpenSSH 10.0p2 patched with cobalt769-sha256@cobalt769.org linked against libcobalt769_ffi. Measured through a live TCP byte-counting proxy including banners, KEXINIT, Ed25519 host key, auth, and channel exec:

KEX AlgorithmC→SS→CTotal WireDelta vs ML-KEMMedian
curve25519-sha256 (classical)2,290 B2,506 B4,796 B−2,272 B (−32.1%)128.8 ms
mlkem768x25519-sha256 (default)3,474 B3,594 B7,068 Bbaseline127.8 ms
sntrup761x25519-sha5123,466 B3,546 B7,012 B−56 B (−0.8%)166.5 ms
cobalt769-sha256@cobalt769.org3,186 B3,290 B6,476 B−592 B (−8.4%)127.6 ms
bash examples/openssh/bench.sh
#5 Real OpenSSL 3.5.9 Loadable KEM Provider (OSSL_OP_KEM, 1,000 live EVP_PKEY runs)

Loadable dynamic provider (cobalt769_provider.so) registered natively into OpenSSL 3.5.9 (openssl list -kem-algorithms -provider-path . -provider cobalt769_provider) and benchmarked directly against OpenSSL 3.5.9's built-in ML-KEM-768:

Algorithm (OpenSSL 3.5.9 EVP_PKEY)CT SizeEncapsDecapsResult
ML-KEM-768 (OpenSSL default)1,088 B21.4 µs33.2 µs1,000 / 1,000
COBALT769 (cobalt769_provider)817 B (−24.9%)17.9 µs (1.20×)20.6 µs (1.61×)1,000 / 1,000
cd examples/openssl3-provider && cc -O2 -fPIC -shared cobalt769_provider.c -o cobalt769_provider.so -I../../cobalt769-ffi/include -L../../cobalt769-ffi/target/release -lcobalt769_ffi -lcrypto && cc -O2 bench_evp.c -o bench_evp -lcrypto && ./bench_evp
#2, #3, #4, #12, #39 TLS 1.3 / QUIC v1 / HTTP/3 / DoQ Packet-Boundary Analysis

In real rustls 0.23 TLS 1.3 (300 live handshakes), Cobalt-769 is the only Category 3 post-quantum KEM whose ClientHello fits inside a single 1,200 B QUIC Initial datagram (1,126 B) and whose ServerFlight fits inside a single 1,460 B Ethernet TCP MSS (1,451 B). Over live quinn 0.11 UDP sockets, that saves a full QUIC Initial packet on QUIC v1, 1,185 B on HTTP/3, 1,200 B on QUIC Bi-Stream RPC, and 1,267 B on DNS-over-QUIC.

TLS 1.3 Key ExchangeClientHelloQUIC ≤1200 B?ServerFlightTotal WireLocalhost CPU*
X25519 (classical)236 BYES (1 pkt)667 B983 B195.2 µs
X25519MLKEM768 (NIST)1,420 BNO (2 pkts)1,756 B3,256 B244.4 µs
MLKEM768 (NIST pure)1,388 BNO (2 pkts)1,723 B3,191 B198.8 µs
Cobalt-769 (standalone)1,126 BYES (1 pkt)1,451 B2,657 B857.6 µs

*Localhost TLS 1.3 CPU reflects ephemeral client KeyGen (~660 µs; 76% inside the integer WHT DFR certificate). Over real WAN links (RTT ≥ 20 ms), avoiding an extra packet flight dominates 0.6 ms of client CPU.

cd examples/tls13-rustls && RUSTFLAGS="-C target-cpu=native" cargo run --release
cd examples/quic-h3-quinn && RUSTFLAGS="-C target-cpu=native" cargo run --release
Reproduce All 50 Live Stacks Locally
# #1 OpenSSH 10.0p2
bash examples/openssh/bench.sh
# #2 TLS 1.3 (rustls)
(cd examples/tls13-rustls && RUSTFLAGS="-C target-cpu=native" cargo run --release)
# #3-#4 QUIC v1 + HTTP/3 (quinn + h3)
(cd examples/quic-h3-quinn && RUSTFLAGS="-C target-cpu=native" cargo run --release)
# #5 OpenSSL 3.5.9 Provider (C)
# see OpenSSL section above
# #6 HTTP/2 gRPC (hyper + rustls)
(cd examples/h2-grpc-rustls && RUSTFLAGS="-C target-cpu=native" cargo run --release)
# #7-#8 age v1 + WireGuard Noise_IKpsk2
(cd examples/age-wireguard && RUSTFLAGS="-C target-cpu=native" cargo run --release)
# #9-#13, #17-#18 WSS, HTTPS/1.1, DoT, DoQ, mTLS, Noise_XX, MQTT v5
(cd examples/net-stacks && RUSTFLAGS="-C target-cpu=native" cargo run --release)
# #14-#16 HPKE RFC 9180, JWE RFC 7516, COSE/CBOR RFC 9052
(cd examples/envelope-stacks && RUSTFLAGS="-C target-cpu=native" cargo run --release)
# #19-#28 SMTPS, IMAPS, POP3S, LDAPS, Redis, Postgres, MySQL, NATS, AMQPS, Syslog
(cd examples/stacks-19-28 && RUSTFLAGS="-C target-cpu=native" cargo run --release)
# #29-#39 DoH, FTPS, IRCv3, XMPP, Gemini, CoAP, SOCKS5, Noise IK/NK/KK, QUIC RPC
(cd examples/stacks-29-39 && RUSTFLAGS="-C target-cpu=native" cargo run --release)
# #40-#50 Signal PQXDH, MLS, OpenPGP v6, S/MIME, KMS, 4x Broadcast, COBALT2, Matrix, OCI, LUKS2, FIX 4.4
(cd examples/stacks-40-50 && RUSTFLAGS="-C target-cpu=native" cargo run --release)

Complete 50-Stack Live Benchmark Table

#Protocol, Real Implementation & NotesCobalt-769ML-KEM-768SavedSource
1OpenSSH 10.0p2 (cobalt769-sha256@cobalt769.org)
Patched ssh <-> sshd (TCP, 20 runs) · 127.6 vs 127.8 ms; sntrup761 166.5 ms
6,476 B7,068 B−592 B
−8.4%
openssh
2TLS 1.3 Handshake (RFC 8446)
rustls 0.23 SupportedKxGroup (300 runs) · CH 1,126 B (1 QUIC pkt), SF 1,451 B (1 MSS); hybrid 3,256 B
2,657 B3,191 B−534 B
−16.7%
tls13-rustls
3QUIC v1 Handshake (RFC 9000)
quinn 0.11 live UDP (15 runs) · 2 Init pkts vs 3; hybrid 7,726 B (-718 B)
7,008 B7,230 B−222 B
−3.1%
quic-h3-quinn
4HTTP/3 GET / (RFC 9114)
h3 0.0.8 + h3-quinn 0.0.10 live UDP · S->C UDP 5,994 vs 7,161 B (-1,167 B)
14,229 B15,414 B−1,185 B
−7.7%
quic-h3-quinn
5OpenSSL 3.5.9 Loadable Provider (OSSL_OP_KEM)
cobalt769_provider.so EVP_PKEY (1,000 runs) · Enc 17.9 vs 21.4 us; Dec 20.6 vs 33.2 us (1.61x faster!)
817 B1,088 B−271 B
−24.9%
openssl3-provider
6HTTP/2 gRPC Unary RPC (RFC 9113)
hyper 1 + rustls 0.23 live TCP (20 runs) · S->C 1,411 B (1 TCP MSS); hybrid 3,645 B (-597 B)
3,048 B3,581 B−533 B
−14.9%
h2-grpc-rustls
7age v1 File Encryption (age-encryption.org/v1)
HKDF-SHA256 + ChaCha20-Poly1305 (500 runs) · Base64 stanza 1,090 vs 1,451 chars; 54.2 us avg
1,218 B1,579 B−361 B
−22.9%
age-wireguard
8WireGuard PQ-PSK (Noise_IKpsk2)
snow Noise_IKpsk2 + live UDP (200 runs) · 817 B CT + 166 B Noise UDP; 438.8 us avg
975 B1,246 B−271 B
−21.7%
age-wireguard
9WebSocket Secure (wss://, RFC 6455)
tokio-tungstenite 0.26 + rustls TCP · Hybrid 3,534 B (-597 B)
2,937 B3,470 B−533 B
−15.4%
net-stacks
10HTTPS/1.1 GET / (RFC 9112)
hyper 1 HTTP/1.1 + rustls TCP · Hybrid 3,345 B (-597 B)
2,748 B3,281 B−533 B
−16.2%
net-stacks
11DNS-over-TLS (DoT, RFC 7858)
hickory-proto 0.24 + rustls TCP · Real DNS A query/answer; hybrid 3,324 B
2,727 B3,260 B−533 B
−16.3%
net-stacks
12DNS-over-QUIC (DoQ, RFC 9250)
hickory-proto 0.24 + quinn 0.11 UDP · Saves 1,267 B UDP (-10.3%); hybrid 12,305 B
11,068 B12,335 B−1,267 B
−10.3%
net-stacks
13Mutual TLS (mTLS Client+Server Cert)
rustls 0.23 WebPkiClientVerifier TCP · Full mutual cert auth; hybrid 3,186 B (-597 B)
2,589 B3,122 B−533 B
−17.1%
net-stacks
14HPKE Base Mode (RFC 9180)
HKDF-SHA256 + AES-256-GCM (500 runs) · 48.5 us avg; 500/500 PASS
887 B1,158 B−271 B
−23.4%
envelope-stacks
15JWE Compact Token (RFC 7516)
serde_json + base64url + A256GCM (500 runs) · 5-part compact token; 48.8 us avg
1,249 B1,610 B−361 B
−22.4%
envelope-stacks
16COSE / CBOR Envelope (RFC 9052)
ciborium CBOR + A256GCM (500 runs) · 69.7 us avg; 500/500 PASS
1,740 B2,011 B−271 B
−13.5%
envelope-stacks
17Noise_XX Mutual Auth (libp2p/Lightning)
snow Noise_XX + live TCP (10 runs) · 3-flight TCP handshake; 1.07 ms median
1,969 B2,502 B−533 B
−21.3%
net-stacks
18MQTT v5 over TLS 1.3 (OASIS)
Real CONNECT/CONNACK/PUBLISH TCP · Hybrid 3,284 B (-597 B)
2,687 B3,220 B−533 B
−16.6%
net-stacks
19SMTPS Mail Submission (RFC 8314)
Live 220/EHLO/QUIT over rustls TCP · Hybrid 3,701 B (-598 B)
3,103 B3,637 B−534 B
−14.7%
stacks-19-28
20IMAPS Mailbox Access (RFC 9051)
Live CAPABILITY/LOGOUT over rustls TCP · Hybrid 3,690 B (-599 B)
3,091 B3,626 B−535 B
−14.8%
stacks-19-28
21POP3S Mail Retrieval (RFC 8314)
Live STAT/QUIT over rustls TCP · Hybrid 3,642 B (-597 B)
3,045 B3,578 B−533 B
−14.9%
stacks-19-28
22LDAPS Directory Bind (RFC 4511)
ASN.1 BER BindReq/Res over rustls TCP · Hybrid 3,559 B (-598 B)
2,961 B3,494 B−533 B
−15.3%
stacks-19-28
23Redis TLS (RESP3 PING + SET)
Real RESP3 frames over rustls TCP · Hybrid 3,628 B (-598 B)
3,030 B3,564 B−534 B
−15.0%
stacks-19-28
24PostgreSQL SSLRequest + Wire v3
Plaintext 0x04d2162f -> TLS upgrade TCP · Hybrid 3,562 B (-596 B)
2,966 B3,499 B−533 B
−15.2%
stacks-19-28
25MySQL 8.4 SSLRequest + COM_PING
Handshake v10 -> TLS upgrade TCP · Hybrid 3,596 B (-597 B)
2,999 B3,531 B−532 B
−15.1%
stacks-19-28
26NATS Broker over TLS 1.3
INFO/CONNECT/PING/PONG over rustls TCP · Hybrid 3,618 B (-597 B)
3,021 B3,554 B−533 B
−15.0%
stacks-19-28
27AMQPS 0-9-1 (RabbitMQ)
AMQP header + Connection.Start TCP · Hybrid 3,551 B (-597 B)
2,954 B3,487 B−533 B
−15.3%
stacks-19-28
28Syslog over TLS (RFC 5425 / 5424)
Octet-counted RFC 5424 frame TCP · Hybrid 3,564 B (-598 B)
2,966 B3,501 B−535 B
−15.3%
stacks-19-28
29DNS-over-HTTPS (DoH, RFC 8484)
hyper 1 HTTP/2 + hickory-proto TCP · POST /dns-query; hybrid 4,063 B (-618 B)
3,445 B4,023 B−578 B
−14.4%
stacks-29-39
30FTPS Implicit TLS (RFC 4217)
Live 220/FEAT/QUIT over rustls TCP · Hybrid 3,657 B (-596 B)
3,061 B3,595 B−534 B
−14.9%
stacks-29-39
31IRCv3 over TLS (ircs://)
Live NICK/USER/001 over rustls TCP · Hybrid 3,582 B (-598 B)
2,984 B3,518 B−534 B
−15.2%
stacks-29-39
32XMPP Direct TLS (XEP-0368)
XML stream open/features over TCP · Hybrid 3,619 B (-597 B)
3,022 B3,557 B−535 B
−15.0%
stacks-29-39
33Gemini Protocol (TLS 1.3)
gemini:// request + text/gemini TCP · Hybrid 3,586 B (-596 B)
2,990 B3,523 B−533 B
−15.1%
stacks-29-39
34CoAP-over-TLS (RFC 8323)
Binary CSM + GET /temp + 2.05 TCP · Hybrid 3,569 B (-597 B)
2,972 B3,505 B−533 B
−15.2%
stacks-29-39
35SOCKS5 over TLS Tunnel (RFC 1928)
Method neg + CONNECT over rustls TCP · Hybrid 3,601 B (-597 B)
3,004 B3,537 B−533 B
−15.1%
stacks-29-39
36Noise_IK + Cobalt-769 (live UDP)
snow Noise_IK_25519_ChaChaPoly UDP · 2-flight UDP; -22.0%
963 B1,234 B−271 B
−22.0%
stacks-29-39
37Noise_NK + Cobalt-769 (live UDP)
snow Noise_NK_25519_ChaChaPoly UDP · Server-known 2-flight UDP; -22.8%
915 B1,186 B−271 B
−22.8%
stacks-29-39
38Noise_KK + Cobalt-769 (live UDP)
snow Noise_KK_25519_ChaChaPoly UDP · Mutual static 2-flight UDP; -22.8%
915 B1,186 B−271 B
−22.8%
stacks-29-39
39QUIC Bi-Stream RPC (quinn 0.11)
Live QUIC bi-stream UDP (10-run med) · Saves 1,200 B (1 full UDP datagram!); hybrid 12,253 B
11,023 B12,223 B−1,200 B
−9.8%
stacks-29-39
40Signal PQXDH Prekey Exchange
X25519 + Cobalt-769 + HKDF (500 runs) · 48.7 us avg; -22.8%
915 B1,186 B−271 B
−22.8%
stacks-40-50
41MLS TreeKEM Welcome (RFC 9420)
HKDF + AES-256-GCM GroupSecrets (500 runs) · 48.4 us avg; -22.9%
913 B1,184 B−271 B
−22.9%
stacks-40-50
42OpenPGP v6 PKESK+SEIPD (RFC 9580)
Binary packet tags 0xC1+0xD2 (500 runs) · 48.2 us avg; -24.1%
855 B1,126 B−271 B
−24.1%
stacks-40-50
43S/MIME CMS AuthEnvelopedData (5083)
ASN.1 DER SEQUENCE+OCTET (500 runs) · 47.5 us avg; -23.8%
867 B1,138 B−271 B
−23.8%
stacks-40-50
44KMS Envelope DEK Wrap
256-bit DEK + AES-256-GCM-SIV (500 runs) · 47.8 us avg; -23.9%
865 B1,136 B−271 B
−23.9%
stacks-40-50
45Multi-Recipient Broadcast (4x)
4 distinct PKs wrapping 1 DEK (200 runs) · Saves 1,084 B (-23.9%); 190.2 us avg
3,460 B4,544 B−1,084 B
−23.9%
stacks-40-50
46COBALT2\0 Streaming Header
8B magic + CT + 12B nonce + GCM-SIV · 52.6 us per 4 KiB chunk; -24.5%
837 B1,108 B−271 B
−24.5%
stacks-40-50
47Matrix Megolm Room-Key Share
JSON + base64 + AES-256-GCM (500 runs) · 47.7 us avg; -21.4%
1,320 B1,680 B−360 B
−21.4%
stacks-40-50
48OCI Container Layer Enc (ocicrypt)
JSON descriptor + base64 CT (500 runs) · 49.1 us avg; -21.9%
1,281 B1,641 B−360 B
−21.9%
stacks-40-50
49LUKS2 Disk Keyslot (512-bit XTS)
JSON keyslot + GCM-SIV wrap (500 runs) · 49.1 us avg; -22.0%
1,275 B1,635 B−360 B
−22.0%
stacks-40-50
50FIX 4.4 Order/Exec over TLS 1.3
Live 35=D / 35=8 over rustls TCP · Hybrid 3,686 B (-596 B)
3,090 B3,623 B−533 B
−14.7%
stacks-40-50