3 ms·
It's always surprising reading articles like this. The hard truth is that Javascript does not actually achieve great performance. It's squarely in the back-mi
by JohnHaugeland 5y ago
It's always surprising reading articles like this.
The hard truth is that Javascript does not actually achieve great performance. It's squarely in the back-middle of the pack. It's just that it's vastly improved versus its old self, and the methodology to get there has been wildly complex.
Of the languages tested in the alioth benchmark, more than half outperform node.
This should not be surprising, given its lack of basic containers and algorithms, and the inability to make the real thing. (No, an array containing an item and another array isn't a linked list. No, Okasaki containers aren't the real thing. Your complexity guarantees undermine your confident statements.)
https://benchmarksgame-team.pages.debian.net/benchmarksgame/fastest/node-gpp.html https://benchmarksgame-team.pages.debian.net/benchmarksgame/...
- Spivak 5y agoSo yes but comparing to C++ is probably not the choice that will be presented by most development teams. You’re probably looking more at Python, Ruby, Go, and Java as the main alternatives and JS suddenly starts tending toward the front of the pack.
- rixed 5y agoYet the title says "great performance", not "great performance compared to python".
- JohnHaugeland 5y agoGo and Java have quite good performance.