|
|
|
|
|
by ankrgyl
1295 days ago
|
|
The Rust vs. Go comparison has two key differences: - The Rust example uses 8 bit unsigned ints vs. Go example uses 32 bit signed ints - Rust's sort is stable by default whereas Go's is not. If you tweak the Rust benchmark to use `i32` instead of `u8` and `sort_unstable` instead of `sort`, you should see ~3-4x faster performance. |
|
https://github.com/Ecostack/wasm-rust-go-asc/pull/1
My first foray into wasm, so I probably missed some optimizations like wasm-opt.