3 ms·
I don't like Javascript but you're mistaken on the performance part, even I have to give the JIT people props for how fast they've made the language in general.
by gct 4y ago
I don't like Javascript but you're mistaken on the performance part, even I have to give the JIT people props for how fast they've made the language in general.
- BuzzwordChief 4y agoIt is not about the interpreter. You just can't express performant code in these languages. JIT compilation makes Javascript faster, but it is not by any metric "fast".
- culi 4y agoDepending on specific use-case, today's JavaScript code is only 2–7 times slower than corresponding C++. That's pretty damn fast. Faster than some compiled languages. Fast enough that if you wanted to obsess over performance you can build the fastest backend framework in Node.js[0][1] [0] https://www.techempower.com/benchmarks/#section=data-r21&test=composite https://www.techempower.com/benchmarks/#section=data-r21&tes... [1] https://just.billywhizz.io/blog/on-javascript-performance-01/ https://just.billywhizz.io/blog/on-javascript-performance-01...
- mpweiher 4y agoHmm...2-7x slower is slow, and that's almost certainly after warmup. Just to put it in perspective: the new Team's startup time is ~9 seconds. At 7x faster, it would be slightly above 1 second, which would be OK.