Performance
Benchmarks
KSP performance measured with Criterion.rs statistical benchmarks. All measurements are from a single-core AMD Ryzen 7 5800X at 3.8 GHz.
Serialization
µs1 KB payload0.82 µs
64 KB payload4.1 µs
1 MB payload48.3 µs
Throughput
MB/sAES-256-GCM2800 MB/s
ChaCha20-Poly13052200 MB/s
Handshake Latency
msFull handshake1.4 ms
Session resume0.6 ms
Memory (per session)
KBSession state48 KB
+ active streams (×8)112 KB
Benchmark Methodology
Environment
- CPU: AMD Ryzen 7 5800X (single core)
- OS: Linux 6.x
- Rust: stable, release mode
- Criterion.rs 0.5 (1000 iterations, 5 samples)
What's measured
- Serialization: pack + unpack one KSP frame
- Throughput: encrypt/decrypt in a loop
- Handshake: full protocol + TCP loopback
- Memory: measured with valgrind massif
⚠ These benchmarks measure KSP in isolation. No comparison against HTTPS, TLS, or other production protocols is made. Comparing protocols requires identical methodology, hardware, and use cases.
Try the Live Benchmark Simulator
Configure payload size and cipher, run in browser.