5 accessNum=$((aNum + 0))
9 urlIP=${1:-172.26.12.101}
19 for (( c=$START; c<=$END; c++))
22 #curl -w "%{time_total}\n" -o /dev/null -s http://$svcIP
24 echo "Round:"$c"--"$cmd
30 result=$(echo ${line} | grep "Latency") || true
32 if [ "aaa${result}" != "aaa" ]; then
33 latency[$c]=$(echo $result | awk '{print $2}')
36 result=$(echo ${line} | grep "Requests/sec") || true
37 if [ "aaa${result}" != "aaa" ]; then
38 requests[$c]=$(echo $result | awk '{print $2}')
41 result=$(echo ${line} | grep "Transfer/sec") || true
42 if [ "aaa${result}" != "aaa" ]; then
43 transfer[$c]=$(echo $result | awk '{print $2}')
51 for (( c=$START; c<=$END; c++))
58 for (( c=$START; c<=$END; c++))
65 for (( c=$START; c<=$END; c++))
72 runCmd "/usr/bin/wrk -t12 -c400 -d30s http://${urlIP}:${urlPort}"
73 runCmd "/usr/bin/wrk -t12 -c400 -d30s http://${urlIP}:${urlPort}/files/file-100K"
74 runCmd "/usr/bin/wrk -t12 -c400 -d30s http://${urlIP}:${urlPort}/files/file-1M"