Skip to content

Commit 015b8c0

Browse files
committed
chore: fix benchmark_authz.sh script
1 parent a5a0b82 commit 015b8c0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

coderd/rbac/scripts/benchmark_authz.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ set -euo pipefail
1818
# Go benchmark parameters
1919
GOMAXPROCS=16
2020
TIMEOUT=30m
21-
BENCHTIME=1s # TODO: add 5s
22-
COUNT=1 # TODO: add 5
21+
BENCHTIME=5s
22+
COUNT=5
2323

2424
# Script configuration
2525
OUTPUT_DIR="benchmark_outputs"
@@ -46,7 +46,7 @@ function run_benchmarks() {
4646
for bench in "${BENCHMARKS[@]}"; do
4747
local output_file="${output_file_prefix}_${bench}.txt"
4848
echo "Running benchmark $bench on $branch..."
49-
GOMAXPROCS=$GOMAXPROCS go test -timeout $TIMEOUT -bench="^${bench}$" -run=^$ -benchtime=$BENCHTIME -count=$COUNT ./.. | tee "$output_file"
49+
GOMAXPROCS=$GOMAXPROCS go test -timeout $TIMEOUT -bench="^${bench}$" -run=^$ -benchtime=$BENCHTIME -count=$COUNT | tee "$output_file"
5050
done
5151
}
5252

0 commit comments

Comments
 (0)