Skip to content

Commit

Permalink
repeat benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
fasterthanlime committed Aug 30, 2024
1 parent 635d065 commit 16e5032
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion scripts/perfstat.sh
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ RPS="${RPS:-2}"
CONNS="${CONNS:-40}"
STREAMS="${STREAMS:-8}"
NUM_REQUESTS="${NUM_REQUESTS:-100}"
TIMES="${TIMES:-1}"

# Set MODE to 'stat' if not specified
MODE=${MODE:-stat}
Expand Down Expand Up @@ -125,6 +126,11 @@ for server in "${!servers[@]}"; do
kill -INT $SAMPLY_PID
wait $SAMPLY_PID
else
perf stat -e "$PERF_EVENTS" -p "$PID" -- ssh brat "${remote_command[@]}"
for ((i=1; i<=$TIMES; i++)); do
echo "===================="
echo -e "\033[1;35m🏃 Run $i of $TIMES 🏃\033[0m"
echo "===================="
perf stat -e "$PERF_EVENTS" -p "$PID" -- ssh brat "${remote_command[@]}"
done
fi
done

0 comments on commit 16e5032

Please sign in to comment.