2.4 KiB
Benchmarks and conformance (ROADMAP §5 layers 2 and 5)
Data, not marketing: every run's raw output is committed here, and this page summarises it, including where Caddy wins.
| Folder | What | Made by |
|---|---|---|
results/<date>-<label>.csv and results/<date>-<label>/ |
load and soak runs: one CSV row per engine, scenario and concurrency; oha's raw JSON; machine.txt |
scripts/bench.sh <label> |
conformance/ |
h2spec and testssl.sh outputs for Ianitor and for Caddy | scripts/conformance.sh |
How the runs are made
tests/diff/src/bin/pair.rs (ianitor-pair) compiles one route, localhost → a small upstream that answers
200 ok, for both engines with Ianitor's compilers, and starts Ianitor's edge (in its own process with the
upstream in a child) and two Caddys: one as Go starts it (every core) and one with GOMAXPROCS=2. Edge runs Pingora
with two worker threads (crates/edge/src/lib.rs), a deliberate budget for a home server, so the second Caddy
is the like-for-like comparison and the first shows what Caddy does with the whole machine.
oha then drives each engine in turn, the same way:
| Scenario | What it measures |
|---|---|
https-h1-keepalive, 1/16/64/256 connections |
HTTP/1.1 over TLS, connections reused: the proxy path itself |
https-h2, 1/16/64/256 connections |
the same over HTTP/2 |
https-h1-new-conn, 16 connections |
a new TLS handshake per request |
http-redirect, 64 connections |
the plain-HTTP listener's 308 (no upstream) |
soak-https-h1, 32 connections, 5 minutes |
latency and errors over time, memory after (rss_kb_after) |
Caveats that apply to every number: the load generator, both proxies and the upstream share one machine and its
cores; loopback has no network latency, so small differences in CPU per request dominate; the upstream is trivial.
Compare rows of one file with each other, not numbers across machines. machine.txt records the CPU, the kernel,
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.