Skip to content

Commit f2b9ef8

Browse files
committed
Move showing benchmark params to bench.sh for simplicity
1 parent df12f61 commit f2b9ef8

File tree

2 files changed

+12
-13
lines changed

2 files changed

+12
-13
lines changed

.github/workflows/benchmark.yml

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -271,19 +271,6 @@ jobs:
271271
run: |
272272
set -e # Exit on any error
273273
echo "🏃 Running benchmark suite..."
274-
echo "Script: spec/performance/bench.sh"
275-
echo ""
276-
echo "Benchmark parameters:"
277-
echo " - RATE: ${RATE}"
278-
echo " - DURATION_SEC: ${DURATION_SEC}"
279-
echo " - REQUEST_TIMEOUT: ${REQUEST_TIMEOUT}"
280-
echo " - CONNECTIONS: ${CONNECTIONS}"
281-
echo " - MAX_CONNECTIONS: ${MAX_CONNECTIONS}"
282-
echo " - WEB_CONCURRENCY: ${WEB_CONCURRENCY}"
283-
echo " - RAILS_MAX_THREADS: ${RAILS_MAX_THREADS}"
284-
echo " - RAILS_MIN_THREADS: ${RAILS_MIN_THREADS}"
285-
echo " - TOOLS: ${TOOLS}"
286-
echo ""
287274
288275
if ! spec/performance/bench.sh; then
289276
echo "❌ ERROR: Benchmark execution failed"

spec/performance/bench.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,18 @@ for cmd in ${TOOLS//,/ } jq column awk tee bc; do
5656
fi
5757
done
5858

59+
echo "Benchmark parameters:
60+
- RATE: ${RATE:-unset}
61+
- DURATION_SEC: ${DURATION_SEC:-unset}
62+
- REQUEST_TIMEOUT: ${REQUEST_TIMEOUT:-unset}
63+
- CONNECTIONS: ${CONNECTIONS:-unset}
64+
- MAX_CONNECTIONS: ${MAX_CONNECTIONS:-unset}
65+
- WEB_CONCURRENCY: ${WEB_CONCURRENCY:-unset}
66+
- RAILS_MAX_THREADS: ${RAILS_MAX_THREADS:-unset}
67+
- RAILS_MIN_THREADS: ${RAILS_MIN_THREADS:-unset}
68+
- TOOLS: ${TOOLS:-unset}
69+
"
70+
5971
TIMEOUT_SEC=60
6072
START=$(date +%s)
6173
until curl -fsS "$TARGET" >/dev/null; do

0 commit comments

Comments
 (0)