| 1 |
#!/usr/bin/env bash |
| 2 |
|
| 3 |
REMOTE=localhost:9000 |
| 4 |
|
| 5 |
TCP_FLOWS=5 |
| 6 |
TCP_PARAMS="const0:const0:const0:const1460:cmt=off" |
| 7 |
|
| 8 |
UDP_FLOWS=5 |
| 9 |
UDP_PARAMS="const0:const0:const25:const2500:onoff=+pareto0.166667,1.5,+pareto0.166667,1.5,repeat" |
| 10 |
|
| 11 |
|
| 12 |
options="" |
| 13 |
i=0 ; while [ $i -lt $TCP_FLOWS ] ; do |
| 14 |
options="$options -tcp $TCP_PARAMS" |
| 15 |
let i=$i+1 |
| 16 |
done |
| 17 |
i=0 ; while [ $i -lt $UDP_FLOWS ] ; do |
| 18 |
options="$options -udp $UDP_PARAMS" |
| 19 |
let i=$i+1 |
| 20 |
done |
| 21 |
|
| 22 |
echo "OPTIONS=$options" |
| 23 |
# make -j2 && ./ |
| 24 |
netperfmeter $REMOTE $options -verbosity=5 |