4 ms·
I am highly skeptical of any claim that anything can be 10x-100x faster that JavaScript. Do you have any concrete example where a similar program coded in (dece
by carlopi 6y ago
I am highly skeptical of any claim that anything can be 10x-100x faster that JavaScript. Do you have any concrete example where a similar program coded in (decently written) JS is that slower?
I work on a compiler from C++ to JavaScript & WebAssembly (Cheerp), and I have basically never saw any such a difference.
- juntao 6y agoThe speed differences between Python, JS, and C++/Rust are well documented. https://www.secondstate.io/articles/performance-rust-wasm/ https://www.secondstate.io/articles/performance-rust-wasm/ But, of course, they are not universal and tend to have a large effect in areas where JS is rarely used — a selection bias one might say.
- carlopi 6y agoDo you have any single example where Rust+WebAssembly are 100x (or even 10x) faster than JavaScript? I did got to the page you linked, but also there is no actual "proof".
- juntao 6y agoWe took that experts at IBM and MIT would be honest about their performance findings. :) But, it appears that actual performance numbers are of great interest to the community. We will create repeatable benchmarks and open source them. Stay tuned!
- athriren 6y agoFrom this link: “A study done by IBM found that Rust and WebAssembly could be 15x (15,000%) faster than compiled languages, such as Scala, which is traditionally considerred a high performance language.” This calculation is off by an order of magnitude. 15 * 100 = 1500, so a 15x increase is not 15000%.
- juntao 6y agoThanks, updated.