From 0b524890e91799eecf6557325876478a13682406 Mon Sep 17 00:00:00 2001 From: Aspen Smith Date: Wed, 6 Dec 2023 11:14:16 -0500 Subject: refactor(tvix): Make benchmark script directory-agnostic Allow running the benchmark script from any directory - primarily so Windtunnel can point to the /tvix josh workspace rather than the depot overall Change-Id: Ie5fc3ef995bf8114277298ae5c5010e6a0bf13ac Reviewed-on: https://cl.tvl.fyi/c/depot/+/10205 Reviewed-by: grfn Autosubmit: grfn Tested-by: BuildkiteCI --- tvix/scripts/bench.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tvix/scripts/bench.sh') diff --git a/tvix/scripts/bench.sh b/tvix/scripts/bench.sh index 678a37e2a314..5598087a0cf7 100755 --- a/tvix/scripts/bench.sh +++ b/tvix/scripts/bench.sh @@ -5,6 +5,6 @@ set -euo pipefail echo "Running benchmarks for tvix/eval..." -cd tvix/eval +cd "$(dirname "$(dirname "$0")")/eval" docker run --rm -v "$(pwd):/app" -w /app rust cargo bench windtunnel-cli report -f criterion-rust . -- cgit 1.4.1