Skip to content

Commit 09ff327

Browse files
committed
Add server warm-up to benchmark
1 parent 1ab34d1 commit 09ff327

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

spec/performance/bench.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,13 @@ until curl -fsS "$TARGET" >/dev/null; do
5454
sleep 1
5555
done
5656

57+
echo "Warming up server with 10 requests..."
58+
for i in {1..10}; do
59+
curl -fsS "$TARGET" >/dev/null || true
60+
sleep 0.5
61+
done
62+
echo "Warm-up complete"
63+
5764
mkdir -p "$OUTDIR"
5865

5966
if [ "$RATE" = "max" ]; then

0 commit comments

Comments
 (0)