main
The raw-driver ceiling: what the store alone does with the durable writes Wow asks of it, per command, row or update, in today's shape and in the shapes that price a candidate (MongoDB's update shapes M0–M3; PostgreSQL's P0–P2), before any kernel work.
First the benchmark's domain runs in this JVM on the store (ComponentRun, as the L1 benchmark does): --templates accounts and four deposits each, so Wow creates its tables and writes real rows, and the store's counters per command are read around it. Then, with the driver alone, each case's steps run over --connections, each on fresh clones of Wow's tables with --aggregates aggregates opened at version 1 (no step runs on what another left), --warm-up seconds unmeasured and --seconds measured; on PostgreSQL P2's two cases run again at --p2-share of the split's throughput, so they compare at one rate. --cases keeps the cases whose name starts with one of its prefixes.
The calibration leads raw.json: today's shape on Wow's ground (as many aggregates as Wow's run, every one written since the checkpoint, at its concurrency, paced at its throughput, in its batch shape from its statements per command) against Wow's own counters per command, each within its bound: WAL records, bytes and the HOT share on PostgreSQL; inserts, updates, journal and oplog bytes on MongoDB, Wow's updates and oplog bytes without its node's checkpoint and lease writes, which the clone does not make; the appends and saves per command, so a wrong batch shape fails it; and no command of Wow's run failed. Reported apart: full-page images and commits on PostgreSQL (its commit counter counts the transactions Wow's node only reads in), commands and the node's own oplog bytes on MongoDB. A run that fails it or cannot take it says so first, and none of its cases is read; nor is a step with a failed or refused write. raw.json goes to --out, with the store's version and durability settings and the run's batch parameters.
Run it on the install's class path with main class RawStoreBenchKt; bench.sh's measure --program=raw does.