Browse Source

[benchmark] reorder, add host arg

master
Nico Schottelius 3 years ago
parent
commit
7ecf78aa6c
  1. 8
      bin/run-benchmark.sh

8
bin/run-benchmark.sh

@ -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}"
}

Loading…
Cancel
Save