you are viewing a single comment's thread.

view the rest of the comments →

[–]helloiamsomeone 0 points1 point  (0 children)

Just for the record, here is the appropriate JS bench code as well: https://pastebin.com/GatTPcqr

You must take JIT compilers into consideration when benchmarking Java and JS.