orca/ext/wasm3/test/wasi/mandelbrot
Martin Fouilleul 17c0f02962 orca runtime initial commit 2023-04-12 16:21:03 +02:00
..
README.md orca runtime initial commit 2023-04-12 16:21:03 +02:00
colors.h orca runtime initial commit 2023-04-12 16:21:03 +02:00
doubledouble.h orca runtime initial commit 2023-04-12 16:21:03 +02:00
image.png orca runtime initial commit 2023-04-12 16:21:03 +02:00
mandel.c orca runtime initial commit 2023-04-12 16:21:03 +02:00
mandel_dd.c orca runtime initial commit 2023-04-12 16:21:03 +02:00

README.md

mandelbrot

Based on https://github.com/josch/mandelbrot

Results

TODO

Building

wasicc -g0 -O3 mandel_dd.c -o mandel_dd.wasm
wasicc -g0 -O3 mandel.c -o mandel.wasm

Running

export ENGINES_PATH=/opt/wasm_engines

# Wasm3
../../../build/wasm3 mandel_dd.wasm > image.ppm

# WAC
$ENGINES_PATH/wac/wax mandel_dd.wasm > image.ppm

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

# wasmtime
wasmtime --optimize mandel_dd.wasm > image.ppm

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

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

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

# WAVM
$ENGINES_PATH/WAVM/Release/bin/wavm run mandel_dd.wasm > image.ppm