From b286e0228d28bdbf1e599632a350732fd8acf687 Mon Sep 17 00:00:00 2001 From: Daniel Jankowski Date: Sun, 23 Jun 2024 12:32:53 +0200 Subject: [PATCH] chore: configure runner for running criterion --- .cargo/config.toml | 2 +- justfile | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/.cargo/config.toml b/.cargo/config.toml index 75cf48e..0a392a6 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -2,4 +2,4 @@ target = "wasm32-wasi" [target.wasm32-wasi] -runner = "wasmtime" +runner = ["wasmtime", "--dir", "./target::target"] diff --git a/justfile b/justfile index 0104a31..df25161 100644 --- a/justfile +++ b/justfile @@ -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