Перейти к содержимому

The Performance overhead of WASM over Native Rust

Michael Mullin

0:00 / 0:00

The Performance overhead of WASM over Native Rust

15 563 просмотра · 4 года назад
Michael Mullin
3,13 тыс. подписчиков
15 563 просмотра · 4 года назад
In this video I was inspired to learn about WASM, and while I was learning about WASM I questioned "how much slower is WASM written in Rust vs Native Rust Code?" So I answer that question. I also throw in some completely unfair comparisons vs python and Go as well. This video will trigger Go programmers. This video is not comparing the speed of Go vs Rust vs Python. As I attempt to explain the speed differences are due in large part to algorithms supplied by the various runtimes. But it's still an interesting data point. Chris Hay's Video:    • webassembly system interface (wasi) change...   CORRECTIONS: Go implementation used an incorrect vector size. Correcting the vector size improves golang speed by around 5% Python implementation did not pre-allocate the vector. Pre-allocating the vector adds about 4% performance improvement. CODE for you to play with: https://github.com/masmullin2000/rand...