gcannon An io_uring load generator for HTTP/1.1, WebSocket and HTTPS.Written in C for Linux. One event loop per thread, requests built once before the run, every response parsed, counted and timed. It runs ten of the tests on HttpArena, a benchmark of more than 200 HTTP servers and frameworks.
59,539,961 requests a second
- The rate
- 59,539,961 req/sis the best published result of HttpArena's pipelined test, every request sent, counted and timed by gcannon.
- The load
- 4,096 × 164,096 connections, 16 requests back to back on each (
-p 16). 297,699,808 responses counted in 5 s, average latency 1.10 ms, p99 1.39 ms. - The bench host
- 32 cores a sideAn AMD Ryzen Threadripper PRO 3995WX. gcannon on 32 cores and their 64 threads (
-t 64), the server on the other 32, over loopback. - Read it right
- Not a ceilingIt is what the server achieved under gcannon's load. gcannon generated, sent, parsed, counted and timed every request. The server or the host may be the limit.
The range
HttpArena runs ten kinds of test with gcannon. Each line below is the best published result of one test: what one server achieved while gcannon generated, parsed, counted and timed all of it.
Every run on the same host: gcannon pinned to 32 cores and their 64 threads with -t 64, the server on the other 32, loopback between them, 4,096 connections unless a line says otherwise. Each test runs three times and the best run is published.
- 54,593,858,555
- responses and echoed frames counted by gcannon in the runs behind the published results. That is the best of three runs per test, not every run ever made.
- 206 of 213
- entries with published results have numbers that gcannon measured.
-
WebSocket echo, pipelined--ws -p 16 · 4,096 connections68,438,198frames/s
- gcannon
- upgrades each connection, then keeps 16 frames back to back on it.
- Latency
- avg 954 µs, p99 1.42 ms
- Counted
- 342,190,992 echoes in 5 s
-
Pipelined-p 16 · 4,096 connections59,539,961req/s
- gcannon
- keeps 16 requests back to back on every connection.
- Latency
- avg 1.10 ms, p99 1.39 ms
- Counted
- 297,699,808 responses in 5 s
- Read
- 3.55 GB/s of responses
-
WebSocket echo--ws · 4,096 connections4,469,914frames/s
- gcannon
- upgrades each connection, then keeps one frame in flight on it.
- Latency
- avg 915 µs, p99 1.20 ms
-
Baseline--raw × 3 · 4,096 connections4,442,329req/s
- gcannon
- rotates three raw templates (a GET with a query, a POST with Content-Length, a chunked POST), one request in flight per connection.
- Latency
- avg 921 µs, p99 1.19 ms
-
Async--raw · 32,000 connections2,924,260req/s
- gcannon
- holds 32,000 connections; each request waits 10 ms on the server.
- Latency
- avg 10.87 ms, p99 12.90 ms
- Ceiling
- 32,000 ÷ 10 ms = 3.2 M req/s is the most this test allows.
-
Compressed JSON--raw × 3 -r 25 · 4,096 connections2,856,398req/s
- gcannon
- rotates three templates that send
Accept-Encoding: gzip, br, and reconnects every 25 requests. - Read
- 4.56 GB/s of compressed responses
-
Short-lived--raw × 3 -r 10 · 4,096 connections2,822,803req/s
- gcannon
- sends the baseline templates and opens a new TCP connection every 10 requests.
- Counted
- 1,411,952 reconnects in 5 s, about 282,000 new connections a second
-
WebSocket short-lived--ws -r 10 · 4,096 connections2,641,801frames/s
- gcannon
- sends 10 frames per connection, then opens a new connection and upgrades it.
- Counted
- 1,321,292 reconnects in 5 s, about 264,000 upgrades a second
-
Async database--raw × 5 -r 25 · 1,024 connections400,444req/s
- gcannon
- rotates five templates over 1,024 connections and reconnects every 25 requests.
-
Fortunesone GET · 1,024 connections296,284req/s
- gcannon
- sends one GET for an HTML page built from Postgres, over 1,024 connections.
- Read
- 6.84 GB/s of HTML
Source: HttpArena's results as published on 2026-11-16, the same values its live board serves. Bench host: AMD Ryzen Threadripper PRO 3995WX, 64 cores / 128 threads, 251 GiB RAM, Ubuntu 24.04.4 LTS, Linux 6.17, CPU governor performance. gcannon runs natively under taskset -c 32-63,96-127; the server's container gets CPUs 0-31 and 64-95. A run lasts 5 s (10 s for the two async tests). The results don't record which gcannon version measured them. The exact commands are in the manual.
Inside the barrel
Each worker thread owns one io_uring ring and its share of the connections outright. No locks, and no worker waits on another.
The loop below is all it does, on every thread, for the whole run.
Batch
Send operations are written into the submission ring in user space. Nothing has crossed into the kernel yet. Each request's clock starts here, when its send is prepared, not when the kernel completes it.
Submit
One submit call hands the whole batch to the kernel. A pipeline of 16 requests is one send of a buffer that was built before the run.
Receive
Each connection armed one multishot receive when it connected. Arriving data lands in a buffer the kernel picks from the provided buffer ring, and a completion carrying that buffer's ID appears in the completion ring. No syscall and no allocation per receive.
Count
The worker takes up to 2,048 completions per loop iteration. A streaming parser finds the end of each response, counts it and its status, and stops its clock; the latency goes into a per-worker histogram. The buffer goes back to the ring.
Refill
As many new requests go out as responses came in: five responses, five requests. The pipeline stays at depth, and the loop returns to step 1.
Fire control
Fill in the run you want and take the command. The form applies gcannon's own argument checks and refuses in gcannon's own words.
Nothing is sent from this page. The command runs on your machine, against your server.
Load a run HttpArena makes or
Load, aim, fire
Check
- Linux, kernel 6.1 or newer, with io_uring.
liburing-devandlibssl-dev(OpenSSL 3).- A C compiler and
make. - For
https://targets, the kernel'stlsmodule.
Debian / Ubuntu sudo apt install build-essential liburing-dev libssl-devBuild
shell git clone https://github.com/MDA2AV/gcannon.git && cd gcannon make sudo cp gcannon /usr/local/bin/gcannon --versionnew in 0.8.0 printsgcannon 0.10.0. The HTTP parser is vendored, so there is nothing else to fetch.Fire
shell # 512 keep-alive connections, 8 threads, 10 seconds gcannon http://localhost:8080/ -c 512 -t 8 -d 10s # the same, 16 requests in flight per connection gcannon http://localhost:8080/ -c 512 -t 8 -d 10s -p 16A URL and three numbers: connections
-c, threads-t, duration-d. Everything else is optional.
-cis the totalIt is split evenly over the threads:-c 512 -t 8is 64 connections per thread, and-cmust be at least-t.- Give it its own coresIf gcannon shares cores with the server, you measure the two fighting. Pin them apart, as HttpArena does with
taskset. - Warmup comes firstgcannon waits at least 100 ms and until every connection is set up, zeroes its counters, then measures for exactly
-d. - Check the exit codegcannon expects status 200 (
-schanges that). If responses come back in another status class it warns and exits with code 1.
The manual
Every mode, every option with its default, every line of the output, and how the inside works.
Open the manual