Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/glentiki/wasm-v-js-v-native
https://github.com/glentiki/wasm-v-js-v-native
Last synced: 10 minutes ago
JSON representation
- Host: GitHub
- URL: https://github.com/glentiki/wasm-v-js-v-native
- Owner: GlenTiki
- Created: 2018-02-22T17:46:44.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-02-27T01:45:29.000Z (almost 7 years ago)
- Last Synced: 2024-11-25T20:25:27.068Z (about 1 month ago)
- Language: JavaScript
- Size: 109 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# wasm-v-js-v-native
A repo to benchmark web assembly generated with rust against javascript and a native c++ addon.
Heavily inspired by and uses code from: https://medium.com/the-node-js-collection/speed-up-your-node-js-app-with-native-addons-5e76a06f4a40
## Graph
## Setup
To run the benchmarks, you need to rust setup to compile to wasm-unknown-unknown. Check this repo for instruction on how to do that: https://github.com/rust-lang-nursery/rust-wasm
You'll also need wasm-gc installed: https://github.com/alexcrichton/wasm-gc
Clone this repo
Run `npm install`
then run `npm run benchmark`
Benchmarking output is valid csv. I dropped this into the calcs.csv with some column titles and uploaded to google sheets to generate my chart.
## License
MIT