h2load

h2load is part of the nghttp2 project and is used for the baseline-h2 profile. It supports HTTP/2 multiplexing with configurable concurrent streams per connection.

Installation

sudo apt install nghttp2-client

How it’s used

h2load https://localhost:8443/baseline2?a=1&b=1 -c 64 -m 100 -t 12 -D 5s
FlagDescriptionValue
-cNumber of connections64, 256, or 1,024
-mMax concurrent streams per connection100
-tThreads12
-DDuration5s

Why h2load?

gcannon is HTTP/1.1 only (by design — it uses raw request templates and io_uring for maximum throughput). h2load handles TLS negotiation, ALPN, HPACK header compression, and HTTP/2 stream multiplexing natively.