src/stresstest
raw| 1 | #!/bin/bash -e |
| 2 | |
| 3 | make |
| 4 | |
| 5 | TARGET="$1" |
| 6 | COUNT=10 |
| 7 | |
| 8 | if [ "$TARGET" == "" ] ; then |
| 9 | TARGET="localhost:9000" |
| 10 | fi |
| 11 | |
| 12 | i=0 |
| 13 | while [ $i -lt $COUNT ] ; do |
| 14 | let i=$i+1 |
| 15 | ./netperfmeter $TARGET -vector=x$i.vec -scalar=x$i.sca \ |
| 16 | -tcp const80:const10000:const80:const10000 \ |
| 17 | -udp const10:const1400:const10:const1400 \ |
| 18 | -sctp const20:const10000:const20:const10000 const20:const10000:const20:const10000 \ |
| 19 | -dccp const80:const1400:const80:const1400 \ |
| 20 | -runtime=10 & |
| 21 | done |
| 22 | wait |