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 |
|
§6 |
any DISAGREE fails CI |
In-process timing |
per-operation latency and throughput in one process |
|
§7, §8, §9, on demand |
gated per PR and per |
Framed-hop timing |
what one wire frame costs, before and after the payload |
|
§8, on demand |
batch-amortized against the host clock, self-calibrating |
Allocation counting |
exact allocations and bytes around ONE operation — counted, never timed |
|
§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 |
|
§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 |
|
§10 |
same runner, best of 3 rounds — no ratios |
Cross-core codec |
decode→encode roundtrip per implementation |
|
§11 |
the same v1 vectors for every core |
Concurrency & scaling |
how one shared object behaves as threads are added |
|
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 |
|
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
sourceselector 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 pinnedplus 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, |
lower better |
gated ✅ per-PR + push |
throughput |
deliveries/s, publishes/s |
ops / elapsed, |
higher better |
gated ✅ per-PR + push |
alloc bytes |
bytes & count per op |
counting allocator, |
lower better |
forward hop gated ✅ = 0; other probes tracked |
memory footprint |
live bytes / vertex, edge, link; RSS delta per family |
|
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 ( |
every PR |
PR build vs |
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 |
HEAD vs the last benched |
same as above |
advisory — each replica reports (see the tier note below) |
forward-hop zero-alloc gate |
every CI run |
absolute |
|
fails the build |
soft trend alert |
per |
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.pyand 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 (thenonvoluntary_ctxt_switchescounter), and CPU pressure over the execution itself (the growth of the PSIsome total=stall counter between start and end, as a share of the wall time — notavg10, 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’scpu.pressure(/sys/fs/cgroup/bench.slice/cpu.pressure): the bench CPUs are that slice’s alone, so host-wide/proc/pressure/cpusays 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, orBENCH_SLICEset) but itscpu.pressurecannot be read, the execution is contended: the guard fails closed. Only a run where none is expected (unpinned, withBENCH_SLICEunset, 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 printPERF: INCONCLUSIVEinstead 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 theCONTAMINATEDflag: 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_demuxbinary before and after the measured run, about 45 one-second rows (throughput and p50 per point). The whole sample is flaggedCONTAMINATEDwhen the p75 row disagrees by more than 6 % or any single row by more than 15 % (AA_RUN_P75_BANDandAA_RUN_ROW_CAPinhost_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 (
inprocandinproc-borrowshare 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-batchtwins and theeptype-*sweep’s two lean arms are measured and charted but ungated. A pullback confined to those ships without the gate objecting. They areperf_gate.py’sPOINTS, named here in full because this page is hand-written and a bare count says nothing about what is covered; each is keyedmode/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; andlkv-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 payloadmemcpy), 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; andinproc-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 wireSUBSCRIBERactually 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) andpoolalloc-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/1andfwd-demux-value/16384/1/1(the forward hop keyed by its VALUE payload rather than its frame size); and eight store-latency rows frombench_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/1andstore-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 ofrope_t::materialize, which every path that flattens a rope takes — branch and field writes,op_resolvereads, 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 ofRESULTrows 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. Eachlkv-*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_heapchecks 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 withLKV_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 thelkv-store-pool/64/1/1row above.The timed pool/heap ratio (
lkv-alloc-pooloverlkv-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.pypins 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 onvertex_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-functionssettings) measured this row as the most layout-stable point of the whole sweep, 0.62% across placements against ~15% forfold-b4, so the false-red risk from code placement is near zero here. Both legs are gated becausestoredcarries the same shape ashandler, and it reads reliably becausehost_guard.pyrejects contaminated windows. Like thelkv-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 bluntsfold-b4.eptype-stream/64/1/1is on the list too, and the reason it is gated while its two siblings are not is the whole point of adding it.eptype-leanandeptype-lean-cachedare theinprocandinproc-borrowcode paths re-emitted under an endpoint-type name — already gated, twice over, so gating them again would buy correlated evidence rather than coverage.eptype-streamis 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 theSTREAMrole’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-streamandeptype-leanare 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 zerotry_alloccalls 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 andtry_allocfires 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 arechain-forward/64/1/1andchain-terminus/64/1/1— a stream delivery’s forward hop and its terminus over the PAIR chain, frombench_chain_delivery; andfwd-demux-fixed/61/1/1andfwd-demux-scan/61/64/64— the fixed-slot and scanning arms of the FWD demux, frombench_forward_demux; plus the two 16 KiB ladder rows from those binaries, named above; and the eight store-latency rows frombench_store_sweep, also named above. EachPOINTSentry names the binary that produces it. The chain and demux binaries emit the same 12-columnRESULTformat;bench_store_sweep’sRESULT_STORE_LATrow is folded into that shape by the gate. This costs three extra processes per arm per pair.The points are
modevalues of the benches described above, and the numbers are theirsize/fan-out/endpointcolumns. 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 ofBENCH_CPU, orBENCH_CPU_SINGLE; unpinned, the lowest CPU of its mask, which the family picks itself); a multi-threaded family runs on the wholeBENCH_CPUset 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’smainrebuilt 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’sBENCH_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 failedinproc/64/1024at 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: noCMakeLists.txtcarries it, the shipped and default builds never see it, andperf-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.pychecks that every timed arm inperf.ymltakes 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 bybench/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 saysflat. 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.sliceCPUs 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 bankrefuses 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=64build 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.shis that procedure on the bench host: it waits until no perf run is queued or running before each stop (or, withDRAIN=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-latgraph-write ~75 or ~120 ns,lkv-store16 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 asfast 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=64build ranlkv-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 sayscap. 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, botheptype-streamrows, all threefwd-demux-*rows, bothinproc-borrowrows,inproc-mt4,inproc-path/64/1/8192,inproc/16384,lkv-alloc-heap/1024,mixed,poolalloc-mt4, and thestore-latfull, net-fwd and narrow graph-read rows.fold-b4/512/1/1is tightened on p50 only (x1.113). Thechain-*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. Thecliff-alloc-heapandlkv-alloc-heaprows 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-heapandlkv-alloc-heaptime 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_heapcounts the user-mode instructions of one heap-backend alloc/free pair at every cliff-ladder size (RESULT instr, fromperf_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 rowslkv-store-heap/64,lkv-store-heap/1024andlkv-store-pool/64take the same mechanism: on time, unchanged source false-fails 7-24 of 216 replay sessions each.bench_forward_heapcounts the instructions of one two-linkrope_t::materialize(backend alloc, payload copy, free) asRESULT 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, whereperf.ymlsetsPERF_GATE_REQUIRE_INSTR=1and 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 onlkv-store-heap/64,lkv-store-heap/1024andlkv-store-pool/64(table below). The payload copy ismemcpy, 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 eachlkvrow 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/1024x1.18 / x1.20 / x1.20
x1.20
x1.35
lkv-store-heap/64x1.08 / x1.09 / x1.10
x1.11
x1.25
lkv-store-heap/1024x1.16 / x1.19 / x1.35
below x1.05
x1.5
lkv-store-pool/64x1.18 / x1.19 / x1.15
x1.29
x1.45
lkv-store-heap/1024is 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-heaprows 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). Onecliff-alloc-heapbinary 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.pypins 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: sinceperf.ymlruns 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:38Zlists 156 runs (122 success, 9 failure, 21 cancelled, 4 in progress). None of the 9 failures has acliff-alloc-heapeffect, 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 fourlkv-*rows,eptype-stream, bothchain-*arms andfwd-demux-value, and the pooled-backendinproc-pool,inproc-pool-borrowandinproc-pool-batchrows. 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 thechain-*andfwd-demux-valueladder 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 theinproc-pool*or network ones.The allocator-cliff family.
cliff-alloc-heapandcliff-alloc-pooltime 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; forcliff-alloc-heapthat 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_heapcounts what one heap segment asks the allocator for at every ladder size (draws, total bytes, largest block), which ismem_heap_request_size_testpromoted 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’sMEM_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; andreg_escape— the global-heap blocks a runtime registration takes that the graph’s injectedmemory_resourcenever 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 explicitSKIP— 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,linkandvertex_value_1k(perf_gate.py’sRAM_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. Theseamclassrows 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’sMEM_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 frommain, so once the step lands there the delta is zero, the charge prints asUNSPENT, 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
maincommit, 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 failmain, 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 |
|---|---|---|---|
|
20.3 KiB → 8.3 KiB (-59%, better) |
||
|
542 bytes → 238 bytes (-56%, better) |
||
|
542 bytes → 238 bytes (-56%, better) |
||
|
542 bytes → 238 bytes (-56%, better) |
||
|
542 bytes → 238 bytes (-56%, better) |
||
|
542 bytes → 238 bytes (-56%, better) |
||
|
542 bytes → 238 bytes (-56%, better) |
||
|
121.7 µs → 56.2 µs (-54%, better) |
||
|
121.5 µs → 56.1 µs (-54%, better) |
||
|
15.1 ns → 7.0 ns (-54%, better) |
||
|
66.2 M/s → 143.1 M/s (+116%, better) |
||
|
121.0 µs → 56.1 µs (-54%, better) |
||
|
15.0 ns → 7.0 ns (-53%, better) |
||
|
66.8 M/s → 143.4 M/s (+115%, better) |
||
|
143.2 µs → 76.5 µs (-47%, better) |
||
|
143.0 µs → 76.7 µs (-46%, better) |
||
|
5 blocks → 3 blocks (-40%, better) |
||
|
5 blocks → 3 blocks (-40%, better) |
||
|
5 blocks → 3 blocks (-40%, better) |
||
|
5 blocks → 3 blocks (-40%, better) |
||
|
5 blocks → 3 blocks (-40%, better) |
||
|
5 blocks → 3 blocks (-40%, better) |
||
|
120 bytes → 80.4 bytes (-33%, better) |
||
|
17.8 µs → 26.1 µs (+47%, worse) |
||
|
9392 KB → 6876 KB (-27%, better) |
||
|
8004 KB → 5972 KB (-25%, better) |
||
|
238 bytes → 318 bytes (+34%, worse) |
||
|
238 bytes → 318 bytes (+34%, worse) |
||
|
238 bytes → 318 bytes (+34%, worse) |
||
|
238 bytes → 318 bytes (+34%, worse) |
||
|
238 bytes → 318 bytes (+34%, worse) |
||
|
238 bytes → 318 bytes (+34%, worse) |
||
|
3 blocks → 4 blocks (+33%, worse) |
||
|
3 blocks → 4 blocks (+33%, worse) |
||
|
3 blocks → 4 blocks (+33%, worse) |
||
|
3 blocks → 4 blocks (+33%, worse) |
||
|
3 blocks → 4 blocks (+33%, worse) |
||
|
3 blocks → 4 blocks (+33%, worse) |
||
|
10.2 ns → 8.0 ns (-21%, better) |
||
|
9.4 ns → 7.6 ns (-19%, better) |
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 |
|---|---|---|---|---|---|---|
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
udp-relay-tcp-srv @64 |
WIDE |
measured |
1.06× (68 B) |
1.00× (64 B) |
#2171 (first pin) |
1.06× (68 B) at |
udp-relay-tcp-srv @1024 |
WIDE |
measured |
1.00× (1028 B) |
1.00× (1024 B) |
#2171 (first pin) |
1.00× (1028 B) at |
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 |
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 |
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 |
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 |
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 |
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 |
udp-relay-ws-srv @64 |
WIDE |
measured |
1.06× (68 B) |
1.00× (64 B) |
#2171 (first pin) |
1.06× (68 B) at |
udp-relay-ws-srv @1024 |
WIDE |
measured |
1.00× (1028 B) |
1.00× (1024 B) |
#2171 (first pin) |
1.00× (1028 B) at |
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 |
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 |
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 |
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 |
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 |
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 |
udp-relay-udp @64 |
WIDE |
measured |
1.06× (68 B) |
1.00× (64 B) |
#2171 (first pin) |
1.06× (68 B) at |
udp-relay-udp @1024 |
WIDE |
measured |
1.00× (1028 B) |
1.00× (1024 B) |
#2171 (first pin) |
1.00× (1028 B) at |
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 |
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 |
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) |
— |
Syscalls per relayed frame (libc wrappers, node B’s link threads; futex not counted)¶
Unit: calls. Pins: bench/ledger/syscalls.json. Counts: Every call node B’s link threads make to the libc wrappers bench_peer_counts interposes: socket I/O (read, write, readv, writev, recv, recvfrom, recvmsg, recvmmsg, send, sendto, sendmsg, sendmmsg), waiting (poll, ppoll, select, pselect, epoll_wait, epoll_pwait, epoll_pwait2, epoll_ctl, eventfd_read, eventfd_write), connection setup and teardown (accept, accept4, connect, shutdown, close, setsockopt, getsockopt) and yielding or sleeping (sched_yield, nanosleep, clock_nanosleep). Not counted: futex, which glibc issues inline from pthread, where no wrapper sees it, and which an unprivileged process cannot count from the kernel (perf_event_paranoid 2). Widening the set from send/recv/poll to this one (#2171) moved no pinned row. Goals: #2136 states no syscall figure for WIDE, so those rows hold (no rise). MID: one doorbell per burst instead of one control message per frame per peer.
Row |
Target |
Source |
Current |
Goal (#2136) |
Moved by |
Banked on |
|---|---|---|---|---|---|---|
tcp-relay-srv @64 |
WIDE |
measured |
3 |
hold |
#2137 (seeded from the peer-cost study) |
3 at |
tcp-relay-srv @1024 |
WIDE |
measured |
3 |
hold |
#2137 (seeded from the peer-cost study) |
3 at |
tcp-relay-srv @4096 |
WIDE |
measured |
4 |
hold |
#2141 (TCP server and self-healing links on frame ingress: header and body in one recvmsg, the body drawn at its exact size) |
4 at |
tcp-relay-srv @16384 |
WIDE |
measured |
4 |
hold |
#2141 (TCP server and self-healing links on frame ingress: header and body in one recvmsg, the body drawn at its exact size) |
4 at |
tcp-relay-cli @64 |
WIDE |
measured |
3 |
hold |
#2137 (seeded from the peer-cost study) |
3 at |
tcp-relay-cli @1024 |
WIDE |
measured |
3 |
hold |
#2137 (seeded from the peer-cost study) |
3 at |
tcp-relay-cli @4096 |
WIDE |
measured |
4 |
hold |
#2141 (TCP server and self-healing links on frame ingress: header and body in one recvmsg, the body drawn at its exact size) |
4 at |
tcp-relay-cli @16384 |
WIDE |
measured |
4 |
hold |
#2141 (TCP server and self-healing links on frame ingress: header and body in one recvmsg, the body drawn at its exact size) |
4 at |
ws-relay-srv @64 |
WIDE |
measured |
3 |
hold |
#2137 (seeded from the peer-cost study) |
3 at |
ws-relay-srv @1024 |
WIDE |
measured |
3 |
hold |
#2137 (seeded from the peer-cost study) |
3 at |
ws-relay-srv @4096 |
WIDE |
measured |
4 |
hold |
#2140 (WS server frame ingress: stack read-ahead between frames, larger bodies into an exact-size segment) |
4 at |
ws-relay-srv @16384 |
WIDE |
measured |
4 |
hold |
#2140 (WS server frame ingress: stack read-ahead between frames, larger bodies into an exact-size segment) |
4 at |
ws-relay-cli @64 |
WIDE |
measured |
3 |
hold |
#2137 (seeded from the peer-cost study) |
3 at |
ws-relay-cli @1024 |
WIDE |
measured |
3 |
hold |
#2137 (seeded from the peer-cost study) |
3 at |
ws-relay-cli @4096 |
WIDE |
measured |
4 |
hold |
#2140 (WS server frame ingress: stack read-ahead between frames, larger bodies into an exact-size segment) |
4 at |
ws-relay-cli @16384 |
WIDE |
measured |
4 |
hold |
#2140 (WS server frame ingress: stack read-ahead between frames, larger bodies into an exact-size segment) |
4 at |
httpd-ws rx frame |
MID |
static count |
4 |
hold |
#2137 (seeded from the peer-cost study) |
— |
httpd-ws queued send, per peer |
MID |
static count |
4 |
2 |
#2137 (seeded from the peer-cost study) |
— |
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 |
|---|---|---|---|---|---|---|
tcp-relay-srv @64 |
WIDE |
measured |
1 |
hold |
#2137 (seeded from the peer-cost study) |
1 at |
tcp-relay-srv @1024 |
WIDE |
measured |
1 |
hold |
#2137 (seeded from the peer-cost study) |
1 at |
tcp-relay-srv @4096 |
WIDE |
measured |
1 |
hold |
#2137 (seeded from the peer-cost study) |
1 at |
tcp-relay-srv @16384 |
WIDE |
measured |
0.99 |
hold |
#2137 (seeded from the peer-cost study) |
1 at |
tcp-relay-cli @64 |
WIDE |
measured |
0.97 |
hold |
#2137 (seeded from the peer-cost study) |
1 at |
tcp-relay-cli @1024 |
WIDE |
measured |
0.99 |
hold |
#2137 (seeded from the peer-cost study) |
1 at |
tcp-relay-cli @4096 |
WIDE |
measured |
0.99 |
hold |
#2137 (seeded from the peer-cost study) |
1 at |
tcp-relay-cli @16384 |
WIDE |
measured |
1 |
hold |
#2137 (seeded from the peer-cost study) |
1 at |
ws-relay-srv @64 |
WIDE |
measured |
1 |
hold |
#2137 (seeded from the peer-cost study) |
1 at |
ws-relay-srv @1024 |
WIDE |
measured |
1 |
hold |
#2137 (seeded from the peer-cost study) |
1 at |
ws-relay-srv @4096 |
WIDE |
measured |
0.99 |
hold |
#2137 (seeded from the peer-cost study) |
1 at |
ws-relay-srv @16384 |
WIDE |
measured |
1 |
hold |
#2137 (seeded from the peer-cost study) |
1 at |
ws-relay-cli @64 |
WIDE |
measured |
1 |
hold |
#2137 (seeded from the peer-cost study) |
1 at |
ws-relay-cli @1024 |
WIDE |
measured |
1 |
hold |
#2137 (seeded from the peer-cost study) |
1 at |
ws-relay-cli @4096 |
WIDE |
measured |
1 |
hold |
#2137 (seeded from the peer-cost study) |
1 at |
ws-relay-cli @16384 |
WIDE |
measured |
1 |
hold |
#2137 (seeded from the peer-cost study) |
1 at |
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 |
|---|---|---|---|---|---|---|
tcp-server per peer |
WIDE |
measured ( |
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 ( |
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 ( |
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 ( |
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 ( |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
|---|---|---|---|---|---|---|
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 |
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 |
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 |
esp_ws_client link |
MID |
static count |
5 |
0 |
#2137 (seeded from the peer-cost study) |
— |
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
nchanged):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/deliveryso a slowdown always charts as a rise; memory metrics live in that same smaller-is-better suite. The throughput suite is bigger-is-better naturaldeliveries/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 undercore/**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 putfwd-rope-hopat −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.pycompares each banked point with the best of the last 20 trusted points, which is the comparison benchmark-action’s point-to-pointalert-thresholdcannot 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 behindmain, 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 onmainbanks nothing, stalls the store only a few commits behind, inside the bound, and would otherwise leave the nightly green over a redmain.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/1epp50 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 waitbefore the run and/proc/loadavgeither 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’scalibrate_batch_for_windowdoubles 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:
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.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.
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.
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.When the expected effect is smaller than the leg’s own noise floor, do not reach for a stopwatch at all — use object-file
cmpagainst 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 |
|---|---|---|---|
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 |
ns p50 / p99 / mean · deliveries/s |
§7, §8, §9, watched |
|
Drives one FWD forward hop through the inbound link’s own receiver against a registry of N links, with the target child registered first ( |
ns p50, batch-amortized |
§8, watched |
|
Drives the Nth |
ns p50 · allocations per frame · RSS |
§8, watched |
|
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 |
|
Decodes and re-encodes every shared v1 conformance vector through the C++ core — the |
ns per roundtrip · roundtrips/s |
§11 |
|
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 |
|
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 |
|
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 |
|
libtracer’s composition-throughput arm: a publisher process ships a K-link rope as one |
values/s and messages/s observed · values per message · ns one-way per K-value group |
neither — on demand only |
|
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 |
|
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 |
|
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 |
|
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 |
|
Switches a subscription selector between two options at fan-out 1, 32 and 1024, through the host API and through the |
ns per switch · ns per write · deliveries/s |
neither — on demand only |
|
Times a write through an |
ns/op · ns p50 / p99 · churn bytes |
neither — on demand only |
|
Retires and revives one vertex with no |
cycles/s per window · last/first |
neither — on demand only |
|
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 |
|
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 |
|
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 |
|
Assembles the real transports’ |
allocations · bytes, per span count |
neither — on demand only |
|
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 |
|
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 |
|
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 |
|
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 |
|
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 |
|
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 |
|
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 |
|
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 |
|
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 |
ns per store · pins and copies per cell |
neither — on demand only |
|
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, |
ns per operation, by leg · bytes per vertex |
neither — on demand only |
|
Prices the per-link departure index ( |
ns per index operation · bytes at rest per link |
neither — on demand only |
|
Drives the PRODUCER fan-out leg: one write to a vertex with N remote subscribers, which runs |
ns per write, median with range · deliveries and resolutions per write |
neither — on demand only |
|
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 |
|
Prices |
ns per delivery, p50 · canonical resolutions per delivery |
neither — on demand only |
|
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 |
|
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 |
|
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 |
vertices per bucket |
neither — on demand only |
|
Separates the single poll thread’s three costs by moving one axis at a time: an |
frames/s + ns p50 / p99, per peer count |
neither — on demand only |
|
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 |
|
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 |
|
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 |
|
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 |
|
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 |
|
One writer storms writes at a hot vertex while W threads each loop on |
writes/s · wakeups/s |
neither — on demand only |
|
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 |
frames/s per thread count |
neither — on demand only |
|
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 |
ns p50 · ops/s per thread · store bytes |
watched |
|
The memory half of the store sweep, in its own binary so a global |
heap bytes and allocations, per arm and window |
watched |
|
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 |
ns p50 · writes/s, per role, fan-out and link count |
watched |
|
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 |
|
Separates the two halves of a write at 0 and 1 subscribers: |
ns p50 / p99 / mean · operations/s, per verb and subscriber count |
watched |
|
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 |
|
Concurrent publishers and readers on one last-known-value slot across five reclamation arms, plus |
ops/s · ns p50, per thread count |
neither — on demand only |
|
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 |
|
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 |
|
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 againstinproc/inproc-borrow, never againstinproc-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 wireSUBSCRIBERproduces (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. Thestored/handlerpair 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-spilltimes a write whose take is wider than the in-frame slots (it spills), andstream-defera burst ofassigns delivered by one coveringpropagate; 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 fullbump_source_tfalling back to its upstream pool (seam-directis that pool alone).seam-values/seam-tables— the shipped host slab pool: onetry_alloc+releaseon 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-viewinproc-poolrows.
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 |
|---|---|---|
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 |
ns p50 / p99 / mean · deliveries/s |
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.