Harbor Forum implementation comparison

21 October 2026. This is the first-round record for four independently authored forum apps: upstream Rust heap, upstream stable structures, RSX Nyxus and Motoko. The generated tables cover 25 ordinary operation sequences and a five-call discussion interaction after Small and Large population. The heavy analytics/maintenance record adds eight passing final runs on separate round-2 artifacts. Each report keeps its own frozen evidence and scope. The tenfold-population report records the completed one-million-post comparison and separate 6 GiB diagnostic.

RSX has the lowest complete instruction mean in 22/25 Small and 24/25 Large operations. Small exceptions are profile updates and user lookup (upstream stable) and author-post listing (upstream heap); the Large exception is category creation (upstream stable). The five-call interaction costs RSX 7.990M/11.570M instructions at Small/Large, 37.7%/39.1% below upstream stable. These are complete calls, including page fees, rather than an isolated storage or codec comparison.

At Large population, grown heap/stable capacities are 82.75/0 MiB upstream heap, 1.19/96.06 MiB upstream stable, 114.69/0 MiB RSX and 576.00/0 MiB Motoko. These are capacities, not live allocation or host RSS. Upstream heap deliberately loses state on same-code upgrade; the other selected artifacts preserve it. The table includes installed floors and population growth. Local sequential PocketIC RPC percentiles include tracing/client overhead and establish no production throughput or mainnet latency result.

All arms receive the same logical DTOs and business rules. RSX uses Wire; the others use Candid. Upstream Rust targets wasm32 with Rust 1.99.0 and ic-cdk 0.20.3; the stable arm uses ic-stable-structures 0.7.2 with an app-local record codec and 1 MiB memory-manager buckets. RSX uses wasm64, its pinned nightly compiler and private Nyxus owners. Motoko uses moc 1.16.1/core 2.6.2 and EOP. Independent application code, representations, toolchains and transport limit attribution: these observations do not establish memory as the sole cause.

Both fixtures select the same artifact per arm. In particular, Motoko uses 2bbe2c874f34e2162f203ef1b61b18ac9de7bd24595a5e4a21226db92fa8868b at both sizes. RSX was built against SDK commit f15b2b604ecec358ad81398b72293e09cfe9dde2; app-source inventories and compiler receipts are retained rather than implying that a repository commit contains these ignored apps. All measured operation/mixed digests and final state counts match across arms per fixture. Separate conformance receipts use the exact final artifacts and check every Small user/topic/post; benchmark population checks sample 32 users, 32 topics and 320 posts. Large verification is not exhaustive.

The compact evidence manifest indexes eight unchanged result files and compressed receipts containing 13,836 execution summaries, source/build identities and four final conformance records. All 216 selected raw trace exports were hash-checked before retaining their summaries. Arithmetic and table checks work after playground removal; full raw trace replay or rebuilding needs the ignored traces, Wasm and sources. Run python3 research/experiments/2026-10-21-forum-comparison/report.py --check. No builds or new canister runs are part of publication.

Preserved unsuccessful attempts explain changes to the final artifacts:

  • Motoko's earlier rope-producing synthetic text construction exceeded the unchanged 3 GiB limit during Large seeding. A bounded diagnostic showed GC reclaiming data, so disabled GC was not the explanation. Materializing complete seed strings as flat UTF-8 reduced 2,000-post diagnostic capacity from 228,261,888 to 29,425,664 bytes with identical logical snapshots. Full payloads remain stored; no shared suffix cache, lazy rows, library patch or raised limit was used. Earlier seed/Small artifacts remain excluded from the selected tables.
  • The abandoned RSX Candid adapter passed business checks but KEEP trapped on 491 live transient allocations. Private Candid TLS owners lacked complete teardown. No allocator guard was bypassed. Its frozen failure is retained; Candid cleanup is a separate follow-up and does not alter the native Wire result.
  • Enhanced conformance caught accepted-seed-config mismatches returning Invalid instead of Conflict in stable/Motoko apps; the final artifacts correct this. Tool calibration also rejected an oversized Unix socket path and a truncated instruction-profile capture. Qualified runs use short owned temporary paths and complete ordinary memory traces, rejecting missing/query-cache execution rows.

Heavy operations, round 2

The heavy tables measure complete content audits, topic reconciliation and author rollups, with 16 actual calls per operation/fixture. Ordinary UTF-8 edits, moderation, likes, watch/read activity and eight new replies precede capture. The maintenance updates write complete persisted summaries; their previous-row checksums are checked after normal same-code upgrade. Heap deliberately loses state on replacement.

Heap uses fewer complete instructions for content audits at both sizes and both Small maintenance operations. RSX uses fewer for the two Large maintenance operations. All returned aggregates, hashes, work counts and final sequences match the independent host oracle across arms. These full text/hash/join and multi-index operations do not isolate a storage, allocation, compiler or business computation cause. Exported heap-page fees are included in complete instructions; stable-source fees remain included but are not exported separately.

The heavy evidence manifest retains eight exact results, 32 hash-checked trace summaries (396 executions), source/build receipts, the contract and small host oracle/harness sources. Offline replay checks known FNV vectors, slow BigInt arithmetic, every measured window's digest/work and post-upgrade expected summary folds. The rejected Small heap calibration preserves one actual Wasm execution from 16 requests; final query windows are distinct. The earlier passing Large heap run is excluded in favor of -02 on the same final harness. RSX heavy uses SDK e3a34291; round 1 used f15b2b60. Different functions and app artifacts prevent assigning a cross-round difference solely to the SDK. Run python3 research/experiments/2026-10-21-forum-comparison/report-heavy.py --check. Publication ran no new builds or canister measurements.

Tenfold population, round 3

All four implementations completed 100,000 users, 640 categories, 100,000 topics, one million posts and three million likes with the default configured 3 GiB Wasm limit. The separate Motoko 6 GiB case also completed. The full tables cover all 25 ordinary phases, the five-call interaction and three heavy phases. Population and setup/validation calls remain outside capture; the ordinary stats-read phase is timed separately. No further benchmarks were started after the stop request.

Ordinary ratios use fresh 100,000-post controls on the same 23-method artifacts. Default heavy ratios reuse the preserved exact-artifact controls; the 6 GiB case uses its own same-limit controls for both suites. Snapshot restoration gives both suites the same seeded baseline, with snapshot storage shown separately from heap/stable capacity and total accounting. Explicit upgrade checks sample stats, the last seeded post and a bounded set of derived summaries/audit rows.

The scale evidence retains ten exact completed records, 294 hash-checked trace summaries and 17,598 execution rows, source/snapshot/calibration receipts and offline oracle replay. Exact seed counts, 8,402 committed batches, the pinned server identity, cross-arm digests, instruction/page/cycle arithmetic and matched ratios validate. Independent review found no blocking measurement issue. Selected heap endpoint totals are dominated by exported page charges; content audit returns more category groups at one million posts. Neither comparison isolates a storage or allocator cause. Run python3 research/experiments/2026-10-21-forum-comparison/report-scale.py --check. Publication used offline checks only after all runs naturally finished.

A separate Small ordered seed-loader probe preserves exact request/result equivalence and one paired local timing per arm. Its modest wall-time reductions do not establish a Large-scale gain; the loader was not adopted by the qualified runs.

For current design and measurement rules, use engines, Wire, upgrades and benchmark scope. Historical run identities here do not qualify later SDK changes.