forked from Mirrors/wasm3
parent
f9bd310949
commit
7df2cd3782
@ -0,0 +1,44 @@
|
||||
# smallpt
|
||||
|
||||
### Results
|
||||
|
||||
```log
|
||||
TODO
|
||||
```
|
||||
|
||||
### Building
|
||||
|
||||
```sh
|
||||
wasic++ -O3 -Wl,-z,stack-size=$[256*1024] smallpt-ex.cpp -o smallpt-ex.wasm
|
||||
```
|
||||
|
||||
### Running
|
||||
|
||||
```sh
|
||||
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
|
||||
```
|
Binary file not shown.
Binary file not shown.
Loading…
Reference in new issue