Harbor Forum heavy operations — 21 October 2026
Eight selected runs measure three real public operations on the four forum implementations. Upstream heap uses fewer complete instructions for content audit at both sizes and for both Small maintenance operations. RSX uses fewer for the two Large maintenance operations. Every result and work count matches the independent host oracle and the other arms. The volatile heap baseline deliberately loses state on upgrade.
This extends the ordinary-operation record, using new app artifacts. RSX remains native Wire; the other apps use Candid. Upstream Rust remains wasm32/Rust 1.99.0/ic-cdk 0.20.3, with ic-stable-structures 0.7.2 in the stable arm. RSX uses wasm64 and the pinned nightly compiler against SDK e3a3429137673a984748128f2b0c79087bb7465c; Motoko uses moc 1.16.1/core 2.6.2 and EOP. Round 1 RSX used SDK f15b2b604ecec358ad81398b72293e09cfe9dde2. Different functions, application source and artifacts prevent assigning a cross-round delta solely to that SDK change.
Each operation runs 16 actual complete calls under normal query/update budgets. Instructions include wrappers, text/hash/join work, allocation, codec work, cleanup and page charges. The separately shown heap-page charges are included already; stable-source page charges are not separately exported. The remainder is not pure CPU, and these traces do not isolate storage, allocation, compiler or business-computation causes.
RPC p50/p95 values are local sequential PocketIC wall milliseconds with memory tracing enabled; they include host/client work and are neither mainnet latency nor production throughput. With 16 samples, p95 is the maximum under the recorded nearest-rank definition. Samples belong to one run per artifact/fixture.
Population and real ordinary mutations occur before measurement: UTF-8 body edits, hidden posts, likes, topic locks, four watches/read positions for each of 32 users, and eight actual replies. Audit reads complete hidden and visible bodies, joins actual Topic/User rows and aggregates categories/authors. Reconciliation scans all posts of selected topics and rewrites durable summaries/counters; rollup scans all authored posts and real watch/read edges, then writes durable summaries. Matching summaries are recomputed and rewritten. See the exact heavy contract.
Small
Seed: 100 users, 16 categories, 200 topics, 2,000 posts and 6,000 likes. Measured state includes eight additional posts and 16 added likes.
- Content audit (query): mean 1,004 real posts and 524,334.9375 stored body bytes per call; 1,004 selected posts.
- Topic reconciliation (update): mean 1,280.8125 real posts and 668,928.8125 stored body bytes per call; 128 selected topics, 128 summary writes.
- Author rollup (update): mean 2,008 real posts and 1,051,395 stored body bytes per call; 100 selected users, 100 summary writes.
| Operation | Metric per call | Upstream heap | Upstream stable | RSX Nyxus | Motoko |
|---|---|---|---|---|---|
| content-audit | Complete instructions | 26,889,233 | 88,055,406 | 34,302,290 | 410,963,832 |
| Included heap-page charge | 2,045,000 | 320,000 | 2,040,000 | 63,155,000 | |
| Local RPC p50 / p95 ms | 22.73 / 24.51 | 41.08 / 43.35 | 23.80 / 25.84 | 131.81 / 138.42 | |
| topic-reconciliation | Complete instructions | 32,350,122 | 84,835,065 | 34,653,330 | 516,219,388 |
| Included heap-page charge | 2,995,000 | 560,000 | 3,150,000 | 123,500,000 | |
| Local RPC p50 / p95 ms | 37.02 / 39.15 | 52.58 / 58.00 | 35.49 / 37.60 | 500.62 / 669.53 | |
| author-rollup | Complete instructions | 48,756,003 | 122,147,663 | 52,846,333 | 803,011,295 |
| Included heap-page charge | 3,040,000 | 560,000 | 3,530,000 | 179,690,000 | |
| Local RPC p50 / p95 ms | 40.16 / 42.05 | 62.58 / 64.20 | 36.30 / 42.33 | 412.84 / 757.37 |
Unique persisted summary rows after the measured sequences: 200 topics and 100 authors. Repeated/overlapping windows still perform all reported writes.
Large
Seed: 10,000 users, 64 categories, 10,000 topics, 100,000 posts and 300,000 likes. Measured state includes eight additional posts and 16 added likes.
- Content audit (query): mean 4,096 real posts and 2,141,882.125 stored body bytes per call; 4,096 selected posts.
- Topic reconciliation (update): mean 1,280.5 real posts and 669,682.125 stored body bytes per call; 128 selected topics, 128 summary writes.
- Author rollup (update): mean 2,560.5 real posts and 1,339,076.0625 stored body bytes per call; 256 selected users, 256 summary writes.
| Operation | Metric per call | Upstream heap | Upstream stable | RSX Nyxus | Motoko |
|---|---|---|---|---|---|
| content-audit | Complete instructions | 121,128,449 | 533,366,080 | 150,964,588 | 1,687,105,127 |
| Included heap-page charge | 12,165,000 | 480,000 | 10,625,000 | 214,935,000 | |
| Local RPC p50 / p95 ms | 37.44 / 38.77 | 152.74 / 161.01 | 45.59 / 48.38 | 490.83 / 502.22 | |
| topic-reconciliation | Complete instructions | 45,728,387 | 114,240,101 | 36,355,374 | 947,030,978 |
| Included heap-page charge | 15,700,000 | 560,000 | 4,115,000 | 241,785,000 | |
| Local RPC p50 / p95 ms | 50.67 / 52.42 | 66.07 / 73.35 | 43.10 / 44.07 | 500.51 / 1909.13 | |
| author-rollup | Complete instructions | 78,996,101 | 223,213,188 | 73,910,804 | 2,093,187,902 |
| Included heap-page charge | 18,710,000 | 720,000 | 9,000,000 | 472,045,000 | |
| Local RPC p50 / p95 ms | 65.12 / 67.99 | 104.35 / 108.15 | 53.82 / 56.46 | 668.52 / 2022.27 |
Unique persisted summary rows after the measured sequences: 2,048 topics and 4,096 authors. Repeated/overlapping windows still perform all reported writes.
Memory capacity and persistence
Values below are grown heap / stable capacity in MiB, not live objects or host RSS. Ready is after setup and heavy conformance; end is immediately after measured operations, before upgrade. IC accounting is a separate total, not an extra memory component. Motoko capacity growth is an observation, not a measured live-heap or GC-cause attribution.
| Snapshot | Upstream heap | Upstream stable | RSX Nyxus | Motoko |
|---|---|---|---|---|
| Small populated heap / stable | 2.69 / 0.00 | 1.19 / 16.06 | 16.06 / 0.00 | 25.25 / 0.00 |
| Small ready heap / stable | 2.75 / 0.00 | 1.19 / 16.06 | 16.06 / 0.00 | 36.81 / 0.00 |
| Small end heap / stable | 2.81 / 0.00 | 1.19 / 16.06 | 16.06 / 0.00 | 320.00 / 0.00 |
| Small end total IC accounting | 3.07 | 17.53 | 16.24 | 320.19 |
| Large populated heap / stable | 82.75 / 0.00 | 1.19 / 98.06 | 114.69 / 0.00 | 576.00 / 0.00 |
| Large ready heap / stable | 82.81 / 0.00 | 1.19 / 98.06 | 114.75 / 0.00 | 576.00 / 0.00 |
| Large end heap / stable | 83.75 / 0.00 | 1.25 / 98.06 | 115.81 / 0.00 | 704.00 / 0.00 |
| Large end total IC accounting | 84.01 | 99.60 | 115.99 | 704.19 |
Stable, RSX and Motoko all preserve base state and derived summaries on same-code upgrade. The runner rechecks existing-summary counts and exact previous-summary checksums after replacement, then repeats audit verification. RSX/Motoko use normal keep-Wasm-memory upgrade with hooks enabled; stable reopens its maps. Heap intentionally resets. The offline oracle replay retains expected post-upgrade folds; actual success is asserted by the frozen runner and recorded in each result's summaryStateVerified flag, rather than a retained dump of every actor reply.
Artifact and audit record
| Arm | Raw / common-host gzip bytes | Wasm SHA-256 |
|---|---|---|
| Upstream heap | 945,109 / 260,082 | 2f7572233bc74915e732486432b78828fcf45efde5eff4ed7db4a52c356c8937 |
| Upstream stable | 1,080,595 / 285,312 | ffd3c142a3724b14d83a19f82c69c444e88198ab46134f55d82fbbffec52bf5c |
| RSX Nyxus | 656,414 / 139,780 | 9f19d5e4d8a9970cf892680bfe7a589f3e7ee941394471203947aa4c7950fa38 |
| Motoko | 753,936 / 179,854 | 74b5022ba83f834b2f7330f8cd2f432be2c778ddcd3b83ea2ddb9b3f5b5cc29c |
Both fixture sizes select the same Wasm per arm. Exact fixture counts and sampled payload/index verification precede setup. Expected responses are computed by an independent full host model outside capture; the runner checks every actual response. Its FNV implementation passes known vectors and a slow BigInt arithmetic crosscheck. Retained offline replay reproduces every window's work and response digest, final sequence and persisted-summary counts. All per-execution sums agree with the phase totals and means, without dropped/truncated/missing execution rows. No-op warmup, management observers, expected-answer construction and validation queries are outside measurement.
- Upstream heap, small: result.
- Upstream stable, small: result.
- RSX Nyxus, small: result.
- Motoko, small: result.
- Upstream heap, large: result.
- Upstream stable, large: result.
- RSX Nyxus, large: result.
- Motoko, large: result.
The initial Small heap calibration was rejected: 16 identical requests yielded one actual Wasm execution and 15 query-cache responses. Final audit windows are distinct: 1,004 posts at Small and 4,096 at Large. The earlier Large heap run passed but is excluded so the selected heap -02 runs share the final harness with all other arms. Both earlier receipts remain in the compact packet; no cached latency or inferred instruction samples enter these tables.
The manifest indexes exact results, compressed per-execution/source/build receipts, frozen contracts and small host oracle/harness sources. All 32 selected compressed and uncompressed raw trace hashes were checked at capture. App source, Wasm, raw traces, targets and worktrees remain ignored. Original absolute paths are provenance. Offline arithmetic/oracle checks survive playground removal; rebuilding or full raw-trace replay requires ignored artifacts. No new benchmark or build was run to publish this report.
Validate/regenerate from repository root with python3 research/experiments/2026-10-21-forum-comparison/report-heavy.py (append --check to check without writing). See experiment notes and measurement guidance.