Fibonacci sequence tests across various Rust WASM libraries. Configure SAMPLES constants in wasm/src/lib.rs
or src/main.rs
to change how many times each test is run. Note that you will have to recompile the wasm
sub-crate and replace fib.wasm
.
Sample test running on Windows 11 with an AMD Ryzen 5 7600X processor. Take these results with a grain of salt.
Library | Duration |
---|---|
Native | 12.4033124s |
Wasmer | 19.0821352s |
Wasmi | 224.9822229s |