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 <grfn@gws.fyi> Autosubmit: grfn <grfn@gws.fyi> Tested-by: BuildkiteCI
10 lines
286 B
Bash
Executable file
10 lines
286 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
# Benchmark script that runs inside the Windtunnel build agent
|
|
|
|
set -euo pipefail
|
|
|
|
echo "Running benchmarks for tvix/eval..."
|
|
cd "$(dirname "$(dirname "$0")")/eval"
|
|
docker run --rm -v "$(pwd):/app" -w /app rust cargo bench
|
|
windtunnel-cli report -f criterion-rust .
|