3 ms·
The article is quite good but the Node.js example is wrong. OP is measuring dead code elimination and general overhead time. No strings get harmed in the proce
by inglor 6y ago
The article is quite good but the Node.js example is wrong. OP is measuring dead code elimination and general overhead time.
No strings get harmed in the process, run Node.js with --trace-opt to see what's happening.
- kmod 6y agoI don't know how to interpret the results of --trace-opt, but when I increase the iteration bounds 10x the running time increases 10x, so I don't think the code is being eliminated. This is with node v12.13.0