oss-fun / crun-wasm-benchmark

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

crun-wasm-benchmark

All benchmark C sources are coming from The Computer Language Benchmarks Game.

Usage

  1. Install dependencies.
make configure
  1. Build WebAssembly and native.
make build
  1. 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.

About


Languages

Language:C 64.8%Language:Shell 30.6%Language:CMake 3.1%Language:Makefile 1.4%