gcannon Glass Cannon · v0.10.0 · MIT

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.

Requests since you opened this pageRequests a second computed at 59,539,961 a second · a calculation, not a measurementHttpArena pipelined test · best published run

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.
gcannon http://localhost:8080/ -c 512 -t 8 -d 10s
Install Build a command Manual
Plate IRange card · log scaleHttpArena results as published 2026-11-16

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.
  1. WebSocket echo, pipelined--ws -p 16 · 4,096 connections
    68,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
  2. Pipelined-p 16 · 4,096 connections
    59,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
  3. WebSocket echo--ws · 4,096 connections
    4,469,914frames/s
    gcannon
    upgrades each connection, then keeps one frame in flight on it.
    Latency
    avg 915 µs, p99 1.20 ms
  4. Baseline--raw × 3 · 4,096 connections
    4,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
  5. Async--raw · 32,000 connections
    2,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.
  6. Compressed JSON--raw × 3 -r 25 · 4,096 connections
    2,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
  7. Short-lived--raw × 3 -r 10 · 4,096 connections
    2,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
  8. WebSocket short-lived--ws -r 10 · 4,096 connections
    2,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
  9. Async database--raw × 5 -r 25 · 1,024 connections
    400,444req/s
    gcannon
    rotates five templates over 1,024 connections and reconnects every 25 requests.
  10. Fortunesone GET · 1,024 connections
    296,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.

Plate IIOne worker thread · sectional viewNot to scale: 4 of its connections, pipeline depth 4

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.

One gcannon worker thread and its io_uring ring Send requests are batched into the submission ring and handed to the kernel with one submit. Responses arrive through a multishot receive into buffers from the provided buffer ring; completions carrying buffer IDs appear in the completion ring; the streaming parser counts responses and records latency; the buffer goes back to the ring and as many new requests are sent as responses arrived. User space · one worker thread Kernel CONNECTIONSthis worker's share: -c ÷ -t conn 0conn 1conn 2conn 3 request buffer built before the run;here 4 requests in flight (-p 4) SQ SUBMISSION RING io_uring_submit() one call, whole batch SOCKETSone multishot receive armed per connection Serverunder test BUF PROVIDED BUFFER RING4,096 receive buffers,registered up front CQ COMPLETION RING completion + buffer ID no syscall per receive STREAMING PARSER 0000000 responses counted t₁ stamped latency histogram buffer handed back after parsing refill: N in, N out 1 2 3 4 5
  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. 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.

With https:// the picture is the same: OpenSSL does the handshake, then kernel TLS encrypts and decrypts on the socket. With --rate the loop also sleeps exactly until the next send is due. The rest is in the manual under How it works.

Form GC-1Firing dataChecked the way gcannon 0.10.0 checks its arguments

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.

DrillFrom nothing to a first rungcannon 0.10.0, released 2026-11-23

Load, aim, fire

  1. Check

    • Linux, kernel 6.1 or newer, with io_uring.
    • liburing-dev and libssl-dev (OpenSSL 3).
    • A C compiler and make.
    • For https:// targets, the kernel's tls module.
    Debian / Ubuntu
    sudo apt install build-essential liburing-dev libssl-dev
  2. Build

    shell
    git clone https://github.com/MDA2AV/gcannon.git && cd gcannon
    make
    sudo cp gcannon /usr/local/bin/

    gcannon --version new in 0.8.0 prints gcannon 0.10.0. The HTTP parser is vendored, so there is nothing else to fetch.

  3. 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 16

    A URL and three numbers: connections -c, threads -t, duration -d. Everything else is optional.

  • -c is the totalIt is split evenly over the threads: -c 512 -t 8 is 64 connections per thread, and -c must 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 (-s changes that). If responses come back in another status class it warns and exits with code 1.