Comparing the execution speed between Web Assemby and Javascript. Built a prime number checker app with wasm and js for that.
To run, ensure you have rust, node and npm installed. After cloning,
- Install wasm-pack if you haven't by running
cargo install wasm-pack
- Inside the root of the project, to compile rust to web assembly, run
npm run build-wasm
- To start up the application, run
npm run dev