/node-wasm

Test calculations for matrix and fibonacci. NodeJS with Rust(WASM) vs NodeJS vanilla

Primary LanguageJavaScriptApache License 2.0Apache-2.0

NodeJS & WASM

A template for kick starting a Rust and WebAssembly project using wasm-pack.

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