I had the same issue with gamemakers web export. It was really laggy and ran terribly. Godot web seems much better so far.
I'm new to godot so this could be wrong but, I think it runs smoothly bc I'm setting everything's physics process to false initially. Then I only enable objects that are inside the cameras view.