Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dsherret/slow-wasm-example
https://github.com/dsherret/slow-wasm-example
Last synced: 13 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/dsherret/slow-wasm-example
- Owner: dsherret
- Created: 2021-04-25T20:05:38.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-06-04T17:22:30.000Z (over 1 year ago)
- Last Synced: 2024-10-30T08:51:20.531Z (about 2 months ago)
- Language: Rust
- Size: 1.9 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
On a Windows machine (works fine on Linux and Mac):
1. Build the .wasm file by running `./build.sh`.
3. `cd native-app && cargo run --release` - Note the time it takes.
2. `cd wasmer-app && cargo run --release` - Note the time it takes.
2. `cd wasmtime-app && cargo run --release` - Note the time it takes.
4. Run a web server in the root directory (ex. `python -m SimpleHTTPServer 7800`).
5. Go to `http://localhost:7800/test.html` and open the console. Note the time it takes in different browsers.Results on my machine:
1. Native - ~433ms
2. Wasmer (cranelift) - ~~145s~~ ~448ms -- Fixed :)
3. Wasmtime - ~436ms
3. Chrome - 5s
4. Firefox - 705ms