Measuring performance of JavaScript?

So.. I'm looking into physics engines and the most promising one I can find is box2d. Problem: there are several implementations floating around, the most prominent ones being box2dweb and box2djs, both ported from an actionscript (flash) port, and box2d.js wich is ported to javascript directly from the c++ source using emscripten. Now, given how the first two have that translation to actionscript in between and are not as freshly updated as the last one, my gut tells me box2d.js should be the better performing one, but that's not enough: I want numbers!

Additionally, I'd like to arrive to conclusions of the sort of "how many box2d worlds of this game of mine can I run concurrently on my node.js server before performance goes to hell?", "what's the highest simulation precision I can run on this particular mobile phone before fps drops below 30?" and the such.

The thing is: I've never done this kind of testing before and have no idea where to start. Help?
Have you seen this: http://blog.j15r.com/blog/2011/12/15/Bo ... erformance
irresistible force wrote:Have you seen this: http://blog.j15r.com/blog/2011/12/15/Bo ... erformance


No, I had not!

That post is just awesome, the data is a bit outdated now, but still it's a great place for start. Big thanks! 😀

edit: ahá! he's actually posted a newer version with updated numbers 🙂
http://blog.j15r.com/blog/2013/04/25/Box2d_Revisited

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