Benchmarks

Performance benchmarks for Nghttp2Wrapper.jl.

Methodology

Benchmarks are run using BenchmarkTools.jl. Network benchmarks connect to nghttp2.org over HTTPS.

To reproduce, run from the repository root:

julia --project=benchmark benchmark/client_bench.jl
julia --project=benchmark benchmark/hpack_bench.jl

HPACK Performance

Header compression/decompression throughput using the standalone HPACK API.

OperationHeadersTime (median)Allocations
Deflate2 headers~5 us~10
Inflate2 headers~3 us~8
Round-trip2 headers~8 us~18

Results are approximate and depend on hardware. Run the benchmark suite for your system.

Client Performance

Network request throughput (dependent on network latency to nghttp2.org).

OperationDescriptionTime (median)
Single GETOne request to nghttp2.org~100-300 ms
5 concurrent GETsMultiplexed on one connection~150-400 ms

Network benchmarks are highly dependent on network conditions and server load.

System Information

Report your system info when sharing results:

using InteractiveUtils
versioninfo()