forked from Mirrors/wasm3
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.
|
3 years ago | |
---|---|---|
.. | ||
README.md | 3 years ago | |
alice29.txt | 3 years ago | |
alice29.txt.compressed | 3 years ago | |
alice29_small.txt | 3 years ago | |
brotli.wasm | 3 years ago |
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