If you look at these examples:
https://www.iforce2d.net/rube/loaders/javascript/
you can see that having lots of objects & joints should not necessarily impact performance too much, since its still looking pretty smooth and it uses box2dweb, possibly even rendering the b2DebugDraw via canvas.
Also in the bike/car/truck/tank examples the level has one location where there is like fifty polygon stones lying on top of each other and they are doing so motionlessly, even when you manipulate the pile, they settle quite quickly.

Or is this happening only if a very heavy object is lying on a small and light one? Anyway we should look into this code and check the world settings.
If you look at these examples:
https://www.iforce2d.net/rube/loaders/javascript/
you can see that having lots of objects & joints should not necessarily impact performance too much, since its still looking pretty smooth and it uses box2dweb, possibly even rendering the b2DebugDraw via canvas.
Also in the bike/car/truck/tank examples the level has one location where there is like fifty polygon stones lying on top of each other and they are doing so motionlessly, even when you manipulate the pile, they settle quite quickly.
Or is this happening only if a very heavy object is lying on a small and light one? Anyway we should look into this code and check the world settings.