Skip to content

Commit

Permalink
feat: add wasmi optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouwfang committed Jul 6, 2024
1 parent 0de9931 commit 144f54f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 5 additions & 1 deletion crates/wasm-bench/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,8 @@ esac

FEATURES=--features=target-$1,runtime-$2

x cargo run --release $TARGET $FEATURES
if [ "$2" = "wasmi" ]; then
x cargo run --profile=wasmi_optimization $TARGET $FEATURES
else
x cargo run --release $TARGET $FEATURES
fi
4 changes: 0 additions & 4 deletions crates/wasm-bench/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@ test_helper

cargo test --bin=wasm-bench --features=target-linux,runtime-base
cargo test --bin=wasm-bench --features=target-linux,runtime-wasm3
# The tests-0 in CI executes "cargo check --profile=test
# --bin=wasm-bench --features=target-linux,runtime-wasmi --profile=wasmi_optimization"
# with error: the argument '--profile <PROFILE-NAME>' cannot be used multiple times".
# cargo test --bin=wasm-bench --features=target-linux,runtime-wasmi --profile=wasmi_optimization
cargo test --bin=wasm-bench --features=target-linux,runtime-wasmi
cargo check --bin=wasm-bench --target=thumbv7em-none-eabi --features=target-nordic,runtime-base
# wasm3/source/wasm3.h:16:10: fatal error: 'stdlib.h' file not found
Expand Down

0 comments on commit 144f54f

Please sign in to comment.