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
Volodymyr Shymanskyy 93c50b5882
Remove native C bindings. Validate args for Raw calls. Cleanup
5 years ago
..
0.txt Add missing file 5 years ago
README.md Benchmark native vs raw function calls 5 years ago
test-opt.wasm Update wasi test 5 years ago
test.c Benchmark native vs raw function calls 5 years ago
test.wasm Update wasi test 5 years ago
test_native_vs_raw.c Remove native C bindings. Validate args for Raw calls. Cleanup 5 years ago
test_native_vs_raw.wasm Add cycles count argument 5 years ago
wasm_api.h Remove native C bindings. Validate args for Raw calls. Cleanup 5 years ago
wasm_api.syms Remove native C bindings. Validate args for Raw calls. Cleanup 5 years ago

README.md

Compile

wasicc -O3 test.c -o test.wasm
wasm-opt -O3 test.wasm -o test-opt.wasm
wasm-strip test-opt.wasm
wasicc -O3 test_native_vs_raw.c -o test_native_vs_raw.wasm -Wl,--allow-undefined-file=wasm_api.syms
wasm-opt -O3 test_native_vs_raw.wasm -o test_native_vs_raw.wasm
wasm-strip test_native_vs_raw.wasm

Run

../../build/wasm3 test.wasm

$ENGINES_PATH/wasm-micro-runtime/core/iwasm/products/linux/build/iwasm test.wasm

$ENGINES_PATH/wac/wax test.wasm

$ENGINES_PATH/WAVM/Release/bin/wavm run test.wasm

wasmer run test.wasm

wasmer-js run test.wasm