Sixty thousand particles ride a curl-noise flow field. The simulation is a
raw WebGPU compute shader, the app is Rust compiled to WebAssembly, and the
interface is plain DOM. No frameworks, no libraries, no npm packages, nothing between the
code and the metal.
WebGPU is not available in this browser, so you are seeing the Canvas2D fallback: the
same flow field computed on the CPU, capped at 3,000 particles. For the full
60,000-particle WebGPU version, open this page in a current Chrome, Edge, or Safari.
starting the engine
The harness
What good means, defined up front and measured live on this device. Frame
times are animation-frame deltas (what a visitor actually feels), not GPU vendor numbers.
WASM payloadmeasuring
Total page payloadmeasuring
Time to first framemeasuring
Rolling FPS0
Frame time p950 ms
Particles simulated0
First frame under 1000 ms
Total bundle under 350 KB gzipped
p95 frame time under 20 ms at 60,000 particles, real GPU hardware
Headless browsers and software rendering (SwiftShader) understate FPS and
inflate frame times, because every pixel is drawn by the CPU. On real GPU hardware these
numbers climb. The harness reports this machine honestly either way.
How this compares to a typical website
The typical stack
A framework runtime (React, Vue) plus a router plus a WebGL library commonly lands between 300 KB and 1 MB or more of gzipped JavaScript before your own code starts.
The framework owns the DOM through a virtual layer, so every interaction pays for diffing and scheduling machinery you did not write.
A bundler, a transpiler, and polyfills sit between your source and the browser; what ships is not what you wrote.
In exchange: a huge component ecosystem, familiar hiring pool, and guardrails everywhere.
This page
One WebAssembly file (the harness above shows its real size) plus a thin generated glue script. Zero dependencies at runtime, zero third-party requests.
The GPU is programmed directly: a compute shader moves the particles, raw render passes draw them. The DOM is manipulated directly.
What ships is what was written, and view-source shows you the entire stack.
The cost: everything is hand-built, including bind groups, resize handling, and the Canvas2D fallback for browsers without WebGPU. Rust compile times are real, and the WebGPU talent pool is small.