about summary refs log tree commit diff
path: root/tvix/scripts/bench.sh
diff options
context:
space:
mode:
authorAspen Smith <root@gws.fyi>2023-12-05T16·58-0500
committerclbot <clbot@tvl.fyi>2023-12-05T17·46+0000
commit6edcb03cb64164972efa0f924d0349b0a69782e8 (patch)
treecd70bdcec883c8bc4e4a71370e403556b244776b /tvix/scripts/bench.sh
parentb7b993b2886fad78847edbf2cda7ef9963a07ab4 (diff)
feat(tvix): Add script for running benchmarks in Windtunnel r/7115
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 <flokli@flokli.de>
Tested-by: BuildkiteCI
Reviewed-by: grfn <grfn@gws.fyi>
Autosubmit: grfn <grfn@gws.fyi>
Diffstat (limited to 'tvix/scripts/bench.sh')
-rwxr-xr-xtvix/scripts/bench.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/tvix/scripts/bench.sh b/tvix/scripts/bench.sh
new file mode 100755
index 000000000000..678a37e2a314
--- /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 .