3 ms·
Super cool! I'm sure this is highly situational, but roughly how much faster can Rust -> WASM be than vanilla JS? 2x, 10x, 100x?
by areis 5y ago
Super cool! I'm sure this is highly situational, but roughly how much faster can Rust -> WASM be than vanilla JS? 2x, 10x, 100x?
- janpaul123 5y agoGreat question! I wrote a blog post yesterday going into the nuances of this a bit: https://zaplib.com/docs/blog_ts++.html https://zaplib.com/docs/blog_ts++.html The short of it is that Rust+Wasm isn't much faster than highly optimized JS in most situations, but it's hard to optimize it. In Rust it's a lot easier to get to the same level of performance as highly optimized JS. We also support building compiling to native though, and we've found that the typical difference between Wasm and native apps is about 2x (on most metrics).
- mattgreenrocks 5y agoWow, only a 2x difference? That is fantastic on the Wasm side.
- janpaul123 5y agoYeah, Wasm is quite fast these days, and there is still more room to grow!