Performance & Conformance

Note

This page is auto-generated from the live test + benchmark harnesses on each docs build (bench/gen_results_page.py, ADR-0032) — the published response surface, not a hand-edited snapshot. All rates and latencies are absolute measured values, representative of the CI runner. Each chapter opens with the method for its own surface; the cross-cutting rules are §1–§4, and §5 says what every harness in bench/ drives and reports.

🤖 CI-generated on 2026-11-25 18:47 UTC · commit c8d67bc · run 45676643451 · runner Linux.

How to read this page

Every number here belongs to exactly ONE measurement surface, and a value is only comparable to values from the same surface — surfaces use different harnesses, processes and units. A surface is a property of the series, not of the chapter it is drawn in: a chapter groups by subject, a subject can be answered by more than one instrument, and this table is what settles whether two numbers may be compared at all.

surface

what it measures

harness

where it appears

discipline

Cross-core conformance

byte-exactness across cores, not speed

tests/conformance/run-all.py

§6

any DISAGREE fails CI

In-process timing

per-operation latency and throughput in one process

bench_libtracer, bench_subscriber_suspend, bench_subscription_selector, bench_admission_gate, bench_retire_park, bench_walk_writer, bench_scale_sweep, bench_target_binding, bench_source_role, bench_publish_leg

§7, §8, §9, on demand

gated per PR and per main push, same-runner

Framed-hop timing

what one wire frame costs, before and after the payload

bench_forward_demux, bench_chain_delivery, bench_forward_rope, bench_terminus_tier, bench_chain_delivery_pair, bench_can_reassembly, bench_reply_leg, bench_reply_dispatch, bench_mount_resolve, bench_noise_crypto

§8, on demand

batch-amortized against the host clock, self-calibrating

Allocation counting

exact allocations and bytes around ONE operation — counted, never timed

bench_forward_heap, bench_transport_iov, bench_iov_spill_cost, bench_wire_heap, bench_conn_ram, bench_peer_counts, bench_ram_census_tcp, bench_lean_value_path, bench_failable_census, bench_pin_ratio, bench_subscribe_index, bench_qos_census, bench_store_escape, bench_source_role_alloc

§9, §3, on demand

forward hop hard-gated at zero; per-vertex block count ratcheted exactly

Network timing

one-way latency over a real socket, two processes

bench_transports, bench_zenoh_net, bench_compose_net, bench_zenoh_compose, bench_tcp_fanin, bench_pin_net, bench_tcp_peer_scaling, bench_tcp_baseline, bench_noise_link, bench_zenoh_link

§10, on demand

same topology for both engines; p50, the p99 tail and the p999 deep tail — published, never gated

Engine comparison

libtracer and Zenoh side by side, absolute

bench_zenoh

§10

same runner, best of 3 rounds — no ratios

Cross-core codec

decode→encode roundtrip per implementation

bindings/typescript/…/bench/perf.mjs, bindings/rust/examples/perf.rs, bench_codec

§11

the same v1 vectors for every core

Concurrency & scaling

how one shared object behaves as threads are added

bench_fanout_clone_storm, bench_await_wakeup_storm, bench_rx_source_topology, bench_store_sweep, bench_writer_fanin, bench_lkv_slot, bench_hazard_node, bench_contention

on demand

many-core host, run on demand — not part of the published sweep

Instrument self-check

that the harness’s own estimator reproduces a distribution it was given

bench_tail_validate

on demand

run before trusting a published percentile; touches neither clock nor library

§2 is what stops a regression, §4 is what one number is worth against the runner lottery, and §5 says what each harness actually drives.

Every chart on this page is the same chart

One idiom, learned once. A family is a set of series answering one question, drawn as lines on shared axes; the x-axis is recorded main commits, oldest to newest, except in §10 where it is the swept parameter. Each chart names its own swept variable and pinned scenario beneath its title — which is also why two charts both titled “throughput” are not comparable to each other: different denominator, by construction.

  • 🏷 dashed marker = a release tag (≈ when the tag’s commit is not itself a recorded point). 🔧 dotted = the bench changed at that commit, so points either side were taken with different rulers and are not comparable. Core changes are deliberately not marked: a core change moving the line is the signal the chart exists to show.

  • A series label keeps one color across every history chart. The §10 comparison charts use a fixed engine palette instead — their line dimension is which engine, not which parameter.

  • Families with a numeric parameter carry four switchable views — trend, sweep, heatmap and an isometric 3D surface — drawn only over the commits where every series of the family has a value, so a series that started late cannot fake a trend.

  • Every commit-axis view is drawn over a selectable commit range (two sliders per card, the full history by default). Narrowing it re-bases the axis and the release/instrument markers with it, so a short window is a real chart rather than a zoom.

  • The paired libtracer-vs-Zenoh cards (fan-out and payload) add a ratio toggle on the bench-local store: zenoh ÷ libtracer per recorded commit, dimensionless, with a parity line at 1×. On a latency metric a quotient above 1 means libtracer is faster; on throughput the same statement is a quotient below 1, and the y-axis says which. This is the comparison to read across a long history: on bench-local both arms of a point are measured in the same pass on one pinned CPU, so that machine’s speed on the day divides out of the quotient to first order, while the absolute lines carry the full spread. Each point pairs the two engines at one commit; a commit where only one arm recorded contributes no point. Measured over bench-local’s full store of 12 runs, the quotient’s spread is about a third lower than the libtracer line’s own. The ratio is computed from same-pass arms only: the hosted store records the best of three runners per series, so a point’s two arms need not be the same runner’s, and its cards carry no ratio toggle.

  • A source selector heads each chart block: bench-local (the default — one pinned self-hosted CPU, the trend instrument) or GitHub-hosted (best of three runners per series, the portability envelope). One store at a time, page-wide, never overlaid — the two answer different questions (§14). A family the selected store has not recorded says so instead of drawing an empty axis.

  • Hover any point for its exact value, the commit and its subject line — plus the host descriptor when the store records one, which the bench-local store does on every point. That descriptor carries the run’s clock floor: the clock’s resolution and the measured cost of one timed sample, the finest a per-op row could resolve on that host. It also carries the allocator settings every family process ran under (alloc pinned plus the fixed glibc mmap and trim thresholds and arena count).

Two latency series per in-process mode

Every <mode> row is timed one operation at a time; every <mode>-batch row times a calibrated batch of the same operation and divides. The clock is a large fraction of a sub-100 ns write, so the per-op percentiles snap to coarse steps and read high at small fan-out, converging on the batch row as the operation outgrows the clock — the Clock quantization chart in §7 plots exactly that gap. Use -batch to resolve a small delta; use the per-op row for tail shape, since it is the one with a real p99. A percentile of batch means measures interference between batches rather than the tail of an operation, so the -batch rows publish no p99 at all rather than a fabricated one. Every batch row’s window is at least 20 µs and its figure is kept to the picosecond, so a 3 ns row is not stepped in whole nanoseconds.

1 · What the metrics mean

Across the surfaces, a measurement is one of the following dimensions. Each has a distinct instrument, and a distinct rule for what a “worse” number means.

dimension

unit

instrument

direction

status

latency

ns (p50 / p99 / mean)

wall-clock per op, bench_libtracer

lower better

gated ✅ per-PR + push

throughput

deliveries/s, publishes/s

ops / elapsed, bench_libtracer

higher better

gated ✅ per-PR + push

alloc bytes

bytes & count per op

counting allocator, bench_forward_heap

lower better

forward hop gated ✅ = 0; other probes tracked

memory footprint

live bytes / vertex, edge, link; RSS delta per family

malloc_usable_size balance + RSS family= lines

lower better

gated ✅ per-vertex, edge and link (+2% same-runner); RSS tracked

wire bytes

encoded frame bytes

TLV frame size over the v1 vectors, codec surface

lower better

being promoted to a first-class series

CPU

work per op

per-op cost on a pinned core

lower better

latency is today’s proxy; dedicated counter planned

Three notes on reading this table honestly:

  • Latency vs CPU. Today’s per-op cost is measured as wall-clock latency on a quiesced, core-pinned runner, which on an idle machine is a close proxy for CPU work. A dedicated cycles/CPU-time counter is a finer instrument for the same dimension; where a chart is labelled “CPU” it means per-op compute isolated from I/O and wait.

  • Wire bytes are a codec property, not a dispatch property. They come from the encoded size of a message over the wire (the TLV frame), measured on the same v1 vectors the codec surface uses — so they are comparable across cores and independent of runner speed.

  • Alloc bytes vs footprint. Alloc bytes is the transient heap a single operation churns (gated to zero on the forward hop). Footprint is the resident memory the graph holds at rest (per-vertex live bytes, whole-run RSS). A design can be zero-churn yet heavy at rest, or lean at rest yet allocation-happy per op — so the two are tracked separately and never summed.


2 · What actually stops a regression

Absolute nanoseconds vary ~2× with the runner drawn, so the gates are all same-runner relative comparisons, where machine speed cancels. Three jobs, three thresholds, one hard invariant:

mechanism

when

comparison

threshold

effect

per-PR hard gate (perf_gate.py)

every PR

PR build vs main build, one runner, interleaved A/B per family

per row and leg, 3× the row’s A/A-null spread, floor 3% (flat p50 +15% · mean +12% · deliveries/s −12% where the null has no row) · per-vertex bytes +2% — and a bootstrap 95% interval on the median pair ratio that excludes 1 (a row at the flat threshold is decided by the separated-arms + majority-of-pairs rule)

fails the PR

ratchet

once per landing batch on main (one replica) and nightly (three)

HEAD vs the last benched main commit, on the pinned bench host

same as above

advisory — each replica reports (see the tier note below)

forward-hop zero-alloc gate

every CI run

absolute

> 0 allocations on the forward hop

fails the build

soft trend alert

per main commit

vs previous point, one repeat on the pinned bench host

series drifts past 125%

a comment, not a verdict

Verdict tiers. The comparison is the same wherever it runs; what a caller declares is whether a breached ratchet may stop the job. perf_gate.py --tier blocking fails on a breach, --tier advisory prints the identical numbers and the identical verdict line and exits 0 — with a ::warning:: annotation, so an unenforced breach is never quiet. The tier is not a second, looser threshold set: an advisory run reports exactly what a blocking run would have said. The per-PR gate is blocking; the ratchet’s replicas are advisory, because a single noisy run should not carry a verdict alone and the ruled escalation (two of the nightly’s three replicas agreeing) is not built yet. A push runs one replica, which reports and decides nothing alone. Omit the flag and you get advisory — the safe default for a maintainer’s own machine, where the bar was never calibrated; every CI invocation declares its tier explicitly and a unit test fails the build if one does not.

