2 ms·
None of these tests really show JS winning, but they are showing that it's within spitting distance of C++ in multiple tests [1] And, you can look at the code
by cogman10 3y ago
None of these tests really show JS winning, but they are showing that it's within spitting distance of C++ in multiple tests [1]
And, you can look at the code yourself, most of the examples read pretty much exactly the same as their C++ counterparts.
Mind you, this is also a test that looks at execution start to finish and doesn't give warmup time (which will always favor statically compiled languages).
> performance isn't consistent across VM versions
That's true for C++ compilers, so why would you expect performance to remain constant with a JIT compiler?
[1] https://benchmarksgame-team.pages.debian.net/benchmarksgame/fastest/node-gpp.html https://benchmarksgame-team.pages.debian.net/benchmarksgame/...