Benchmarks

All benchmarks use criterion and run on localhost. Run with cargo bench -p nhttp3-quic.

HTTP/3 vs HTTP/2

MetricHTTP/3 (nhttp3)HTTP/2
TLS Handshake154 µs166 µs
Network Handshake1-RTT2-RTT
Header CompressionQPACK (50% savings)HPACK
HOL BlockingNoneYes (shared TCP)

Codec Performance

OperationTimeThroughput
VarInt encode20 ns
STREAM frame encode (1200B)64 ns18.7 GB/s
STREAM frame parse (1200B)73 ns16.4 GB/s
QPACK encode (6 headers)680 ns
QPACK decode (6 headers)490 ns
Transport params encode~80 ns