A very simple benchmark suite to compare execution times of Binaryen wasm-opt
builds.
Put the wasm-opt
builds to benchmark into subdirectories within builds (include the bin
and lib
folders).
(Optional) Copy fixtures to test with into fixtures. These do not become executed, but are solely used as inputs.
To run the benchmark:
npm install
npm test
It's also possible to specify command line arguments other than -O
, which is the default:
npm test -- -Oz --enable-simd ...