Skip to content

Comparing a prime number checker function between rust web assembly and javascript

Notifications You must be signed in to change notification settings

cudidotdev/rust-web-assembly-prime-number-checker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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,

  1. Install wasm-pack if you haven't by running
cargo install wasm-pack
  1. Inside the root of the project, to compile rust to web assembly, run
npm run build-wasm
  1. To start up the application, run
npm run dev