diff options
| author | iceyrazor <iceyrazor@mailfence.com> | 2026-10-13 22:03:36 -0500 |
|---|---|---|
| committer | iceyrazor <iceyrazor@mailfence.com> | 2026-10-13 22:03:36 -0500 |
| commit | 1e89ac5d332ecc4da87c2a894146fd9bb0d4d1f9 (patch) | |
| tree | 8c8447aade0652a91b4ae5f62d7fa7b85f890479 /stresstest.sh | |
| parent | cd94292211dc4c7a019691cb00e092368489ca22 (diff) | |
added stress test script
Diffstat (limited to 'stresstest.sh')
| -rwxr-xr-x | stresstest.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/stresstest.sh b/stresstest.sh new file mode 100755 index 0000000..2a1058f --- /dev/null +++ b/stresstest.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +i=0 +while :; do + for msg in "hi $i" "hello $i" "beans $i" "ham $i"; do + { echo "$msg"; sleep 0.05; } | socat - TCP:127.0.0.1:$1,linger=1 & + done + i=$((i+1)) + [ "$i" -gt 100 ] && break +done +wait |
