Simple web-assembly benchmark based on custom JSON-parsers. The motivation for this project is to integrate web-assembly and present benchmark results in readable form of web application. Test data are completly custom, and they can be provided by input directly from a browser, or pre-defined test data can be used as an option.
This project requires environmnents for:
- Go
- Rust
- nodejs/yarn
Server installation
This project uses simple Go based server. It serves static files located in assets
.
In order to run this server follow instructions below.
Go to the location
cd cmd/server/
And run
go build
Frontend installation
Go to the (you can use --cwd as well)
cd cmd/server/front
And run installation
yarn
Go wasm app installation
Go to the location
cd cmd/wasm-go
And follow the installation chapter in the README.md file
Rust wasm app installation
Go to the location
cd cmd/wasm-rust
And follow the installation chapter in the README.md file
Build frontend app using this command:
yarn build
As a result a new file should be created in assets/dist/
Now run the server:
cd cmd/server
./server