4 ms·
I also did a lightning talk demo on Nashorn vs Node performance a few months ago (local JS user group). For the little string mashing benchmark I put together
by Roboprog 10y ago
I also did a lightning talk demo on Nashorn vs Node performance a few months ago (local JS user group).
For the little string mashing benchmark I put together (originally to compare sequential / fork / thread performance in various languages), Nashorn's (Java 8) JIT eventually catches up and passes Node. Alas, it's one of those "O(n) for large n" problems where n has to be around a million before this happens.
... And Perl still mops the floor up with all of them. (Perl is good at string handling, even if not so much at many other things)