← Projects // current // tooling

> emubench

A benchmark harness for choosing the simulation kernel language and execution substrate.

Objectives

Qualities

Technical details

Three implementations of one deterministic kernel, plus the scripts that compare and measure them.

  • go/internal/core is the reference kernel and codec behind cmd/emubench.
  • rust/ is a port of the same core with #![forbid(unsafe_code)]; rust-wasm/guest builds it as a wasm32-wasip1 cdylib and rust-wasm/host runs it under wasmtime with a memory cap and fuel metering.
  • scripts/compare.sh is the gate; scripts/measure.sh records local numbers; golden/ holds the reference hash vector.
  • VIEWER.md and viewer/ sketch the exploration interface: a 1,000-agent world in a worker, drawn on a canvas with live statistics.

Not publicly accessible; it is a command-line harness with a local viewer.