Skip to content

Commit

Permalink
chore: configure runner for running criterion
Browse files Browse the repository at this point in the history
  • Loading branch information
dj95 committed Jun 23, 2024
1 parent 3541cfa commit b286e02
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
target = "wasm32-wasi"

[target.wasm32-wasi]
runner = "wasmtime"
runner = ["wasmtime", "--dir", "./target::target"]
6 changes: 1 addition & 5 deletions justfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
bench:
#!/usr/bin/env bash
benchmarks="$(cargo bench --target wasm32-wasi --features=bench --no-run --color=always 2>&1 | tee /dev/tty | grep -oP 'target/.*.wasm')"
echo "$benchmarks" \
| xargs -I{} wasmtime --dir $PWD/target::target {} --bench --color=always
cargo bench --features=bench

build:
cargo build --features tracing
Expand Down

0 comments on commit b286e02

Please sign in to comment.