All benchmark C sources are coming from The Computer Language Benchmarks Game.
- Install dependencies.
make configure
- Build WebAssembly and native.
make build
-
Run benchmark. (Note: Previous benchmark result is removed)
- Single wasm (N is number of times to run the benchmark.)
sudo make benchmark_single_wasm N=1
- Multiple wasm (N is number of times to run the benchmark.)
sudo make benchmark_multiple_wasm N=1
- Native (N is number of times to run the benchmark.)
cd bundle_for_native # Acquire a root filesystem from an existing Docker container (ubuntu in this example). docker export $(docker create ubuntu) | tar -C rootfs -xvf - cd - sudo make benchmark_native N=1
Log files are generated in benchmark
.