You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
wasm3/test/wasi/smallpt
Volodymyr Shymanskyy b7d2ff21d1
Update spec tests to opam-1.1.1, enable Multi-Value tests
3 years ago
..
README.md Update wasi tests 3 years ago
image.jpg Restructure tests 3 years ago
smallpt-ex-mv.wasm Update spec tests to opam-1.1.1, enable Multi-Value tests 3 years ago
smallpt-ex.cpp Restructure tests 3 years ago
smallpt-ex.wasm Add python tests 3 years ago
smallpt.cpp Restructure tests 3 years ago
smallpt.wasm Add python tests 3 years ago

README.md

smallpt

Based on https://www.kevinbeason.com/smallpt/

Results

TODO

Building

wasic++ -g0 -Oz -Wl,--stack-first -Wl,-z,stack-size=$[1024*1024] smallpt-ex.cpp -o smallpt-ex.wasm

Running

export ENGINES_PATH=/opt/wasm_engines

# Wasm3
../../../build/wasm3 smallpt-ex.wasm > image.ppm

# WAC
$ENGINES_PATH/wac/wax smallpt-ex.wasm > image.ppm

# wasm-micro-runtime
$ENGINES_PATH/wasm-micro-runtime/core/iwasm/products/linux/build/iwasm smallpt-ex.wasm > image.ppm

# wasmtime
wasmtime --optimize smallpt-ex.wasm > image.ppm

# Wasmer
wasmer run smallpt-ex.wasm > image.ppm
wasmer run --backend singlepass smallpt-ex.wasm > image.ppm
wasmer run --backend llvm       smallpt-ex.wasm > image.ppm

# Wasmer-JS (V8)
wasmer-js run smallpt-ex.wasm > image.ppm

node --wasm_interpret_all $(which wasmer-js) run smallpt-ex.wasm > image.ppm

# WAVM
$ENGINES_PATH/WAVM/Release/bin/wavm run smallpt-ex.wasm > image.ppm