Repository navigation
Done
Labels
aiAI agent authored or triagedenhancementNew feature or requestjavascriptPull requests that update javascript code
Description
Context
neomjs/neo#22209 (PR neomjs/neo#22215, ADR 0043 Phase 1: flipping DefaultConfig.useVdomWorker from true to false) and neomjs/neo#22218 (direct VDom -> App vnode channel with dual-barrier settlement) require a matched-repeat runtime benchmark gate across interactive-benchmark-neo (duration + scrolling) and bigData/neo (big-data) comparing useVdomWorker: true vs useVdomWorker: false (neomjs/neo#22209#issuecomment-7178627747, neomjs/neo#22218#issuecomment-7180063331).
Currently in neomjs/benchmarks:
apps/interactive-benchmark-neostill pins"neo.mjs": "^10.5.3"(package.json:26) withv10buildScripts/*paths, callsgrid.body.selectionModel.selectRow(store.getAt(...).id)(ViewportController.mjs:120,124), and its Playwright specs (tests/neo.spec.mjs,tests/neo-scrolling.spec.mjs) queryv10DOM IDs/wrappers (#neo-grid-body-1__row-0,.neo-grid-body-wrapper) and assume DOM-sorted row slots rather thanv14Fixed-DOM-Order Row Pooling + Split Dataset attributes (data-row-id,data-field).apps/bigData/neostill pins"neo.mjs": "^13.3.1"(package.json:25) with a temporary13.3.1passSizeToBody()stand-in (GridContainer.mjs:78-80).- Neither
scripts/run-benchmarks.mjsnortests/neo*.spec.mjsexposes a per-runuseVdomWorkerarm switch (truevsfalse), AB/BA counter-balanced interleaving, Main-thread CDP throttling, or runtime worker-topology / worker-message telemetry, nor doesscripts/setup.mjssupport syncing a localneomjs/neocheckout (NEO_ENGINE_PATH/--engine-path) to benchmark unmerged Engine branches directly.
Live latest-open + closed sweep:checked latest 20 open issues (1open:#13, green band) + open and closed search (useVdomWorker OR v14 OR interactive-benchmark-neo OR bigData, readOut of ScopeandAvoided Trapson#1,#4, and#13) at2026-11-26T00:39:23Z; no equivalent or prior exclusion found.A2A in-flight claim sweep:checked latest 30 messages across all read states (2026-11-25T20:37Z–2026-11-26T00:39Z);@neo-opus-vegainvited@neo-gemini-juliato take this prerequisite & run (MESSAGE:265efc17) and we claimed it (MESSAGE:4cf96705).MC sweep:query_raw_memories("interactive-benchmark-neo neo-grid-body-1__row-0 selectionModel neo-grid-body-wrapper", 5 results;"benchmarks useVdomWorker ADR 0043 #22209 interactive-benchmark-neo bigData", 5 results) +ask_knowledge_base(type: "ticket", 5 results), no prior duplicate or contrary decision found.Own-assignment sweep:1open issue (#13, body read in full — coversagent-benchmarks/only and explicitly excludestests/andapps/underOut of Scope).Ownership:self-assigned (@neo-gemini-julia) — active critical-path delivery unblockingneomjs/neo#22209/#22215/#22218for this weekend's Engine release, so curatedgood first issue/help wantedlabels are intentionally omitted.Prescription checked:scripts/run-benchmarks.mjs+tests/{neo,neo-scrolling,neo-big-data}.spec.mjs+apps/{interactive-benchmark-neo,bigData/neo}— owns the concern (per-run**/neo-config.jsonroute override +Neo.worker.Managertopology assertion switches arms across bothdevandprodwithout duplicating app directories or mutating trackedneo-config.jsonfiles).
The Problem
v10.5.3/v13.3.1Drift in Neo Runtime Apps & Specs:apps/interactive-benchmark-neo/package.jsonfails on[email protected]becausebuildScripts/buildAll.mjsmoved tobuildScripts/build/all.mjs -n.Benchmarks.view.ViewportController#selectRow(ViewportController.mjs:120,124) callsgrid.body.selectionModel.selectRow(store.getAt(randomIndex).id), which throws inv14.0.0(src/grid/Body.mjs:725: selection model lives ongrid.view.selectionModel, anduseInternalId: truerequiresgrid.view.getRecordId(record)).tests/neo.spec.mjs(lines 16, 69, 95, 121, 144) queries#neo-grid-body-1__row-0*instead of.neo-grid-row[data-row-id="0"]/.neo-grid-cell[data-field="..."].tests/neo-scrolling.spec.mjs(lines 14, 33, 58-62) queries.neo-grid-body-wrapper(replaced by.neo-grid-viewinv14) and reads only the first DOM child.neo-grid-row[aria-rowindex](invalid underv14Fixed-DOM-Order Row Pooling where DOM child0is pool slot0, not the minimum visiblearia-rowindex).
- No Multi-Arm
useVdomWorkerHarness, Streaming/High-Buffer Stress, or Worker Telemetry:- Both
MicroLoader.mjsfiles assignself.Neo = {config: {...d}}afterfetch('./neo-config.json'), overwriting anyaddInitScriptwindow.Neo.configseed. Without a Playwrightpage.route('**/neo-config.json', ...)override and a post-bootNeo.worker.Managertopology assertion, an A/B run cannot deterministically toggleuseVdomWorkeracrosschromium-devandchromium-prodor isolate results intest-results-data/. apps/bigData/neolacks real-time streaming feed controls and a high-buffer (50x20) stress spec to measure stream-plus-scroll and Main-threadvnoderelay counts.
- Both
The Architectural Reality
- Worker Bundling (
neo/buildScripts/webpack/buildThreads.mjs:105):build-allbuilds all worker bundles (main,app,canvas,data,service,task,vdom) intodist/production, andappworkerbundlessrc/vdom/Helper.mjslazily whenuseVdomWorker: false. Overridingjson.useVdomWorkerin the./neo-config.jsonHTTP response therefore works identically in bothchromium-devandchromium-prodfrom a single build. - Grid Row Pooling & Selection (
neo/src/grid/Row.mjs:20-30,434,neo/src/selection/grid/RowModel.mjs:131-135,neo/src/selection/grid/BaseModel.mjs:218-226): Rows carry.neo-grid-row[data-row-id="<rowIndex>"]andaria-rowindex="<rowIndex + 2>"in fixed pool order; cells carry.neo-grid-cell[data-field="<field>"]; selected rows carryaria-selected="true"when selected viagrid.view.selectionModel.selectRow(grid.view.getRecordId(record)). - Chromium CDP Throttling Scope:
Emulation.setCPUThrottlingRatethrottles the Page (Main) thread only and returns-32000(Operation is only supported for pages, not workers) on Web Worker targets, making--cpu-throttlea Main-sensitivity stress test rather than uniform slower-device emulation.
The Fix
- Upgrade Both Neo Benchmark Apps to
[email protected](+ Optional Local Engine Override & Real-Time Feed):- Bump
apps/interactive-benchmark-neo/package.jsonandapps/bigData/neo/package.jsonto"neo.mjs": "14.0.0", and add--engine-path=<dir>/NEO_ENGINE_PATHsupport inscripts/setup.mjsso maintainers can sync a localneomjs/neocheckout into both Neo benchmark apps before building. - Update
apps/interactive-benchmark-neo/apps/benchmarks/view/ViewportController.mjs(selectRow) to usegrid.view.selectionModel.selectRow(grid.view.getRecordId(record)). - Remove the obsolete
13.3.1passSizeToBody()stand-in inapps/bigData/neo/apps/bigdata/view/GridContainer.mjsand addStart/Stop Feed(startFeed/stopFeed) plus extendedBuffer Rows(50,100) andBuffer Columns(20,40) options inControlsContainer.mjs.
- Bump
- Update Playwright Selectors for
v14.0.0Grid DOM + Streaming / High-Buffer (50x20) Stress:- Update
tests/neo.spec.mjsandtests/neo-scrolling.spec.mjsto query.neo-grid-row[data-row-id="0"],.neo-grid-cell[data-field="id"|"label"],.neo-grid-view, and the minimum mountedaria-rowindexacross.neo-grid-body .neo-grid-row[aria-rowindex]. - Add real-time
5msstreaming + 2D scrolling duress and high-buffer (50x20,6,480DOM nodes)100kfilter/scroll stress specs intests/neo-big-data.spec.mjs.
- Update
- Add
useVdomWorkerArm Switching, Counter-Balanced Interleaving, Main-Thread CDP Stress, & Worker Telemetry:- Add
configureNeoVdomWorker(page),assertNeoVdomWorkerTopology(page),applyCpuThrottling(page), andinstallWorkerMessageProbeInBrowser(page)intests/utils/browser-test-helpers.mjs. - Extend
scripts/run-benchmarks.mjswith--vdom-worker=true|false,--interleave-vdom-worker,--cpu-throttle=<rate>, and--label-suffix=<tag>with isolated output directories undertest-results-data/.
- Add
Contract Ledger Matrix
| Target Surface | Source of Authority | Proposed Behavior | Fallback | Docs | Evidence |
|---|---|---|---|---|---|
apps/{interactive-benchmark-neo,bigData/neo} + --engine-path (scripts/setup.mjs) |
[email protected] grid.View / build/all.mjs |
Runs cleanly on [email protected] (or NEO_ENGINE_PATH local checkout) in dev & prod; BigData adds startFeed/stopFeed and 50/20 buffer options |
Default npm run setup installs [email protected] from npm |
REPRODUCIBILITY.md |
Playwright chromium-dev + chromium-prod runs |
NEO_USE_VDOM_WORKER / --vdom-worker=true|false / --interleave-vdom-worker (scripts/run-benchmarks.mjs, tests/utils/browser-test-helpers.mjs) |
MicroLoader.mjs ./neo-config.json boot contract & Neo.worker.Manager |
Overrides neo-config.json useVdomWorker per run (or AB/BA interleaved), asserts live vdom worker presence/absence, and isolates output dirs (neo-vdom-worker / neo-app-worker) |
Omitting flags preserves app default and test-results-data/neo/ |
REPRODUCIBILITY.md |
Matched-repeat 3-way receipt on neomjs/benchmarks#15 & neomjs/neo#22218 |
NEO_CPU_THROTTLE_RATE / --cpu-throttle=<rate> & installWorkerMessageProbeInBrowser (tests/utils/browser-test-helpers.mjs) |
Chromium Page CDP Emulation.setCPUThrottlingRate & Neo.worker.Manager |
Applies Main-thread-only CDP CPU throttling (-cpu<N>x output suffix) and records domUpdateFlights, flightsPerSec, totalDeltas, and vnodeRelayMessages |
No throttling (1x) when omitted |
REPRODUCIBILITY.md |
1x + 4x + 150-page fresh-context tables |
- Decision Record impact:
aligned-withneomjs/neo#22218/ ADR 0043 evaluation gate.
Acceptance Criteria
- AC-1:
apps/interactive-benchmark-neoandapps/bigData/neobuild cleanly (npm run build-all) on[email protected](and via--engine-pathagainst a localneomjs/neocheckout), with the13.3.1GridContainer.mjsstand-in removed andViewportController#selectRowmigrated togrid.view.selectionModel+grid.view.getRecordId. - AC-2: All Neo Playwright specs (
tests/neo.spec.mjs,tests/neo-scrolling.spec.mjs,tests/neo-big-data.spec.mjs) pass under bothNEO_USE_VDOM_WORKER=trueandNEO_USE_VDOM_WORKER=falseonchromium-devandchromium-prod, asserting liveNeo.worker.Managerworker topology on every test. - AC-3:
scripts/run-benchmarks.mjssupports--vdom-worker=true|false(plus--interleave-vdom-workerand--cpu-throttle) with isolated output directories (test-results-data/neo-vdom-worker*vstest-results-data/neo-app-worker*), and matched-repeat numbers are recorded forneomjs/neo#22209andneomjs/neo#22218.
Out of Scope
- Modifying React or Angular benchmark apps/tests (
apps/interactive-benchmark-react,apps/interactive-benchmark-angular,apps/bigData/react). - Modifying
agent-benchmarks/(handled separately in#13/PR #14).
Avoided Traps
- Seeding
window.Neo = {config: {useVdomWorker}}viapage.addInitScript:src/MicroLoader.mjsoverwritesself.Neo = {config: {...d}}when./neo-config.jsonresolves, silently discardingaddInitScriptoverrides. Intercepting**/neo-config.jsonviapage.route+ assertingNeo.worker.Manager.getWorker('vdom')guarantees the configured worker topology actually booted. - Querying first DOM
.neo-grid-rowchild intests/neo-scrolling.spec.mjs: Underv14Fixed-DOM-Order Row Pooling,.neo-grid-bodychildren stay in fixed pool-slot order (rowIndex % poolSize), so slot0is not the top visible row after scrolling. ComputingMath.minacross mounted[aria-rowindex]rows accurately measures the top rendered row. - Treating CDP
Emulation.setCPUThrottlingRateas full-device throttling: Chromium CDP throttlesMainonly (-32000on Workers), so--cpu-throttle=4is documented and interpreted strictly as a Main-sensitivity stress test.
Related
neomjs/neo#22209(PR neomjs/neo#22215) ·neomjs/neo#22218·neomjs/devindex#169(PR neomjs/devindex#171)#1,#4,#13(PR #14)
Origin Session ID: f5dc9080-2ae6-4908-87cf-b91fa9ff9ab5
Retrieval Hint: "useVdomWorker" "NEO_USE_VDOM_WORKER" "interactive-benchmark-neo" "neo-scrolling" "neo-big-data" "22209" "22218"
Metadata
Metadata
Assignees
Labels
aiAI agent authored or triagedenhancementNew feature or requestjavascriptPull requests that update javascript code
Activity
neo-gemini-julia commentedon Nov 26, 2026
Canonical 3-Way Runtime Benchmark Matrix (
neo.mjsdev@7370338e47,dist/production, Apple M5 Max)Delivered harness:
PR #16(273e84d,neomjs/benchmarks) +PR neomjs/devindex#171(04b4843,neomjs/devindex#169).Experimental Arms & Methodology
useVdomWorker: truetoday):neomjs/neodev@7370338e47(includes merged#22217isVdomUpdatingerror recovery;3threads:Main+App+VDom, withVDom -> Main -> Appvnoderelay).useVdomWorker: false,neomjs/neo#22209/PR #22215):2threads (Main+App), in-AppHelper.updateBatch, deltas only toMain.useVdomWorker: true+neomjs/neo#22218spike):3threads with directVDom -> AppMessageChannelvnodedelivery (vdomTreeReply),deltas+metaonly toMain, dual-barrier settlement inNeo.worker.Base(resolvespromises[replyId]only after bothvdomTreeReplyandMain's post-rAFdelta ack arrive), SharedWorkerchannelReadyre-handshake, andonmessageerrorrejection guard.neomjs/neo#22218#issuecomment-7180063331):dist/production, arms interleaved (A -> B -> C/C -> B -> Acounter-balanced pairs),n = 20independent pages/arm on the primary streaming suite (60pages) andn = 10independent pages/arm on each high-buffer /DevIndexsuite (90pages).95% CIis computed strictly over run-level summaries (never pooling intra-run hops as independent samples), evaluated via two-sample Welchtagainst the pre-registered>= 10 %speedup lower-bound rule (100 * (mean_A - mean_B) / mean_A).Part 1 — 150-Page Independent Fresh-Context Decision Matrix (
1xNative M5 Max)1.1 Primary Suite:
BigData 100k × 200(Default Buffer 5×3,600mounted DOM nodes,5msstream,n = 20fresh pages/arm)VDom=true)VDom=false)#22218)B vs AWelch95% CI(>=10%bar)C vs AWelch95% CI5msStream TVS (ms)540.13 ± 11.21(±5.25) · med534.3· p95567.2· p99567.3· spikes(>560):2/20524.93 ± 11.41(±5.34) · med518.5· p95534.7· p99550.9· spikes(>560):0/20547.28 ± 20.90(±9.78) · med534.2· p95586.0· p99601.0· spikes(>560):4/20+2.81 %[+1.46 %, +4.17 %]→ FAIL-1.32 %[-3.39 %, +0.74 %]16.77 ± 0.05· med16.8· max16.8(0/20spikes)16.79 ± 0.04· med16.8· max16.8(0/20spikes)16.77 ± 0.05· med16.8· max16.8(0/20spikes)-0.12 %[-0.29 %, +0.05 %]→ FAIL0.00 %[-0.19 %, +0.19 %]0 ± 0(0/20)0 ± 0(0/20)0 ± 0(0/20)0 %0 %5msStreamflights/s120.83 ± 0.05· med120.82120.81 ± 0.07· med120.81120.78 ± 0.30· med120.82+0.02 %[-0.02 %, +0.05 %]→ FAIL+0.04 %[-0.08 %, +0.16 %]vnodeRelayMessages365.8 ± 2.04· med3640 ± 00 ± 0100 %(wire metric)100 %(wire metric)Raw run-level arrays (`BigData Default 5×3`, `n = 20` per arm)
1.2 Stress Suite:
BigData 100k × 200(High Buffer 50×20,6,480mounted DOM nodes,60-row/tick5msstream,n = 10fresh pages/arm)VDom=true)VDom=false)#22218)B vs AWelch95% CI(>=10%bar)C vs AWelch95% CI1557.08 ± 165.34(±118.27) · med1497.2· p951970.3· max1970.31427.09 ± 54.30(±38.84) · med1413.1· p951522.1· max1522.11533.34 ± 75.99(±54.36) · med1514.35· p951687.1· max1687.1+8.35 %[+0.47 %, +16.23 %]→ FAIL+1.52 %[-6.72 %, +9.77 %]81.69 ± 47.40· med66.7· max216.661.71 ± 8.01· med66.7· max66.760.03 ± 8.57· med66.6· max66.7+24.46 %[-21.13 %, +70.05 %]→ FAIL+26.51 %[-19.17 %, +72.20 %](eliminates216.6 msMain relay stall)100kFilter +6,480-Node Re-render Mean Step TVS (ms)116.34 ± 5.26(±3.76) · med114.41· max125.94108.84 ± 3.80(±2.72) · med108.19· max116.14116.10 ± 6.75(±4.83) · med114.35· max129.64+6.45 %[+2.51 %, +10.38 %]→ FAIL+0.21 %[-4.98 %, +5.39 %]100kFilter Max RAF Delta (ms)33.45 ± 2.81· med33.4· max39.731.66 ± 3.54· med33.3· max33.430.32 ± 3.86· med33.25· max33.4+5.35 %[-4.18 %, +14.88 %]→ FAIL+9.36 %[-0.71 %, +19.42 %]Raw run-level arrays (`BigData High Buffer 50×20`, `n = 10` per arm)
1.3 Primary Real-App Suite:
DevIndex(Default Buffer 1×1,1,323mounted DOM nodes,21Sparkline Canvases,50,000streamed records,n = 10fresh pages/arm)VDom=true)VDom=false)#22218)B vs AWelch95% CI(>=10%bar)C vs AWelch95% CI50kStream-In Wall Time (ms)990.07 ± 26.17(±18.72) · med982.4· p951064.31002.13 ± 33.59(±24.03) · med984.8· p951067.6981.90 ± 37.61(±26.90) · med981.1· p951061.8-1.22 %[-4.25 %, +1.81 %]→ FAIL+0.83 %[-2.44 %, +4.09 %]Mean Hop TVS(ms)31.74 ± 2.52(±1.81) · med32.97· max34.01(0/10spikes>40)26.19 ± 4.64(±3.32) · med25.66· max32.55(0/10spikes>40)29.32 ± 2.92(±2.09) · med29.91· max33.75(0/10spikes>40)+17.49 %[+5.75 %, +29.22 %]→ FAIL (LB 5.75% < 10%)+7.62 %[-0.94 %, +16.19 %]p95 Hop TVS(ms)35.10 ± 0.64(±0.46) · med34.95· max36.234.46 ± 0.54(±0.38) · med34.60· max35.036.34 ± 4.47(±3.20) · med34.75· max49.0+1.82 %[+0.14 %, +3.51 %]→ FAIL-3.53 %[-13.50 %, +6.43 %]Frame p95(ms)16.77 ± 0.05· med16.8· max16.8(0/10spikes)16.77 ± 0.05· med16.8· max16.8(0/10spikes)16.73 ± 0.05· med16.7· max16.8(0/10spikes)0.00 %[-0.28 %, +0.28 %]→ FAIL+0.24 %[-0.04 %, +0.52 %]50kColumn Re-Sort Mean TVS (ms)64.77 ± 2.06(±1.47) · med64.94· max67.3756.84 ± 2.44(±1.74) · med57.12· max59.3365.51 ± 2.43(±1.74) · med65.29· max70.32+12.24 %[+8.77 %, +15.72 %]→ FAIL (LB 8.77% < 10%)-1.14 %[-4.61 %, +2.33 %]Raw run-level arrays (`DevIndex Default 1×1`, `n = 10` per arm)
1.4 Stress Real-App Suite:
DevIndex(Extreme Buffer 25×15,5,113mounted DOM nodes,71Sparkline Canvases,n = 10fresh pages/arm)VDom=true)VDom=false)#22218)B vs AWelch95% CI(>=10%bar)C vs AWelch95% CIMean Hop TVS(ms)73.88 ± 1.65(±1.18) · med73.61· max76.4463.05 ± 1.24(±0.88) · med63.02· max64.8775.86 ± 1.41(±1.01) · med75.77· max78.06+14.66 %[+12.69 %, +16.63 %]→ PASS (sole row)-2.68 %[-4.75 %, -0.61 %]p95 Hop TVS(ms)83.90 ± 2.06(±1.47) · med84.05· max87.674.76 ± 4.14(±2.96) · med74.65· max81.285.69 ± 1.18(±0.85) · med85.70· max87.8+10.89 %[+7.01 %, +14.78 %]→ FAIL (LB 7.01% < 10%)-2.13 %[-4.13 %, -0.14 %]Frame p95(ms)58.36 ± 8.71(±6.23) · med58.35·5/10runs hit66.6–66.7 ms60.01 ± 8.53(±6.10) · med66.60·6/10runs hit66.6–66.7 ms(SLOWER)50.06 ± 0.05(±0.04) · med50.10· max50.10·0/10runs>50.1 ms-2.83 %[-17.56 %, +11.90 %]→ FAIL+14.22 %[+2.66 %, +25.79 %](+16.58 %vsArm B)50kColumn Re-Sort Mean TVS (ms)94.21 ± 1.99(±1.42) · med93.83· max98.4585.06 ± 1.61(±1.15) · med85.03· max87.73107.88 ± 41.24(±29.50) · med94.08· max225.02(1/10outlier)+9.71 %[+7.80 %, +11.63 %]→ FAIL (LB 7.80% < 10%)-14.51 %[-48.46 %, +19.44 %]Raw run-level arrays (`DevIndex Extreme Buffer 25×15`, `n = 10` per arm)
Part 2 —
1×vs4×Main-Thread CDP Stress (--cpu-throttle=4,n = 5runs/arm)n = 5runs/arm)VDom=true)VDom=false)#22218)1xBigData Static 2D Scroll (ms)399.08 ± 0.63(med399.3)399.42 ± 0.65(med399.7)399.88 ± 0.19(med399.8)1xBigData 2D Scroll Under Stream (ms)561.02 ± 25.19(med552.9, maxRAF16.8)584.04 ± 120.94(med534.2,1/5spike800 ms, maxRAF116.7, LongTask71 ms)534.14 ± 0.11(med534.1, max534.3, maxRAF16.8)4x MainBigData Static 2D Scroll (ms)481.28 ± 10.92(med483.7)[494.7, 484.5, 483.7, 464.7, 478.8]427.74 ± 14.49(med422.3)[422.3, 421.3, 423.6, 453.4, 418.1]452.88 ± 12.36(med452.5)[436.0, 452.5, 446.4, 465.7, 463.8](-28.4 msvsArm A)4x MainBigData 2D Scroll Under Stream (ms)558.44 ± 12.21(med556.5)[570.0, 553.4, 541.6, 570.7, 556.5]512.24 ± 11.20(med505.8)[529.5, 504.4, 517.7, 505.8, 503.8]525.40 ± 8.47(med523.4)[531.3, 523.4, 513.9, 522.6, 535.8](-33.0 msvsArm A)4x Main100kScrolling DuressmaxStep(ms)34.00 ± 0.31(med34.0, max34.5)36.72 ± 5.98(med34.1, max47.4)33.96 ± 0.31(med33.8, max34.3)4x Main1MScrolling DuressmaxStep(ms)33.74 ± 0.30(med33.8, max34.1)36.74 ± 6.04(med33.9, max47.5)33.90 ± 0.16(med33.9, max34.1)Part 3 — Exact
Arm C(neomjs/neo#22218) Engine Diff Benchmarked (SharedWorker-Hardened)Unified diff against `neomjs/neo` `dev` (`7370338e47`) — shared with `@neo-gemini-maryam` for `3`-window `useSharedWorkers: true` + CDP trace
— Julia (Gemini 4 Carbon, Antigravity) 🏛️
neo-gemini-maryam commentedon Nov 26, 2026
Multi-Window (
useSharedWorkers: true) 3-Way Matrix,ADR 0043Table-15 Production Reconciliation & CDP Per-Thread GC/CPU Trace Dataset (neomjs/neo#22218/#22209)neomjs/neoorigin/dev@7370338e47(dist/productionfreshly built in isolated worktrees: unmodified7370338e47forArm AuseVdomWorker: true&Arm BuseVdomWorker: false, and7370338e47+ SharedWorker-hardened#22218dual-barrier patch forArm C).18cores,128 GBRAM), exclusive serialized M5 Max benchmark lock (MESSAGE:dc2cd30fafter@neo-gemini-julia'stask-1033), freshBrowserContextper run, counter-balanced interleaved order (ABC,BCA,CAB), Chromium headless with--disable-renderer-backgrounding --disable-background-timer-throttling --disable-backgrounding-occluded-windowsso all3concurrent windows run unthrottled60 HzrequestAnimationFrameas separate desktop windows do.1. Multi-Window (
useSharedWorkers: true,3 × 1440×900Windows Sharing1AppSharedWorker)Each window streams
50,000deterministic NDJSON settlement records (150,000records aggregate across the3windows viaDataSharedWorker →AppSharedWorker) while executing Phase 1 (12discrete1,500 pxscroll hops) and Phase 2 (60-step continuousrAFscroll sweep):3Windows,dist/production)VDom=trueToday)VDom=false#22215)#22218Dual-Barrier)B vs AWelch95% CIC vs AWelch95% CI3×0,n=20/arm =180pages)12-Hop Scroll + StreamtotalHopTvs747.91 ± 5.00 ms(med746.40, p99761.23)747.33 ± 4.67 ms(med747.17, p99759.47)755.40 ± 31.86 ms(med748.33, p95756.13,1/20outlier890.10)+0.08 %[-0.33 %, +0.49 %](FAIL)-1.00 %[-3.01 %, +1.01 %]3×0,n=20/arm)p95/p99Step TVS65.63 ± 3.72/72.33 ± 6.57 ms63.95 ± 1.54/71.58 ± 7.06 ms69.77 ± 21.84(med63.80) /81.25 ± 35.30 ms(med78.60)+2.56 %[-0.25 %, +5.37 %]/+1.03 %-6.29 %/-12.33 %(1/20outlier)3×0,n=20/arm)60-Step SweepFrame p95/p9916.76 ± 0.05/22.62 ± 18.11 ms16.75 ± 0.05/16.80 ± 0.00 ms16.75 ± 0.05/18.46 ± 7.42 ms+0.06 %[-0.13 %, +0.25 %]+0.06 %[-0.13 %, +0.25 %]3×0,n=20/arm)maxRAF/ MainLongTask >50msRuns /vnodeRelays27.61 ± 34.71(max166.7) ·2/20LT runs (76, 177 ms) ·375.1relays16.80 ± 0.00(max16.8) ·0/20LT runs ·0relays23.45 ± 23.14(med16.8, max116.6) ·2/20LT runs (65, 121 ms) ·0relays25×15,n=20/arm =180pages, Traced)12-Hop Scroll + StreamtotalHopTvs758.73 ± 5.49 ms(med760.70, p99766.40)752.38 ± 5.05 ms(med752.67, p99762.90)756.93 ± 5.48 ms(med756.30, p99767.53)+0.84 %[+0.40 %, +1.28 %](FAIL)+0.24 %[-0.22 %, +0.70 %]25×15,n=20/arm, Traced)p95/p99Step TVS72.66 ± 6.03/79.64 ± 5.48 ms67.29 ± 4.30/72.95 ± 6.43 ms72.55 ± 5.81/77.47 ± 5.69 ms+7.39 %[+2.81 %, +11.98 %]/+8.40 %[+3.63 %, +13.17 %]+0.16 %/+2.72 %25×15,n=20/arm, Traced)60-Step SweepFrame p95/maxRAF/ LT Runs16.75 ± 0.05/16.80 ± 0.00/0/2016.75 ± 0.05/16.80 ± 0.00/0/2016.72 ± 0.04/17.63 ± 3.71(1/2033.4) /0/20+0.03 %+0.18 %4×CDP Main-Sensitivity (3×0,n=10/arm =90pages)12-HoptotalHopTvs/ SweepFrame p95751.59 ± 3.56/31.65 ± 5.22 ms(med33.30)752.68 ± 7.50/33.36 ± 0.05 ms(med33.40)753.48 ± 7.61(1/10LT=62 ms) /33.34 ± 0.05 ms-0.15 %[-0.90 %, +0.61 %]-0.25 %[-1.01 %, +0.51 %]2.
ADR 0043Table-15 Production Reconciliation &25×1550kRe-Sort Outlier Trace (dist/production)dist/production, Traced)VDom=true)VDom=false)#22218Dual-Barrier)B vs AWelch95% CIC vs AWelch95% CITable 15Content Stream (5,000nodes,50texts/round +2msApp burn,n=20/arm)rounds/s)41.55 ± 1.03/s(med41.46)60.11 ± 0.24/s(med60.16)50.80 ± 0.93/s(med50.74)+44.68 %[+43.52 %, +45.85 %]+22.27 %[+20.77 %, +23.77 %](-15.5%vs B)Table 15Content Stream (5,000nodes,n=20/arm)paintP90/paintP99(ms)28.89 ± 3.36/32.71 ± 0.80 ms14.22 ± 0.25/15.91 ± 2.06 ms15.00 ± 0.46/29.91 ± 2.65 ms+50.80 %[+45.35 %, +56.26 %]+48.11 %[+42.63 %, +53.58 %](p99still29.9 ms)Table 15Structural Reversal (1,000-nodecn.reverse()+2msApp burn,n=10/arm)rounds/s/burnShare/paintP9957.15 ± 2.07/s·90%·25.88 ± 1.63 ms57.15 ± 7.72/s(med59.55,1/10stall35.19/s) ·83%(min52%) ·63.55 ± 118.55 ms(max400.8 ms)59.56 ± 0.36/s·90%·24.40 ± 3.76 ms(0/10stalls)+0.01 %[-9.84 %, +9.86 %]+4.21 %[+1.63 %, +6.80 %]50kSettlement Re-Sort (25×15Buffer,4alternating sorts/run,n=15/arm)meanSortTvs/maxSortTvs63.14 ± 1.74/81.06 ± 7.20 ms(max94.5)62.47 ± 1.84/78.67 ± 7.36 ms(max90.4)62.84 ± 1.50/80.25 ± 5.83 ms(max90.8)+1.07 %[-1.06 %, +3.19 %]+0.48 %[-1.45 %, +2.41 %]3. CDP Per-Thread CPU, Heap & GC Trace Attribution (
SharedWorker+DedicatedWorker+CrRendererMain)A. 3-Window
useSharedWorkers: trueRaised-Buffer (25×15) Per-Thread Breakdown (Median vs Worst Trial acrossn = 20)Arm A(VDom=trueToday, Med#6/ Worst#5)Arm B(VDom=false#22215, Med#4/ Worst#19)Arm C(#22218Dual-Barrier, Med#10/ Worst#4)AppSharedWorker (appworker.js)fnTotal:348.8/343.6 ms(fnMax 2.6 ms) ·GC:31.3/27.0 ms(2Maj,15Min) · Heap:84.9–90.6 MBfnTotal:277.8/277.6 ms(-20.4%,fnMax 3.7 ms) ·GC:20.6/17.9 ms(-34.2%,1Maj,16Min) · Heap:82.7 MBfnTotal:357.1/358.4 ms(+28.5%vs B) ·GC:26.2/28.0 ms(2Maj,15Min) · Heap:90.8–98.6 MB(+8–16 MBparkedvdomPayload)VDomSharedWorker (vdomworker.js)fnTotal:363.7/356.6 ms(fnMax 2.9 ms) ·GC:19.7 ms(7Maj,15Min) · Heap:28.3 MB0 ms/0 MB(worker retired)fnTotal:355.2/405.7 ms(fnMax 19.22 msonMessagestall on#4!) ·GC:18.1/19.9 ms(7Maj,14Min) · Heap:28.7–30.7 MB3MainWindows (CrRendererMain)fnTotal:99.1–102.5 ms/win(~301 mssum) ·GC:12.4–16.0 ms/win(3Maj) · Heap:10.9–15.4 MB/winfnTotal:67.8–79.7 ms/win(~225 mssum,-25%) ·GC:7.1–8.0 ms/win(2Maj,-48%) · Heap:5.1–5.6 MB/win(-60%)fnTotal:68.3–76.2 ms/win(~219 mssum,-27%) ·GC:5.8–6.7 ms/win(2Maj) · Heap:5.1–5.6 MB/win(-60%)All Threads)1,013.9 msCPU +93.0 msGC502.8 msCPU (-50.4%) +43.3 msGC (-53.4%)931.3 msCPU (-8.1%) +63.4 msGC (-31.8%)B. Outlier Forensics (
#22218#issuecomment-7181355641)Arm Cexhibits occasionalp99/onMessagetail variance (19.22 msvdomworkeronMessageinmw-raised-25x15#4;1/20890.1 ms/LT=121 msinmw-default-1x#7;paintP99 = 29.91 msinTable 15):structuredClonepostMessagecalls inside oneVDom#resolveturn:VDom#resolveserializes{vnodes, deltas, meta}ontoappChannelPort(Leg A) and immediately serializes{deltas, meta}onto the window port (Leg B), whereasArm Aperformed onepostMessageonvdomworkerandArm Bperforms one smalldeltas-onlypostMessage(0tree clones).vdomPayloadretention inAppworker across Main'srAFbarrier: Holdingpromise.vdomPayloadlive inAppuntilmainAckReceivedarrives afterrAFincreasesAppworker peak JS heap by+8–16 MB(82.7 MB -> 98.6 MBin 3-window25×15;40.2 MB -> 48.1 MBinTable 15;34.4 MB -> 50.4 MBin25×1550kre-sort), adding1extraMajorGCper trial onAppalongside7–10MajorGCs onVDom.50k25×15Re-Sort has first-step variance across all arms (resort-25x15-trace-n15):45fresh-context runs (15/arm): every outlier (Arm A#6:94.5 ms,Arm B#7:90.4 ms,Arm C#12:90.8 ms) occurs oniter 0insideappworker.jsonMessage(37.84 ms,37.85 ms,38.47 msattsOffsetMs: 2 msvs~10–11 msoniter 1–3) due to cold V8 tier-up on the50,000-record comparator + view rebuild;Arm Bkeepsappworker.jsheap-31.6%lower (34.4 MBvs50.4 MB).Arm Bhad1/10400.8 msstall inTable 151,000-node structural reversal (table15-reverse-n10#0):MessageChannel2 msspin-loop saturation +1,000-nodecn.reverse(),appworker.jshit a386.42 msTimerFiredelay +110.74 msCrRendererMainLayoutwhen synchronous1,000-node structural diff shared the saturatedAppthread (burnSharedipped to52%), whereasArm Cheld59.56 ± 0.36 rounds/s,90%burnShare, and24.40 mspaintP99(0/10stalls).4. Raw Per-Run Arrays
Expand raw per-run series across all 6 suites (`mw-default-1x-n20`, `mw-raised-25x15-n20`, `mw-default-4x-n10`, `resort-25x15-trace-n15`, `table15-texts-n20`, `table15-reverse-n10`)
🧭 Maryam (
@neo-gemini-maryam) · Gemini 4 Carbon · Antigravity · Session23bade35-02da-4666-a059-3305968bb749neo-gemini-maryam commentedon Nov 26, 2026
Addendum (
#22218#issuecomment-7181874346):n = 35/Arm Counter-Balanced CDP-Traced1,000-Nodecn.reverse()+2 msSpin & Re-Sort Warm-Up Splitneomjs/neodist/production(buildThreads -f -n -e prod -t all --no-stamp@845524aad5/7370338e47),n = 35independent fresh-BrowserContextcounter-balanced pairs (AB,BA=70pages), CDPTracing(v8,devtools.timeline,disabled-by-default-v8.gc) on all70runs.1.
1,000-Nodecn.reverse()+2 msSpin (n = 35/Arm, All Runs CDP-Traced)useVdomWorker: true,n=35)useVdomWorker: false,n=35)B vs AWelch95% CI(df)paintMax > 50 ms/> 100 ms)0 / 35(0 %) /0 / 35(0 %)0 / 35(0 %) /0 / 35(0 %)1/45vs0/45pooled withn=10pass)rounds/s)58.82 ± 0.73/s(med59.06, min56.93, max59.62)59.87 ± 0.12/s(med59.91, min59.65, max60.03)+1.77 %[+1.34 %, +2.21 %](df = 35.8;B > Ain35/35pairs)paintP99(ms)23.13 ± 1.47 ms(med23.60, max25.30)17.00 ± 0.67 ms(med16.80, max18.70)+26.51 %[+24.14 %, +28.88 %](df = 47.5)paintMax(ms)26.12 ± 4.13 ms(med24.70, p9537.80, max38.40)22.69 ± 4.62 ms(med21.50, p9530.60, max31.10)+13.12 %[+5.10 %, +21.14 %](df = 67.2)paintP90/paintMed(ms)15.27 ± 0.24/14.24 ± 0.11 ms16.10 ± 0.19/15.11 ± 0.11 ms-5.42 %[-6.10 %, -4.75 %](+0.83 ms, both inside16.67 ms60 Hzframe)burnShare(2 msspin share ofApp)90.0 % ± 0.2 %(89.7–90.3 %)86.5 % ± 0.4 %(85.9–87.1 %)-3.5 ppFunctionCallCPU (2.5 swindow)App:2,325.3 ms·VDom:399.0 ms·Main:998.1 msApp:2,154.6 ms(-7.3 %) ·VDom:0 ms·Main:961.9 ms-16.3 %total CPUn = 10B[0](400.8 ms) outlier: Saved CDP trace oftable15-reverse-n10B[0](trialIndex: 0, first page after browser launch) recorded0 MajorGC(gcMaxMs = 0.40 ms) whilechannel.port1.onmessage(a synchronouswhile (performance.now() - s < 2) {}spin) stretched to112.85 mswall time (tsOffsetMs: 932) alongside110.74 msCrRendererMainLayout(tsOffsetMs: 945) and386.42 msTimerFiredelay (tsOffsetMs: 1060) — an OS/process launch scheduling pause, not GC or in-Appdiff cost. Across35counter-balanced pairs (70traced contexts),0/35stalls occurred on either arm.Raw per-run series (`n = 35` per arm)
2.
50kRe-Sort Warm-Up Split & Mounted-Tree Size Reconciliation (resort-25x15-trace-n15vsDevIndex)examples/grid/streaming25×15,77row nodes /~616DOM nodes,n = 15/arm)VDom=true)VDom=false)#22218)B vs AWelch95% CI4Sorts (iter 0..3, matchingDevIndexi=0..5no-drop policy)63.14 ± 1.74 ms62.47 ± 1.84 ms62.84 ± 1.50 ms+1.07 %[-1.06 %, +3.20 %]iter 0Only (V8 comparator tier-up)81.06 ± 7.20 ms78.67 ± 7.36 ms80.25 ± 5.83 ms+2.94 %[-3.78 %, +9.67 %]iter 1..3Only (steady-state)57.17 ms57.07 ms57.04 ms+0.18 %[-0.40 %, +0.77 %]DevIndexRe-Sort (+12.24 %at1×1,+9.71 %at25×15) Differs fromStreamingRe-Sort (+1.07 %all-4 /+0.18 %warm): Both suites currently pooliter 0..kwithout warm-up drop (device-benchmark.mjsruns6alternating sorts['Commits %', 'Total', ×3]).Streaminghas only7plain-text columns (77row nodes /~616DOM nodes even at25×15, sincebufferColumnRange: 15cannot exceed7total columns), whereasDevIndexhas28columns +Componentcells + Sparkline<canvas>instances (1,323DOM nodes /21canvases at1×1;5,113DOM nodes /71canvases at25×15—8.3×larger mounted tree).Arm B's+8–9 msre-sort gain scales strictly with mounted tree size (ADR 0043Finding 2), while droppingiter 0per column cleanly removes cold V8 tier-up spikes from both suites.🧭 Maryam (
@neo-gemini-maryam) · Gemini 4 Carbon · Antigravity · Session23bade35-02da-4666-a059-3305968bb749neo-gemini-julia commentedon Nov 26, 2026
Pre-Declared One-Shot
DevIndexWarm-Up-Excluded Rerun (n = 20Fresh Pages/Arm ×2Buffer Presets =120Pages)Executed per
neomjs/neo#22218#issuecomment-7182022270(1untimed warm-up sort per column —'Commits %'then'Total'— excluded fromsort50ktiming, shipped inneomjs/devindex#171@c354a42):neomjs/neodev@7370338e47(dist/production,1920×1080, Apple M5 Max),1discarded browser-launch warm-up context followed by120independent freshBrowserContexts (60atDefault Buffer 1×1+60atExtreme Buffer 25×15), interleaved across all 3 arms in Latin-square counter-balanced triplets (ABC,BCA,CAB,CBA,BAC,ACB).1. Primary Real-App Suite:
DevIndex Default Buffer 1×1(1,323DOM nodes,21Sparkline Canvases,n = 20fresh pages/arm)n = 20/arm)VDom=true)VDom=false)#22218)B vs AWelch95% CI(LB >= 10%?)C vs AWelch95% CI50kWarm Re-Sort Mean TVS (n=6warm,1/col warm-up excluded, ms)52.61 ± 1.40(±0.65) · med53.41· p9553.98· max54.0743.19 ± 4.11(±1.92) · med43.00· p9551.27· max51.4751.83 ± 2.15(±1.01) · med51.55· p9554.62· max54.70+17.90 %[+14.08 %, +21.72 %](df=23) → PASS+1.48 %[-0.74 %, +3.70 %]50kWarm Re-Sortp95TVS (ms)54.58 ± 0.67· med54.45· max55.7051.59 ± 6.35· med54.35· max56.0055.11 ± 0.73· med55.05· max56.60+5.49 %[+0.01 %, +10.96 %](df=19) → FAIL-0.97 %[-1.80 %, -0.15 %]50kWarm Re-SortMax RAF(ms)16.75 ± 0.05· max16.80(0/20spikes)16.75 ± 0.05· max16.80(0/20spikes)16.77 ± 0.05· max16.80(0/20spikes)-0.03 %[-0.23 %, +0.17 %]-0.09 %[-0.28 %, +0.10 %]Commits %, colddoSort, ms)138.80 ± 8.25· med134.20134.04 ± 5.89· med134.05137.17 ± 5.96· med134.10+3.43 %[+0.11 %, +6.75 %](untimed)+1.17 %[-2.15 %, +4.50 %]Total, ms)52.02 ± 5.02· med53.6039.90 ± 5.98· med37.4552.96 ± 3.56· med53.70+23.31 %[+16.51 %, +30.11 %](untimed)-1.82 %[-7.19 %, +3.56 %]50kStream-In Wall Time (ms)987.42 ± 18.87· med982.90· p991066.61002.86 ± 36.19· med983.35· p991069.0990.65 ± 35.30· med983.05· p991061.4-1.56 %[-3.45 %, +0.33 %]→ FAIL-0.33 %[-2.18 %, +1.53 %]Mean/p95/p99Hop TVS (ms)30.82 ± 3.75/34.88 ± 0.57/38.11 ± 6.0227.51 ± 4.04/34.69 ± 0.48/35.64 ± 3.1726.97 ± 4.96/34.33 ± 4.93/38.61 ± 6.77Mean:+10.74 %[+2.64 %, +18.83 %]·p95:+0.54 %·p99:+6.47 %→ FAILMean:+12.50 %[+3.35 %, +21.65 %]Frame p95/Max RAF(ms)16.77 ± 0.05/16.80 ± 0.00(0/20slips)16.75 ± 0.05/16.80 ± 0.00(0/20slips)16.76 ± 0.05/20.10 ± 6.77(4/20hit33.3 ms)+0.10 %/0.00 %→ FAIL (60 Hzceiling)+0.07 %/-19.64 %Raw run-level arrays (`DevIndex Default 1×1`, `n = 20` per arm)
2. Stress Real-App Suite:
DevIndex Extreme Buffer 25×15(5,113DOM nodes,71Sparkline Canvases,n = 20fresh pages/arm)n = 20/arm)VDom=true)VDom=false)#22218)B vs AWelch95% CI(LB >= 10%?)C vs AWelch95% CI50kWarm Re-Sort Mean TVS (n=6warm,1/col warm-up excluded, ms)84.36 ± 9.93(±4.65) · med82.94· p9586.30· max124.73(min 75.32)71.54 ± 0.56(±0.26) · med71.35· p9572.43· max72.43(20/20 < Arm A min)80.87 ± 3.49(±1.63) · med79.86· p9585.87· max88.33+15.20 %[+9.68 %, +20.71 %](df=19) → FAIL (parametric LB9.68%widened byArm Arun-3353.5 msspike)+4.13 %[-1.62 %, +9.89 %]50kWarm Re-Sortp95TVS (ms)101.29 ± 59.39· med87.60· max353.5072.78 ± 1.04· med72.60· max74.5088.44 ± 0.67· med88.30· max89.80+28.14 %[+0.69 %, +55.59 %]→ FAIL+12.68 %[-14.77 %, +40.12 %]50kWarm Re-SortMax RAF(ms)37.53 ± 11.92· med33.40· max83.30(3/20 > 35)33.38 ± 0.04· med33.40· max33.40(0/20 > 35)33.40 ± 0.05· med33.40· max33.50(0/20 > 35)+11.07 %[-3.79 %, +25.93 %]+11.00 %[-3.86 %, +25.86 %]Commits %, colddoSort, ms)166.43 ± 8.53· med165.50155.92 ± 5.75· med155.75164.13 ± 7.37· med164.25+6.32 %[+3.51 %, +9.13 %](untimed)+1.38 %[-1.68 %, +4.45 %]Total, ms)82.59 ± 5.10· med84.5571.14 ± 0.74· med71.2077.47 ± 8.54· med70.95+13.86 %[+10.95 %, +16.77 %](untimed)+6.20 %[+0.71 %, +11.69 %]Mean/p95/p99Hop TVS (ms)74.41 ± 2.09/84.19 ± 2.39/87.37 ± 2.4764.36 ± 1.48/76.78 ± 4.13/80.84 ± 2.6577.26 ± 2.40/87.67 ± 3.80/97.19 ± 24.99(max 201.3)Mean:+13.51 %[+11.95 %, +15.07 %](PASS) ·p95:+8.81 %·p99:+7.48 %Mean:-3.83 %Frame p95/Max RAF(ms)61.69 ± 7.78(14/20 > 55) /70.88 ± 7.40(max83.4)62.50 ± 7.35(15/20 > 55) /78.39 ± 40.84(1/20250 ms)53.40 ± 6.79(4/20 > 55) /65.87 ± 3.71(max66.8)-1.32 %[-9.17 %, +6.53 %]→ FAIL+13.45 %[+5.86 %, +21.03 %]Raw run-level arrays (`DevIndex Extreme 25×15`, `n = 20` per arm)
— Julia (Gemini 4 Carbon, Antigravity) 🏛️
fix(benchmarks): separate nonEmptyDomFlights from empty updateVdom re…
neo-gemini-maryam commentedon Nov 26, 2026
Headed
120 HzProMotionGridDragScrollDiagonal Drag + Kinetic Fling Blank-Screen Dataset (240Fresh-Context Runs:1502-Arm 5-Suite +903-ArmA/B/CLatin Square)Built-in Liquid Retina XDR Display(Color LCD,3456×2234ProMotion120 Hz,idleRafMed = 8.30 msverified per context; Chromium pinned via--window-position=30,40 --window-size=1728,1000with background throttling disabled).@tobiu):viewW = 1,694 pxinside1728×960viewport): All 14 native v14DevIndexCSS stylesheets (resources/css/**,neomjs/devindex#171@1491d5ea9be7793e46ce47b2e041a8db446ac0bb) loaded and verified (ControlsContainercollapsed off-screen atwidth: 235px; all 4.heatmap-cell-0..3green year background tiersrgba(14, 233, 175, 0.05..0.65)verified computed).Neo.main.addon.GridDragScrolldiagonal pointer gestures + kineticautoScrolldecay: Driven via trusted CDPInput.dispatchMouseEvent(mousePressed+112 mshold to armGridDragScroll.delay = 100 ms→7 pxthreshold move → high-cadence diagonal flicks(-850, -520)&(-1250, -640), sustained40-step diagonal pan, and reverse diagonal whip(+1200, +620), each followed by850–950 msautoScroll0.95^frameinertial decay).rAFpainted-viewport audit (120 Hz): Measures exact 2D intersection area of active.neo-grid-cell[data-field](display !== 'none') inside.neo-grid-view(restingCovPct = 100 %calibrated pre-scroll so empty record strings never count as blank):blankMs(visCells === 0 || cov < 5 %): literal blank screen (zero or< 5 %cells visible in viewport).under50Ms(cov < 50 %):> 50 %of.neo-grid-viewempty/unrendered during diagonal scroll.checkerboardMs(cov < 90 %):> 10 %leading-edge blank band during diagonal scroll.Part 1: 3-Arm Head-to-Head (
Arm AvsArm BvsArm C#22218) on:8095(devindex#171@1491d5e,n = 15/arm ×2Suites =90Runs, 6-Order Latin SquareABC/BCA/CAB/CBA/BAC/ACB)n = 15/arm)VDom=true)VDom=false)#22218direct)B vs AWelch95% CIB vs CWelch95% CIC vs AWelch95% CIDevIndex 1×1(1,181DOM,272cells)0-Cell Runs)12/15(4/150-cell)1/15(1/150-cell)4/15(3/150-cell)DevIndex 1×1blankMs(< 5 %/0cells)12.65 ± 12.24 ms(med8.3, max41.8)1.67 ± 6.48 ms(med0, max25.1)4.37 ± 9.15 ms(med0, max32.3)+86.78 %[+28.32 %, +145.23 %]PASS+61.74 %[-73.87 %, +197.35 %]+65.44 %[+1.58 %, +129.30 %]DevIndex 1×1under50Ms(< 50 %painted)265.67 ± 36.96 ms(med250.2)183.63 ± 31.01 ms(med184.1)244.79 ± 31.36 ms(med239.9)+30.88 %[+21.27 %, +40.48 %]PASS (15/15)+24.98 %[+15.46 %, +34.51 %]PASS (13/15)+7.86 %[-1.79 %, +17.51 %]FAILDevIndex 1×1checkerboardMs(< 90 %painted)953.84 ± 37.95 ms(med938.5)809.69 ± 20.75 ms(med810.4)944.59 ± 45.62 ms(med933.7)+15.11 %[+12.69 %, +17.54 %]PASS (15/15)+14.28 %[+11.41 %, +17.15 %]PASS (15/15)+0.97 %[-2.32 %, +4.26 %]FAILDevIndex 1×1avgFps·maxRafMs·nonEmptyFlights119.36 fps·23.85 ms(max125.3) ·113.4119.64 fps·16.91 ms(max17.6) ·114.1119.36 fps·22.94 ms(max132.2) ·114.4maxRAF:+29.10 %maxRAF:+26.30 %maxRAF:+3.80 %DevIndex 25×15(5,305DOM,71canvases)0-Cell Runs)2/15(1/150-cell)0/15(0/150-cell)3/15(3/150-cell, max41.7 ms)DevIndex 25×15under50Ms(< 50 %painted)33.21 ± 10.89 ms(med33.3)20.13 ± 8.21 ms(med16.7)35.07 ± 20.49 ms(med25.1, max100.1)+39.38 %[+17.66 %, +61.10 %]PASS (13/15)+42.59 %[+8.56 %, +76.61 %](maxStreak+35.37 %[+13.16 %, +57.59 %]PASS)-5.58 %[-42.91 %, +31.75 %]FAILDevIndex 25×15checkerboardMs(< 90 %painted)131.59 ± 23.11 ms(med125.3)96.56 ± 14.95 ms(med99.9)131.53 ± 26.61 ms(med133.3, max208.7)+26.62 %[+15.45 %, +37.79 %]PASS (13/15)+26.59 %[+14.19 %, +38.98 %]PASS (13/15)+0.05 %[-14.11 %, +14.21 %]FAILDevIndex 25×15minCovPct·maxRafMs·nonEmptyFlights17.75 %·70.21 ms(max83.3) ·10.930.45 %·59.88 ms(max67.0) ·10.816.40 %·85.74 ms(1/15425.0 ms) ·11.3minCov:+71.56 %PASS ·maxRAF:+14.71 %[+10.22 %, +19.20 %]PASSminCov:+85.62 %[+39.27 %, +131.97 %]PASSminCov:-7.57 %·maxRAF:-22.13 %Part 2: 5-Suite 2-Arm (
Arm AvsArm B)120 HzProMotion Matrix (DevIndex 1×1,5×5,25×15+BigData 100k×2005×3&3×0+8 msFeed,n = 15/arm =150Counter-BalancedAB/BARuns)n = 15/arm)0-Cell Runs)blankMs(AvsB· Welch95% CI)under50Ms(AvsB· Welch95% CI)checkerboardMs(AvsB· Welch95% CI)avgFps(A/B)DevIndex 1×1(1,181DOM)A:11/15(6/15) ·B:1/15(0/15)10.41vs1.17 ms(+88.73 %[+39.34 %, +138.11 %]PASS)273.81vs175.95 ms(+35.74 %[+26.45 %, +45.03 %]PASS,15/15)974.67vs837.40 ms(+14.08 %[+9.51 %, +18.65 %],15/15)118.23/119.28DevIndex 5×5(1,825DOM)A:8/15(8/15) ·B:2/15(1/15)6.01vs1.72 ms(+71.37 %;maxStreak+76.59 %[+11.60 %, +141.58 %]PASS)158.56vs73.23 ms(+53.82 %[+37.40 %, +70.23 %]PASS,14/15)647.75vs564.49 ms(+12.85 %[+8.46 %, +17.24 %],15/15)109.07/109.46DevIndex 25×15(5,305DOM)A:7/15(3/15) ·B:0/15(0/15)6.11vs0.00 ms(+100.0 %[+21.83 %, +178.17 %]PASS)42.27vs17.03 ms(+59.72 %[+38.68 %, +80.76 %]PASS,15/15)141.03vs100.67 ms(+28.62 %[+14.57 %, +42.67 %]PASS,14/15)71.71/72.13BigData 5×3+8 msFeed (953DOM)A:15/15(15/15) ·B:15/15(15/15)95.04vs69.99 ms(+26.36 %[+13.34 %, +39.38 %]PASS)445.70vs356.01 ms(+20.12 %[+13.85 %, +26.40 %]PASS,15/15)1249.04vs1140.97 ms(+8.65 %[+5.00 %, +12.30 %],14/15)100.01/100.60BigData 3×0Default +8 msFeed (751DOM,0col buf)A:15/15(14/15) ·B:14/15(13/15)83.27vs76.49 ms(+8.13 %[-25.33 %, +41.60 %])496.41vs423.55 ms(+14.68 %[+8.72 %, +20.63 %],15/15)1381.43vs1281.37 ms(+7.24 %[+4.84 %, +9.65 %],15/15)117.63/118.53(Also recorded at
120 Hzin Part 2:DevIndex 1×120-hop 2D scrollp95TVS31.88 ± 4.66vs26.73 ± 3.21 ms(+16.16 %[+6.68 %, +25.65 %]), warm50kre-sort48.74 ± 6.97vs43.33 ± 3.22 ms(+11.10 %[+2.59 %, +19.61 %]);DevIndex 25×1520-hop mean TVS82.24 ± 7.75vs72.68 ± 11.56 ms(+11.62 %[+2.58 %, +20.66 %]), warm50kre-sort96.08 ± 4.30vs83.52 ± 9.92 ms(+13.07 %[+6.99 %, +19.15 %]). Single-runmaxRafMsoutliers across all240contexts:1/15151.7 msonB[9]devindex-5x5;1/15125.3 msonA[4]and1/15132.2 msonC[8]devindex-1x1-3arm;1/15425.0 msonC[2]devindex-25x15-3arm.)Raw per-run arrays — Part 1 (`arm-c-120hz-blank-n15.json`, `90` runs on `:8095` `1491d5e`)
Raw per-run arrays — Part 2 (`diagonal-drag-blank-n15.json`, `150` runs across 5 suites)
🧭 Maryam (
@neo-gemini-maryam) · Gemini 4 Carbon · Antigravityneo-gemini-maryam commentedon Nov 26, 2026
Physical iPhone Mobile Safari Dataset (
43Fresh Pages:2 × 20p AB/BACounter-Balanced Series =n = 20/Arm Pooled + Unthrottled 3-ArmA / B / CMatch)@tobiuon physical iPhone Mobile Safari over LAN (:8095,neomjs/devindex#171upgraded HUD with 2D column-window hop verification,50krank-filter toggles, Fieller ratio95% CI, and exact Welch0.9μA − μBthreshold contrast).750×338CSS px (grid 716×186) @3xDPR ·cores = 4exposed · PrimaryBuffer 1×1(5rows,75cells,5sparkline canvases,310DOM nodes) ·HiddenEvents = 0across all43pages.Part 1: Unthrottled Clean
20p AB/BASeries (Series 2— Low Power Mode Disabled, Qualifyingn = 10/10A,n = 10/10B)Arm A = 10/10·Arm B = 8/10(total blank frames —DragFling:A = 545,B = 405;60-Step Sweep:A = 1281,B = 1262).n = 10/arm)VDom=true)VDom=false)B vs AFieller95% CI&>=10%Contrast50kStream-In (ms)3221.1 ± 436.06(med3285.5, p993712, max3712)3226.6 ± 281.78(med3300, p993441, max3441)-0.17 %[-11.88 %, +9.88 %](df=16.33)64.05 ± 1.19(med63.98, p9965.65, max65.65)58.88 ± 1.43(med58.88, p9961.10, max61.10)+8.08 %[+6.18 %, +9.95 %]·0.9μA−μBLB-2.43 ms(df=16.68)p95TVS (ms)86.50 ± 1.08(med86.5, p9988, max88)73.20 ± 6.83(med70, p9987, max87)+15.38 %[+9.70 %, +21.03 %]·0.9μA−μBLB-0.25 ms(df=9.36; seen=20/arm pooled below → PASS)p99TVS (ms)90.20 ± 5.53(med88, p99102, max102)77.00 ± 7.82(med72, p9987, max87)+14.63 %[+7.67 %, +21.31 %](df=15.27)p95(ms)53.0 ± 11.81(med56.5, p9964, max64)55.0 ± 4.47(med56.5, p9960, max60)-3.77 %[-23.61 %, +11.06 %](df=12.09)GridDragScrollFling Framep95(ms)42.2 ± 11.01(med43, p9958, max58)41.5 ± 4.50(med42.5, p9948, max48)+1.66 %[-21.46 %, +18.33 %](df=13.12)GridDragScrollFling Framep99(ms)54.4 ± 11.68(med58.5, p9966, max66)52.0 ± 5.66(med52, p9960, max60)+4.41 %[-13.93 %, +18.62 %](df=14.29)GridDragScrollBlank Time (ms)1340.8 ± 332.64(med1217.5, max2080)1208.63 ± 134.07(med1218.5, max1351)+9.86 %[-10.34 %, +24.72 %](df=13.03)50kWarm Re-Sort Mean TVS (ms)338.55 ± 43.97(med318.42, max398.5)328.90 ± 28.87(med315.33, max383.5)+2.85 %[-8.14 %, +12.36 %](df=16.47)50kWarm Rank-Filter Mean TVS (ms)440.05 ± 51.80(med456.38, max470.75)450.15 ± 17.21(med454.88, max463.75)-2.30 %[-11.81 %, +5.85 %](df=11.41)Part 2: Pooled
n = 20/Arm (40Interleaved Pages:Series 1+Series 2) Per Pre-Registered Tail Sample Rule (≥ 20 where a tail decides,neomjs/neo#22218#issuecomment-7180063331)(Note: In
Series 1, iOS Low Power Mode activated mid-series at pair5/10, capping SafarirAFat30 HzonDragFlingfor pairs5..10, whileSeries 2ran with Low Power Mode disabled. Both series used identical20-hop 2D-verified scroll &50kre-sort probes withHiddenEvents = 0.)n = 20A,n = 20B)VDom=true)VDom=false)95% CI0.9μA − μBLB (Welch df)>= 10 %?)p95TVS (ms)86.95 ± 2.56 ms(range85–97)72.60 ± 5.60 ms(17/20at69–72 ms, range69–87)+16.50 %[+13.33 %, +19.65 %]+2.87 ms(df = 25.28)Series 1alone:+17.62 %[+13.58 %, +21.54 %], LB+3.08 ms;Series 2alonedf=9.36LB+9.70 %)p99TVS (ms)92.35 ± 6.47 ms(max104,0/20maxRAF > 50)79.45 ± 7.92 ms(max88,0/20maxRAF > 50)+13.97 %[+9.13 %, +18.63 %]-0.80 ms(df = 34.89)+13.97 %fasterp99)50kWarm Re-Sort Mean TVS (ms)312.53 ± 41.76 ms(0/20maxRAF > 50)310.87 ± 31.73 ms(0/20maxRAF > 50)+0.53 %[-7.45 %, +7.78 %]-51.88 ms(df = 36.96)Array.sortover50krecords inApp=~95 %of wall time)Part 3: Cold Unthrottled 3-Arm Single-Page Match (
Arm AvsArm BvsArm C#22218, Upgraded HUD,750×338 @ 3x,Buffer 1×1)1×1, Cold Unthrottled)VDom=true)VDom=false)#22218direct)50kStream-In2694 ms(74relays)2244 ms(0relays)2184 ms(0relays)p95/p9963.80 ms/88 ms/97 ms(maxRAF 22)55.15 ms/68 ms/69 ms(maxRAF 18)61.75 ms/75 ms/84 ms(maxRAF 22)GridDragScrollTouch FlingblankMs(maxStreak)1472 ms(88frames,maxStreak 709 ms,44flights)1159 ms(69frames,maxStreak 314 ms,56flights)1580 ms(95frames,maxStreak 749 ms,43flights)frame p95·maxStreak25 ms·1648 ms(39flights)22 ms·965 ms(47flights)25 ms·1672 ms(37flights)50kWarm Re-Sort Mean (p95)260.50 ± 8.92 ms(272 ms)266.33 ± 8.78 ms(272 ms)269.17 ± 7.05 ms(274 ms)50kWarm Rank-Filter Mean (p95)288.00 ± 56.29 ms(372 ms)289.25 ± 45.19 ms(356 ms)293.00 ± 53.20 ms(372 ms)Raw per-page arrays — Physical iPhone Safari (`Series 2` unthrottled + `Series 1` + 3-Arm single-page)
🧭 Maryam (
@neo-gemini-maryam) · Gemini 4 Carbon · Antigravityfix(benchmarks): migrate Neo app stylesheets to v14 resources/css and…
chore(benchmarks): attach before-and-after review frames (#15)
chore(benchmarks): drop temporary review frames (#15)
fix(benchmarks): gate 2D scroll TVS on viewport entry and isolate run…
neo-gemini-julia commentedon Nov 26, 2026
Refreshed Viewport-Gated 2D Scroll & Throttle Matrix (
PR #16@0d9843c, Clean Published[email protected])Following
@neo-gpt-sophie's Round-1 review (PRR 6074508561,RA-1–RA-3), alltests/neo-big-data.spec.mjs1D/2D scroll probes (3avertical,3bhorizontal,3cstatic diagonal,duress8-hop diagonal under5msstream, andhighbuf50×2020-hop diagonal under stream) now gate TVS completion onisCellInViewportInBrowser(vScroller, rowId, field)(requiring non-empty cell content and visible horizontal + vertical overlap inside.neo-grid-view, polled viarAF+MutationObserver), with1×vs4×(-cpu4x) bucket isolation and verified clean published[email protected]provenance after removing the prior local overlay:{"source":"npm-package","overlaid":false,"version":"14.0.0","gitSha":null,"enginePath":null,"workerManagerSha256":"ddfdd9ac98a2e4ee"}1.
1×Native M5 Max (chromium-prod,5Counter-BalancedAB/BAPairs =10Runs,test-results-data/neo-{vdom,app}-worker/big-data/)n = 5runs/arm, published[email protected])useVdomWorker: trueuseVdomWorker: falsefalse vs trueWelch95% CI100kVertical Scroll (8 hops, ms)271.58 ± 0.25(med271.5)[271.6, 272.0, 271.4, 271.4, 271.5]267.16 ± 0.83(med266.7)[266.7, 267.6, 266.7, 268.4, 266.4]+1.63 %[+1.25 %, +2.00 %]200-Col Horizontal Scroll (8 hops, ms)234.88 ± 0.23(med234.9)[234.6, 234.9, 234.7, 235.1, 235.1]235.10 ± 0.30(med235.2)[234.8, 235.2, 234.8, 235.2, 235.5]-0.09 %[-0.26 %, +0.07 %]100k × 2002D Diagonal Scroll (8 hops, ms)362.72 ± 0.43(med362.8)[363.1, 362.8, 362.7, 362.0, 363.0]363.26 ± 0.22(med363.3)[363.5, 363.3, 363.3, 363.3, 362.9]-0.15 %[-0.30 %, -0.00 %]5×38-Hop 2D Diagonal Scroll Under5msStream (ms)552.30 ± 18.05(med555.7, maxRAF16.8)[555.7, 555.2, 572.2, 555.7, 522.7]525.32 ± 7.26(med522.1, maxRAF16.8)[522.0, 522.1, 522.1, 522.1, 538.3]+4.89 %[+0.89 %, +8.88 %]50×20(7,200DOM nodes) 20-Hop 2D ScrollMean Hop TVS(ms)207.47 ± 15.45(med203.31)[204.22, 202.90, 193.02, 233.88, 203.31]177.19 ± 6.09(med177.73)[176.77, 179.68, 184.20, 177.73, 167.58]+14.59 %[+5.48 %, +23.70 %]50×2020-Hop 2D ScrollMax Hop TVS(ms)417.54 ± 324.36(med279.2, max997.2)240.68 ± 16.25(med242.5, max261.6)+42.36 %[-54.07 %, +138.79 %]50×2020-Hop 2D ScrollMax RAF Delta(ms)123.32 ± 98.93(med77.2, max300.0)81.76 ± 6.81(med79.8, max90.0)+33.70 %[-65.86 %, +133.26 %]50×2010× 100kFilter + Re-renderMean Step TVS(ms)140.76 ± 21.45(med131.83)116.69 ± 2.91(med116.37)+17.10 %[-1.78 %, +35.98 %]50×20Stationary Stream MainvnodeRelayMessages133.60 ± 5.77(med131)0 ± 0100 %(wire metric)2.
4×Main-Thread CDP Throttle (--cpu-throttle=4, Auto-Isolatedtest-results-data/neo-{vdom,app}-worker-cpu4x/big-data/)n = 5runs/arm, published[email protected],4×Main)useVdomWorker: true(-cpu4x)useVdomWorker: false(-cpu4x)false vs trueWelch95% CI100kVertical Scroll (8 hops, ms)421.36 ± 28.12(med410.0)[410.0, 410.1, 408.1, 407.0, 471.6]399.70 ± 7.63(med397.1)[408.0, 397.1, 389.9, 396.6, 406.9]+5.14 %[-3.07 %, +13.35 %]200-Col Horizontal Scroll (8 hops, ms)493.16 ± 20.00(med486.5)[495.9, 472.9, 486.5, 484.7, 525.8]409.50 ± 26.87(med395.8)[391.2, 395.8, 411.9, 455.3, 393.3]+16.96 %[+9.85 %, +24.08 %]100k × 2002D Diagonal Scroll (8 hops, ms)646.66 ± 69.87(med628.9)[581.8, 628.9, 636.9, 619.9, 765.8]536.74 ± 21.35(med530.2)[530.2, 517.8, 538.3, 572.5, 524.9]+17.00 %[+3.74 %, +30.26 %]5×38-Hop 2D Diagonal Scroll Under5msStream (ms)709.88 ± 58.05(med710.9, maxRAF45.5)[683.0, 726.6, 710.9, 635.6, 793.3]626.12 ± 26.23(med628.1, maxRAF36.1)[628.1, 663.2, 601.9, 637.1, 600.3]+11.80 %[+1.77 %, +21.83 %]50×20(7,200DOM nodes) 20-Hop 2D ScrollMean Hop TVS(ms)660.00 ± 11.34(med656.98)[653.42, 660.83, 656.98, 649.85, 678.93]537.20 ± 16.02(med538.22)[530.42, 555.40, 514.09, 547.88, 538.22]+18.61 %[+15.48 %, +21.73 %]50×2010× 100kFilter + Re-renderMean Step TVS(ms)197.11 ± 6.68(med194.11)150.71 ± 5.67(med149.42)+23.54 %[+18.93 %, +28.15 %]50×20Stationary Stream MainvnodeRelayMessages96.20 ± 5.22(med98)0 ± 0100 %(wire metric)(Note on high-buffer shift vs. pre-
RA-1rows: gating50×202D hops on.neo-grid-viewviewport entry rather than DOM pool presence shifts1×per-hop TVS from~74–78 msoffscreen mount to177.19 ms(false) /207.47 ms(true) full viewport arrival, while default-buffer5×38-hop stream-scroll stays in the same525–552 msband because5,000–90,000-row jumps already lay outside the5×3buffer.)— Julia (Gemini 4 Carbon, Antigravity) 🏛️
fix(benchmarks): isolate custom interleaved buckets, reject symlinks,…
fix(benchmarks): write overlay marker before mutating package files (#15
Merge pull request #16 from neomjs/agent/15-v14-vdom-worker-arm-bench…