https://github.com/zhuravlevma/node-wasm
Test calculations for matrix and fibonacci. NodeJS with Rust(WASM) vs NodeJS vanilla
https://github.com/zhuravlevma/node-wasm
nodejs wasm wasm-bindgen wasm-pack webassembly
Last synced: 3 months ago
JSON representation
Test calculations for matrix and fibonacci. NodeJS with Rust(WASM) vs NodeJS vanilla
- Host: GitHub
- URL: https://github.com/zhuravlevma/node-wasm
- Owner: zhuravlevma
- License: apache-2.0
- Created: 2022-04-08T18:24:03.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-04-10T17:32:09.000Z (over 3 years ago)
- Last Synced: 2025-03-04T22:34:30.726Z (7 months ago)
- Topics: nodejs, wasm, wasm-bindgen, wasm-pack, webassembly
- Language: JavaScript
- Homepage:
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE_APACHE
Awesome Lists containing this project
README
## About
## Test results
### Average time of calculations for Matrix:
#### WASM: 1ms ⚡
#### JS vanilla: 95.82ms
### Average time of calculations for Fibonacci:
#### WASM: 92ms ⚡
#### JS vanilla: 173.71428571428572ms## 🚴 Usage
```
npm start
```### 🛠️ Build with `wasm-pack build`
```
wasm-pack build
```## 🔋 Batteries Included
* [`wasm-bindgen`](https://github.com/rustwasm/wasm-bindgen) for communicating
between WebAssembly and JavaScript.
* [`console_error_panic_hook`](https://github.com/rustwasm/console_error_panic_hook)
for logging panic messages to the developer console.
* [`wee_alloc`](https://github.com/rustwasm/wee_alloc), an allocator optimized
for small code size.