[bench] Load and soak, first run (WSL2 Ubuntu, release): Caddy ahead under HTTP/1.1 load, on new TLS connections and on the redirect; Ianitor ahead on HTTP/2 at 1 and 64 connections and on memory; README summarises both, with the run-to-run noise

This commit is contained in:
2026-11-18 18:27:32 +01:00
parent 1d6a96f971
commit 3ef0424454
35 changed files with 3676 additions and 3 deletions
+48 -3
View File
@@ -33,6 +33,51 @@ whether it is WSL2, the build (release or debug) and the tool versions.
## Results
None committed yet: the development machine's Linux (WSL2) was down for the whole phase 4 session, so neither
`scripts/bench.sh` nor `scripts/conformance.sh` has run. The first run fills this section: per scenario, which
engine is ahead and by how much, and every case where Caddy wins, stated as plainly as the ones where Ianitor does.
### Load and soak: 2026-11-18, WSL2 Ubuntu 26.04 (`results/2026-11-18-wsl2-ubuntu.csv`)
AMD Ryzen 7 5800X3D (16 threads), 32 GB, WSL2 kernel 6.18; release build; Caddy v2.11.7 built with Go 1.26.8 from
its official module (no Nix on this machine: Caddy reports its version as "unknown"); oha 1.17; 15 s a run, one run
each. Requests per second (higher is better), and p99 latency in ms:
| Scenario | Ianitor (2 threads) | Caddy (all cores) | Caddy (GOMAXPROCS=2) |
| :-- | --: | --: | --: |
| HTTP/1.1, keep-alive, 1 conn | 1,861 / 9.0 | 1,757 / 2.5 | **2,351** / 0.8 |
| HTTP/2, 1 conn | **2,173** / 0.8 | 1,375 / 1.4 | 1,588 / 1.4 |
| HTTP/1.1, 16 conns | 3,843 / 28.8 | 6,905 / 45.5 | **7,759** / 11.2 |
| HTTP/2, 16 conns | 4,723 / 27.5 | **6,090** / 35.6 | 3,426 / 28.6 |
| HTTP/1.1, 64 conns | 6,596 / 50.9 | **15,653** / 31.3 | 6,561 / 39.8 |
| HTTP/2, 64 conns | **11,726** / 23.2 | 8,472 / 59.6 | 5,708 / 37.3 |
| HTTP/1.1, 256 conns | 4,421 / 155.6 | **12,632** / 101.9 | 4,473 / 147.0 |
| HTTP/2, 256 conns | 3,981 / 146.6 | **10,077** / 101.9 | 3,607 / 134.4 |
| New TLS connection per request, 16 | 1,218 / 50.6 | **2,236** / 65.0 | 1,823 / 21.4 |
| Plain-HTTP redirect, 64 | 13,582 / 32.4 | **54,027** / 16.3 | 17,027 / 15.5 |
| Soak, HTTP/1.1, 32 conns, 5 min | 6,245 / 31.3 | **13,031** / 35.4 | (not run) |
Every request of every run succeeded (success rate 1.0, no unexpected status). Memory (resident, after each run, the
process that serves the port): Ianitor 13 MB at the start, 56 MB after the soak; Caddy 60 MB and 77 MB.
**Where Caddy wins:** almost everywhere with the whole machine, by about 2× under HTTP/1.1 load and 4× on the
plain-HTTP redirect; with the same two cores it is still ahead on HTTP/1.1 at 1 to 16 connections, on new TLS
connections (about 1.5×, so rustls handshakes cost Ianitor more than Go's) and on the redirect.
**Where Ianitor wins:** HTTP/2 at 1 and 64 connections (ahead of both Caddys), HTTP/2 at 16 and 256 connections
against Caddy on two cores, and memory, which stays below Caddy's in every run. At 64 and 256 HTTP/1.1 connections
Ianitor and Caddy on two cores are even.
How much to read into it: one run each, on a desktop that was doing other things; a 2-second smoke run of the same
script just before gave Ianitor 14,341 requests/s on HTTP/1.1 with 16 connections, against 3,843 here, so single
numbers move a lot on this machine. The ordering at 64 connections and above, the redirect and the handshake cost
were the same in both runs. For a home server, every row is far beyond what it will see; the numbers are here to
keep the comparison honest, not to choose an engine.
### Conformance: 2026-11-18, same machine (`conformance/`)
| | h2spec (145 cases) | testssl.sh 3.2.2 |
| :-- | :-- | :-- |
| Ianitor | 144 passed, 1 skipped, **0 failed** | A+; TLS 1.2 and 1.3; no server cipher order (rustls follows the client) |
| Caddy 2.11.7 | 140 passed, 1 skipped, **4 failed** | A+; TLS 1.2 and 1.3; server cipher order; session tickets valid 7 days (LOW) |
Caddy's four h2spec failures (Go's HTTP/2 server): HEADERS larger than SETTINGS_MAX_FRAME_SIZE (4.2/3), several
SETTINGS_INITIAL_WINDOW_SIZE values (6.5.3/1), a connection-specific header field and a `TE` other than
`trailers` (8.1.2.2/1 and 2). The two HIGH findings testssl.sh reports for both engines belong to the throwaway test
certificate (a validity of about 2,100 years, no CRL or OCSP URL), not to the engines; HSTS and security headers
are the routes' business (header rules), not set on the test route.