4 ms·
Technically JavaScript is only ~7% slower then C++ to execute. But snipe away at that stats with real data.
by thelarkinn 8y ago
Technically JavaScript is only ~7% slower then C++ to execute. But snipe away at that stats with real data.
- TeMPOraL 8y agoTechnically, maybe. In practice, each language has its culture, its ecosystem. Its set of tools to pick from. Is it reasonable to expect the JavaScript Office will really just bind directly to all the native APIs it was using before, thus incurring only 7% penalty (+/- FFI)? Or is it more likely that it'll have web rendering shoved in everywhere, and then layers upon layers of off-the-shelf JS libraries, thus incuring more like 700% penalty in resource use?
- 0xcafecafe 8y agoDoesn't it depend on the benchmark? Yes, for some numeric problem as described here (https://www.linkedin.com/pulse/algorithmic-performance-comparison-c-javascript-java-malyshev/ https://www.linkedin.com/pulse/algorithmic-performance-compa...), the 7% figure seems reasonable. But for a real world app with object creation/deletion, the C++ memory model at a lower level would provide a much better performance over a garbage collected higher level one. And even if (hypotheically) the performance difference a constant 7%, that is still a tangible cost.
- xeeeeeeeeeeenu 8y agoThe real problem is DOM, not the language or its implementations.