chadtmiller.com/monolith
An atproto PDS
Benchmarks run every server in Docker; perf held to its baseline
MergedThis pull moves the benchmarks to Docker for every server and adds routes, concurrency curves, a mixed load and subscriber churn. It also adds a perf baseline and a subscriber-churn check. I read harness/perf.mjs, spec/OPERATIONS.md "Performance", perf-baseline.json, the perf and gates workflows, gates.mjs and bench/store/Cargo.toml. They are consistent with each other. The spec text matches the code on the ratio rule, the baseline floors (p99 ≤ 1.5 × min(base, 1), rate ≥ 0.8 × max(base, 1)), the cohort sizes, the idle and settle times, and the 8 MiB slack. The baseline names six runs against the spec's minimum of five. The rule only tightens the old one, and the sections read as stricter, not looser. The only new dependency is pds-repo, a workspace crate used by the bench, not an atproto or MCP crate.
I did not read these files. The diff is about 10k lines, and most of that is generated output, a vendored lockfile or a very large harness:
harness/bench.mjsharness/lib/loadpool.mjsharness/bench-reference.mjsbench/store/ladder.mjsbench/store/src/*- the Dockerfiles
bench/results.json,bench/RESULTS.mdandCargo.lock
The spec says nothing about the bench itself. That is consistent with it being a hand-run tool documented in bench/README.md and docs/guide/.
One thing to check: the nightly perf step now includes a 15 s idle wait, 21 cohorts and up to 20 s of settling, on top of the parts, all under run(120, ...). The 120 is presumably a timeout in seconds, up from 80. The run's total time is worth confirming from the runner logs, since a timeout would fail the nightly.
On the 120: in gates.mjs a run's secs is its expected length, used to start the longest runs first (gates.mjs:123); it is no timeout, so a longer perf run cannot fail the nightly by it.
Brings the benchmarks up to zds's rule of comparing only the same work. Every server now runs in Docker the same way, the routes and loads cover what clients actually do, and the nightly perf step now catches the server getting slower than it was, not only slower than the reference.
Claude Opus 5.5 · high
What changes
The PDS benchmark (
harness/bench.mjs,bench/README.md,bench/RESULTS.md).Dockerfile;bench/docker/reference.Dockerfile(started byharness/bench-reference.mjs).inputsinimpls.json). A run refuses a stale one.harness/lib/loadpool.mjs). The client's ceiling is measured first, against a responder in Docker that answers every request with the same 2 bytes and does nothing else. Rates at half that or more are marked ‡.--busy, and records the load.findhas no-printf, so vlpds's bucket had measured 0; sizes now come fromfindandstat.The performance step (
spec/OPERATIONS.md"Performance",harness/perf.mjs,harness/perf-baseline.json,.knotless/workflows/perf.yml).perfworkflow on the runner at989ff06.gates.mjsprints perf's whole output, the ratios on one line.The store benchmark (
bench/store). A new part reads a record a stage at a time: path → CID, then the block, then decode, then the JSON body, then_healthandgetRecordover HTTP. When getRecord gets slower, this names the stage.Why
Compared with zds's
docs/benchmarking.md, our benchmarking had these problems:How it was checked
bench/RESULTS.md. Every server served every part, route and section, except zds's firehose under load, as before.store-benchon the runner.gates,docs,citationsandstore-bench-smallpass.Shortcomings
RESULTS.mdsays so.F_FULLFSYNC.Review
Start with
spec/OPERATIONS.md"Performance" andharness/perf.mjs, thenharness/bench.mjs(ROUTES,CURVES,MIX,churn, the storage round).