On a Windows machine (works fine on Linux and Mac):
- Build the .wasm file by running
./build.sh
. cd native-app && cargo run --release
- Note the time it takes.cd wasmer-app && cargo run --release
- Note the time it takes.cd wasmtime-app && cargo run --release
- Note the time it takes.- Run a web server in the root directory (ex.
python -m SimpleHTTPServer 7800
). - Go to
http://localhost:7800/test.html
and open the console. Note the time it takes in different browsers.
Results on my machine:
- Native - ~433ms
- Wasmer (cranelift) -
145s~448ms -- Fixed :) - Wasmtime - ~436ms
- Chrome - 5s
- Firefox - 705ms