Skip to content

oss-fun/crun-wasm-benchmark

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 64.9%
  • Shell 30.6%
  • CMake 3.1%
  • Makefile 1.4%