ECS vs OOP Spatial Benchmark

Status: Ready

Can Javascript actually realize the hardware cache locality gains of Data-Oriented Entity Component Systems (ECS)? Or do heap allocations and V8 pointer indirections erode these benefits? And is WebAssembly (WASM) required to break through these performance ceilings?


Explore this real-time benchmark suite comparing spatial trees against flat Sweep & Prune algorithms across Javascript and WebAssembly.

Research Focus:

Hypothesis 1: Is an O(N log N) spatial tree always faster than O(N²) Sweep & Prune?

Simulation Settings

Wandering keeps particles moving smoothly. Frame-to-frame positions are almost identical, enabling optimal linear-time sorting.

Performance Displays

Speedup vs

Execution Time Trend

Frame: 0 / 1000

Live Visualizer Output