This is a demo of why memory layout matters for speed. Your browser is simulating every particle in the box, every frame. There are two copies of the same code — they do identical math, but store the particles differently:
Press E to switch between them and watch the sim number above — that's how long one frame of physics takes. Same work, and one is several times faster. Press + to add 100k more particles: the more you add, the bigger the gap gets.