How we benchmarked Harbor Forum
We asked AI to specify one forum and had coding agents build it four ways. Then we measured everything from liking a post to auditing 4,096 posts on the same million-post dataset.
One specification, four builds
We asked AI to draft the forum’s public methods and business rules. The spec defined the inputs, replies, and state changes for each method. We gave that same spec to coding agents so they could implement the forum independently.
They built RSX with Nyxus, Motoko with enhanced orthogonal persistence, and two versions with DFINITY’s Rust CDK, one using stable structures and one using plain heap. Each build used its own data layout and message format while following the same public contract.
Why we added a content audit
We asked for both routine actions, such as opening a topic or liking a post, and methods that do substantial work in one call. That mix reflects how we use RSX. Reactor delivers batches and Takt can run several ready workflow steps in one execution. The forum measures the cost of doing substantial work inside a single canister call.
The second round added a content audit and methods that rebuild topic and author summaries. The audit is a read-only moderator query. In each measured call it reads 4,096 full post bodies, includes hidden posts in its scan, looks up their topics and authors, and returns grouped totals and a checksum.
How we matched the work
We seeded each build with 100,000 users, 640 categories, 100,000 topics, one million posts, and three million likes before measuring it. All four builds ran within the same 3 GiB Wasm limit. The audit used 16 distinct windows, with the same windows on every build. An independent reference model computed the expected replies outside the measured calls, and the harness checked every reply against it.
The PocketIC counts cover complete calls, including decoding, application work, encoding, cleanup, and page charges. Each implementation has its own toolchain and data representation, so the results measure the cost of the whole build.
What the calls cost
A five-call visit reads a topic, likes a post, writes a reply, advances the read marker, and reads the new reply. Across 32 runs per build, it averaged 12.96 million instructions with RSX and 24.26 million with DFINITY Rust and stable structures. Motoko averaged 39.28 million and plain-heap Rust averaged 72.18 million.
The audit widened the gap among builds that retain data. RSX averaged 157.25 million instructions, DFINITY Rust with stable structures averaged 636.52 million, and Motoko averaged 1.71 billion. Plain-heap Rust averaged 131.32 million and reset its state during the same-code upgrade check. The other three builds retained their sampled state.