/webassembly-test-app

Benchmarking and comparison tool for JS and WebAssembly

Primary LanguageJavaScript

webassembly-test-app

This is a React app to compare Javascript, Rust-WASM and Go-WASM. It depends on webassembly-tests-rust and webassembly-tests-go.

This project was bootstrapped with Create React App.

Prerequisites

With these things this project was created and tested:

  • Node 10.15 with NPM 6.9 (using NVM)

    # Install NVM and follow instructions
    curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash
    # Install Node and NPM
    nvm install 10
    nvm use 10
    npm install npm@6.9.0 -g
  • webassembly-tests-rust

    Checkout somewhere, build and run there:

    cd pkg
    npm link

    And run here:

    npm link webassembly-tests-rust
  • webassembly-tests-go

    Checkout somewhere, build and run here:

    ln -s <PATH_TO_IT>/bin public/go

Build

npm run build

Run

npm run start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

Credits