Details that make these trustworthy:

  • Only a clean run may PASS or FAIL. Every timed bench execution — inside perf_gate.py and in the transcript steps of both perf workflows — runs through one classifier, bench_conditions.py, which samples the conditions around it and records them: the measured CPU’s foreign time (busy time in /proc/stat — including irq and hypervisor steal — minus the bench process’s own CPU time), the bench’s involuntary context switches (the nonvoluntary_ctxt_switches counter), and CPU pressure over the execution itself (the growth of the PSI some total= stall counter between start and end, as a share of the wall time — not avg10, a 10 s moving average a short execution would inherit from the run before it). An execution shorter than 0.5 s is too short to measure a share on and is judged on foreign time alone, and a multi-threaded execution, which raises pressure itself, has its pressure recorded but not scored. The pressure that decides, pinned or not, is the bench slice’s cpu.pressure (/sys/fs/cgroup/bench.slice/cpu.pressure): the bench CPUs are that slice’s alone, so host-wide /proc/pressure/cpu says nothing about them and is recorded for information only (maintainer ruling, 2026-10-26, after host-wide pressure dropped every pair of a quiet live A/A). Where a bench slice is expected (a pinned run, or BENCH_SLICE set) but its cpu.pressure cannot be read, the execution is contended: the guard fails closed. Only a run where none is expected (unpinned, with BENCH_SLICE unset, such as a hosted runner) is judged on foreign time alone. An execution is contended when foreign time exceeds 2 % of its window or pressure exceeds 5; a contended execution is re-run, up to three attempts, and the first clean one is kept. The per-PR gate judges each family’s own window: a pair whose execution stayed contended is dropped for that family, both arms, and the family is judged on its other pairs. Only when a family that emits a gated row loses more than two of its pairs (and, outside the per-PR gate, when any execution is still contended after its last attempt) does the gate print PERF: INCONCLUSIVE instead of PASS or FAIL — the comparison’s numbers still print, marked ? as unverified — and the blocking tier exits 3 so the job is re-run rather than merged on an unverified green. On the pinned host the same verdict is stamped next to the host descriptor on every recorded point (and so in every chart tooltip), and a contended sample carries the CONTAMINATED flag: it stays in the store as evidence, but it never counts as coverage and never enters the rolling-drift baseline. A host whose load average never settles flags its sample the same way rather than skipping it. The trend charts are not a gating consumer: on a flagged sample they keep off the line only the rows that failed their own A/A check or are outliers against their own neighbours, and draw those rows as marked suspect points. GitHub-hosted runners cannot be isolated: they run unpinned, their conditions are read over the whole affinity set, and the interleaved A/B remains their primary defence. The allocation-count instruments (the zero-alloc gate, the memory probes, the RAM censuses) are exempt — load cannot move a count.

  • The pinned host’s A/A bracket. Each bench-local sample runs the same bench_forward_demux binary before and after the measured run, about 45 one-second rows (throughput and p50 per point). The whole sample is flagged CONTAMINATED when the p75 row disagrees by more than 6 % or any single row by more than 15 % (AA_RUN_P75_BAND and AA_RUN_ROW_CAP in host_guard.py), and the flag records the measured p75 and max. The worst row alone is not the test: on a clean host the median row sits near 0.9 % and two rows of 45 can still exceed 6 %. Rows over 6 % are marked one by one for the charts, whatever the sample’s verdict.

  • The per-PR gate watches thirty-five canonical points — a representative slice of the fan-out / payload / topic sweeps plus a fold-width point, one per gated family (inproc and inproc-borrow share one), so a pullback on any of those legs is caught and not just the 1:1 write. They are not the whole dispatch surface, and this page should not be read as claiming they are: inproc-deliver, the -batch twins and the eptype-* sweep’s two lean arms are measured and charted but ungated. A pullback confined to those ships without the gate objecting. They are perf_gate.py’s POINTS, named here in full because this page is hand-written and a bare count says nothing about what is covered; each is keyed mode/payload/fan-out/endpoints: inproc/64/1/1 — the canonical 1:1 write; inproc-borrow/64/1/1 — its zero-copy twin, the same write handed a borrowed view instead of an owned copy; inproc/64/1024/1 — the 1024-subscriber fan-out loop; inproc-path/64/1/8192 — the resolver canary, one registry lookup per write across 8192 registered vertices; mixed/0/6/128 — the composed topology, 128 topics whose fan-out varies 1–16 (mean 6) over payloads of 1 B–8 KiB, which is why its payload column reads 0; fold-b4/512/1/1 — the L0 fold walk, 512 bytes held constant across four rope links and timed over a batch; and lkv-store-heap/64/1/1 + lkv-store-pool/64/1/1 — the L1 rope-to-contiguous copy (rope_t::materialize: one segment allocated from the backend plus the payload memcpy), against the default heap and against a pooled backend; lkv-store-heap/1024/1/1 + lkv-alloc-heap/1024/1/1 — the same copy and the bare alloc/free on the default heap at 1 KiB, where the heap backend’s segment layout changes; and inproc-target-handler/64/8/1 + inproc-target-stored/64/8/1 — the path-target dispatch legs at fan-out 8, edges carrying a target key rather than a callback, which is the leg a wire SUBSCRIBER actually takes; and three multi-threaded rows at four threads, inproc-mt4/64/1/4 (parallel dispatch, one graph per thread), acl-inherit-d4-mt4/64/1/4 (ACL-gated reads under a shared ancestor) and poolalloc-mt4/64/1/1 (the thread-safe pool’s alloc/free under contention); and seven 16 KiB payload-ladder rows, one per data-path family: inproc/16384/1/1, inproc-borrow/16384/1/1, lkv-store-heap/16384/1/1, lkv-store-pool/16384/1/1, eptype-stream/16384/1/1, chain-forward/16384/1/1 and fwd-demux-value/16384/1/1 (the forward hop keyed by its VALUE payload rather than its frame size); and eight store-latency rows from bench_store_sweep, the p50 of each of its four workload legs — the rope forward hop, a graph write, a composed subtree read, and all three — on the NARROW and the WIDE store profile: store-lat-narrow-net-fwd/32/1/1, store-lat-narrow-graph-write/32/1/1, store-lat-narrow-graph-read/32/1/1, store-lat-narrow-full/32/1/1, store-lat-wide-net-fwd/32/1/1, store-lat-wide-graph-write/32/1/1, store-lat-wide-graph-read/32/1/1 and store-lat-wide-full/32/1/1. The workload writes a 32 B value, the only size the sweep has, so no store row above 1 KiB exists to gate. These rows are batch medians in picoseconds, so the clock-tick guard does not apply to them; their mean is not gated. An A/A null of 40 runs on one pinned CPU put every row’s robust spread under 1.3 % of its median and failed none of 160 four-pair A/A verdicts, so they gate on the blocking tier like every other point, at the cost of about one second per gate.

    The multi-threaded rows are timed in their own invocation (--family-set multi), after every single-threaded one, and that invocation is judged on foreign CPU time only. Their own threads queue behind each other on the pinned CPUs, which raises the bench’s own CPU pressure with nothing foreign present; scoring that pressure would turn about one gate in three INCONCLUSIVE. A real intruder still shows as foreign CPU time and still makes the verdict INCONCLUSIVE. Every other invocation is judged on foreign time and pressure.

    The lkv-store-* rows are gated because they are downstream of rope_t::materialize, which every path that flattens a rope takes — branch and field writes, op_resolve reads, FWD delivery emission, the RX span sink — and no other gated point is. The 1 KiB heap rows are gated because the 64 B and 1 KiB rows can move in opposite directions: a 1072 B request misses glibc’s 1032 B per-thread cache, so a segment layout that speeds up the 64 B row can make the 1 KiB one about 2x slower. They are read out of RESULT rows the default sweep already emits, so they add no wall-clock. Note the name: lkv-store-* measures the copy-store allocation, not the last-known-value slot. Each lkv-* row’s columns are separate measurements of one operation: its throughput times the whole loop as one block, and its p50 and mean come from a second run of the same operation in window-calibrated batches, in picoseconds.

    Beside those rows sits the ADR-0060 pool check, and it is not a speed ratio. The pool’s acceptance has one goal: it never takes an allocation from the system heap. The LKV-ROUTE gate in bench_forward_heap checks exactly that. It runs the pooled alloc/free loop under the global operator-new counter and requires the pool arm to reach the heap zero times at 64 B and 1 KiB, with the heap arm as its control (it must reach the heap on every cycle, or the probe is blind). CI also runs it with LKV_ROUTE_BREAK=1, which routes the pool arm to the heap on purpose, and requires it to fail. That count is the only blocking pool check; a slower pool path is caught as the lkv-store-pool/64/1/1 row above.

    The timed pool/heap ratio (lkv-alloc-pool over lkv-alloc-heap) is printed, and never fails, because it measures the runner: across 254 best-of-3 readings on the CI runners with healthy code, the 64 B ratio ran 1.4x–6.5x (median 3.0x, bimodal), and main and an identical candidate read 2.1x and 1.6x in the same session. The per-PR report keeps the pairing so main’s same-session ratio sits beside the candidate’s. bench/test_perf_gate.py pins that no ratio fails.

    The inproc-target-* pair is gated at fan-out 8 and nowhere else, for two measured reasons. Fan 8 sits exactly on vertex_t::kInlineFanout, the no-heap small-fan-out boundary, so it is the width that prices the narrow-fan snapshot path. And a layout control (the same source rebuilt at three -falign-functions settings) measured this row as the most layout-stable point of the whole sweep, 0.62% across placements against ~15% for fold-b4, so the false-red risk from code placement is near zero here. Both legs are gated because stored carries the same shape as handler, and it reads reliably because host_guard.py rejects contaminated windows. Like the lkv-store-* pair they add no wall-clock: the default sweep already emits both rows at every fan width, so this is two more keys read out of output already collected. Both gate on all three legs at the nominal +15% / +12% / −12%: a fan-8 row’s p50 and mean time the whole 8-subscriber publish (~640 ns and ~800 ns p50 respectively, against per-delivery costs of ~62–80 ns), so they sit far above the sub-100 ns band where the tick guard would demand an extra +25 ns absolute and blunt them the way it blunts fold-b4.

    eptype-stream/64/1/1 is on the list too, and the reason it is gated while its two siblings are not is the whole point of adding it. eptype-lean and eptype-lean-cached are the inproc and inproc-borrow code paths re-emitted under an endpoint-type name — already gated, twice over, so gating them again would buy correlated evidence rather than coverage. eptype-stream is not a re-emission: it is the only point on the list that declares a bounded history depth, and therefore the only one downstream of the STREAM role’s retention work. Nothing else on the list touches that path, so without it a pullback confined to retention would pass every gate. It costs no wall-clock: the default sweep already emits the row. And all three legs bite at the nominal thresholds — it measures ~190 ns p50 and mean over five best-of-rounds on a busy 31-core host, far above the sub-100 ns band where the tick guard would demand an extra +25 ns absolute.

    What the row prices. Under RFC-0025 §4.6.1 Amendment 2 a producer never queues — the queue belongs to the party that wants depth, so the ring lives on the receiving vertex and the admission runs after the last-known-value publish rather than before fan-out. The gated row therefore times the receiver leg of “one 64 B write into a depth-16 stream vertex”: retire the entry the depth intent pushes out, admit the new one by reserving its retained width against that vertex’s own injected block source, and append.

    The append-and-admission leg is read as a gap, not as a series of its own. eptype-stream and eptype-lean are the same write at the same payload, fan-out and topic count, emitted from the same pass of the same binary and banked as separate series on the Endpoint-type family card — so the distance between the two lines is the receiver-ring cost, over the whole recorded history, with the runner shared by both arms. Two things that leg does not price, stated because a reader would otherwise assume them covered: a reservation is handed straight on when a retiring entry has the shape the new one needs, so a steady uniform stream costs its source zero try_alloc calls per write and this row measures the admission bookkeeping, not an allocator round-trip; and the resident footprint of the receiver’s ring state has no memory probe. A bench for the shape-changing admission path — where the carried reservation cannot be reused and try_alloc fires on every write — does not exist, and neither does one for the ring’s resident bytes. Both are gaps in this page, not numbers it is withholding.

    Fourteen of the thirty-five come from OTHER bench binaries, because a routing or delivery pullback moves none of bench_libtracer’s rows. They are chain-forward/64/1/1 and chain-terminus/64/1/1 — a stream delivery’s forward hop and its terminus over the PAIR chain, from bench_chain_delivery; and fwd-demux-fixed/61/1/1 and fwd-demux-scan/61/64/64 — the fixed-slot and scanning arms of the FWD demux, from bench_forward_demux; plus the two 16 KiB ladder rows from those binaries, named above; and the eight store-latency rows from bench_store_sweep, also named above. Each POINTS entry names the binary that produces it. The chain and demux binaries emit the same 12-column RESULT format; bench_store_sweep’s RESULT_STORE_LAT row is folded into that shape by the gate. This costs three extra processes per arm per pair.

    The points are mode values of the benches described above, and the numbers are their size / fan-out / endpoint columns. The binaries are run family by family (bench_libtracer --family NAME, and each sibling binary as one step), and each family’s pairs run back to back, ABBA — A B / B A / A B / …, eight pairs, alternating which one starts — so the two arms of a pair are seconds apart and a slow window in the machine is shared by both rather than donated to whichever one holds it. A single-threaded family is pinned to one logical CPU (the first of BENCH_CPU, or BENCH_CPU_SINGLE; unpinned, the lowest CPU of its mask, which the family picks itself); a multi-threaded family runs on the whole BENCH_CPU set as its own invocation, sizes its thread count from that affinity mask, and runs after every single-threaded one. In the advisory ratchet only, the single-threaded steps are sharded across the four bench CPUs (BENCH_SHARD=4, #2467): four steps run at once, one per CPU, and each step runs all of its pairs, both arms, on its CPU, so the two sides of a comparison always share a core. An A/A of the same build, sharded against all on one CPU, moved no row by more than 4.9% (p75 0.47%), the rows above 1 KiB included, but the per-pair null spread widened from 1.00% to 1.48% (median row), so the sharded ratchet is less sensitive than the PR gate, which stays serial on CPU 3. Multi-threaded families start only once the sharded phase is over, and so still have every bench CPU to themselves. Because the baseline is the same PR’s main rebuilt on the same runner in the same pass, the comparison is machine-neutral.

  • The gate measures an aligned build (#2175). Both arms of the PR gate, and both arms of the push ratchet, are configured with -DCMAKE_CXX_FLAGS=-falign-functions=64 (perf.yml’s BENCH_CXX_FLAGS): library and bench binaries alike start every function on a 64 B boundary. A change that only moves code (a hot loop that crosses a 64 B boundary because something before it grew) then cannot move a row past its threshold. On #2165 such a shift failed inproc/64/1024 at x1.034 against x1.030 with no instruction added to the loop. What this does not catch: a layout-only regression in the shipped build, which is unaligned. That is invisible to the gate by design, as is a layout-only speed-up. A regression that adds work, or that changes data layout (a new cache miss, false sharing), still moves the aligned build. The flag is bench-only: no CMakeLists.txt carries it, the shipped and default builds never see it, and perf-local’s published series stays on the default build. The ratchet’s HEAD arm is aligned, and it feeds the push history at /dev/bench/: every series there steps at the commit that merges #2188 (the aligned bench build) and from then on describes the aligned build, not the shipped one, so a step at that commit is the flag and not a code change. test_perf_gate.py checks that every timed arm in perf.yml takes it.

  • A point’s leg fails only when both of these hold, and the gate prints each, with the numbers: the median of the per-pair ratios candidate/baseline is past the row’s threshold (the effect is big enough), and a bootstrap 95% confidence interval on that median (2 000 resamples of the pairs, seeded) excludes 1 (the effect is real). The threshold is per row and per leg, from a banked A/A null (bench/aa_null.json, written by bench/aa_null.py): 3× the robust spread of the gate’s own statistic between different builds of the same source (one source built at three function alignments, so code layout moves the way an unrelated change moves it), floor 3%, and capped at the flat thresholds above: a measured null may tighten a row, never loosen it. The allocator-cliff rows (cliff-alloc-pool; the heap twin is layout-bound and takes no null, see below) take 5× instead of 3×: banked on the bench CPUs, three of them false-failed a held-out A/A replay at 3× and none at 5×, and raising their floor to 5% instead cleared fewer. A stable row gets as little as 3%, so a real 10% regression fails it. A row the null does not carry is gated on the flat thresholds, and the report says flat. Disjoint ranges alone are not enough to fail a stable row: within one session two builds of one source differ by a layout offset, and disjoint ranges read that offset as real (changes that could not touch a row, and one with identical sources, read 15–22% under clean conditions). The null is banked on the gate’s own host and pin (bench.slice CPUs 3–6, single-threaded families on CPU 3, the bench runner stopped while it measures): a null first measured on a shared runner CPU was tighter than the bench CPUs’ own spread and false-failed nine rows of a real gate run at the 3% floor. It is re-banked there when the CPU layout changes and when a gated row is added. A bank is fitted on 25 or more rounds (aa_null.py bank refuses fewer), measured in several windows of one runner stop each, and pooled so that no gate window straddles two stops. Each leg banks the spread of its noisiest window, not the spread pooled over all of them: a layout offset between two builds moves with host state (in the 2026-10-09 bank, fwd-demux-scan’s -falign-functions=64 build ran level with the others in one window and 9–12% slower in two), and the pooled spread diluted that to a threshold the held-out window then false-failed in 6 of 18 sessions. A further window the fit never sees is replayed into the null’s meta, which records each window’s date and rounds, the held-out A/A false-fail count and how many rows an injected 10% slowdown fails in every session. bench/aa_null_campaign.sh is that procedure on the bench host: it waits until no perf run is queued or running before each stop (or, with DRAIN=1, takes the runner’s job label away and waits for its current job), and restarts the runner after every window, failures and signals included.

  • The fast-mode veto (#2168). Under either rule a leg also needs the arms’ second-best samples (second-lowest p50 and mean, second-highest deliveries/s across the pairs) to be past the same threshold. Several rows are bimodal per process (store-lat graph-write ~75 or ~120 ns, lkv-store 16 KiB ~120 or ~180 ns, main included), and a candidate whose pairs landed on the slow mode failed PRs that could not reach the row. A slow mode or contention only slows a process, so the second-best sample is the fast mode; the second rather than the best, so one lucky fast pair cannot clear a leg. The gate now fails only a regression that moves the fast mode. A change that only makes processes land on the slow mode more often, or that slows only the slow mode, is invisible within one session unless it leaves at most one candidate pair on the fast mode. This is a departure from the #1874 ruling’s “no row looser”: on a flat leg it can pass a session main’s rule failed. The root-cause fix is the bench host’s CPU isolation (bench vCPUs pinned to dedicated host cores with idle siblings), after which the rows are unimodal; the veto is the backstop. The report prints it as fast mode x….

  • Layout-sensitive, held at the flat threshold. On these rows 3× the banked spread is at or past the flat threshold, because builds of one source move them by several percent (the -falign-functions=64 build ran lkv-store-heap ~40% slower), so they are decided by the flat threshold and the separation rule (the median pair ratio breaches, the candidate’s best run is worse than the baseline’s median run, a strict majority of pairs breach), and the report says cap. Until #2205 this asked for disjoint [min..max] ranges; with a fresh copy per run (#2215) one copy on a slow placement overlapped them, and a replayed x1.20 regression passed a flat row in 9 of 10 sessions at a 1/4 slow-copy rate. The separation rule supersedes the #1874 capped-leg rule (ruled 2026-10-25). A row the null does not carry is decided the same way. In the 2026-10-09 null (27 fit rounds in three windows, banked from main@738c0a29) the null tightens 27 of the 89 legs outside the cliff family and 18 of the 294 cliff legs; every other leg is at the cap. Rows at the cap on every leg: acl-inherit-d4-mt4, both eptype-stream rows, all three fwd-demux-* rows, both inproc-borrow rows, inproc-mt4, inproc-path/64/1/8192, inproc/16384, lkv-alloc-heap/1024, mixed, poolalloc-mt4, and the store-lat full, net-fwd and narrow graph-read rows. fold-b4/512/1/1 is tightened on p50 only (x1.113). The chain-* rows are not in this bank, so they are decided flat. 97 of the 98 cliff rows hold at least one leg at the cap. The held-out window gave no A/A false fail in 18 sessions, and an injected 10% slowdown failed 12 of the 133 rows in every session. Fitting on any three of the four windows and replaying the fourth gave false fails in 10 of 54 sessions, all but two in the two daytime windows. The cliff-alloc-heap and lkv-alloc-heap rows move by up to x1.20 with code placement alone, more than three alignment builds sample, so a null cannot price them without loosening them, and a null never loosens a row. They are not gated on time at all: see The layout-bound rows below.

  • The layout-bound rows. cliff-alloc-heap and lkv-alloc-heap time one alloc/free in 3–60 ns, and where the linker puts the code decides the figure: a 32 B shift of identical code moved them by x1.20, and one source spread x1.18–1.26 over shuffled link orders (-ffunction-sections, lld --shuffle-sections). A null fitted over layouts is wider than the flat threshold, so the cap holds the row at the flat 15% and a layout crosses it; a null that loosened the row to fit would stop catching a real 10%. So the verdict does not come from time. bench_forward_heap counts the user-mode instructions of one heap-backend alloc/free pair at every cliff-ladder size (RESULT instr, from perf_event_open, no clock): nine layouts of one source read the same count at every size. The gate fails a size whose count is more than 2% and more than two instructions over main’s, so ten extra instructions (about 10% of a pair) fail on any layout. The timed legs of these rows keep only a gross backstop of x1.5, which is above the worst measured layout and still catches an allocator on a slow path (a request pushed past glibc’s per-thread cache reads about x2.7); sizes past the 64 KiB last class are not counted, because the host allocator’s own state moves them run to run (their timed legs hold a x3 backstop for the same reason). Replayed over nine layouts of one source (default and eight shuffled link orders, ten rounds on the bench CPUs, 216 gate sessions), these rows gave no false fail, the instruction count gave none in all 72 ordered layout pairs, and ten injected extra instructions (+9.6%) failed all 48 sizes. The copy-store rows lkv-store-heap/64, lkv-store-heap/1024 and lkv-store-pool/64 take the same mechanism: on time, unchanged source false-fails 7-24 of 216 replay sessions each. bench_forward_heap counts the instructions of one two-link rope_t::materialize (backend alloc, payload copy, free) as RESULT instr-store B=<heap|pool> S=<size>: 256, 292 and 243 instructions, identical on all nine layouts, and the gate fails a row more than 2% and two instructions over main. Their 16 KiB twins are copy-dominated and stay on the null. Replaying the nine layouts of one source (216 gate sessions) with the banked null, the three rows false-failed 20, 24 and 7 sessions; with the instruction gate and the x1.5 timed backstop they false-fail none, and an injected +9-11% of instructions (26 added instructions on the store path) fails all three rows on every layout. A host with no hardware counter emits no rows and the gate says the ratchet did not run, except on the self-hosted bench runner, where perf.yml sets PERF_GATE_REQUIRE_INSTR=1 and a missing counter fails the gate.

    What this gives up. The count is of user-mode instructions only. A slowdown that adds none (kernel work, since kernel mode is excluded, cache misses, an atomic or fence in place of a plain store, mispredicts) is not held at the flat 15%: it passes up to x1.5. The cliff-step check is weaker in the same way: a new size-class cliff fails only when the right-hand row is slower than main by the same-size rule, which is x1.5 for cliff-alloc-heap, so one up to x1.5 slower passes (the pool family is not affected). The exact segment-draw ratchet is unaffected. The same holds for the three copy-store rows: a slowdown that adds no user-mode instruction (cache or page behaviour in the copy, a slower kernel path, an atomic in place of a plain store) passes up to its backstop on lkv-store-heap/64, lkv-store-heap/1024 and lkv-store-pool/64 (table below). The payload copy is memcpy, whose instruction count does not follow its time at 1 KiB, so a copy that gets slower per byte is seen only by the backstop. Backstop per row. The same nine-layout campaign (10 rounds, 216 sessions per row) gives each lkv row its own backstop. “Spread” is the largest, over the p50, mean and throughput legs, of the worst-to-best per-layout median. The “smallest clean bound” is the lowest backstop, found by a sweep in steps of 0.01 (not 0.05) from x1.35 down, at which none of the 216 replayed sessions false-fails. The bound is 1.1 x the larger of the two, rounded up to 0.05, so it clears both the layout spread and the lowest replay-clean point.

    row

    worst spread (p50 / mean / throughput)

    smallest clean bound

    bound

    lkv-alloc-heap/1024

    x1.18 / x1.20 / x1.20

    x1.20

    x1.35

    lkv-store-heap/64

    x1.08 / x1.09 / x1.10

    x1.11

    x1.25

    lkv-store-heap/1024

    x1.16 / x1.19 / x1.35

    below x1.05

    x1.5

    lkv-store-pool/64

    x1.18 / x1.19 / x1.15

    x1.29

    x1.45

    lkv-store-heap/1024 is not tightened: its p50 spread is only x1.16, but its throughput leg spreads x1.35 across layouts, which x1.1 rounds back to x1.5, and one bound serves all three legs. The replay alone would allow a tighter bound (it never false-failed down to x1.05) because the verdict also needs the arms’ ranges to separate; that is one campaign on one source, so the rule above is kept. cliff-alloc-heap rows keep x1.5 (not re-measured here). Stated blind spot: at 65584 B (past the last size class) there is no instruction row and the time backstop is x3, so a real extra-instructions regression is not guaranteed to fail at that size. Bimodal processes (#2069). One cliff-alloc-heap binary has read its small sizes at ~3.7 ns in one process and ~8 ns in the next, every size of that process together (main included). That is x2.2, past the x1.5 backstop. The verdict on these rows is the instruction count, which does not move with the mode. The timed backstop also needs the fast-mode veto above, and that absorbs the mode only in part: the second-best sample decides, so a session passes with at most 6 of 8 candidate processes slow and fails at 7 or 8, on unchanged code as well. bench/test_perf_gate.py pins both sides (6 of 8 slow passes, 8 of 8 fails at every size). The clean record since then does not come from the gate absorbing the mode. It comes from the mode no longer appearing: since perf.yml runs each pair on a fresh copy of each binary (#2215), the placement A/A spreads stay at x1.16 or below. The record: gh run list --workflow perf.yml --created 2026-10-18..2026-10-23T00:38Z lists 156 runs (122 success, 9 failure, 21 cancelled, 4 in progress). None of the 9 failures has a cliff-alloc-heap effect, fail or pullback line; their only such lines are the step warnings main shares (4096 B x2.44-2.45, 65584 B x2.13-2.18) and placement spreads of at most x1.16, and each failed on another family. If the mode came back at the rate #2069 recorded (about one process in two, in both arms), P(7 or more of 8 slow) = 9/256, about 3.5% false fails per session (about 0.7 over 20 sessions); the root-cause fix is the bench host’s CPU isolation.

  • The payload ladder. Every data-path family is swept over 64 B, 984 B, 985 B, 1 KiB, 4 KiB, 16 KiB and 64 KiB: inproc, inproc-borrow, the four lkv-* rows, eptype-stream, both chain-* arms and fwd-demux-value, and the pooled-backend inproc-pool, inproc-pool-borrow and inproc-pool-batch rows. The two-process network rows (net-tcp, net-ws) gain a 64 KiB row on both engines; UDP keeps its four sizes, because a 64 KiB datagram is over the IPv4 limit. 984 and 985 B sit either side of the heap’s one-block boundary (984 B plus the 48 B segment header is glibc’s 1032 B per-thread-cache ceiling). Ladder rows run after a family’s other rows, so they do not move them. Above 8 KiB the operation budget shrinks in proportion to the payload, and the chain-* and fwd-demux-value ladder rows run at a quarter of their binary’s time budget, so the ladder adds seconds to a sweep rather than minutes. Only the 16 KiB rows are gated, and not the inproc-pool* or network ones.

  • The allocator-cliff family. cliff-alloc-heap and cliff-alloc-pool time one segment alloc/free, each family in its own fresh process, at every size of the cliff ladder: 960–1096 B in steps of 8 plus 985 B, and 2^k, 2^k − 48 and 2^k + 48 from 64 B to 64 KiB. They are batch rows (picosecond p50, every window at least 20 µs). The gate reads every size twice: against main at the same size (the paired rule above, at the p50 threshold; for cliff-alloc-heap that threshold is the x1.5 backstop of the layout-bound rows below), and against the next smaller size, where a step of more than 1.75× in the median and in a majority of pairs is a cliff. A cliff fails only when main does not have it and the row to the right of the step is itself slower than main by the same-size rule. One main has too is printed as a warning. A step that grew only because the row to its left got faster, with the right-hand row flat or faster than main, is printed as info and does not fail. The exact half is the segment-draw ratchet: bench_forward_heap counts what one heap segment asks the allocator for at every ladder size (draws, total bytes, largest block), which is mem_heap_request_size_test promoted to a gate. No draw may pass the 1032 B fast-path ceiling unless the payload alone does, and no count may grow against main. A segment that put its header and payload in one block fails it at 985 B (one 1033 B draw). The timed rows do not, on this host: with glibc 2.39 a 1033 B request costs about as much as two cached draws in a fresh process, so the 2x step the 1 KiB copy-store rows show does not appear in an alloc-only row timed this way. The count is what holds the boundary.

  • Each arm’s own spread across the pairs is printed, and the baseline arm’s worst spread is reported as the run’s drift figure — the baseline binary cannot be moved by the change under test, so its spread is the invariant control leg. It does not gate; it tells a reader whether the run was worth believing.

  • The same gate additionally checks five memory probes (perf_gate.py’s MEM_POINTS, named here in full because this page is hand-written and a bare count rots): vertex — a leaf at rest, its tables drawn per object (see Per object, not per slab); vertex_value — the increment one LKV write adds; vertex_app5 — a leaf carrying a copied five-field app-field table, drawn per object; vertex_app5_static — the borrowed twin of that table (ADR-0058), likewise; and reg_escape — the global-heap blocks a runtime registration takes that the graph’s injected memory_resource never sees (ADR-0039 / RFC-0014), pinned at zero outright (MEM_ZERO_POINTS: any block or byte fails, whatever the baseline). Each ratchets on two quantities: live bytes per vertex, tolerant at +2% because it is host-allocator-dependent, and the number of heap blocks, which is host-independent and therefore ratchets exactly — one extra block is a regression, full stop. All come from the counting allocator (bench_forward_heap), so they are exact rather than sampled and need no repetition at all, with the baseline binary probed same-runner via --baseline-bench-fwd. Supplying that binary for one arm and not the other fails the gate as a wiring error; supplying it for neither prints an explicit SKIP — a probe that cannot run never passes silently.

  • The exact rows are gated beside them, on counts alone: the four RAM probes edge_callback, edge_wire, link and vertex_value_1k (perf_gate.py’s RAM_POINTS), the blocks per write, and the STREAM stripe-lock sections. Against main, no block or section count may grow at all and live bytes may not grow past the same +2%; a row main emits that the candidate does not fails. The STREAM admission’s claims are checked with no baseline: a steady STREAM write, a spilling one and two or four concurrent writers each take exactly one stripe-lock section per write, the steady write takes nothing from the global heap, and a write whose spill is refused delivers nothing until the next write. The seamclass rows ratchet the size classes each write selects on the host slab pool’s table: blocks, requested bytes, class bytes and oversize blocks per write may not grow at all, and a write of up to a 64 KiB payload may draw no oversize block: the last class holds that payload’s segment, header and all.

  • A per-vertex cost a ratified clause already prices is not a pullback, and the memory ratchet has one narrow way to say so: a charged step (perf_gate.py’s MEM_CHARGED), declared per probe, in bytes, naming the clause that charges it. A charge absorbs at most its own bytes — a step of exactly that size passes, one byte more fails and the failure names the unpriced remainder — and it is printed on every run, spent or not, so an allowance can never be a gate that quietly moved. It also expires by construction: the paired baseline is built from main, so once the step lands there the delta is zero, the charge prints as UNSPENT, and the entry is deleted. It is not a tolerance: it does not scale, does not accumulate, and is not a budget to spend later.

  • The gate’s decision rules have their own unit tests (bench/test_perf_gate.py), run in the same CI job before anything is timed, pinning both directions: the recorded false-failure sample sets must pass, and the recorded real regressions must still fail.

  • The ratchet re-runs that gate on the pinned bench host, HEAD against the last benched main commit, so a reported regression may come from any commit of the landing batch, not only its last: one advisory replica per landing batch, three nightly. A regression that slips through the PR gate is reported the moment it lands; no single run can fail main, and the 2-of-3 agreement over the nightly’s replicas is not built yet.

  • The forward-hop zero-alloc gate is the one absolute gate: it is a structural invariant, not a speed target. Steady-state forwarding must allocate nothing, so the threshold is literally zero.

  • The soft alert compares across runners, so it is only a prompt to look at the trend, never a merge-blocker.

The per-PR gate never compares against a recorded number at all: both binaries are in hand on the runner, so every sample on both sides is drawn in the same interleaved rotation, minutes apart at most. (bench/perf_baseline.json still exists for the local / root-commit path, where there is no baseline binary to interleave with. It is host-specific and never committed as a fixed number, precisely so the gate can never encode one machine’s speed as another machine’s target.)


Recent steps on bench-local

A step is a row that moves beyond its own threshold and holds there for 3 consecutive recorded points. The threshold is per row: 4× the row’s robust point-to-point spread, more than one tick of its clock, and never below 6%, the host guard’s A/A band. bench-local’s noise runs from about 1% to about 9% by row family, so one global percentage would either miss steps on quiet rows or fire on noisy ones. A single contaminated sample moves one point and is never a step. Each step is marked on its chart with ▲ (up) or ▼ (down) at the first commit that measured the new level; the merge that caused it is in the window between that commit and the recorded point before it. Rule and constants: bench/step_detect.py, which also prints the full list (python3 bench/step_detect.py --recent 20).

154 steps in the last 20 recorded commits on bench-local; the 40 largest, largest first:

Row

Before → after

First commit

Merges in the window

conn-ram tcp-server hw_peak

20.3 KiB → 8.3 KiB (-59%, better)

2b4e835

#2862 · 742f51e..2b4e835

conn-ram tcp-remote-sub per_sub

542 bytes → 238 bytes (-56%, better)

85473de

#2876 · 290cc82..85473de

conn-ram udp-remote-sub per_sub

542 bytes → 238 bytes (-56%, better)

85473de

#2876 · 290cc82..85473de

conn-ram ws-remote-sub per_sub

542 bytes → 238 bytes (-56%, better)

85473de

#2876 · 290cc82..85473de

ledger ram_per_peer tcp-remote-sub per_sub

542 bytes → 238 bytes (-56%, better)

85473de

#2876 · 290cc82..85473de

ledger ram_per_peer udp-remote-sub per_sub

542 bytes → 238 bytes (-56%, better)

85473de

#2876 · 290cc82..85473de

ledger ram_per_peer ws-remote-sub per_sub

542 bytes → 238 bytes (-56%, better)

85473de

#2876 · 290cc82..85473de

inproc 64B/fan8192/1ep p50 latency

121.7 µs → 56.2 µs (-54%, better)

85473de

#2876 · 290cc82..85473de

inproc-deliver 64B/fan8192/1ep p50 latency

121.5 µs → 56.1 µs (-54%, better)

85473de

#2876 · 290cc82..85473de

inproc 64B/fan8192/1ep ns/delivery

15.1 ns → 7.0 ns (-54%, better)

85473de

#2876 · 290cc82..85473de

inproc 64B/fan8192/1ep throughput

66.2 M/s → 143.1 M/s (+116%, better)

85473de

#2876 · 290cc82..85473de

inproc-batch 64B/fan8192/1ep p50 latency

121.0 µs → 56.1 µs (-54%, better)

85473de

#2876 · 290cc82..85473de

inproc-deliver 64B/fan8192/1ep ns/delivery

15.0 ns → 7.0 ns (-53%, better)

85473de

#2876 · 290cc82..85473de

inproc-deliver 64B/fan8192/1ep throughput

66.8 M/s → 143.4 M/s (+115%, better)

85473de

#2876 · 290cc82..85473de

inproc 64B/fan8192/1ep p99 latency

143.2 µs → 76.5 µs (-47%, better)

85473de

#2876 · 290cc82..85473de

inproc-deliver 64B/fan8192/1ep p99 latency

143.0 µs → 76.7 µs (-46%, better)

85473de

#2876 · 290cc82..85473de

conn-ram tcp-remote-sub sub_blocks

5 blocks → 3 blocks (-40%, better)

85473de

#2876 · 290cc82..85473de

conn-ram udp-remote-sub sub_blocks

5 blocks → 3 blocks (-40%, better)

85473de

#2876 · 290cc82..85473de

conn-ram ws-remote-sub sub_blocks

5 blocks → 3 blocks (-40%, better)

85473de

#2876 · 290cc82..85473de

ledger ram_per_peer tcp-remote-sub sub_blocks

5 blocks → 3 blocks (-40%, better)

85473de

#2876 · 290cc82..85473de

ledger ram_per_peer udp-remote-sub sub_blocks

5 blocks → 3 blocks (-40%, better)

85473de

#2876 · 290cc82..85473de

ledger ram_per_peer ws-remote-sub sub_blocks

5 blocks → 3 blocks (-40%, better)

85473de

#2876 · 290cc82..85473de

live bytes per edge_callback (ramprobe)

120 bytes → 80.4 bytes (-33%, better)

85473de

#2876 · 290cc82..85473de

stream-w2 64B/fan1/1ep p99 latency

17.8 µs → 26.1 µs (+47%, worse)

b68ec14

#2897, #2917 · 0fc74b8..b68ec14

topics RSS delta

9392 KB → 6876 KB (-27%, better)

85473de

#2876 · 290cc82..85473de

inproc-path RSS delta

8004 KB → 5972 KB (-25%, better)

85473de

#2876 · 290cc82..85473de

conn-ram tcp-remote-sub per_sub

238 bytes → 318 bytes (+34%, worse)

b68ec14

#2897, #2917 · 0fc74b8..b68ec14

conn-ram udp-remote-sub per_sub

238 bytes → 318 bytes (+34%, worse)

b68ec14

#2897, #2917 · 0fc74b8..b68ec14

conn-ram ws-remote-sub per_sub

238 bytes → 318 bytes (+34%, worse)

b68ec14

#2897, #2917 · 0fc74b8..b68ec14

ledger ram_per_peer tcp-remote-sub per_sub

238 bytes → 318 bytes (+34%, worse)

b68ec14

#2897, #2917 · 0fc74b8..b68ec14

ledger ram_per_peer udp-remote-sub per_sub

238 bytes → 318 bytes (+34%, worse)

b68ec14

#2897, #2917 · 0fc74b8..b68ec14

ledger ram_per_peer ws-remote-sub per_sub

238 bytes → 318 bytes (+34%, worse)

b68ec14

#2897, #2917 · 0fc74b8..b68ec14

conn-ram tcp-remote-sub sub_blocks

3 blocks → 4 blocks (+33%, worse)

b68ec14

#2897, #2917 · 0fc74b8..b68ec14

conn-ram udp-remote-sub sub_blocks

3 blocks → 4 blocks (+33%, worse)

b68ec14

#2897, #2917 · 0fc74b8..b68ec14

conn-ram ws-remote-sub sub_blocks

3 blocks → 4 blocks (+33%, worse)

b68ec14

#2897, #2917 · 0fc74b8..b68ec14

ledger ram_per_peer tcp-remote-sub sub_blocks

3 blocks → 4 blocks (+33%, worse)

b68ec14

#2897, #2917 · 0fc74b8..b68ec14

ledger ram_per_peer udp-remote-sub sub_blocks

3 blocks → 4 blocks (+33%, worse)

b68ec14

#2897, #2917 · 0fc74b8..b68ec14

ledger ram_per_peer ws-remote-sub sub_blocks

3 blocks → 4 blocks (+33%, worse)

b68ec14

#2897, #2917 · 0fc74b8..b68ec14

lkv-alloc-heap 4096B/fan1/1ep p50 latency

10.2 ns → 8.0 ns (-21%, better)

290cc82

#2880 · 7d09833..290cc82

lkv-alloc-heap 16384B/fan1/1ep p50 latency

9.4 ns → 7.6 ns (-19%, better)

290cc82

#2880 · 7d09833..290cc82

3 · Counted-metrics ledger (the peer-path gate)

Every row below is a COUNT, pinned per target in bench/ledger/*.json: copies, syscalls and task switches per relayed frame, RAM per peer, and idle wakeups per second. WIDE rows (the x86 host) are measured on every pull request by counted-ledger.yml; a row that rises fails it, and a row that falls fails it too until the PR re-pins it, so a pin is always the current value. MID rows (the ESP32-C6) are static counts read from the code, with the reading recorded beside each pin; for them the pin is the count, and a PR may not raise one without a waiver. Goal is the value the peer-path spec (#2136) sets for the row (hold: the spec gives no number, the row must not rise). Moved by names the change that last moved the pin. Banked on main is the bench-local history: one point per merge.

User-space copies per relayed frame

Unit: bytes (shown as a multiple of the payload). Pins: bench/ledger/copies.json. Goals: From #2136: ingress receives straight into an exact-length segment (0 copies), a server egress is one shared frame (0), a WS client send gathers and masks in one pass (1x), the 48 B TCP client handoff head stays. The stored value is assumed still copied below the 4 KiB share knee: the copy-or-share trait may remove that copy too, and a row that beats its goal is simply re-pinned. UDP ingress already receives into a max_frame segment (#2136 ingress), so a UDP-in relay row holds only the egress side’s goal.

Row

Target

Source

Current

Goal (#2136)

Moved by

Banked on main

tcp-relay-srv @64

WIDE

measured

1.52× (97 B)

1.00× (64 B)

#2143 (copy-or-share trait: the stored value shares its exact-class receive segment)

1.52× (97 B) at 07e08030 → 1.52× (97 B), 133 point(s)

tcp-relay-srv @1024

WIDE

measured

1.03× (1057 B)

1.00× (1024 B)

#2143 (copy-or-share trait: the stored value shares its exact-class receive segment)

1.03× (1057 B) at 07e08030 → 1.03× (1057 B), 133 point(s)

tcp-relay-srv @4096

WIDE

measured

0.28× (1152 B)

0.00× (0 B)

#2141 (TCP server and self-healing links on frame ingress: a body at or above the share threshold is drawn at its size and shared, not copied out of a read buffer)

0.28× (1152 B) at 07e08030 → 0.28× (1152 B), 133 point(s)

tcp-relay-srv @16384

WIDE

measured

0.07× (1152 B)

0.00× (0 B)

#2141 (TCP server and self-healing links on frame ingress: a body at or above the share threshold is drawn at its size and shared, not copied out of a read buffer)

0.07× (1152 B) at 07e08030 → 0.07× (1152 B), 133 point(s)

tcp-relay-cli @64

WIDE

measured

1.52× (97 B)

1.75× (112 B)

#2143 (copy-or-share trait: the stored value shares its exact-class receive segment)

1.52× (97 B) at 07e08030 → 1.52× (97 B), 133 point(s)

tcp-relay-cli @1024

WIDE

measured

1.03× (1057 B)

1.05× (1072 B)

#2143 (copy-or-share trait: the stored value shares its exact-class receive segment)

1.03× (1057 B) at 07e08030 → 1.03× (1057 B), 133 point(s)

tcp-relay-cli @4096

WIDE

measured

0.28× (1152 B)

0.01× (48 B)

#2141 (TCP server and self-healing links on frame ingress: a body at or above the share threshold is drawn at its size and shared, not copied out of a read buffer)

0.28× (1152 B) at 07e08030 → 0.28× (1152 B), 133 point(s)

tcp-relay-cli @16384

WIDE

measured

0.07× (1152 B)

0.00× (48 B)

#2141 (TCP server and self-healing links on frame ingress: a body at or above the share threshold is drawn at its size and shared, not copied out of a read buffer)

0.07× (1152 B) at 07e08030 → 0.07× (1152 B), 133 point(s)

ws-relay-srv @64

WIDE

measured

1.52× (97 B)

1.00× (64 B)

#2143 (copy-or-share trait: the stored value shares its exact-class receive segment)

1.52× (97 B) at 07e08030 → 1.52× (97 B), 133 point(s)

ws-relay-srv @1024

WIDE

measured

1.03× (1057 B)

1.00× (1024 B)

#2143 (copy-or-share trait: the stored value shares its exact-class receive segment)

1.03× (1057 B) at 07e08030 → 1.03× (1057 B), 133 point(s)

ws-relay-srv @4096

WIDE

measured

0.28× (1158 B)

0.00× (0 B)

#2140 (WS server frame ingress: stack read-ahead between frames, larger bodies into an exact-size segment)

0.28× (1158 B) at 07e08030 → 0.28× (1158 B), 133 point(s)

ws-relay-srv @16384

WIDE

measured

0.07× (1158 B)

0.00× (0 B)

#2140 (WS server frame ingress: stack read-ahead between frames, larger bodies into an exact-size segment)

0.07× (1158 B) at 07e08030 → 0.07× (1158 B), 133 point(s)

ws-relay-cli @64

WIDE

measured

3.00× (192 B)

2.00× (128 B)

#2143 (copy-or-share trait: the stored value shares its exact-class receive segment)

3.00× (192 B) at 07e08030 → 3.00× (192 B), 133 point(s)

ws-relay-cli @1024

WIDE

measured

2.06× (2112 B)

2.00× (2048 B)

#2143 (copy-or-share trait: the stored value shares its exact-class receive segment)

2.06× (2112 B) at 07e08030 → 2.06× (2112 B), 133 point(s)

ws-relay-cli @4096

WIDE

measured

1.29× (5285 B)

1.00× (4096 B)

#2145 (the WS client’s flatten copy is gone, -16,415 B at 16 KiB; the masking pass that writes the frame is counted as a copy)

1.29× (5285 B) at 07e08030 → 1.29× (5285 B), 133 point(s)

ws-relay-cli @16384

WIDE

measured

1.07× (17573 B)

1.00× (16384 B)

#2145 (the WS client’s flatten copy is gone, -16,415 B at 16 KiB; the masking pass that writes the frame is counted as a copy)

1.07× (17573 B) at 07e08030 → 1.07× (17573 B), 133 point(s)

udp-relay-tcp-srv @64

WIDE

measured

1.06× (68 B)

1.00× (64 B)

#2171 (first pin)

1.06× (68 B) at 07e08030 → 1.06× (68 B), 133 point(s)

udp-relay-tcp-srv @1024

WIDE

measured

1.00× (1028 B)

1.00× (1024 B)

#2171 (first pin)

1.00× (1028 B) at 07e08030 → 1.00× (1028 B), 133 point(s)

udp-relay-tcp-srv @4096

WIDE

measured

1.00× (4100 B)

0.00× (0 B)

#2143 (copy-or-share trait: a value is copied out of the 32 KiB UDP receive segment)

1.00× (4100 B) at 07e08030 → 1.00× (4100 B), 133 point(s)

udp-relay-tcp-srv @16384

WIDE

measured

1.00× (16388 B)

0.00× (0 B)

#2143 (copy-or-share trait: a value is copied out of the 32 KiB UDP receive segment)

1.00× (16388 B) at 07e08030 → 1.00× (16388 B), 133 point(s)

udp-relay-tcp-cli @64

WIDE

measured

1.06× (68 B)

1.75× (112 B)

#2144 (shared-frame egress: a send that need not wait writes the caller’s head in place, one 48 B copy fewer)

1.06× (68 B) at 07e08030 → 1.06× (68 B), 133 point(s)

udp-relay-tcp-cli @1024

WIDE

measured

1.00× (1028 B)

1.05× (1072 B)

#2144 (shared-frame egress: a send that need not wait writes the caller’s head in place, one 48 B copy fewer)

1.00× (1028 B) at 07e08030 → 1.00× (1028 B), 133 point(s)

udp-relay-tcp-cli @4096

WIDE

measured

1.00× (4100 B)

0.01× (48 B)

#2143 (copy-or-share trait: a value is copied out of the 32 KiB UDP receive segment)

1.00× (4100 B) at 07e08030 → 1.00× (4100 B), 133 point(s)

udp-relay-tcp-cli @16384

WIDE

measured

1.00× (16388 B)

0.00× (48 B)

#2143 (copy-or-share trait: a value is copied out of the 32 KiB UDP receive segment)

1.00× (16388 B) at 07e08030 → 1.00× (16388 B), 133 point(s)

udp-relay-ws-srv @64

WIDE

measured

1.06× (68 B)

1.00× (64 B)

#2171 (first pin)

1.06× (68 B) at 07e08030 → 1.06× (68 B), 133 point(s)

udp-relay-ws-srv @1024

WIDE

measured

1.00× (1028 B)

1.00× (1024 B)

#2171 (first pin)

1.00× (1028 B) at 07e08030 → 1.00× (1028 B), 133 point(s)

udp-relay-ws-srv @4096

WIDE

measured

1.00× (4100 B)

0.00× (0 B)

#2143 (copy-or-share trait: a value is copied out of the 32 KiB UDP receive segment)

1.00× (4100 B) at 07e08030 → 1.00× (4100 B), 133 point(s)

udp-relay-ws-srv @16384

WIDE

measured

1.00× (16388 B)

0.00× (0 B)

#2143 (copy-or-share trait: a value is copied out of the 32 KiB UDP receive segment)

1.00× (16388 B) at 07e08030 → 1.00× (16388 B), 133 point(s)

udp-relay-ws-cli @64

WIDE

measured

2.55× (163 B)

2.00× (128 B)

#2145 (the WS client’s flatten copy is gone, -16,415 B at 16 KiB; the masking pass that writes the frame is counted as a copy)

2.55× (163 B) at 07e08030 → 2.55× (163 B), 133 point(s)

udp-relay-ws-cli @1024

WIDE

measured

2.03× (2083 B)

2.00× (2048 B)

#2145 (the WS client’s flatten copy is gone, -16,415 B at 16 KiB; the masking pass that writes the frame is counted as a copy)

2.03× (2083 B) at 07e08030 → 2.03× (2083 B), 133 point(s)

udp-relay-ws-cli @4096

WIDE

measured

2.01× (8227 B)

1.00× (4096 B)

#2143 (copy-or-share trait: a value is copied out of the 32 KiB UDP receive segment)

2.01× (8227 B) at 07e08030 → 2.01× (8227 B), 133 point(s)

udp-relay-ws-cli @16384

WIDE

measured

2.00× (32803 B)

1.00× (16384 B)

#2143 (copy-or-share trait: a value is copied out of the 32 KiB UDP receive segment)

2.00× (32803 B) at 07e08030 → 2.00× (32803 B), 133 point(s)

udp-relay-udp @64

WIDE

measured

1.06× (68 B)

1.00× (64 B)

#2171 (first pin)

1.06× (68 B) at 07e08030 → 1.06× (68 B), 133 point(s)

udp-relay-udp @1024

WIDE

measured

1.00× (1028 B)

1.00× (1024 B)

#2171 (first pin)

1.00× (1028 B) at 07e08030 → 1.00× (1028 B), 133 point(s)

udp-relay-udp @4096

WIDE

measured

1.00× (4100 B)

0.00× (0 B)

#2143 (copy-or-share trait: a value is copied out of the 32 KiB UDP receive segment)

1.00× (4100 B) at 07e08030 → 1.00× (4100 B), 133 point(s)

udp-relay-udp @16384

WIDE

measured

1.00× (16388 B)

0.00× (0 B)

#2143 (copy-or-share trait: a value is copied out of the 32 KiB UDP receive segment)

1.00× (16388 B) at 07e08030 → 1.00× (16388 B), 133 point(s)

httpd-ws rx @64

MID

static count

2.00× (128 B)

1.00× (64 B)

#2137 (seeded from the peer-cost study)

—

httpd-ws rx @1024

MID

static count

2.00× (2048 B)

1.00× (1024 B)

#2137 (seeded from the peer-cost study)

—

httpd-ws rx @4096

MID

static count

2.00× (8192 B)

1.00× (4096 B)

#2137 (seeded from the peer-cost study)

—

httpd-ws rx @16384

MID

static count

2.00× (32768 B)

1.00× (16384 B)

#2137 (seeded from the peer-cost study)

—

esp_ws_client send @64

MID

static count

1.00× (64 B)

1.00× (64 B)

#2171 (first pin)

—

esp_ws_client send @1024

MID

static count

1.00× (1024 B)

1.00× (1024 B)

#2171 (first pin)

—

esp_ws_client send @4096

MID

static count

1.00× (4096 B)

1.00× (4096 B)

#2171 (first pin)

—

esp_ws_client send @16384

MID

static count

1.00× (16384 B)

1.00× (16384 B)

#2171 (first pin)

—

Task switches per relayed frame

Unit: switches. Pins: bench/ledger/switches.json. Goals: WIDE: hold at one wake per frame. MID figures are [est] from code (no board).

Row

Target

Source

Current

Goal (#2136)

Moved by

Banked on main

tcp-relay-srv @64

WIDE

measured

1

hold

#2137 (seeded from the peer-cost study)

1 at 07e08030 → 1, 133 point(s)

tcp-relay-srv @1024

WIDE

measured

1

hold

#2137 (seeded from the peer-cost study)

1 at 07e08030 → 1, 133 point(s)

tcp-relay-srv @4096

WIDE

measured

1

hold

#2137 (seeded from the peer-cost study)

1 at 07e08030 → 1, 133 point(s)

tcp-relay-srv @16384

WIDE

measured

0.99

hold

#2137 (seeded from the peer-cost study)

1 at 07e08030 → 1, 133 point(s)

tcp-relay-cli @64

WIDE

measured

0.97

hold

#2137 (seeded from the peer-cost study)

1 at 07e08030 → 1, 133 point(s)

tcp-relay-cli @1024

WIDE

measured

0.99

hold

#2137 (seeded from the peer-cost study)

1 at 07e08030 → 1, 133 point(s)

tcp-relay-cli @4096

WIDE

measured

0.99

hold

#2137 (seeded from the peer-cost study)

1 at 07e08030 → 1, 133 point(s)

tcp-relay-cli @16384

WIDE

measured

1

hold

#2137 (seeded from the peer-cost study)

1 at 07e08030 → 1, 133 point(s)

ws-relay-srv @64

WIDE

measured

1

hold

#2137 (seeded from the peer-cost study)

1 at 07e08030 → 1, 133 point(s)

ws-relay-srv @1024

WIDE

measured

1

hold

#2137 (seeded from the peer-cost study)

1 at 07e08030 → 1, 133 point(s)

ws-relay-srv @4096

WIDE

measured

0.99

hold

#2137 (seeded from the peer-cost study)

1 at 07e08030 → 1, 133 point(s)

ws-relay-srv @16384

WIDE

measured

1

hold

#2137 (seeded from the peer-cost study)

1 at 07e08030 → 1, 133 point(s)

ws-relay-cli @64

WIDE

measured

1

hold

#2137 (seeded from the peer-cost study)

1 at 07e08030 → 1, 133 point(s)

ws-relay-cli @1024

WIDE

measured

1

hold

#2137 (seeded from the peer-cost study)

1 at 07e08030 → 1, 133 point(s)

ws-relay-cli @4096

WIDE

measured

1

hold

#2137 (seeded from the peer-cost study)

1 at 07e08030 → 1, 133 point(s)

ws-relay-cli @16384

WIDE

measured

1

hold

#2137 (seeded from the peer-cost study)

1 at 07e08030 → 1, 133 point(s)

httpd-ws rx frame

MID

static count

9

hold

#2137 (seeded from the peer-cost study)

—

httpd-ws queued send, per peer

MID

static count

8

hold

#2137 (seeded from the peer-cost study)

—

httpd-ws broadcast to 8 peers

MID

static count

24

3

#2137 (seeded from the peer-cost study)

—

RAM per peer

Unit: bytes. Pins: bench/ledger/ram_per_peer.json. Goals: From #2136 user stories 1, 2, 4, 27 and 28.

Row

Target

Source

Current

Goal (#2136)

Moved by

Banked on main

tcp-server per peer

WIDE

measured (ram_census_pins.json)

296

170

#2272 (lock-free server broadcast, #2263: the session’s 8 B next link puts it one block class up, 290 -> 306 B; re-pinned by #2512)

—

ws-server per peer

WIDE

measured (ram_census_pins.json)

392

282

#2280 (WS fragment budget: the fragment assembler keeps its links in a chain drawn from the rx source, not an idle rope_t, -48 B: 434 -> 402 B per peer; #2272’s 8 B next link fits inside the class; re-pinned by #2512)

—

stream egress slot

WIDE

static count

24

24

#2144 (one shared-frame egress, one ring per (peer, vertex))

—

tcp-server link base

WIDE

measured (ram_census_pins.json)

488

hold

#2899 (the egress stall verdict is deleted: egress_t loses its strike cap and padding, link base 504 -> 488 B); before it #2326 (per-peer lane lock, #2310: egress_t loses its 40 B std::mutex, link base 600 -> 568 B; on ws-server after #2272’s 8 B first_ head had moved it 600 -> 616 B; #2351’s 8 B tail-padding loss taken back by #2512)

—

ws-server link base

WIDE

measured (ram_census_pins.json)

504

hold

#2252 (no stream write waits: stream_endpoint_t loses its 4 B send-bound window and its padding, link base 520 -> 504 B); before it #2326 (per-peer lane lock, #2310: egress_t loses its 40 B std::mutex, link base 600 -> 568 B; on ws-server after #2272’s 8 B first_ head had moved it 600 -> 616 B; #2351’s 8 B tail-padding loss taken back by #2512)

—

udp link at rest

WIDE

measured (ram_census_pins.json)

232

232

#2096 (Noise link over UDP: the link keeps the in-flight datagram’s source, 8 B, sizeof 216 -> 224 B, one block class: 216 -> 232 B; re-pinned by #2512)

—

tcp remote subscription

WIDE

measured

318

hold

#2875 (the SUBSCRIBER TLV, return route and reverse chain are one segment of the router’s link plane, now counted: 238 -> 318 B; the bytes were held before as two uncounted segments of about 144 B, now one counted segment of 80 B; previously #2737 (the slot table is gone, its view rides the published array’s tail; the caller rides the cold half’s block: 542 -> 238 B; previously #2673 (the vertex’s own-subs count moves into the edge block: edge_block_t 48 -> 56 B, charged at slab class 64, drawn on a vertex’s first subscription; previously #1941 (a remote edge stores its link as a pair, not a name: the name’s own block is gone))))

558 at 07e08030 → 318, 133 point(s)

ws remote subscription

WIDE

measured

318

hold

#2875 (the SUBSCRIBER TLV, return route and reverse chain are one segment of the router’s link plane, now counted: 238 -> 318 B; the bytes were held before as two uncounted segments of about 144 B, now one counted segment of 80 B; previously #2737 (the slot table is gone, its view rides the published array’s tail; the caller rides the cold half’s block: 542 -> 238 B; previously #2673 (the vertex’s own-subs count moves into the edge block: edge_block_t 48 -> 56 B, charged at slab class 64, drawn on a vertex’s first subscription; previously #1941 (a remote edge stores its link as a pair, not a name: the name’s own block is gone))))

558 at 07e08030 → 318, 133 point(s)

udp remote subscription

WIDE

measured

318

hold

#2875 (the SUBSCRIBER TLV, return route and reverse chain are one segment of the router’s link plane, now counted: 238 -> 318 B; the bytes were held before as two uncounted segments of about 144 B, now one counted segment of 80 B; previously #2737 (the slot table is gone, its view rides the published array’s tail; the caller rides the cold half’s block: 542 -> 238 B; previously #2673 (the vertex’s own-subs count moves into the edge block: edge_block_t 48 -> 56 B, charged at slab class 64, drawn on a vertex’s first subscription; previously #1941 (a remote edge stores its link as a pair, not a name: the name’s own block is gone))))

558 at 07e08030 → 318, 133 point(s)

tcp remote subscription, blocks

WIDE

measured

4 blocks

2 blocks

#2875 (the retained block is now counted: 3 -> 4 blocks; it replaces two uncounted segments; previously #2737 (the slot table and the caller’s own block are gone: 5 -> 3 blocks; previously #1941 (a remote edge stores its link as a pair, not a name: the name’s own block is gone)))

6 blocks at 07e08030 → 4 blocks, 133 point(s)

ws remote subscription, blocks

WIDE

measured

4 blocks

2 blocks

#2875 (the retained block is now counted: 3 -> 4 blocks; it replaces two uncounted segments; previously #2737 (the slot table and the caller’s own block are gone: 5 -> 3 blocks; previously #1941 (a remote edge stores its link as a pair, not a name: the name’s own block is gone)))

6 blocks at 07e08030 → 4 blocks, 133 point(s)

udp remote subscription, blocks

WIDE

measured

4 blocks

2 blocks

#2875 (the retained block is now counted: 3 -> 4 blocks; it replaces two uncounted segments; previously #2737 (the slot table and the caller’s own block are gone: 5 -> 3 blocks; previously #1941 (a remote edge stores its link as a pair, not a name: the name’s own block is gone)))

6 blocks at 07e08030 → 4 blocks, 133 point(s)

ws-server peer after a 16 KiB frame

WIDE

measured

0

0

#2176 (WS exact-size ingress)

—

tcp-server peer after a 16 KiB frame

WIDE

measured

0

0

#2171 (first pin)

—

httpd-ws session

MID

static count

376

85

#2548 (re-measured; the 288 B seed was never read from an image)

—

client link task stack

MID

static count

12288

0

#2137 (seeded from the peer-cost study)

—

self-healing connection stacks

MID

static count

24576

0

#2137 (seeded from the peer-cost study)

—

removed link held until collect: thread-per-link fallback

MID

static count

13100

0

#2813 (first pin: shut_down never waits; the destructor at collect() is the one join)

—

removed link held until collect: CAN/TWAI

MID

static count

13700

0

#2813 (first pin: shut_down never waits; the destructor at collect() is the one join)

—

removed link held until collect: ESP WS client

MID

static count

13104

0

#2813 (first pin: shut_down never waits; the destructor at collect() is the one join)

—

Idle wakeups per second

Unit: wakeups/s. Pins: bench/ledger/idle_wakeups.json. Goals: 0 everywhere (#2136 user story 18): nothing wakes on a timeout.

Row

Target

Source

Current

Goal (#2136)

Moved by

Banked on main

tcp-idle-32

WIDE

measured

0

0

#2617 (wait module, slice 1, #2147: the 100 ms receive timeouts are deleted, an idle link sleeps in one wait module per node, 330 -> 0/s)

329.83 at 07e08030 → 329.84, 81 point(s)

ws-idle-32

WIDE

measured

0

0

#2617 (wait module, slice 1, #2147: the 100 ms receive timeouts are deleted, an idle link sleeps in one wait module per node, 317 -> 0/s)

320.83 at 07e08030 → 319.85, 81 point(s)

udp-idle-32

WIDE

measured

0

0

#2617 (wait module, slice 1, #2147: the 100 ms receive timeouts are deleted, an idle link sleeps in one wait module per node, 320 -> 0/s)

319.84 at 07e08030 → 319.85, 81 point(s)

esp_ws_client link

MID

static count

5

0

#2137 (seeded from the peer-cost study)

—

sourcecross-run series are a TREND instrument — the paired same-runner A/B is the gate

2 family charts · 7 series · x-axis = recorded main commits (oldest → newest) · 🏷 dashed verticals mark release tags (≈ = tag commit itself is not a recorded point; marker sits at the nearest following recorded commit) · 🔧 dotted verticals mark commits where the BENCH changed — points either side of one are not comparable. Each card carries every METRIC that point recorded — p50 / p99 / ns per delivery / throughput — pick one under the title. Families with a numeric parameter axis also offer trend / sweep / heatmap / 3D views — same data, three axes (commit × parameter × value), over a selectable commit range. The paired libtracer-vs-Zenoh cards add a ratio toggle on bench-local: both engines run in the same pass on one pinned CPU, so their per-commit quotient cancels runner speed and is the comparison to read across a long history. The hosted store keeps the best runner per series, so its two arms need not share a pass and its cards carry no ratio. On bench-local, a ▲ / ▼ on a trend line marks a sustained step (the row moved past its own noise threshold and held for 3 points), at the first commit that measured the new level. Also on bench-local, a trend line carries a noise band: over each series' last N recorded points (default 10, picked per card) the p10–p90 is shaded and min/max drawn faint, and the legend and tooltip give the window's coefficient of variation, so a dip can be read against the row's own noise. A series with fewer than N points gets no band. Hover any chart for exact per-commit values.

4 · Noise, variance, and what one number is worth

  • Runner lottery. Shared CI runners vary ~2× in absolute speed. The tell: a move that hits every series at once — including unrelated ones like the L0 rope-walk fold-b* rows — is the runner; a move confined to one family is the code. Read trends across several commits, not the third digit of one point.

  • Per-point noise floor. Each recorded point is the median of the repeated RESULT rows one run emits, so per-iteration jitter does not move a series. Until #2433 points were recorded from the best of three hosted runner draws — that runner’s whole tuple (p50, p99 and throughput from one machine, never a per-metric minimum across runners, and never a minimum of p99s). Since then a push records one repeat on the pinned bench host. Sub-microsecond points sit on a ~10 ns timer grain — do not over-read a 5 ns wiggle.

  • Tail percentiles are published, not gated. The deeper into a distribution a statistic reaches, the fewer samples stand behind it and the more it moves for reasons that are not the code. Running the same binary against itself and taking the worst ratio between repeats gives the floor any threshold on that leg would have to clear before it stopped firing on its own noise. On the in-process gated points (18 runs, replayed through a best-of-3 estimator, worst of 15 disjoint pairs — the numbers below are a property of the machine, not of the estimator, so the interleaved gate inherits them unchanged):

    leg

    worst same-binary ratio

    threshold it would need

    gated

    p50

    1.16×

    +16 %

    yes, at +15 %

    mean

    1.22×

    +22 %

    yes, at +12 %

    deliveries/s

    1.36×

    −36 %

    yes, at −12 %

    p99

    1.67×

    +67 %

    no — published only

    A p99 gate would have to sit near +67 %, and a regression that large has already tripped the +15 % p50 gate several times over: the leg would add no detection while adding a new false-fail source on every PR.

    On the two-process network bench, the same experiment run at two probe counts isolates how much of the tail’s instability is simply too few samples (5 repeats each, same idle host, only n changed):

    probes per point

    p50

    p99

    p999

    worst sample

    4 000

    1.09×

    5.01×

    62×

    21×

    10 000 (published)

    1.09×

    1.40×

    17×

    13×

    The median does not care — it is 1.09× either way — while the p99 tightens 3.6× and the p999 3.7× purely from sample count. That is why the published run pays for the larger count. Even so the deep tail stays 17× unstable: a loopback p999 is dominated by scheduler wake-up, not by either engine’s code path. Read the p999 chart as the jitter floor this topology inherits, and read engine-against-engine on the p50 and p99 charts, which at the published probe count are stable enough to carry a comparison. (Measured on an idle 24-core host; a shared CI runner is not quieter than that, so these are lower bounds.)

  • A throughput pullback with flat latency is a machine, not a regression. Every gated point is measured by two instruments over the same operation — a per-op clock (p50, mean) and a bulk timer (deliveries/s) — and a change in what the operation costs moves both. When only the bulk timer moves and both latency legs come back flat-or-better, the two instruments contradict each other, and the gate reports the contradiction rather than failing on it. The guard is deliberately narrow — any upward move in either latency leg, of any size, leaves the failure standing.

  • Sign conventions in the history store. The latency suite is smaller-is-better nanoseconds; throughput also appears there inverted as ns/delivery so a slowdown always charts as a rise; memory metrics live in that same smaller-is-better suite. The throughput suite is bigger-is-better natural deliveries/s. The same measurement can therefore appear twice, in two units — by design, so each suite reads monotonically.

  • A discontinuity in the instrument is annotated; a discontinuity in the code is not. When a commit changes a bench source — bench_libtracer.cpp, bench_forward_demux.cpp, the shared harness, the emitter — every series that bench feeds is marked at that commit, because points either side of it were taken with different rulers and are not comparable. Changes under core/** are deliberately never marked: a core change moving the line is the signal the series exists to show, and marking both would reduce the annotation to “something happened,” which is worth nothing. Comment- and whitespace-only bench edits are filtered out for the same reason — an alert that fires on nothing trains readers to ignore it.

  • Renaming beats reinterpreting. If a fix changes what a row measures, the mode string changes too: the old series ends visibly and a new one starts at one point. What is never done is keeping the name while changing the meaning, which produces a continuous-looking line that silently stops being about the same thing. If a fix only makes the same quantity more accurately measured, the name is kept and the instrument marker carries the discontinuity.

  • Across rounds, take each arm’s BEST — never its median — and read the range as a contamination diagnostic. Contamination is one-sided: a busy neighbour can only make a round slower, never faster. A low order statistic across an arm’s rounds therefore rejects a dirty round, while the median merely counts them, and the median flips as soon as half the rounds are dirty — which is why an ad-hoc driver estimates best-of-N. The per-PR gate does not: it runs the two binaries in interleaved pairs and judges the median of the per-pair ratios with a bootstrap interval, as What actually stops a regression sets out; best-of-N survives only in its local mode (a recorded perf_baseline.json, no baseline build). Measured on the pinned host with one binary against itself: in a window where a neighbouring job got busy, median-of-rounds put fwd-rope-hop at −33 % … +54 % while best-of-rounds on the very same samples stayed inside 1.44 %; quiet, both estimators agree inside ±0.5 %. The [min..max] range is what tells the two situations apart — a spread near 2× whose ends sit in two clusters rather than spreading smoothly is a contaminated window, and the run must be repeated rather than reported, whatever the medians say.

  • The same estimator rule governs the series, and a gap in it is a measurement defect. Points of the fixed-host store are rounds of a slower experiment, so they inherit both halves of the rule above. First, a baseline drawn from them is the window’s best, never its median: store_guard.py compares each banked point with the best of the last 20 trusted points, which is the comparison benchmark-action’s point-to-point alert-threshold cannot express — five merges of +4 % never trip a 15 % step, and the series ends 22 % slower with no alert ever raised. A best is a floor, though, so a breach must also land outside that window’s whole [min..max]: on the real store the percentage bar alone reports 59 breaches where the range guard leaves 2. Second, a flagged point is not a sample — it answers what the machine was doing, not what the code cost — so it neither sets the baseline nor counts as coverage. And coverage is itself guaranteed: a run that never happens (filtered out, failed, or cancelled while queued) leaves a hole nothing notices, and a step inside the hole widens from a commit into a range of merges. A daily catch-up measures the newest bench-relevant commit whenever the last trusted point is more than 8 bench-relevant merges behind main, so the guarantee is a bound on the gap — narrow enough to bisect — rather than a point per commit. It also measures that commit when it has no point at all and no push run is still pending for it: a bench that is broken on main banks nothing, stalls the store only a few commits behind, inside the bound, and would otherwise leave the nightly green over a red main.

  • A banked series is a TREND instrument; the paired same-runner A/B is the gate. The two stores answer “where has this point been going” across machines and months. They do not answer “did this commit cost anything”, and reading them as if they did produces verdicts the code never earned. For example, the rolling drift check on the banked series warned that inproc 64B/fan1/1ep p50 had gone to 400 ns against a 100 ns baseline (+300%), while the interleaved same-runner A/B on the identical commit read 1.02×. Nothing regressed — the banked baseline and the banked point were taken on different machines under different load, and the quotient of two absolutes across that gap is instrument drift wearing a percentage sign. So: a drift warning is a prompt to measure, never a verdict; a verdict comes only from two arms interleaved on one runner in one session, which is what the per-PR gate is and what every ratchet in the table above compares. This holds for every banked series on this page, the memory ones included.

  • An absolute without its host is not a measurement, and this page never publishes one. Load alone is worth more than most of the effects anyone argues about: the same gated point read 3.6 M deliveries/s while CI was building on the box and 6.0 M/s quiet — 1.6×, no code between the two. Every absolute here therefore names the machine and the conditions it was taken under, and a figure that arrives without them is unusable rather than merely imprecise. The same rule governs evidence in the spec: RFC-0025 §4.6.2 states its figures as portable premiums and ratios on a host-stamped basis, is informative, and sets no normative cap.

  • Record the load context on both sides of every measurement, and wait for quiescence first. python3 bench/host_guard.py wait before the run and /proc/loadavg either side of it: an absolute figure without its load context cannot be re-judged later, and this is the fact that the same pair of binaries reads inside ±0.5 % at load average ~2 and up to +81 % at load average 16–36. The contaminant that matters is memory-subsystem contention, not runnable-task count — five pure CPU spinners (load average 6.8, just under the guard’s bar on the 31-CPU host) cost 0.83 %, while memory-bandwidth neighbours at the same nominal pin cost tens of percent.

  • A per-op figure is only as honest as the batch it was timed in. Timing a batch and dividing charges the window’s two clock reads (~22 ns on the pinned host) once per sample, so the batch size is part of the measurement: forcing it on a ~238 ns operation reads 260 / 250 / 242 / ~238 ns at batch 1 / 2 / 4 / ≥8. A calibrator that picks the batch by comparing two timed quantities therefore lets the machine choose the answer, discretely — bench_common.hpp’s calibrate_batch_for_window doubles until the window reaches 20 µs instead, so the batch follows the operation’s own cost and repeats across executions. Every batch row times through one loop (time_batches): every window is asserted to be at least 20 µs, each per-op figure is kept in picoseconds rather than integer-divided to whole nanoseconds, and no batch row publishes a p99. Each run records the host’s clock floor — the clock’s resolution and the measured cost of one timed sample — and the bench-local store carries it in every point’s tooltip.

The A/B protocol — what a two-arm comparison may and may not vary. An A/B of a code change runs two binaries and attributes the difference to the change. That attribution is only sound if nothing else differed. Two things that look harmless routinely do.

Build directory: harmless, and measured. A cross-worktree A/B — build origin/main in one worktree, the change in another, interleave — does not measure code layout instead of code. Building the same commit at two paths of different lengths produces, on this toolchain, byte-identical output: all 27 libtracer object files, libtracer.a, and the bench_terminus_tier executable cmp equal (one md5 for both arms). There is no layout to be sensitive to, so no layout lever is warranted, and none ships — -falign-functions=64 over the whole bench + library build reads −1.50 % to +1.56 % against stock across 10 interleaved rounds, sign varying by frame size, i.e. nothing. Re-run at two paths under this protocol the same leg reads −0.64 % to +0.87 % (unpinned) and −0.64 % to +0.73 % (pinned), 12 interleaved rounds.

CPU placement: the real hazard, and it is large. The reference host is heterogeneous — 4 Zen 5 cores at 5.16 GHz (cpu0–7) and 8 Zen 5c cores at 3.29 GHz (cpu8–23). The same binary on the terminus-arena leg reads +47.0 % to +53.7 % slower pinned to a compact core than to a classic one, 5 rounds each, ranges disjoint and tight within each arm (e.g. 53 B: 308–313 ns vs 474–481 ns). That is the signature a confounded A/B wears: tight, reproducible, and entirely about the machine. Even the choice of pinning moves the figure — at 53 B, 15 runs each: unpinned median 228 ns, taskset -c 2 234 ns, taskset -c 2,3 238 ns (+4.4 % across pinning policies, from SMT sharing). A few percent between two arms needs no exotic explanation on such a host; it needs only that the two arms were placed differently.

So the rules for any latency A/B, on this leg or any other:

  1. Pin both arms identically, to the same single logical CPU on the same core class (taskset -c 2). Pinning one arm and not the other, or to different core classes, is not a comparison.

  2. Interleave the arms round-robin within one session and report medians and ranges of at least ~10 rounds per arm. A single round per arm cannot separate the change from the machine.

  3. Discard the first execution. A cold process’s first measured point on this leg reads ~313 ns against a 228 ns steady state (+37 %) — it is idle-state wake-up, not code.

  4. Prefer same-directory A/B (git stash, rebuild, re-run in one session) when it is available; it varies strictly less than a two-worktree run.

  5. When the expected effect is smaller than the leg’s own noise floor, do not reach for a stopwatch at all — use object-file cmp against the baseline tree. A change that leaves 25 of 27 objects byte-identical has proved more about the unchanged paths than any bench can.

The stack-offset hypothesis was also tested and is negative: sweeping the environment block from 0 to 4000 bytes (which shifts the initial stack pointer, and with it the bench’s 64 KiB stack slab) moves the leg 2.8–4.4 %, non-monotonically — indistinguishable from run-to-run noise.


5 · The measurement surfaces, and the instruments behind them

Every number belongs to exactly one of these. They are deliberately kept separate so a value is never silently compared against an incomparable one. Which surface a harness serves, and which chapter it lands in, is the table at the top of this page — joined from the instrument registry in bench/gen_results_page.py, so it cannot disagree with the benches on disk.

Every harness in bench/, including the ones whose results are not charted here — each one drives something specific and reports it in its own units:

harness

what it does

reports

where it lands

bench_libtracer

Drives the in-process hot path — resolve a vertex, write a value, notify, deliver — swept over fan-out, payload size, topic count, thread count, endpoint type, value backend and dispatch mode. Below 1 KiB an inproc op includes the producer’s own allocation and copy of the value; from 1 KiB the value is built and freed off the clock and the op is the write alone. inproc-borrow copies no payload but still allocates per write. The inproc fan-out and payload sweeps, inproc-borrow and the inproc-path topic sweep also publish a <mode>-batch twin timed over a calibrated batch, and inproc-pool has its own in the inproc-pool-batch family; the grid, topics-*, inproc-deliver, inproc-target-*, eptype-*, mixed and inproc-mt* rows have none. Delivery rates are counted at the subscriber, and a dce-canary row fails the run if timed work is optimized away. Its fold-*, lkv-* and *alloc-mt* rows are what the routing and memory chapters chart. The data-path rows run over a payload ladder up to 64 KiB, and the cliff-alloc-* rows time one segment alloc/free at every size of the allocator-cliff ladder. Gate: per-PR + per-push gate, thirty-five canonical points.

ns p50 / p99 / mean · deliveries/s

§7, §8, §9, watched

bench_forward_demux

Drives one FWD forward hop through the inbound link’s own receiver against a registry of N links, with the target child registered first (fixed) or last (scan). It never resolves a vertex, so it measures routing alone. Gate: recorded per main push.

ns p50, batch-amortized

§8, watched

bench_chain_delivery

Drives the Nth FWD{WRITE} of an established stream over its PAIR chain — the steady state every stream delivery takes — resolved at its terminus (chain-terminus) or forwarded one hop downstream (chain-forward), plus the per-link state a hop keeps for it. Gate: recorded per main push.

ns p50 · allocations per frame · RSS

§8, watched

bench_forward_heap

Replaces the global allocator with a counting wrapper and arms it around exactly one operation, so every number is an exact count rather than a sample. Eight probes: the forward hop, a terminus resolve, five resident-vertex shapes, and a wire-driven registration’s escape from the injected memory seam. Gate: forward hop = 0 allocations; per-vertex bytes +2%, block counts exact.

allocations · live usable-size bytes

§9, watched

bench_codec

Decodes and re-encodes every shared v1 conformance vector through the C++ core — the lang axis of the cross-core codec surface, run identically by the TypeScript and Rust cores over the same inputs.

ns per roundtrip · roundtrips/s

§11

bench_zenoh

The Zenoh side of the in-process comparison: intra-session peer pub/sub over zenoh-c, sweeping the same fan-out / payload / endpoint matrix and emitting the same RESULT rows.

ns p50 / p99 · deliveries/s

§10

bench_transports

libtracer’s network latency: a publisher and a subscriber process on one host, one transport each (UDP / TCP / WebSocket), payload carrying a send timestamp so one-way latency is valid across the two processes. Every paced probe is kept, so the same run yields the deep tail and the sample count that backs it.

ns p50 / p99 / p999 / max, one-way · samples per point

§10

bench_zenoh_net

The Zenoh side of the same two-process network measurement, over a configured UDP endpoint with multicast scouting disabled so the pair talks only over that socket. It shares the subscriber-side accumulator with the libtracer arm, so both engines’ tails are estimated by the same code from the same number of samples.

ns p50 / p99 / p999 / max, one-way · samples per point

§10

bench_compose_net

libtracer’s composition-throughput arm: a publisher process ships a K-link rope as one sendmsg(iovec) and a subscriber process counts the values it observes arriving, swept over K. The rate is the receiver’s own count over the receiver’s own clock, and the run is refused outright if it observed no values or any malformed record. Its numbers reach no chart here: the comparison’s publication is a separate, reviewed step.

values/s and messages/s observed · values per message · ns one-way per K-value group

neither — on demand only

bench_zenoh_compose

The Zenoh arm of the same measurement, over a configured loopback UDP endpoint with multicast scouting disabled. It has no composite send, so the same K values are K puts; it shares the subscriber-side counter with the libtracer arm, so a value means the same thing on both sides. Its publisher is audited for wire use before any number is taken, so a run in which it never transmitted cannot report one.

values/s and messages/s observed · values per message · ns one-way per K-value group

neither — on demand only

bench_forward_rope

Forwards a frame that arrives as a multi-link rope, where TLV headers straddle link boundaries and every peek is a walk with stitching, swept over link count at a fixed frame and registry size.

ns p50 · allocations per hop

neither — on demand only

bench_terminus_tier

Resolves the same frame through both reader tiers — the eager arena reader and the lazy rope reader — plus a flatten-then-arena arm, swept over frame size and link count.

ns p50 · allocations per resolve

neither — on demand only

bench_subscriber_suspend

Writes to one producer with N live callback edges alone, beside N cleared slots and beside N suspended edges, swept over fan-out and payload size, and times the control-plane switch from one suspended edge to another against an unsubscribe plus re-subscribe.

ns per write · deliveries/s · ns per switch

neither — on demand only

bench_subscription_selector

Switches a subscription selector between two options at fan-out 1, 32 and 1024, through the host API and through the active field write, and writes to a producer whose delivering edges stand beside a selector’s suspended ones, swept over payload size.

ns per switch · ns per write · deliveries/s

neither — on demand only

bench_admission_gate

Times a write through an on_admit filter and through a payload-right table, 64 B to 16 KiB, with and without re-registration churn at a sibling address: the declaration gate’s walk stays flat under churn. A diagnostic, not a gate.

ns/op · ns p50 / p99 · churn bytes

neither — on demand only

bench_retire_park

Retires and revives one vertex with no collect() between, in windows of 5,000 cycles up to 50,000 parked entries: a park that grows geometrically keeps the cycle rate flat as it fills. A diagnostic, not a gate.

cycles/s per window · last/first

neither — on demand only

bench_walk_writer

Times a vertex registration, which takes the map lock exclusively, while 0, 1, 2, 4 or 8 threads run composed reads over a 99,856-vertex branch: since #2846 a walk yields to the waiting writer, so the latency should not grow with the reader count. A diagnostic, not a gate.

writer µs p50 / max · walks · yields

neither — on demand only

bench_chain_delivery_pair

Stream delivery over the RFC-0029 PAIR chain at 1 and 3 hops, 64 B to 16 KiB, unbatched and with BATCH, with the reply leg priced separately. A report, not a gate.

ns p50 per frame · wire bytes per hop

neither — on demand only

bench_can_reassembly

Two CAN transport ends on an in-process bus, classic and FD, 4 B to 64 KiB: the thread CPU of one send plus its reassembly and delivery, and the receiver’s RX-store bytes. A report, not a gate.

CPU ns per send · RX-store bytes

neither — on demand only

bench_transport_iov

Assembles the real transports’ ::iovec table at rising span counts to find the width at which it stops fitting inline and allocates.

allocations · bytes, per span count

neither — on demand only

bench_iov_spill_cost

Censuses the egress span counts the rope forward arm actually hands a transport, then times the gather at the spill width against an inline control pair at the same +1 delta.

spans per frame · ns p50

neither — on demand only

bench_wire_heap

Drives real loopback TCP/UDP/WS sockets with thread-local allocation counters, so one frame’s egress cost on the sending thread and its ingress cost on the transport’s receive thread are attributed separately.

allocations · bytes, per frame per direction

neither — on demand only

bench_conn_ram

Stands up a real server transport and drives K raw client peers at it, reading the live balance of the link’s memory seam and the heap when the server is up and quiesced, at K established connections, and after teardown. Gate: per-connection bytes drift past a measured ±8 B / ±0.5% band — FAILS the counted ledger before a merge, WARNS on the pinned host after it (bench/ram_census_pins.json carries the pins and the activation mode, fail since #2827).

live bytes per link · live bytes per connection

§9, watched

bench_peer_counts

Relays paced FWD{WRITE} frames from a writer process through one node to a remote subscriber over TCP and WS, counting the node’s memcpy/memmove bytes, socket syscalls and voluntary task switches per frame at 64 B to 16 KiB, then counts idle wakeups per second with 32 peers and no traffic. Gate: any counted row past its pin (bench/ledger/) fails every PR (counted-ledger.yml); a fall fails too, with a re-pin.

bytes copied · syscalls · switches, per frame · wakeups per second

§3, watched

bench_ram_census_tcp

Prices a 100-vertex node — mixed int, array and stream values, 4–64 B each — stage by stage on the live heap balance: empty graph, vertices registered, values written, TCP listener up, a second-process peer connected, and the steady state after a mixed op storm, with a null arm and residual check bracketing every run.

live bytes · blocks, per stage · bytes per vertex

§9

bench_lean_value_path

Counts every allocation and byte one publish costs, stage by stage along the value path — a local write with callback subscribers, the same write to a vertex that retains nothing, the same write fanned to K stored target vertices and to K HANDLER targets, a producer handing over its own bytes, a FWD{WRITE} through the terminus below and at-or-above the copy-or-share threshold, egress through the base scatter-gather, and the RFC-0028 one-block prototype — over a warm window of 1,000 publishes.

allocs · heap bytes · payload copies, per publish per stage

§9

bench_failable_census

Counts the blocks each peer-driven control-plane operation draws from the injected resource against those that escape to the global heap, and A/Bs the two growable-array guard shapes a nothrow migration chooses between.

blocks per operation · ns per growth

neither — on demand only

bench_tcp_fanin

Raises the number of simultaneous TCP peers against the server’s single poll thread and counts frames delivered, to find where that thread saturates before the host does.

frames/s, per peer count

neither — on demand only

bench_pin_ratio

Times the WRITE store leg over a (payload x segment) grid with the copy branch and the shared-subview branch rotating as interleaved copy-or-share THRESHOLD arms inside one process (RFC-0028 §5.3), and reports each cell’s share/copy split two independent ways so no timing is read off an arm that never reached the branch. Pairs with bench_pin_net.cpp; the control is the copy-always arm (threshold SIZE_MAX) of this same binary.

ns per store · pins and copies per cell

neither — on demand only

bench_scale_sweep

Sweeps the REGISTERED-VERTEX POPULATION over 10^3/10^4/10^5/10^6 and decomposes what grows with it. Each candidate leg is measured in isolation against the same population, in one process: a write through a pre-bound handle touching all N vertices, find() alone over the same N addresses, a probe address of fixed depth and fixed per-level fan-out (the ADR-0057 population-independence claim, verified rather than assumed), and a working-set control that keeps N vertices resident while touching exactly one — the arm that separates resident-set size from touched-set size. Beside them it prices register_vertex_key descent, the O(N) vertex_slot reverse scan, for_each_vertex enumeration, and the MEASURED heap and RSS bytes per vertex. Diagnostic: nothing here is gated, because a population axis this new has no stability record to gate against.

ns per operation, by leg · bytes per vertex

neither — on demand only

bench_subscribe_index

Prices the per-link departure index (graph_t::index_link_vertex) on the remote SUBSCRIBE path, swept over 4/8/16/32/65 distinct link names at a held-constant vertex population. Four arms rotate inside one binary — a no-index sentinel, the shipped name-keyed index transcribed line for line, the same index keyed by a token the caller already holds, and the graph-only re-key that must still hash the arriving name — beside the live subscribe_wire for proportion. A counting std::pmr::memory_resource reports bytes at rest on the same axis, and the run refuses to report unless the transcription reproduces the shipped index byte for byte and allocation for allocation. The A/A null is carried in the run as two ABBA-interleaved tags, so every delta is read against a band from its own window.

ns per index operation · bytes at rest per link

neither — on demand only

bench_reply_leg

Drives the PRODUCER fan-out leg: one write to a vertex with N remote subscribers, which runs deliver_remote N times and opens each with a registry scan for the subscriber’s link. Swept over fan-out, registry width and scan position (the link registered first against last), with the deliveries counted at the destination link and the resolutions counted exactly by addressing the subscribers through the bus-peer tier.

ns per write, median with range · deliveries and resolutions per write

neither — on demand only

bench_reply_dispatch

Drives a READ through the router’s receive path to its reply on the same stub link, once on a link with no per-peer identity and once on a link whose delivering session has a handle, interleaved; the rows are reply-p2p and reply-flat-handle.

ns per answered READ, best of rounds

neither — on demand only

bench_target_binding

Prices graph::target_binding_t on the LOCAL target-edge delivery leg: the same dispatch_edge_target in ONE binary, taking its bound deref_vertex_slot spelling or its canonical find_ptr fallback according to the shipped mint rule (a target registered before the subscribe binds; one registered after does not), swept over the target key’s DEPTH. Each point’s leg is COUNTED by graph_t::target_canonical_resolves() rather than assumed, and the canonical arm’s own instrumentation atomic is priced in the same binary and subtracted.

ns per delivery, p50 · canonical resolutions per delivery

neither — on demand only

bench_mount_resolve

Drives one whole forward hop — peek, mount descent, head rebuild, egress — through a registry of N mounts of width W segments, addressed to the last-registered mount, and counts the frames that actually reached the intended egress link so no cell’s timing is read off a hop that fell to the terminus instead. Written to compile unchanged against the pre-lift tree, so the two binaries interleave as A/B arms on one machine.

ns per hop, p50 · hits vs iters per cell

neither — on demand only

bench_pin_net

Drives FWD{WRITE} across two processes over real UDP into a receiver whose RX backend is a bounded pool, counting deliveries in the receiver’s own graph and sampling the pool’s free-slot floor and refusal count while the load runs — so the throughput figure is a receiver’s count and the RAM figure is an observed exhaustion rather than arithmetic.

deliveries/s · free slots · rx drops

neither — on demand only

bench_qos_census

Counts, per vertex shape, whether an extension block is allocated at all — the pay-for-what-you-use split RFC-0022 §3.B widened by deleting the registration parameter that could force one. Classifies through vertex_t::has_extension_block, the census observable that replaced comparing settings()’s returned address against a shared defaults constant.

vertices per bucket

neither — on demand only

bench_tcp_peer_scaling

Separates the single poll thread’s three costs by moving one axis at a time: an idle-fanout arm holds the load at one active sender and raises the number of connected-but-silent peers, so any loss is descriptor scanning alone, and an active-fanout arm raises active peers below the core count to price the thread itself. Reports each point as a median with min/max and declines to state a ratio when the sweep’s ends overlap.

frames/s + ns p50 / p99, per peer count

neither — on demand only

bench_tcp_baseline

The same fan-in topology with timestamped payloads, on a fresh server per sweep point, so aggregate throughput and the full one-way latency distribution come from one run.

frames/s · ns p50 / p99 / p999 / max

neither — on demand only

bench_noise_link

The Noise link harness’s libtracer arms: one warm link pair per arm on loopback — the plain UDP link, and the Noise link (#2073) over the same carrier behind a build switch — timed for one request and its echo, for a blast stream with 1-in-64 frames stamped, and for a fresh pair’s setup to first reply (the handshake, on a secured link), at 64 B, 1 KiB, 4 KiB, 16 KiB and the datagram bound, with the heap, resident set and threads one pair costs. The stream is a libtracer LINK, unbatched (one frame per send); a stream-batch twin packs K values per send with compose_batch. The composed-graph comparison with Zenoh is run_compose.sh’s.

ns p50 / p99 RTT and one-way · exchanges/s, frames/s, MB/s · bytes per pair

neither — on demand only

bench_zenoh_link

The Zenoh arms of the same harness, through the same driver: a warm session pair over plain UDP, and over TLS and QUIC as the secured counterpart of the Noise link — different security protocols with the same goal, authenticated encryption — with setup (the handshake) on its own row. Request/reply uses express publishers; the stream is a Zenoh SESSION, batched by default, so it is not a link-for-link throughput comparison (run_compose.sh is).

ns p50 / p99 RTT and one-way · exchanges/s, frames/s, MB/s · bytes per pair

neither — on demand only

bench_noise_crypto

Prices the Noise_NNpsk0_25519_ChaChaPoly_SHA256 session on every crypto backend the build found (libsodium, OpenSSL, mbedTLS PSA): ChaCha20-Poly1305 seal and open per frame up to the datagram bound, X25519, HKDF and each side’s whole handshake, with the heap, allocations and stack each holds. Every backend must first reproduce the RFC 7748 vector and every other backend’s handshake transcript byte for byte.

ns p50 / p99 per op · frames/s, MB/s · bytes, allocations

neither — on demand only

bench_fanout_clone_storm

T threads clone and release one shared segment view — the per-subscriber delivery primitive, with T standing in for fan-out width — as T scales 1 → 128.

clone+release/s, aggregate and per thread

neither — on demand only

bench_await_wakeup_storm

One writer storms writes at a hot vertex while W threads each loop on await for it, as W scales 1 → 128.

writes/s · wakeups/s

neither — on demand only

bench_rx_source_topology

T receive threads forward rope frames with the RX block source shared across all children, one pool shared, or one pool per child. One seam; the whole-node instrument is bench_store_sweep.cpp.

frames/s per thread count

neither — on demand only

bench_store_sweep

Composes a whole node under four allocation-store configurations — the shipped all-heap baseline plus ADR-0079’s WIDE, MID and NARROW, at equal total slab — and drives one workload that draws all four of its allocation channels: a rope forward hop (router rx plus the transport egress gather), a graph write (the std::pmr channel) and a composed subtree read (the failable ctl channel). Reports each leg’s latency, fan-out throughput as receive threads scale 1 → 24, and each store’s deterministic high-water; its calibrate mode fails the run if any channel served nothing. Gate: store bytes + the T=1 latency cell recorded per main push, occupancy additionally warn-ratcheted; the T=1 p50 of every leg on NARROW and WIDE gated per PR; the T-sweep stays diagnostic — see bench/README.md.

ns p50 · ops/s per thread · store bytes

watched

bench_store_escape

The memory half of the store sweep, in its own binary so a global operator new override cannot bias the timed arms: it composes the same four configurations and counts what still ESCAPES to the process heap, standing the node up and then per workload iteration. Non-zero in every arm while vertex placement remains on the global heap, which is the point of the number. Gate: never gated — a process-heap high-water moves 66% across runs.

heap bytes and allocations, per arm and window

watched

bench_source_role

The same write at a vertex that RETAINS a last-known-value and at one that retains nothing, swept over subscriber width 0/1/4 and value link count 1/4 — the axis inproc-target-* does not cover, because that pair sweeps the role of the delivery TARGET and this one sweeps the role of the vertex being WRITTEN. Fan-out ZERO isolates the write from delivery. Also times the clone term alone across the rope’s inline/spill boundary. Gate: diagnostic, never gated — its rows are absent from the default sweep the gate joins on.

ns p50 · writes/s, per role, fan-out and link count

watched

bench_source_role_alloc

The heap half of that question, in its own binary for the reason bench_store_escape gives: how many process-heap blocks one write costs at each role and link count. A block drawn on every write is a shed-on-OOM exposure, so the count is the check: a HANDLER reads exactly one block per write below the retaining role at every link count. Gate: never gated — a decision input, reported as a count.

allocations and frees per write, per role and link count

watched

bench_publish_leg

Separates the two halves of a write at 0 and 1 subscribers: assign, which performs RFC-0008’s state transition and sends nothing, against write, which then delivers. The in-tree instrument for the producer-side publish leg of RFC-0025 §4.6.2; its assign row is the vertex_t::store-alone figure that section states on a host-stamped basis. Gate: never gated — every arm is a subset of the already-gated inproc point.

ns p50 / p99 / mean · operations/s, per verb and subscriber count

watched

bench_writer_fanin

N writers on ONE vertex, plain last-writer-wins against a STREAM retaining a bounded history, swept 1 → 8 writers with the two arms run back to back at each width so the stream/lock-free ratio is same-run. The committed instrument for §4.6.2’s four-writer leg; it prices receiving-vertex retention (RFC-0025 §4.6.1 Amendment 2). Gate: never gated — a many-thread aggregate rate is a property of the host.

aggregate and per-thread ops/s · the same-run ratio

watched

bench_lkv_slot

Concurrent publishers and readers on one last-known-value slot across five reclamation arms, plus graph_t::write driven from T threads against distinct vertices that share nothing but a lock stripe.

ops/s · ns p50, per thread count

neither — on demand only

bench_hazard_node

Isolates hazard-slot NODE ACQUISITION, which every other LKV bench amortizes away: it holds thousands of never-written slots live so that each publish takes the allocating arm rather than the free list, and reports that arm, the retire-scan-free path and a free-list-hit control separately. Each arm is timed as one block, so its rate is the only figure it reports.

acquisitions/s · releases/s

neither — on demand only

bench_contention

Measures the machine rather than libtracer: nine arms isolating a thread-private counter, a shared read, contended read-modify-writes, false sharing and lock costs, so a claim about a shared line can be checked against the box in front of you.

ns per op · ops/s, per thread count

neither — on demand only

bench_tail_validate

Feeds the shared latency accumulator distributions whose quantiles are known by construction and prints measured against analytic. It touches neither the clock nor libtracer, so a failure is a defect in the estimator and nowhere else.

quantile ns, measured vs analytic

neither — on demand only

37 of 55 harnesses reach neither a chart on this page nor a gate, by surface: Network timing — bench_compose_net, bench_zenoh_compose, bench_tcp_fanin, bench_pin_net, bench_tcp_peer_scaling, bench_tcp_baseline, bench_noise_link, bench_zenoh_link; Framed-hop timing — bench_forward_rope, bench_terminus_tier, bench_chain_delivery_pair, bench_can_reassembly, bench_reply_leg, bench_reply_dispatch, bench_mount_resolve, bench_noise_crypto; In-process timing — bench_subscriber_suspend, bench_subscription_selector, bench_admission_gate, bench_retire_park, bench_walk_writer, bench_scale_sweep, bench_target_binding; Allocation counting — bench_transport_iov, bench_iov_spill_cost, bench_wire_heap, bench_failable_census, bench_pin_ratio, bench_subscribe_index, bench_qos_census; Concurrency & scaling — bench_fanout_clone_storm, bench_await_wakeup_storm, bench_rx_source_topology, bench_lkv_slot, bench_hazard_node, bench_contention; Instrument self-check — bench_tail_validate. They are run on demand and read in a terminal. That is a deliberate state for the concurrency arms — they need a many-core host and a shared CI runner cannot produce a number worth recording — and a standing gap for the rest. A measurement that is neither published nor gated decays into a number nobody can check, so this count is derived here rather than kept in a list that could quietly go stale.

6 · Cross-core conformance (every native core must agree byte-for-byte)

How this surface is measured

The three native cores — the C++ golden reference, and the from-scratch TypeScript and Rust reimplementations — must agree byte-for-byte. A shared set of versioned conformance vectors (tests/conformance/vectors/v1) is decoded and re-encoded by every enabled core; the driver diffs the results, and a single DISAGREE fails CI (ADR-0028). This surface measures truth, not time — it is what lets every timed surface below trust that a fast C++ number describes the same protocol the other cores speak.

Live driver summary:

  • cpp: 123/123 vectors ok

  • ts: 123/123 vectors ok

  • rust: 123/123 vectors ok

  • CONFORMANCE: PASS

7 · Dispatch — in-process latency & throughput

How this surface is measured

bench_libtracer exercises the hot path — resolve a vertex, write a value, notify and deliver to subscribers — entirely in one process, and reports per-operation latency (p50 / p99 / mean nanoseconds) and throughput (deliveries or publishes per second). It sweeps three axes independently:

  • fan-out — subscribers per write (dispatch amortization);

  • payload — value size in bytes (copy cost);

  • topic count — number of registered vertices (registry / resolver pressure).

Several named modes isolate distinct costs on the same axes:

  • inproc — the full write (store + notify + deliver). Below 1 KiB it includes the producer’s own work: each op allocates a segment and copies the payload into it before the write. From 1 KiB it does not: the values are built ahead and freed afterwards, off the clock, and the row times the write alone, so above 1 KiB the row is the library’s and flat in payload size. The Zenoh rows build their payload on the same side of the clock at every size;

  • inproc-borrow — the loaned-view path: no payload copy, but not allocation-free — each write allocates a segment header for the borrow and the block the vertex stores;

  • inproc-deliver — deliver-only (propagate), value stored once;

  • inproc-path — write-by-path, resolving the registry on every write. This is a deliberate resolver canary, not a hot pattern: real code resolves a path once and writes through the held handle. Judge dispatch cost against inproc / inproc-borrow, never against inproc-path.

  • inproc-target-stored / inproc-target-handler — the path-target dispatch leg: edges carrying a target key instead of a callback, which is what a wire SUBSCRIBER produces (the callback form is host-SDK sugar). Each delivery resolves the target in the registry, passes the fan-in ACL gate, clones the rope nothrow, and applies the target’s write effects — measured at roughly 10× a callback edge at fan-out. The stored / handler pair separates the target’s own store from the dispatch itself.

  • stream-w1 / stream-w2 / stream-w4 — 1, 2 and 4 writer threads on one STREAM vertex, its single stripe-lock admission under contention; delivery is counted at the subscriber. stream-spill times a write whose take is wider than the in-frame slots (it spills), and stream-defer a burst of assigns delivered by one covering propagate; both per cycle, batch-timed.

  • route-handle-egress-mt1 / -mt2 / -mt4 — retired with the route handle (see Retired series).

  • seam-class-c1 / -c8 / -c32, seam-direct, seam-fallback — the allocation seam’s two decisions: finding a block’s size class among C classes, and a full bump_source_t falling back to its upstream pool (seam-direct is that pool alone).

  • seam-values / seam-tables — the shipped host slab pool: one try_alloc + release on the value sub-pool (through the thread’s cache) and on the table sub-pool (one class lock per request), at every payload-ladder size, at 65552 B and at 65600 B, the first request past the last class (64 KiB plus a segment header), which falls back to the root. Each row refuses to print if its size’s class decision is not the one its label names, or if a timed request was refused. Charted, not gated.

  • inproc-pool-batch — the window-calibrated twin of the heap-view inproc-pool rows.

Every mode above except the inproc-target-* pair subscribes with an in-process callback, so a fan-out curve reads the callback leg unless its mode says otherwise.

Not every row has a -batch twin. The inproc fan-out and payload sweeps, inproc-borrow and the inproc-path topic sweep publish one beside each per-op row; inproc-pool has its own family for it (inproc-pool-batch); the comparison grid, topics-*, inproc-deliver, inproc-target-*, eptype-*, mixed and inproc-mt* publish the per-op row alone.

This is the surface that carries the microsecond thesis — the zero-copy substrate (ADR-0016) delivering values as loaned view_ts — and the one the per-PR gate watches most closely.

Process shape. Each family of the sweep (the fan-out ladder, the payload ladder, lkv, …) runs in its own fresh process, under one fixed set of allocator settings (GLIBC_TUNABLES: mmap and trim thresholds, arena count), and records them in its output as an ALLOC line, which the gate prints and every history point carries. No row inherits a heap aged by the rows ahead of it, so a row’s value does not depend on its position in the sweep. A heap state that matters is a named row instead: lkv-*-heap runs on a fresh heap and lkv-*-heap-aged on a deliberately fragmented one.

Counted, kept and listed once. Every delivery rate in this sweep is counted at the receiver, never computed as publishes × fan-out: a STREAM ring that sheds an entry still lets write() succeed, so only a count can show the shed. Timed results that nothing reads (the lkv-* copy, the path-parse result) pass through an empty asm clobber so the compiler cannot delete the work. The dce-canary family checks that a timed chain is not deleted: a dependent chain eight times longer must time at least four times longer, or the run fails. It does not prove the clobber itself is load-bearing. Each key is emitted once: inproc/64/1/1 comes from the payload sweep only.

harness

what it does

reports

bench_libtracer

Drives the in-process hot path — resolve a vertex, write a value, notify, deliver — swept over fan-out, payload size, topic count, thread count, endpoint type, value backend and dispatch mode. Below 1 KiB an inproc op includes the producer’s own allocation and copy of the value; from 1 KiB the value is built and freed off the clock and the op is the write alone. inproc-borrow copies no payload but still allocates per write. The inproc fan-out and payload sweeps, inproc-borrow and the inproc-path topic sweep also publish a <mode>-batch twin timed over a calibrated batch, and inproc-pool has its own in the inproc-pool-batch family; the grid, topics-*, inproc-deliver, inproc-target-*, eptype-*, mixed and inproc-mt* rows have none. Delivery rates are counted at the subscriber, and a dce-canary row fails the run if timed work is optimized away. Its fold-*, lkv-* and *alloc-mt* rows are what the routing and memory chapters chart. The data-path rows run over a payload ladder up to 64 KiB, and the cliff-alloc-* rows time one segment alloc/free at every size of the allocator-cliff ladder. Gate: per-PR + per-push gate, thirty-five canonical points.

ns p50 / p99 / mean · deliveries/s

sourcecross-run series are a TREND instrument — the paired same-runner A/B is the gate

27 family charts · 1002 series · x-axis = recorded main commits (oldest → newest) · 🏷 dashed verticals mark release tags (≈ = tag commit itself is not a recorded point; marker sits at the nearest following recorded commit) · 🔧 dotted verticals mark commits where the BENCH changed — points either side of one are not comparable. Each card carries every METRIC that point recorded — p50 / p99 / ns per delivery / throughput — pick one under the title. Families with a numeric parameter axis also offer trend / sweep / heatmap / 3D views — same data, three axes (commit × parameter × value), over a selectable commit range. The paired libtracer-vs-Zenoh cards add a ratio toggle on bench-local: both engines run in the same pass on one pinned CPU, so their per-commit quotient cancels runner speed and is the comparison to read across a long history. The hosted store keeps the best runner per series, so its two arms need not share a pass and its cards carry no ratio. On bench-local, a ▲ / ▼ on a trend line marks a sustained step (the row moved past its own noise threshold and held for 3 points), at the first commit that measured the new level. Also on bench-local, a trend line carries a noise band: over each series' last N recorded points (default 10, picked per card) the p10–p90 is shaded and min/max drawn faint, and the legend and tooltip give the window's coefficient of variation, so a dip can be read against the row's own noise. A series with fewer than N points gets no band. Hover any chart for exact per-commit values.

8 · Wire & routing — what a framed hop costs

How this surface is measured

The in-process surfaces above measure the graph. A separate set of benches measures the network plane — what a frame costs between arriving and being applied — because the two move independently and an improvement to one can hide a regression in the other. They cover the three shapes a frame takes: a transit hop that never resolves, a cold terminus resolve, and the steady-state chain delivery that dominates a running system — a FWD{WRITE} addressed by the subscription edge’s chain, which shrinks by one element per hop and needs no state at any hop.

Every bench on this surface reports latency and exact allocation counts, and every one calibrates its own batch size against the host clock rather than hardcoding a number: a routing operation costs the same order as clock_gettime, so timing one operation at a time measures the clock instead of the code.

The build-to-build history is measured on the bench-only aligned build (-falign-functions=64) from the commit that merges #2188 (the aligned bench build) on, so every series steps at that commit because of the flag, not a code change (see the gate’s alignment rule below). bench_forward_demux and bench_chain_delivery are recorded into the build-to-build history alongside the in-process series, so a routing or delivery regression shows up as a trend rather than being noticed later. They emit the same RESULT rows as bench_libtracer, so they need no separate aggregation. bench_chain_delivery drives every frame through the child’s receiver ctx, the way a link’s receive thread delivers it, and asserts so before timing: the public by-name on_frame door is one production frames never take. Their transcripts are tolerated-empty — a bench that fails to run must not cost a commit its whole history point — but an empty one emits a build warning naming the file, because a silently-empty transcript is otherwise a green job that recorded nothing.

Retired series

COMPACT delivery left the protocol and the router with RFC-0032, which removes RFC-0004 §E.1 (ADVERTISE, COMPACT, HANDLE_NACK and the per-link handle tables), so the series that measured it have no code left to run. They stay in the build-to-build history as a closed record, and their rows are not comparable to anything after the cut.

Series

What it measured

Why it ended

compact-forward/*, compact-terminus/* (bench_compact_delivery)

the Nth COMPACT frame on an already-advertised binding: a forward hop that swaps the label and re-emits, and a terminus that resolves it locally

the frame and its label store were deleted; bench_chain_delivery’s chain-forward/*, chain-terminus/* and chain-delivery RSS line took their gate points

route-handle-egress-mt1 / -mt2 / -mt4

producer threads sharing one advertised route-handle flow

the egress reuse read belonged to the handle table

The delivery every flow takes is chain delivery, a FWD{WRITE} addressed by the subscription edge’s chain, which each hop consumes one element of. It holds no state at any hop, so there is no warm/cold split, no first-frame advertise and no stale-label repair to price. Its cost is bytes: the frame is larger on every hop but the last, by 11 B per remaining PAIR element (RFC-0029 §5.2). RFC-0032 (§3) accepts this multi-hop byte cost: the bench reports it rather than vetoing it, with BATCH (0x80) available to the application as the way to amortise headers on a steady flow. The chain-against-COMPACT comparison behind that is RFC-0032’s evidence (§8), not a series here; the standing rows are chain-forward/* and chain-terminus/* (bench_chain_delivery) and fwd-demux-*. Row-level history of the retired series stays in the bench history, not in these pages.

harness

what it does

reports

bench_libtracer

Drives the in-process hot path — resolve a vertex, write a value, notify, deliver — swept over fan-out, payload size, topic count, thread count, endpoint type, value backend and dispatch mode. Below 1 KiB an inproc op includes the producer’s own allocation and copy of the value; from 1 KiB the value is built and freed off the clock and the op is the write alone. inproc-borrow copies no payload but still allocates per write. The inproc fan-out and payload sweeps, inproc-borrow and the inproc-path topic sweep also publish a <mode>-batch twin timed over a calibrated batch, and inproc-pool has its own in the inproc-pool-batch family; the grid, topics-*, inproc-deliver, inproc-target-*, eptype-*, mixed and inproc-mt* rows have none. Delivery rates are counted at the subscriber, and a dce-canary row fails the run if timed work is optimized away. Its fold-*, lkv-* and *alloc-mt* rows are what the routing and memory chapters chart. The data-path rows run over a payload ladder up to 64 KiB, and the cliff-alloc-* rows time one segment alloc/free at every size of the allocator-cliff ladder. Gate: per-PR + per-push gate, thirty-five canonical points.

ns p50 / p99 / mean · deliveries/s

bench_forward_demux

Drives one FWD forward hop through the inbound link’s own receiver against a registry of N links, with the target child registered first (fixed) or last (scan). It never resolves a vertex, so it measures routing alone. Gate: recorded per main push.

ns p50, batch-amortized

bench_chain_delivery

Drives the Nth FWD{WRITE} of an established stream over its PAIR chain — the steady state every stream delivery takes — resolved at its terminus (chain-terminus) or forwarded one hop downstream (chain-forward), plus the per-link state a hop keeps for it. Gate: recorded per main push.

ns p50 · allocations per frame · RSS

sourcecross-run series are a TREND instrument — the paired same-runner A/B is the gate

7 family charts · 219 series · x-axis = recorded main commits (oldest → newest) · 🏷 dashed verticals mark release tags (≈ = tag commit itself is not a recorded point; marker sits at the nearest following recorded commit) · 🔧 dotted verticals mark commits where the BENCH changed — points either side of one are not comparable. Each card carries every METRIC that point recorded — p50 / p99 / ns per delivery / throughput — pick one under the title. Families with a numeric parameter axis also offer trend / sweep / heatmap / 3D views — same data, three axes (commit × parameter × value), over a selectable commit range. The paired libtracer-vs-Zenoh cards add a ratio toggle on bench-local: both engines run in the same pass on one pinned CPU, so their per-commit quotient cancels runner speed and is the comparison to read across a long history. The hosted store keeps the best runner per series, so its two arms need not share a pass and its cards carry no ratio. On bench-local, a ▲ / ▼ on a trend line marks a sustained step (the row moved past its own noise threshold and held for 3 points), at the first commit that measured the new level. Also on bench-local, a trend line carries a noise band: over each series' last N recorded points (default 10, picked per card) the p10–p90 is shaded and min/max drawn faint, and the legend and tooltip give the window's coefficient of variation, so a dip can be read against the row's own noise. A series with fewer than N points gets no band. Hover any chart for exact per-commit values.

Reading the two demux arms

fixed registers the target child first, so its lookup hits on the first compare and the chart isolates the size-independent part of a hop. scan registers it last, so the lookup walks the whole table. The rise of scan over fixed at the same registry size is the scan’s marginal cost. Read them as a pair; neither means anything alone.

Per-module keying does not narrow that scan — it changes the key, not the container, and a node’s links overwhelmingly sit in one module. It earns its place by keeping two modules’ same-named connections distinct, which is correctness, not lookup time (ADR-0061).

What the scan costs a real frame

path

registry work per frame

plain FWD write

mount descent + inbound lookup, per frame — the frame carries the full path, so there is nothing to cache against

remote delivery to a subscriber

one lookup by link name, per frame — the subscriber record holds a name

The dominant term in a hop is TLV header parsing — the FWD header, the op, the dst PATH and its segments, the selector peek and the src PATH on rebuild, each read exactly once — and it sits at a local optimum for that structure. At -O3 the parse inlines with values flowing in registers into the narrow struct’s stores, so there is no intermediate object to remove: forcing the inline, or narrowing the header struct, each regress the hop by about 10 %.

A forwarded FWD builds no frame: the rebuilt head goes to a stack buffer and the payload is handed to the transport by reference as a scatter-gather list, which is why the forward charts are flat in payload size. Zero allocations in the router is not zero on the wire — a transport that does not override the gather form concatenates once in transport_t::send(iov).

Retired series

compact-forward, compact-terminus and route-handle-egress-* are no longer produced. They measured RFC-0004 §E.1’s per-link route handle (ADVERTISE / COMPACT / HANDLE_NACK), which RFC-0032 removed from the protocol and the router; delivery is chain delivery: a FWD{WRITE} addressed by the subscription edge’s chain, one element consumed per hop, no state held. Their history stays in the charts as a closed record and is not comparable to later points; chain-forward and chain-terminus (bench_chain_delivery) are the standing rows. The cost chain delivery pays is bytes on the wire, not time per hop, and RFC-0032 accepts that multi-hop byte cost: the benches report it and never veto on it. BATCH is the application’s tool for amortising headers on a steady flow.

9 · Memory & allocation

How this surface is measured

A different instrument entirely. bench_forward_heap replaces the global allocator with a counting wrapper and arms it around exactly one operation, so these are exact allocation counts and byte totals — not statistics, not sampling. Bytes are read from malloc_usable_size, so a resident figure is what the allocator really holds rather than what the caller asked for. A block allocated inside the window is charged at its request’s exact-fit usable size (glibc’s own rounding: 8 B header, 16 B alignment, 32 B minimum chunk). When glibc hands back a larger leftover chunk whole, malloc_usable_size reads more, and which chunks are left over depends on what ran before the window, so the same binary would read vertex_app5_static as 288 or 295 B/vertex from run to run. The coarse process-level number beside them is each family’s RSS delta: every bench_libtracer family runs in its own process and prints RSS family=<name> start_kb= peak_kb= delta_kb=, the high-water mark minus the resident set the family started from, so it is that family’s footprint rather than the harness’s peak. The single-family binaries bench_chain_delivery, bench_forward_demux and bench_store_sweep latency print the same line (chain-delivery, forward-demux, store-lat) after their last row. Their start figure is the process’s high-water mark before the first row, one getrusage call, because any read of /proc ahead of their rows moves them.

Beside the per-vertex probes, bench_forward_heap prints RAM per callback edge (edge_callback), per wire subscriber edge (edge_wire), per link (link, one router child) and per 1 KiB value (vertex_value_1k), each over 256 units and multiplied by 1000 so a fraction of a block survives the division; the heap blocks per write at every payload-ladder size, from the injected source and from the global heap; the size classes one write selects (seamclass: its segment and its record, each rounded to its class in the host slab pool’s config_t::kSizeClasses, with the blocks no class serves counted apart); and the STREAM write’s stripe-lock sections per write, for one, two and four writers, a spilling write and a refused spill (counted through --wrap=pthread_mutex_lock, the instrument the STREAM lock test uses).

Per object, not per slab. A default graph draws its tables from the host slab pool (ADR-0083), so a counting window over a default graph sees whole slabs (64 KiB and up, one per size class a growing table first reaches), not the object it is pricing. So the gated vertex, vertex_app5, vertex_app5_static, edge_callback, edge_wire and vertex_value_1k probes run on a graph injected with tr::mem::heap_source() (and vertex_value_1k mints its segments through a backend over that same source): every block is then its own counted operator new, which is what a build without the slab pool (an MCU) pays per object. The same windows on a default graph are still printed, ungated, as RESULT slabfoot <what> live_x1000= blocks_x1000= n= (the two app-table rows have no such twin; slabfoot vertex already prices a leaf’s slabs), so the slab cost stays visible.

Two invariants sit on this surface, and the scope of the armed window is part of the first one. The steady-state forward hop’s own work must touch no heap — the two-plane forwarding model (ADR-0038) requires it — so bench_forward_heap arms the counting allocator around one hop and CI runs it at ZEROHEAP_MAX=0: on a contiguous (single-link) frame the hop dispatches by offset, builds its replacement heads in fixed stack buffers and its gather table in a stack iov array, and a single stray malloc inside that window fails the job.

Two terms sit outside that window, so this is not the claim that a forward hop is heap-free end to end. The gate drives capture_transport_t, a stub link that only sums the spans it is handed, so the shipping transports’ ::iovec table is never assembled — transport_udp and transport_tcp each hold 16 spans inline and spill to the heap above that, measured at 17 caller spans / ~288 B by bench_transport_iov. And the multi-link rope arm gathers into a block array drawn from the injected receive source, because the sub-span count is the sender’s choice and is known only at run time — nothrow, so an exhausted heap drops the frame rather than aborting, but not allocation-free. Read the two benches together; neither is sufficient alone. A terminus, by contrast, may allocate (ADR-0041) and is measured rather than gated. The per-vertex resident figure is the one the constrained profile lives or dies by (a ~16 KB RAM budget on the ESP32 target), which is why it is a series of its own rather than folded into RSS.

harness

what it does

reports

bench_libtracer

Drives the in-process hot path — resolve a vertex, write a value, notify, deliver — swept over fan-out, payload size, topic count, thread count, endpoint type, value backend and dispatch mode. Below 1 KiB an inproc op includes the producer’s own allocation and copy of the value; from 1 KiB the value is built and freed off the clock and the op is the write alone. inproc-borrow copies no payload but still allocates per write. The inproc fan-out and payload sweeps, inproc-borrow and the inproc-path topic sweep also publish a <mode>-batch twin timed over a calibrated batch, and inproc-pool has its own in the inproc-pool-batch family; the grid, topics-*, inproc-deliver, inproc-target-*, eptype-*, mixed and inproc-mt* rows have none. Delivery rates are counted at the subscriber, and a dce-canary row fails the run if timed work is optimized away. Its fold-*, lkv-* and *alloc-mt* rows are what the routing and memory chapters chart. The data-path rows run over a payload ladder up to 64 KiB, and the cliff-alloc-* rows time one segment alloc/free at every size of the allocator-cliff ladder. Gate: per-PR + per-push gate, thirty-five canonical points.

ns p50 / p99 / mean · deliveries/s

bench_forward_heap

Replaces the global allocator with a counting wrapper and arms it around exactly one operation, so every number is an exact count rather than a sample. Eight probes: the forward hop, a terminus resolve, five resident-vertex shapes, and a wire-driven registration’s escape from the injected memory seam. Gate: forward hop = 0 allocations; per-vertex bytes +2%, block counts exact.

allocations · live usable-size bytes

bench_conn_ram

Stands up a real server transport and drives K raw client peers at it, reading the live balance of the link’s memory seam and the heap when the server is up and quiesced, at K established connections, and after teardown. Gate: per-connection bytes drift past a measured ±8 B / ±0.5% band — FAILS the counted ledger before a merge, WARNS on the pinned host after it (bench/ram_census_pins.json carries the pins and the activation mode, fail since #2827).

live bytes per link · live bytes per connection

bench_ram_census_tcp

Prices a 100-vertex node — mixed int, array and stream values, 4–64 B each — stage by stage on the live heap balance: empty graph, vertices registered, values written, TCP listener up, a second-process peer connected, and the steady state after a mixed op storm, with a null arm and residual check bracketing every run.

live bytes · blocks, per stage · bytes per vertex

bench_lean_value_path

Counts every allocation and byte one publish costs, stage by stage along the value path — a local write with callback subscribers, the same write to a vertex that retains nothing, the same write fanned to K stored target vertices and to K HANDLER targets, a producer handing over its own bytes, a FWD{WRITE} through the terminus below and at-or-above the copy-or-share threshold, egress through the base scatter-gather, and the RFC-0028 one-block prototype — over a warm window of 1,000 publishes.

allocs · heap bytes · payload copies, per publish per stage

Eight armed windows feed the store, each counted around exactly one operation:

probe

what is armed around

gate

canary_seam_only

a std::pmr::vector filled over the INJECTED seam — the seam must serve and nothing may escape, which is what makes reg_escape’s two columns disjoint

hard — instrument self-check, aborts the run

canary_heap_escape

the identical vector filled over the PROCESS HEAP — the escape must be SEEN, so an operator-new override gone blind cannot hand every zero below a free pass

hard — instrument self-check, aborts the run

forward

one FWD forward hop, from arrival to egress

zero allocations, every CI run (ADR-0038 §16KB-RAM)

terminus

one terminus resolve, which may allocate (ADR-0041)

report-only

vertex

a bare default leaf vertex at rest

bytes +2% · blocks exact

vertex_value

the same leaf plus the increment one small LKV write adds

bytes +2% · blocks exact

vertex_app5

a leaf carrying an owning five-field app descriptor table (ADR-0058)

bytes +2% · blocks exact

vertex_app5_static

the same table installed borrowed, its slots viewing caller flash

bytes +2% · blocks exact

fanout_wide

one publish at a large subscriber count

report-only

reg_escape

a wire-driven /net/<module>/<name> registration on a graph with a memory resource injected — what the resource never saw. Target: zero (ADR-0065), pinned there

zero — any block or byte fails (MEM_ZERO_POINTS)

Every probe reports two independent quantities and both ratchet: bytes=, the live usable-size balance, and allocs=, the number of heap blocks. They ratchet on different terms because they are different kinds of number — bytes carry a 2 % tolerance since an allocator size-class flip is not a regression, block counts carry none.

sourcecross-run series are a TREND instrument — the paired same-runner A/B is the gate

15 family charts · 538 series · x-axis = recorded main commits (oldest → newest) · 🏷 dashed verticals mark release tags (≈ = tag commit itself is not a recorded point; marker sits at the nearest following recorded commit) · 🔧 dotted verticals mark commits where the BENCH changed — points either side of one are not comparable. Each card carries every METRIC that point recorded — p50 / p99 / ns per delivery / throughput — pick one under the title. Families with a numeric parameter axis also offer trend / sweep / heatmap / 3D views — same data, three axes (commit × parameter × value), over a selectable commit range. The paired libtracer-vs-Zenoh cards add a ratio toggle on bench-local: both engines run in the same pass on one pinned CPU, so their per-commit quotient cancels runner speed and is the comparison to read across a long history. The hosted store keeps the best runner per series, so its two arms need not share a pass and its cards carry no ratio. On bench-local, a ▲ / ▼ on a trend line marks a sustained step (the row moved past its own noise threshold and held for 3 points), at the first commit that measured the new level. Also on bench-local, a trend line carries a noise band: over each series' last N recorded points (default 10, picked per card) the p10–p90 is shaded and min/max drawn faint, and the legend and tooltip give the window's coefficient of variation, so a dip can be read against the row's own noise. A series with fewer than N points gets no band. Hover any chart for exact per-commit values.

Note

Allocation churn is not resident footprint, and this page charts both — separately. Resident bytes are what a live object holds; the heap-footprint series are the transient churn of one operation; the timed rows are what it costs to get a block and give it back. Neither number bounds the other: a release can take per-frame allocations to zero and move resident bytes almost not at all. Churn also costs more on the target than these host figures show — glibc’s tcache serves a hot same-size malloc/free in tens of nanoseconds, an MCU allocator in hundreds — so a host reading of churn is a lower bound.

10 · libtracer vs Zenoh — measured, absolute

Both engines on one runner, best of 3 rounds, so the numbers are directly comparable on identical hardware: two in-process comparison axes — subscriber fan-out and payload size — and a network latency comparison over the real loopback kernel path, one socket and one paced value per transport in two processes. The charts plot absolute throughput, latency and bandwidth as series on shared axes; there are no speed-up ratios.

The topic-count pair compares resolution with resolution: libtracer’s row resolves the destination address inside every timed write, and Zenoh’s puts by key, resolving the key expression inside every put. Both engines run their grid in one process, pinned to one logical CPU, Zenoh’s runtime threads included, with equal payload bytes. The bound spelling of the same ladder (topics-bound) and the decomposition that set this pairing are in the methodology below.

Above 256 topics those rows take fewer samples, the same for both engines: 50 000 puts and 10 000 latency samples at 1024 topics, 12 500 puts and 2500 latency samples at 4096. Read the p99 and tail there with that count in mind; the methodology says why.

libtracer is compiled from source at -O3; Zenoh is the upstream prebuilt zenoh-c 1.10.0 release binary that bench/fetch_zenoh.sh downloads, so its optimization profile is upstream’s rather than a flag this repo sets. Both are optimized builds. Which rows do equal work, why there is no network throughput comparison, and which transports are absent and why, are all below — as are the three designated model boundaries, which say what the two engines are respectively buying with the costs these charts show, and the matched topics-bound / topics-addr decomposition of topic count.

A side-by-side against Eclipse Zenoh (zenoh-c, peer mode). Both are measured on the same runner in the same rounds — libtracer compiled from source at -O3, Zenoh as the upstream prebuilt zenoh-c 1.10.0 release binary that bench/fetch_zenoh.sh downloads (we do not build it, so its optimization profile is upstream’s, not ours). The whole grid is swept 3 times and each point keeps its best observation across those rounds (bench/best_of_rounds.py): contamination on a shared runner is one-sided — a busy neighbour can only ever make a round slower — so the best round is the estimator closest to what the code does, while a median would be an estimate of how busy the machine was. Both engines are executed in the same loop the same number of times; giving one arm N tries and the other one shot would be a thumb on the scale rather than a measurement. The tail rows (p999 / max) are deliberately not reduced this way — a minimum p999 would advertise the calmest moment the host ever had as though it were a worst case — so those are left as measured. And the charts plot absolute throughput / latency / bandwidth — both engines as series on shared axes. There are no speed-up ratios: every point is a measured number you can read off directly. Fairness is discussed in its own section below, because a naive put-vs-write comparison would be misleading.

The topic-count rows above 256 topics take fewer samples, the same for both engines (bench::endpoint_budget). Each row is capped at 200 000 operations and then scaled by 256 / topics. So 1024 topics gets 50 000 puts and 10 000 latency samples, and 4096 topics gets 12 500 puts and 2500 latency samples. Zenoh’s put by key resolves against every declared subscription, so a fixed count cost 33 s per row at 4096 topics and most of the sweep’s wall time. Read the p99 and tail of those rows with that sample count in mind.

Designated model boundaries

Three properties of libtracer’s model are designed, not accidental, and each of them carries a cost this page measures. They are listed here so that cost can be read for what it is: the price of a capability that was chosen, not a defect awaiting a fix. Every comparison on this page — the Zenoh chapter above most of all — has to be read against them, because a comparison between two engines that solved different problems is only informative once the problems are named. Nothing below proposes a redesign; where a boundary has a mitigable constant, the mitigation is a measurement, and it is linked.

A boundary earns that name only from a measurement that isolates it, and the section is held to that standard in both directions. A number that moves for some other reason is not evidence for a wall, however convenient the shape of the curve, and a boundary is stated only on the axis its isolating measurement shows it on.

1 · Every distinct address is resident state. A vertex is not a name that a message happens to carry — it is an object that exists between writes. That is what pays for the last-known-value (a reader gets the current value without waiting for the next publish), for await (a readiness sequence has to live somewhere), for composed reads across a subtree, and for the per-vertex ACL. An engine that only routes keeps no such object and so has nothing to scale in the number of addresses.

What residency costs is bytes. That is the axis the trade is paid on, and it is measured rather than derived: the vertex-count decomposition sweep (bench_scale_sweep, bench/run_scale_sweep.sh) reads 132 B of heap and 140 B of RSS per vertex at 10⁶ vertices, converging from above as the upper tree’s fixed cost amortizes, against a computed ~120 B floor — +10 % over the arithmetic. A million addresses is 132 MB of heap and 140 MB of RSS. The O(#addresses) residency is the model and no footprint work turns it into O(1); the constant in front of it is fair game and is actively ratcheted on this page, bytes at +2 % and block counts exactly.

This is also where the boundary actually bites the target the project cares most about. On a wide host 132 MB for a million addresses is unremarkable; on the narrow end — the constrained MCU profile living inside a ~16 KB RAM budget — the per-vertex byte figure is the number that decides how many addresses a node may have at all. Memory, not latency, is the axis on which “every distinct address is resident state” is a real constraint.

Residency is NOT a per-operation LATENCY cost, and the control arm that decides this is unambiguous. Hold one million vertices resident and touch exactly one: a write costs 90 ns — the same 90 ns it costs with a thousand resident. Resolving a single hot address moves 70 → 90 ns across three decades. Descent is population-independent outright (ADR-0057, verified by this sweep): a fixed-shape probe address resolves in 60 ns at 10³ and 60 ns at 10⁶ warm, and 90 ns flat with its lines evicted between samples. Everything that grows, grows with the touched set, not the resident set.

Residency is therefore not a latency wall. It is not free either: the bytes above are the cost, and they are real. A boundary can be genuine on one axis and absent on another, and saying which is which is the whole job of this section.

Topic count is not this boundary’s evidence. The topics-bound / topics-addr pair (bench/run_topics.sh) measures both spellings on both engines over one ladder: 64 B payload, fan-1, deliveries counted at the subscriber, best-of-5-rounds with both arm orders and both engine orders, two independent ladders agreeing to ≤ 2 % on every arm:

p50 / mean ns per operation

1 topic

100 topics

10 000 topics

libtracer topics-bound

110 / 116

110 / 116

110 / 118

Zenoh topics-bound

210 / 214

210 / 215

220 / 232

libtracer topics-addr

140 / 140

170 / 174

190 / 196

Zenoh topics-addr

320 / 332

1 450 / 1 532

221 000 / 226 351

Read bound against bound — the like-for-like pair, and each engine’s own recommended spelling — libtracer moves 116 → 118 ns (+2 %) and Zenoh 214 → 232 ns (+8 %) across four decades of topic count, so the margin widens slightly, 1.84× → 1.97×. Matched, neither engine has a topic-count problem in the bound form.

Read resolve against resolve, the growth is on the other side and it is large. libtracer’s per-operation find() descent moves 140 → 196 ns (+41 %) over the same span. Zenoh’s undeclared Session::put moves 332 ns → 226 µs, and it is a curve, and a linear one. From 100 to 10 000 declared keys the log-log slope is 1.08 — O(N) within the instrument — with a marginal cost of about 12 ns per additional declared key over the first decade and 23 ns over the last two. It is of course reached by a different code path from Publisher::put; that is the arm’s whole purpose. What it is not is an outlier, a congestion effect or a measurement artefact: inside that path the cost is exactly the linear match a declared publisher exists to hoist.

So: both engines are near-flat in the bound spelling and both degrade in the resolve-per-operation spelling — libtracer by 41 % across four decades, Zenoh by a factor of about 680. The mitigation is the same on both sides and both APIs already offer it: bind, or declare, once. There is no axis here on which Zenoh scales better in topic count.

Host, recorded with the numbers: 31 CPUs, no cc1plus alive at any 20-second sample of either ladder, 1-minute load 1.4–3.3 throughout except one ~60–90 s excursion per ladder (peaks 10.4 and 9.4, unattributed, on a shared desktop). Best-of-rounds is the specific mitigation for one-sided contamination, and the two ladders’ ≤ 2 % agreement on every arm is the evidence that it worked here.

Two caveats on that decomposition. Its arms are not gated — their run-to-run stability is unmeasured, and POINTS is a promise about stability.

And the topics-* arms are not on the generated results page. One ladder costs about nine minutes, almost all of it the Zenoh topics-addr rung at 10 000 keys, so wiring it into the documentation job would add roughly twenty minutes to every docs build to re-derive a result whose interesting content is structural. The table above is the output of a hand run. Both default sweeps also emit the pair (family topics), so the trend charts carry it on every recorded commit, one round and one arm order per commit; a verdict on the axis comes from run_topics.sh. The residency decomposition above was taken on a quiet box (1-minute load 0.64–1.15, no cc1plus alive, 31 CPUs, best of 3 rounds with the arm order flipped on alternate rounds, two full ladders agreeing to ~2 % at 10⁶).

2 · Paths are routes, not location-independent names. A path is resolved from the vantage point of the graph doing the resolving; the same value can be reachable by different paths from different places, and a path handed to a peer does not carry a promise that it means the same thing there. This is the boundary that buys composition with no infrastructure: two graphs are joined by mounting one into the other, and the join needs no broker, no registry service, no name authority and no agreement between the parties beyond the mount itself. A location-independent naming scheme would make a path portable across vantage points, and would need exactly the infrastructure that absence is the point of not having. Comparisons that assume a global namespace are comparing against a system that has one.

3 · The producer’s write budget is fixed, fan-out is value-agnostic, and a producer never queues. A write costs what it costs regardless of who is listening: fan-out carries the value without inspecting it, and the depth a consumer wants is the consumer’s own ring on the consumer’s own vertex, charged in bytes to a source that vertex injected (RFC-0025 §4.6.1 Amendment 2). What this buys is the hot write path — the reason a write is a sub-100 ns operation at all, and the reason its cost does not move when a subscriber decides it wants history. What it forecloses is symmetric and worth stating: there is no producer-side buffering to smooth a slow consumer with, no content-dependent routing decision inside the fan-out loop, and no way for a subscriber to make a producer pay for its own depth. The budget is instrumented rather than asserted — the write path’s compiled size is ratcheted symbol by symbol (bench/symbol_ratchet.json), and a change that moves it has to price the move on the bench before the pin is allowed to move with it.


Fairness in the comparison

An honest side-by-side has to account for the two engines doing different amounts of work per operation.

  • Deliveries are counted at the subscriber on both arms. Neither engine’s delivery figure is inferred from publishes x fan-out. Each side’s timed window ends only once every delivery it owes has landed, each reports what its subscribers actually received, and each prints a warning naming any point that came up short. The two engines reach that guarantee differently, and the difference is not a handicap: libtracer dispatches inline, so write() returns only after the last subscriber callback and its publish loop is its delivery loop, while the Zenoh harness spins on the receive counter inside the window until the backlog drains, so a delivery made on a runtime thread is still inside the window. Each Zenoh row is followed by a NOTE zenoh-runtime line with its runtime threads’ CPU time over the window: on the in-process rows it is 0 ns, so intra-session delivery happens on the putting thread there, as libtracer’s does. This matters because the arithmetic form would not merely be imprecise, it would be unfalsifiable: libtracer’s wide-fan-out snapshot truncates to its inline prefix when its overflow reserve fails, and its HANDLER and STREAM legs shed an entire fan-out on a clone or ring-append failure — in every one of those cases write() still returns success, so a publishes x fan-out figure would report deliveries that never happened and nothing in the harness would contradict it.

    The libtracer-only rows — the inproc-target-* pair and inproc-remote, which have no Zenoh row beside them — are counted on the same terms. inproc-target-handler and inproc-remote count at their consumer like every other row. inproc-target-stored has no consumer to count at — its delivery terminates in the target’s last-known-value, and hanging a counting subscriber off each target to see it would add an edge per target to the topology being timed — so that one subtracts graph_t::delivery_drops() from the ceiling instead. That is a measurement rather than a restatement of the arithmetic because RFC-0025 §4.4 forbids an unaccounted shed: every leg that drops one of those deliveries counts it.

  • Write does strictly more than put. libtracer’s write row also persists the value (it becomes the vertex’s last-known-value) and bumps the await / readiness sequence on every op. Zenoh’s put is transient delivery only. So the libtracer write row is charted against a Zenoh row that does less semantic work — the inproc-deliver (propagate) series is the apples-to-apples counterpart: value stored once, each op only delivers, matching put semantics. Both libtracer series are shown so the reader sees the full-work and the like-for-like number side by side.

  • The topic-count rows must agree on how the destination is spelled. libtracer’s inproc-path row writes by address, so a registry resolution sits inside every timed iteration; a Zenoh row that published through a declared Publisher — the bound form, which resolves nothing per put — would put a resolution term inside one arm and nowhere in the other, and any narrowing of the margin along that ladder could not be attributed to either engine’s topic scaling. The topics-bound / topics-addr pair (bench/run_topics.sh) measures both spellings on both engines over the same ladder — pre-bound handle / declared publisher, and destination resolved inside the operation — so the resolution term is visible as its own difference instead of hidden inside one arm. What is compared is per-operation resolution: the path_t on one side and the KeyExpr on the other are both pre-built, because charging one engine for a string parse the other hoisted is the same mistake in the other direction. The two-sided result is in Designated model boundaries below; the short form is that bound against bound both engines are near-flat.

  • Each compared row is matched on four conditions, and every libtracer-vs-Zenoh chart restates them:

    • One fresh process per engine and family. Both harnesses run their default sweep as families, each in a new child process with pinned allocator tunables, and the Zenoh family opens its own session. No row inherits a heap or a session that an earlier family aged.

    • The same pin, runtime threads included. Both binaries run under one CPU set, which Zenoh’s runtime threads share with the putting thread, and their CPU time is printed per row (above).

    • Equal payload bytes. A libtracer write moves the value plus its 4-byte VALUE TLV header (6 bytes from 64 KiB), so a Zenoh put carries the same count. Rows stay keyed by the value’s size.

    • Resolution against resolution. Zenoh’s inproc-path row puts by key, resolved on every put, as libtracer’s writes by path; the bound pair is topics-bound, which both default sweeps emit, so the topic-count charts below pair each spelling with its own.

    • The published grid too. The charts in chapter 4 come from each engine’s grid mode, not from the families. Each engine runs its grid in one process under the same allocator tunables, so the shapes match. Both binaries narrow grid, topics and topics-rev to one logical CPU, as a single-threaded family does, and Zenoh’s session starts after the pin, so its runtime threads inherit it. Zenoh’s grid inproc-path rows put by key, resolved on every put, so the topic-count charts draw both engines, resolution against resolution.

  • ACL is disabled in the comparison rows. No subject resolver is installed, so the access gate is a single null check. The cost of enforcement is measured separately (the acl-inherit rows), never hidden inside the comparison.

  • No network throughput comparison is published. A valid one needs a real subscriber in a second process on both sides, with deliveries counted at the receiver rather than sends counted at the publisher — an engine whose publisher has no peer emits nothing to the wire at all, and a per-send rate multiplied by a composition width is arithmetic, not a measurement. That bench exists (bench/run_compose.sh): two processes per engine over real loopback UDP, the composition width K swept on both sides, and every rate taken from the subscriber’s own count over the subscriber’s own clock. It carries two guards, and reports nothing unless both hold — the receiver emits no row at all when it observed no values, any malformed record, or fewer throughput datagrams than the sample floor the driver hands it, and a wire-use audit runs the publisher under strace and fails the point below a send-syscall floor (COMPOSE_SEND_FLOOR, default 50), so an engine that has only emitted scouting beacons reports no rate. What is absent is the chart: publishing this comparison is a claim, so it is a separate, reviewed step, and until it is taken the chapter states the gap rather than showing a number.

  • Network latency is the surviving network comparison, and it is fair: a single-value, two-process, same-clock measurement over the real loopback kernel path, identical topology for both engines. p50, the p99 tail and the p999 deep tail are charted per transport — for a latency-first substrate the tail is the load-bearing number, and it is where transports separate, since an unreliable datagram path can win the median and still spike at p99.

  • The p999 has to earn its own publication. It is the cost of one message in a thousand — on a control path, the size of the deadline it misses — and it is the one figure on this page whose publication is gated rather than only its value. A p999 read off n samples is the order statistic at floor(0.999·n), so only n − 1 − floor(0.999·n) samples lie above it: three at n = 4 000, and none at all at n ≤ 1 000, where “p999” is the maximum wearing a percentile’s name. The accumulator records n beside every percentile and flags whether it clears its own adequacy floor; below the floor the number is withheld, and the shortfall is named in the transport-coverage note instead of being drawn as a line that moves for reasons the code never touched. The sample count, the number of samples above the p999, and the worst single message of the pass are printed under the charts, computed from the same rows that drew them.

A transport that is not charted always says so in the transport-coverage note under the charts, including when neither engine produced rows for it. WebSocket and QUIC are the standing cases: the WebSocket transport shows order-of-magnitude single-run p50 jitter under this bench that would make a published chart misleading, and QUIC needs the optional TLS module. An absent transport must never be readable as a tie.


Measured on the same runner in the same rounds — the whole grid swept 3 times with each point keeping its best observation, both engines in the same loop — so this is like-for-like on identical hardware. libtracer is compiled from source at -O3 here; Zenoh is the upstream zenoh-c 1.10.0 prebuilt release binary (bench/fetch_zenoh.sh downloads it — we do not build it, so its optimization profile is upstream's, not a flag we set). Both are optimized builds. Absolute values on absolute axes — no ratios, and every "reading" under a chart is computed from that chart's own endpoints at render time. Read trends and orders of magnitude, not the third digit; shared-runner variance is real. x-axis = the swept parameter (these are the only charts on the page whose x-axis is not a commit).

The in-process sweeps carry a history picker over the bench-local store: each banked commit is one pass on one pinned CPU with both engines in it, so a picked point is as like-for-like as this build's own pass. It opens on the latest banked commit; 🏷 marks a release tag; compare overlays a second pick, dashed, on the same axes. this build is the pass described above. The network charts are this build's pass only: the store banks no transport rows.

Transport coverage
  • WS: not charted — libtracer's WebSocket transport shows large single-run p50 latency spikes (held until understood), and Zenoh has no WebSocket transport to compare against.
  • QUIC: not charted — needs the optional LIBTRACER_WITH_QUIC module (msquic + TLS), gated like the dedicated quic CI job.
What one tail point is worth

Each percentile here comes from 10,000 / 20,000 paced one-way probes at that payload, so at least 9 samples sit above the p999 and the worst single message of the whole pass was 5.5 ms. Across the charted points the p999 runs 4×–32× the p50 of the same point. Every charted point clears the accumulator's adequacy floor.

These are published, not gated. A two-process loopback tail is dominated by scheduler wake-up, not by either engine's code path, and it is unstable run-to-run by far more than the gate thresholds — measured, and quoted, in the noise chapter above. Read the deep tail as the jitter floor a real-time consumer on this topology inherits, and read engine-vs-engine on the p50 and p99 charts, which are stable enough to carry a comparison.

**🤖 CI-generated** on 2026-11-25 18:47 UTC · commit [`c8d67bc`](https://github.com/avatarsd-llc/libtracer/commit/c8d67bc8c0e9bfd8296f18c4bf50e91cb62964a0) · [run 45676643451](https://github.com/avatarsd-llc/libtracer/actions/runs/45676643451) · runner `Linux`.

11 · Cross-core codec performance (decode→encode roundtrip, same v1 vectors)

How this surface is measured

Each native core runs the same per-vector decode→encode roundtrip over the shared v1 vectors, reported as the median across all vectors (one decode + one encode = one roundtrip). Because the input is identical for all cores, this is a genuine like-for-like codec comparison across implementations; a core whose toolchain is absent in a given build degrades to a note rather than failing the docs build.


harness

what it does

reports

bench_codec

Decodes and re-encodes every shared v1 conformance vector through the C++ core — the lang axis of the cross-core codec surface, run identically by the TypeScript and Rust cores over the same inputs.

ns per roundtrip · roundtrips/s

core

throughput (median)

p50 latency (median)

mean (median)

cpp-core

4.2 M roundtrips/s

250 ns

255 ns

ts-core

0.5 M roundtrips/s

1790 ns

1986 ns

rust-core

3.6 M roundtrips/s

290 ns

301 ns

12 · Test rollup (live ctest, unified with the perf surface)

suites

passing

wall time

verdict

339

339/339

101.84s

✅ all green

By area: Codec (L2/L3) 19/19 · Examples 68/68 · Graph (L4) 26/26 · Net (FWD plane) 22/22 · Substrate (L0/L1) 15/15 · Transport 9/9 · other 180/180. Full per-suite detail: Test report.

13 · Reproducing this page locally

The gates are same-runner by construction, so a local reading only means something against another local reading taken the same way:

# Build the bench Release (-O3) — same flags CI uses.
cmake -S bench -B bench/build -DCMAKE_BUILD_TYPE=Release
cmake --build bench/build -j

# Pin to a core, take the best of several runs, compare only same-machine numbers.
# The single-threaded families on one CPU, the multi-threaded ones on their own set: they
# size their thread count from the affinity mask, so on CPU 2 alone they run T=1 only.
taskset -c 2 ./bench/build/bench_libtracer --family-set single   # the sweep matrix
taskset -c 2-5 ./bench/build/bench_libtracer --family-set multi  # the n-cores rows (T = 1, 2, 4)
taskset -c 2 ./bench/build/bench_forward_heap        # the allocation probes (zero-alloc gate)

# The network plane (§3b). Each takes a per-point wall-clock budget via
# LIBTRACER_BENCH_SECONDS; longer means tighter percentiles, never a different measurement.
taskset -c 2 ./bench/build/bench_forward_demux       # forward hop vs registry size
taskset -c 2 ./bench/build/bench_terminus_tier       # terminus: eager arena vs lazy rope reader
taskset -c 2 ./bench/build/bench_chain_delivery      # steady-state stream delivery, PAIR chain

# The comparison surface needs Zenoh vendored first:
bench/fetch_zenoh.sh && cmake --build bench/build -j

Compare a change against its own baseline on the same machine in the same session (git stash, rebuild, re-run) — never against a number from a different host or a different day, and never with one arm pinned differently from the other. The full two-arm protocol, and the measurements behind each of its rules, is above under The A/B protocol, in Reading the numbers. The single-CPU taskset -c 2 in the commands above is part of the measurement, not decoration: this host is heterogeneous and an unpinned arm can land on a core class 50 % slower than its partner’s.


14 · Raw data & provenance

The charts above are one view of the two persisted stores this section describes — the selector at the head of each chart block says which one you are reading. Every push to main runs the full bench on three independently-drawn runners, archives all raw transcripts as a per-commit CI artifact (bench-results-<sha>, on the perf workflow run), and records every (mode, size, fanout, endpoints) point — latency, throughput and memory footprint as separate series — to a build-to-build history on the machine-maintained gh-pages branch (benchmark-action/github-action-benchmark). Per point the recorded values are the best runner’s whole tuple (its p50, p99 and throughput together, never a per-metric minimum across runners), which approximates the code’s capability rather than the machine lottery.

The store carries roughly three times as many series as this page charts — every recorded point, including the ones no family groups. Open the raw per-series trend browser ↗ — one chart per series, zoomable, with per-point commit links. It is the archive; the families above are the reading.

A second, parallel store records the same transcript set from a fixed self-hosted machine (perf-local workflow), pinned to one logical CPU — the bench-local trend browser ↗. Every family chart above draws one store at a time, chosen by the source selector at the head of each chart block (bench-local by default); switching redraws every chart on the page from the other store and the choice is remembered. Both raw browsers are stock benchmark-action pages with no selector of their own, so the deploy overlays a three-way nav banner on the mirrored copies — each one names the other store and links back here — rather than leaving a reader there believing the site has a single store. A family the selected store has not recorded says so rather than drawing an empty axis. The two stores answer different questions and are never mixed. bench-local is the trend instrument, and the page opens on it: same silicon every point, and both arms of each paired point come from the same pass. GitHub-hosted points swing by up to about 50% between consecutive commits — bimodally, which looks like two runner machine types — so a 2× step in one row disappears there: the 1 KiB LKV heap regression of 2026-10-01 reads 27 → 54 ns on bench-local and is invisible on the hosted store. The hosted store therefore reads as a portability envelope (best-across-three-runners per series): what the code does on whatever machine a stranger rents. bench-local records host characteristics on every point (each point’s tooltip carries the host descriptor and, beside it, the measurement conditions the point was taken under — the bench CPU’s foreign time, CPU pressure and context switches, with a CONTAMINATED flag on a sample that stayed contended; host.txt next to the store holds the full lscpu capture). A flagged sample is not dropped from the charts: the rows that failed their own A/A check or sit outside their own neighbours’ spread (all of them when more than half do) stay off the line and are drawn as dashed hollow rings at their measured value, named suspect in the tooltip; gating keeps the whole-sample verdict. The bench-local trend axis has one slot per main commit. A commit that changed no bench input (nothing under core/ or bench/ but Markdown) built the same binaries as the commit before it, so it carries that commit’s point forward as a faint dot on the line, its tooltip saying no code change, same as <sha>. A commit whose code changed and that has no point is drawn as a hollow ring on a dashed bridge, with the reason (not measured, or its run still pending) in its tooltip, so a gap reads as missing rather than as noise (#1890). A two-point regression verdict is only ever read from the bench-local store or from a same-host interleaved A/B, never from the hosted one.

Provenance & auditability

Because the Performance page is regenerated on every docs build, each render carries a CI stamp — date, commit, run, and runner OS — so any published figure is auditable back to the exact deploy that produced it. Every main push additionally archives all raw benchmark transcripts as a per-commit CI artifact and records every (mode, size, fan-out, endpoints) point — latency, throughput, and memory — into a persisted build-to-build history on the machine-maintained gh-pages branch. The numbers on the Performance page are one run; that history is the durable signal, and it is what the trend charts and the soft alert read from.

The history is two stores. bench-local (dev/bench-local/data.js, one pinned self-hosted CPU) is the trend instrument, and the trend charts open on it: every point is the same silicon, and both arms of each libtracer-vs-Zenoh point come from the same pass, so the zenoh ÷ libtracer ratio is computed there and only there. The ratchet store (dev/bench/data.js) kept the best of three GitHub-hosted runners per series until #2433; their consecutive points swing by up to about 50%, bimodally, so a 2× step in one row is lost in them. Since #2433 a push records one repeat on the pinned bench host (the nightly three-replica run reports verdicts and records no point). The series therefore shows a level shift at the commit that moved it; read across that commit as two series, not as a change in the code. It stays one selector away, with no ratio view, because its hosted points’ two arms need not come from the same runner.