Discord

WASM Terrain Bench

Four implementations of the same Minecraft world generation pipeline: JavaScript (deepslate, the parity oracle), Rust → WASM, C++ → WASM (emcc) and AssemblyScript → WASM. Same seed, same region, biomes + heightmap + trees + flowers. Four previews side by side show whether the variants agree deterministically, and the table below gives the raw timings.

How the benchmark works

Building the WASM artifacts

See apps/web/wasm-terrain/BUILD.md. Short build.sh scripts in the rust/, cpp/ and as/ directories generate files into /public/wasm/terrain/. The bench marks a variant as "build needed" if its artifact is unavailable.