What's the performanc of having many worlds running at once?

Hi everyone! Here's my problem:

I'm doing some multiplayer-related tests (I know, I know, realtime multiplayer in the browser is still a bitch, but that's not what I'm here to ask), and I've come to a point in wich I'm doubting in how to implement rooms in my game. You see, the rooms I'm talking about would be completely separated, except for the occasional opening door, so for networking purposes it is simpler to treat the syncronization of the players in each room separately, but now for the actual simulations taking place within the box2d (I'm still deciding over box2dweb and box2djs) on the server (using node.js) I'm not sure if it'd be more convenient (performance-wise) to simulate each room separately in it's own box2d world or to simply put them all in the same world. Note that when I say doors you would be better off thinking portals, rooms connected by a "door" won't neccesairly be adjacent nor regularly shaped and sized.

Thanks!
I think you would be lucky to find anyone who has done this to give you any info about how it worked... but about having separate worlds, I don't think there would be much difference in processing time. The time would still roughly depend on the total number of bodies, fixtures, joints etc in all the worlds.
Ah, thought so.

Thanks for the quick reply!

So, let me rephrase my question:

any tips or pointers regarding performance benchamarking javascript in the browser and or on nodejs?

The question I'm going to target first is: "what is the performance (both in CPU and RAM) cost of having many (many) rooms with inactive objects in a same world VS having a separate world for each?". And then "what is the performance cost of repeatedly creating, modifying and destroying worlds VS doing so to isolated 'rooms' within a same world"?

Any other ideas or approaches are more than welcome.

Original thread: https://box2d.org/forum/viewtopic.php?t=9218