mirror of
https://github.com/roc-lang/roc.git
synced 2025-11-02 22:01:20 +00:00
wasm_interp: Make ValueStack a dumb Vec<Value> => Zig test 146.3->124.6ms
This commit is contained in:
parent
1f90286d64
commit
8c7d9dbff8
5 changed files with 156 additions and 304 deletions
|
|
@ -6,7 +6,11 @@ set -euxo pipefail
|
|||
# Test failures will always point at the _start function
|
||||
# Make sure to look at the rest of the stack trace!
|
||||
|
||||
# Zig will try to run the test binary it produced, but it is a wasm object and hence your OS won't
|
||||
# know how to run it. In the error message, it prints the binary it tried to run. We use some fun
|
||||
# unix tools to get that path, then feed it to wasmer
|
||||
zig test -target wasm32-wasi-musl -O ReleaseFast src/main.zig --test-cmd wasmer --test-cmd-bin
|
||||
# Zig will try to run the test binary it produced, but since your OS doesn't know how to
|
||||
# run Wasm binaries natively, we need to provide a Wasm interpreter as a "test command".
|
||||
zig test -target wasm32-wasi-musl -O ReleaseFast src/main.zig --test-cmd ~/roc/target/release/roc_wasm_interp --test-cmd-bin
|
||||
|
||||
hyperfine --warmup 1 \
|
||||
'zig test -target wasm32-wasi-musl -O ReleaseFast src/main.zig --test-cmd wasmer --test-cmd-bin' \
|
||||
'zig test -target wasm32-wasi-musl -O ReleaseFast src/main.zig --test-cmd wasm3 --test-cmd-bin' \
|
||||
'zig test -target wasm32-wasi-musl -O ReleaseFast src/main.zig --test-cmd ~/roc/target/release/roc_wasm_interp --test-cmd-bin'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue