Skip to content

Commit 5dd3125

Browse files
committed
Refactor stress.sh to improve command structure and enhance log output
Signed-off-by: Eric Deandrea <eric.deandrea@ibm.com>
1 parent 99e1977 commit 5dd3125

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

scripts/stress.sh

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,15 @@ TTFR=$((($(_date) - ts)/1000000))
5858
RSS=`ps -o rss= -p $CURRENT_PID | sed 's/^ *//g'`
5959

6060
tempdir=$(mktemp -d)
61-
jbang run@hyperfoil -o $tempdir -PLOAD_DURATION=20s -PWARMUP_DURATION=0s -PWARMUP_PAUSE_DURATION=0s ${thisdir}/perf-lab/load-tests/load-test-fixed-threads-read-all.hf.yml &> ${tempdir}/hf.log
61+
62+
jbang \
63+
-Dio.hyperfoil.rootdir=${tempdir} \
64+
run@hyperfoil \
65+
-o ${tempdir} \
66+
-PLOAD_DURATION=20s \
67+
-PWARMUP_DURATION=0s \
68+
-PWARMUP_PAUSE_DURATION=0s \
69+
${thisdir}/perf-lab/load-tests/load-test-fixed-threads-read-all.hf.yml &> ${tempdir}/hf.log
6270

6371
kill $(lsof -t -i:8080) &>/dev/null
6472
${thisdir}/infra.sh -d
@@ -67,4 +75,6 @@ echo "-------------------------------------------------"
6775
printf "Time to first request: %.3f sec\n" $(echo "$TTFR / 1000" | bc -l)
6876
printf "RSS (after 1st request): %.1f MB\n" $(echo "$RSS / 1024" | bc -l)
6977
echo "-------------------------------------------------"
78+
7079
cat ${tempdir}/hf.log
80+
echo "Other information output by hyperfoil is available in ${tempdir}"

0 commit comments

Comments
 (0)