3 ms·
Depending 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 lang
by culi 4y ago
Depending 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.