[benchmark] reorder, add host arg

This commit is contained in:
Nico Schottelius 2019-08-15 12:19:51 +02:00
parent 389e58d1fb
commit 7ecf78aa6c

View file

@ -10,8 +10,8 @@ fi
host=$1; shift
port=$1; shift
flags="-c -p $port -O 10 -t 190"
fbase="iperf-to-${host}"
flags="-c ${host} -p $port -O 10 -t 190"
fbase="iperf"
if echo $host | grep -q ':'; then
flags="$flags -6"
@ -24,10 +24,10 @@ fi
do_benchmark()
{
full_flags="$@"
iperf3_flags=$(echo $flags | sed 's/ //g')
iperf3_flags=$(echo $full_flags | sed 's/ //g')
filename="${fbase}-${iperf3_flags}"
iperf3 $flags -P$p | tee "${filename}"
iperf3 $full_flags | tee "${filename}"
}