/binaryen-bench

A simple benchmark suite to compare execution times of Binaryen wasm-opt builds.

Primary LanguageJavaScript

binaryen-bench

A very simple benchmark suite to compare execution times of Binaryen wasm-opt builds.

Instructions

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 ...