Utilities for benchmarking and analysis of webassembly engines
Docker and Python 3.7 should be installed as prerequisites
pipenv shell
pipenv install
Build docker images for wasm engines:
bash build_engine_images.sh
python main.py benchmark -c
python main.py analyse -f /path/to/dataset.json
Wasmi - https://github.com/paritytech/wasmi
Wasm blobs used for benchmarking should conform to a standard environment interface. Currently two host functions are exposed to the wasm runtime:
inputDataCopy(ptr: u32, offset: u32, length: u32)
: copylength
bytes of input data passed from the host (starting atoffset
) into memory atptr
inputDataSize() -> u32
: return the size of input data passed from the host