From 6edcb03cb64164972efa0f924d0349b0a69782e8 Mon Sep 17 00:00:00 2001 From: Aspen Smith Date: Tue, 5 Dec 2023 11:58:20 -0500 Subject: feat(tvix): Add script for running benchmarks in Windtunnel Currently this just uses a Docker container, which is gross but works fine for now since we don't have the ability to build benchmarks in nix as of cl/7538 Change-Id: I48e317f44bc2c73533d7663403786a3a37c7952f Reviewed-on: https://cl.tvl.fyi/c/depot/+/10189 Reviewed-by: flokli Tested-by: BuildkiteCI Reviewed-by: grfn Autosubmit: grfn --- tvix/scripts/bench.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 tvix/scripts/bench.sh (limited to 'tvix/scripts') diff --git a/tvix/scripts/bench.sh b/tvix/scripts/bench.sh new file mode 100755 index 0000000000..678a37e2a3 --- /dev/null +++ b/tvix/scripts/bench.sh @@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +# Benchmark script that runs inside the Windtunnel build agent + +set -euo pipefail + +echo "Running benchmarks for tvix/eval..." +cd tvix/eval +docker run --rm -v "$(pwd):/app" -w /app rust cargo bench +windtunnel-cli report -f criterion-rust . -- cgit 1.4.1