From aa7402d0ad8847253aac2db01ef1fda7d9dca028 Mon Sep 17 00:00:00 2001 From: Bailey Pearson Date: Wed, 28 Aug 2024 09:40:37 -0600 Subject: [PATCH] run benchmarks from current branch, not main --- .evergreen/run-granular-benchmarks.sh | 4 +++- .evergreen/run-spec-benchmarks.sh | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.evergreen/run-granular-benchmarks.sh b/.evergreen/run-granular-benchmarks.sh index 529603206..81ae76192 100644 --- a/.evergreen/run-granular-benchmarks.sh +++ b/.evergreen/run-granular-benchmarks.sh @@ -1,8 +1,10 @@ #!/usr/bin/env bash +if [[ -z "${PROJECT_DIRECTORY}" ]]; then echo "PROJECT_DIRECTORY is unset" && exit 1; fi source "${PROJECT_DIRECTORY}/.evergreen/init-node-and-npm-env.sh" + set -o xtrace WARMUP=$WARMUP ITERATIONS=$ITERATIONS -WARMUP=$WARMUP ITERATIONS=$ITERATIONS npm run check:granular-bench +WARMUP=$WARMUP ITERATIONS=$ITERATIONS LIBRARY=$PROJECT_DIRECTORY npm run check:granular-bench diff --git a/.evergreen/run-spec-benchmarks.sh b/.evergreen/run-spec-benchmarks.sh index 5ce908336..8de484f1e 100644 --- a/.evergreen/run-spec-benchmarks.sh +++ b/.evergreen/run-spec-benchmarks.sh @@ -1,5 +1,6 @@ #!/usr/bin/env bash +if [[ -z "${PROJECT_DIRECTORY}" ]]; then echo "PROJECT_DIRECTORY is unset" && exit 1; fi source "${PROJECT_DIRECTORY}/.evergreen/init-node-and-npm-env.sh" -npm run check:spec-bench +LIBRARY=$PROJECT_DIRECTORY npm run check:spec-bench