orca/ext/wasm3/test/wasi/brotli
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
alice29.txt orca runtime initial commit 2023-04-12 16:21:03 +02:00
alice29.txt.compressed orca runtime initial commit 2023-04-12 16:21:03 +02:00
alice29_small.txt orca runtime initial commit 2023-04-12 16:21:03 +02:00

README.md

Brotli 1.0.7

https://github.com/google/brotli

Results

TODO

Building

export CC=wasicc
make
cd bin
wasm-opt -O3 brotli.wasm -o brotli.wasm

Running

export ENGINES_PATH=/opt/wasm_engines

# Wasm3
cat alice29.txt | ../../../build/wasm3 brotli.wasm -c > alice29.txt.comp

# WAC
cat alice29.txt | $ENGINES_PATH/wac/wax brotli.wasm -c > alice29.txt.comp

# wasm-micro-runtime
cat alice29.txt | $ENGINES_PATH/wasm-micro-runtime/core/iwasm/products/linux/build/iwasm brotli.wasm -c > alice29.txt.comp

# wasmtime
cat alice29.txt | wasmtime --optimize brotli.wasm -- -c > alice29.txt.comp

# Wasmer
cat alice29.txt | wasmer run brotli.wasm -- -c > alice29.txt.comp

# Wasmer-JS (V8)
cat alice29.txt | wasmer-js run brotli.wasm -- -c > alice29.txt.comp

cat alice29.txt | node --wasm_interpret_all $(which wasmer-js) run brotli.wasm -- -c > alice29.txt.comp

# WAVM
cat alice29.txt | $ENGINES_PATH/WAVM/Release/bin/wavm run brotli.wasm -c > alice29.txt.comp