testclient.sh
353 Bytes
#!/bin/sh
BS=$((128*1024))
COUNT=10000
CONCURENT=200
IP="192.168.2.13"
pids=""
i=0
MESSAGE="GET / HTTP/1.1\r\nConnection: keep-alive\r\n\r\n"
while [ $i -lt ${CONCURENT} ]
do
dd if=/dev/zero bs=${BS} count=${COUNT} | nc -q 1 ${IP} 5678 >/dev/null &
#echo -en "${MESSAGE}" | nc -q 1 ${IP} 5678 &
pids="${pids} $!"
i=$((i + 1))
done
wait ${pids}