diff options
-rwxr-xr-x | tvix/scripts/bench.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tvix/scripts/bench.sh b/tvix/scripts/bench.sh index d88638701a88..548a9d2058d3 100755 --- a/tvix/scripts/bench.sh +++ b/tvix/scripts/bench.sh @@ -6,13 +6,16 @@ set -euo pipefail echo "Running benchmarks for tvix/eval..." -cd "$(dirname "$(dirname "$0")")/eval" +pushd "$(dirname "$(dirname "$0")")/eval" cargo bench windtunnel-cli report -f criterion-rust . +popd echo "Running tvix macrobenchmarks..." +pushd "$(dirname "$(dirname "$0")")" cargo build --release --bin tvix hyperfine --export-json ./results.json \ -n 'eval-nixpkgs-hello' "target/release/tvix -E '(import ../../nixpkgs {}).hello.outPath'" \ -n 'eval-nixpkgs-cross-hello' "target/release/tvix -E '(import ../../nixpkgs {}).pkgsCross.aarch64-multiplatform.hello.outPath'" windtunnel-cli report -f hyperfine-json ./results.json +popd |