Shared-page populated SDK screen

The current Wire SDK, shared-page runtime and Store stack uses fewer measured instructions than the first-ten snapshot in aggregate. All 96 intervals and 856 business updates pass the independent model, population, outcome and state checks. This compares combined source changes; it does not isolate an allocator or codec effect, and it is separate from the complete Heavy16 qualification.

Backend First-ten instructions Current instructions Change Change versus 296f
Heap 311,766,443 268,065,190 −14.017% −1.307%
Retained 315,497,208 287,912,283 −8.743% −7.100%
Stable 310,393,778 306,110,790 −1.380% +0.924%
Unchanged external control 426,177,970 426,177,970 0% 0%

Each row sums 24 intervals / 214 updates across populations 100 and 100,000; these are workload-weighted instruction totals, not an average of percentages. Against first-ten, 71 RSX intervals improve and one retained-100 distributed transfer rises 0.0292%. All 24 external-control intervals match instructions and cycles exactly. Against 296f, the largest remaining increase is 100k heap checkout-duplicate at 17.872%; 100k distributed heap preview remains 8.754% higher and stable preview 9.375% higher. The aggregate gains do not mean every case beats the older allocator.

For 100k records, the distributed 32-call sequences compare as follows:

Backend Transfer per call Checkout per call Preview per call Change versus first-ten
Heap 1,601,748.03 2,445,675.19 2,101,075.41 −14.54% / −13.70% / −10.20%
Retained 1,784,403.34 2,436,317.16 1,712,631.28 −9.84% / −9.80% / −12.76%
Stable 2,093,892.47 3,035,101.97 833,890.56 −0.52% / −0.42% / −1.54%

All current RSX populated instances have main_bytes = 16,842,752 (16 MiB + 64 KiB). First-ten has 1,077,215,232 bytes for heap/stable and 1,085,603,840 for retained at 100k. These are physical Wasm capacities/high-water, not live payload bytes. Stable capacity stays 16,056,320 bytes for the stable backend; retained and heap stay at 65,536 stable bytes. The configured canister memory limit is 3 GiB in both arms; the shared provider's platform address maximum is 6 GiB.

Scope and identity

  • Current code: be687a225fa71d6312e44c0dab2e1d2fe4f19731; build HEAD ab7cc3dc20b85b81f1cc8ab86d0a7b1486ff3337 adds documentation only.
  • Primary control: immutable unified-screen/combined-main first-ten artifacts. unified-screen/control-1fc9 / source 296f6309 is historical context.
  • Server SHA256: 1fc9e6f58f7b329a0deb0c1944306a74625293fa56decf9df653ba8ec41fa45c. All arms use this same frozen custom performance server. It is distinct from the official PocketIC 16 lifecycle server.
  • Current RSX public calls and observer replies use their generated Wire contracts. Historical RSX results used their actual Candid contracts. The external upstream guest is copied byte-for-byte, never rebuilt. Its native receipt sidecar declares the actual six-Candid-argument observer reply and links the unchanged original receipt/input/output hashes. It does not transform or reinterpret that guest as Wire.
  • The pinned nightly-2026-10-15 compiler uses checksum freshness and the exclusively leased warm round1/sdk-app-target cache. Build time is 74.84 s; benchmark execution is 14.64 s. These host times are not IC throughput claims.

Collections are populated and committed before snapshots and measurements. Every populated record is independently checked. Each interval restores its snapshot, applies its declared setup and runs one untimed no-op before the measured sequence. No queries or warmups occur between its business updates. All sequence calls contribute to the primary mean. The original-versus-observer smoke check at population 100 preserves outcomes, state and capacities.

The observer counts metered generated-wrapper work through return with small counter/call overhead, including argument handling and reply generation; it excludes later scheduler-only round accounting. Whole-call cycle debits are preserved separately in the raw rows and are never treated as instructions. No new page trace is part of this screen, so it does not decompose changes into page tracking, codec work or allocator computation. Stable storage, retained arena zeroing, larger applications, fully populated multi-GiB state and adverse fragmentation remain separate measurements.

Evidence and reproduction

Summary, primary compared rows, 296f context, and all three raw result arms are committed here. Source fingerprints and before/build/after guard hashes are under sources/; artifact identities, canonical memory/interface/observer receipts and execution hashes are under receipts/. The 436 current source files, guest inputs, runner, drivers and server remained unchanged across build/run. No control guest was rebuilt.

Run python3 research/experiments/2026-10-19-shared-pages-sdk/verify.py to check the packet hashes, all exact action/outcome/state comparisons, observer arithmetic, aggregate/row counts and unchanged reference instructions/cycles. The same directory's manifest.json hashes every other committed packet file.

Reproduction inputs preserve the exact commands, archive paths, protocol choices and server hash. drivers/ preserves the exact ignored build/run/analysis scripts used. To execute them again, use the pinned source fingerprint, copy the scripts to the recorded shared ignored driver directory, acquire the target lease and use a fresh output directory rather than overwrite the completed archive. Qualified upstream input/output Wasms remain in the immutable archive listed by hash; the compact packet does not duplicate binaries or require rebuilding historical controls.

The separate actual shared-page lifecycle gate passes on frozen b4294990: 65 transition plus 24 boundary cases, await/query/trap ownership, 1.5 GiB sparse runtime release/reuse, decoded upgrade arguments across Store reopen, retained addresses above 4 GiB, zeroed reuse and raw old-profile rejection. Its official server and exact source/artifact hashes are recorded separately. Those safety checks do not establish a performance improvement.

Natural runtime-header follow-up, 20 October

A fresh matched screen compares pre-header SDK source 0e438796 with 7be65fc3. Their only ordinary SDK production difference is the transient RuntimeHeap header: 4,096-byte alignment/padding becomes natural eight-byte alignment and 1,304 bytes. All 96 paired intervals / 856 business updates match exactly in endpoint instructions and cycle debits. No-op instructions/cycles, before/after business state, and memory capacities also match exactly. Each arm sums 268,080,170 heap, 287,848,309 retained, 306,056,904 stable and 426,177,970 unchanged external-control instructions. This screen found neither a gain nor a regression; it does not establish behavior under adverse fragmentation or upgrades.

Both source versions were rebuilt through the canonical ver1/tools/build-app.py with pinned checksum freshness, full locked/offline metadata, fresh native Wire interfaces, and the existing observer. The existing scenario/model/warmup logic is unchanged; an identical runtime server-URL selector in both host runners uses the shared pinned 1fc9e6f5 server and newly owned instances. An offline lock synchronization adds the SDK's already-selected local timer dependency. Historical external-control Wasms are reused byte-for-byte by their qualified hashes. All original-versus-observer smokes pass, and 441/442 source files plus execution artifacts remain unchanged through build/run. Full exact-source archives, canonical receipts, raw rows and the existing comparison-tool output are in rrt/tmp/perf-round12/minimal-upgrades/sdk-header-screen/; summary.json records the commands' build heads and checks. This is a representative SDK tradeoff screen, separate from the complete Heavy16 selection.