Skip to content

Commit d5fc2ce

Browse files
committed
bench: record keyed row retention evidence
1 parent b85e32e commit d5fc2ce

12 files changed

Lines changed: 86916 additions & 0 deletions

‎docs/OCTANE_M4_PREMERGE_DIAGNOSTIC.md‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,27 @@ was 4.47 versus 4.61 ms, so the structural gap is again before transport. The
279279
earlier listener-container and exact-listener-identity experiments are not
280280
repeated because their focused receipts rejected those mechanisms.
281281

282+
### Retained owner cut: compiler-proven keyed component rows
283+
284+
The Block component lowering was then changed to reuse a retained component-row
285+
descriptor when the compiler proof establishes the same key, item identity,
286+
index, non-selection captures, and selected state. This removes descriptor
287+
construction for 900 of 1,000 update rows and 998 of 1,000 swap rows without
288+
changing the wire or skipping rows whose item or index moved.
289+
290+
Ten focused sessions, balanced five AB and five BA with 20 repetitions per arm,
291+
measured patch versus the compact candidate. Aggregate latency was 0.98328,
292+
95% CI [0.96777, 0.99650]. The direct owner moved more strongly: aggregate BTS
293+
CPU was 0.89386 [0.88236, 0.90609], update was 0.78610 [0.76923, 0.80495], and
294+
swap was 0.79013 [0.77441, 0.80481]. Transport bytes were identical. The Web
295+
and Native rows-zero bundles each grew by 197 bytes. The patch is retained for
296+
formal comparator validation because it removes more than 20% of the measured
297+
owner without moving cost to MTS or the wire. It does not itself pass the final
298+
gate: patch/baseline swap latency was 1.01710 [0.95740, 1.07638], so the formal
299+
comparator matrix must be rerun rather than inferred. The complete receipt is
300+
`results/audits/2026-09-12-m4-keyed-row-retention-web-jit-focused.json`
301+
(SHA-256 `784f9216b5150529fec691f98aac7092785f29489e242d5d53a6ea1373fa1ac9`).
302+
282303
## Memory snapshot is not the memory gate
283304

