3 ms·
On algorithmic code, idiomatic Rust + WASM is often about 10 to 40 times faster than idiomatic JS. The problem however is that each call between WASM and JS has
by CryZe 6y ago
On algorithmic code, idiomatic Rust + WASM is often about 10 to 40 times faster than idiomatic JS. The problem however is that each call between WASM and JS has a hefty cost of about 750ns. So your algorithm needs to be doing a significant amount of independent calculations before you will see these performance differences.
- MaxBarraclough 6y ago> each call between WASM and JS has a hefty cost of about 750ns Why is this the case? Can we expect it to go away as browsers mature?