284305
The existing runner captured one GC-forced 10k snapshot and one after-clear
Lines changed: 155 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,155 @@
1+
{
2+
"kind": "m4-accepted-hypothesis",
3+
"candidate": "octane-m4-keyed-row-experiment",
4+
"candidateCommit": "9d1a7df73b458c15d889b162d42ceca4eaa7ede6",
5+
"comparator": "octane-m4-final",
6+
"comparatorCommit": "805fd9ed861eec7ca8d113039f6722699b6cce1c",
7+
"harness": "web",
8+
"environment": "jit",
9+
"hypothesis": "Reuse compiler-certified component-row descriptors when key, item identity, index, non-selection captures, and selected state are unchanged.",
10+
"disposition": "retained-for-formal-comparator-validation",
11+
"sampling": {
12+
"independentSessions": 10,
13+
"orderCounts": {
14+
"AB": 5,
15+
"BA": 5
16+
},
17+
"repetitionsPerCellPerArm": 20,
18+
"bootstrapResamples": 10000,
19+
"confidence": 0.95,
20+
"unit": "session median"
21+
},
22+
"latency": {
23+
"aggregate": {
24+
"point": 0.9832810003277138,
25+
"lower": 0.9677722445361001,
26+
"upper": 0.9964976774676098
27+
},
28+
"cells": {
29+
"update10th@1000": {
30+
"point": 0.9670036722568147,
31+
"lower": 0.8954477553850438,
32+
"upper": 1.039735482774291
33+
},
34+
"select@1000": {
35+
"point": 0.9366936225078895,
36+
"lower": 0.8852790877443896,
37+
"upper": 1.0009864700140205
38+
},
39+
"swap@1000": {
40+
"point": 1.0170998446533044,
41+
"lower": 0.9574037632205133,
42+
"upper": 1.076381984548035
43+
},
44+
"remove@1000": {
45+
"point": 1.0146618115170034,
46+
"lower": 0.9911088130571728,
47+
"upper": 1.0410105005629509
48+
}
49+
}
50+
},
51+
"backgroundCpu": {
52+
"aggregate": {
53+
"point": 0.893864600563428,
54+
"lower": 0.8823615936475314,
55+
"upper": 0.906088870779119
56+
},
57+
"cells": {
58+
"update10th@1000": {
59+
"point": 0.7861027791479334,
60+
"lower": 0.7692289434320149,
61+
"upper": 0.8049497791293193,
62+
"candidateMeanMs": 3.63228,
63+
"comparatorMeanMs": 4.54605
64+
},
65+
"select@1000": {
66+
"point": 1.0204560720837226,
67+
"lower": 1.0004846264779994,
68+
"upper": 1.0472019517018463,
69+
"candidateMeanMs": 1.11444,
70+
"comparatorMeanMs": 1.092515
71+
},
72+
"swap@1000": {
73+
"point": 0.790133488276231,
74+
"lower": 0.7744116556137138,
75+
"upper": 0.8048108300680413,
76+
"candidateMeanMs": 3.75278,
77+
"comparatorMeanMs": 4.76779
78+
},
79+
"remove@1000": {
80+
"point": 1.0071933246690041,
81+
"lower": 0.9822742292668467,
82+
"upper": 1.032140397054975,
83+
"candidateMeanMs": 7.45149,
84+
"comparatorMeanMs": 7.436255
85+
}
86+
}
87+
},
88+
"transport": {
89+
"unchanged": true,
90+
"wireToMtsBytes": {
91+
"update10th@1000": 3940,
92+
"select@1000": 189,
93+
"swap@1000": 186,
94+
"remove@1000": 155
95+
}
96+
},
97+
"bundle": {
98+
"web": {
99+
"comparatorBytes": 184108,
100+
"candidateBytes": 184305,
101+
"deltaBytes": 197,
102+
"comparatorSha256": "52a395e33d9c527a691b5a84b896f87ee19c7511dcec8222aa9a49244021cc46",
103+
"candidateSha256": "65d43cadc9071460cf3bfadd6c72dc64b8b23aaf7db57a944c11589535a77323"
104+
},
105+
"native": {
106+
"comparatorBytes": 184229,
107+
"candidateBytes": 184426,
108+
"deltaBytes": 197,
109+
"comparatorSha256": "df1cbb6d8ae6d393e1d154cdc0931e34e4aa92732ae3426f890e1bfe8e127b99",
110+
"candidateSha256": "83d102aca84cf12cb25f2688cc009e236f01e96b1c828f967ebd7f326a002e71"
111+
}
112+
},
113+
"sourceRuns": [
114+
{
115+
"file": "results/runs/2026-09-12T04-15-04-65160668d8d9.json",
116+
"sha256": "cbbcb82b6996679a209dea89396c6c45ad816331aefa99d1aa1b2ffaa8c21fca"
117+
},
118+
{
119+
"file": "results/runs/2026-09-12T04-18-36-65160668d8d9.json",
120+
"sha256": "b2f04edfe0531414ef337eb19930c5b359e035e9a310c42a4035da6541c4c611"
121+
},
122+
{
123+
"file": "results/runs/2026-09-12T04-22-10-65160668d8d9.json",
124+
"sha256": "262031abc4cb376069994a82a8422e0949caec3ce619ca9513f2395387266d1b"
125+
},
126+
{
127+
"file": "results/runs/2026-09-12T04-25-44-65160668d8d9.json",
128+
"sha256": "c8d8f347c1c0b489846a449896c822230d743b98e48d1de6283715abeeeef7aa"
129+
},
130+
{
131+
"file": "results/runs/2026-09-12T04-29-16-65160668d8d9.json",
132+
"sha256": "f9ca5992fea858dc03999ad12a72ca42cb9b57f9ecc4b8ac68abb224941f5120"
133+
},
134+
{
135+
"file": "results/runs/2026-09-12T04-32-50-65160668d8d9.json",
136+
"sha256": "41d3ce85c4ee0c399b30c5ebe0091133fc4582a2e2cac816fa863bbc70dd4463"
137+
},
138+
{
139+
"file": "results/runs/2026-09-12T04-36-21-65160668d8d9.json",
140+
"sha256": "cc21fb577ffea1782316f48aa72d466ad96c955e0ae160b9e9f82b268cdf002a"
141+
},
142+
{
143+
"file": "results/runs/2026-09-12T04-39-53-65160668d8d9.json",
144+
"sha256": "f7e5f5b89ff2efe8949a4892962d7cde2e4c5121d55d65238befbb600b33222f"
145+
},
146+
{
147+
"file": "results/runs/2026-09-12T04-43-27-65160668d8d9.json",
148+
"sha256": "01f88206ea1d3f4a212ac2534c9b6b5b61d9d109643c7dceb211531737a4000c"
149+
},
150+
{
151+
"file": "results/runs/2026-09-12T04-46-59-65160668d8d9.json",
152+
"sha256": "4cd7c7d85af3023c65df663615211b7297a407614d672a5d0b496ac00d95bccd"
153+
}
154+
]
155+
}

0 commit comments

Comments
 (0)