[benchmark] reorder, add host arg
This commit is contained in:
parent
389e58d1fb
commit
7ecf78aa6c
1 changed files with 4 additions and 4 deletions
|
@ -10,8 +10,8 @@ fi
|
||||||
host=$1; shift
|
host=$1; shift
|
||||||
port=$1; shift
|
port=$1; shift
|
||||||
|
|
||||||
flags="-c -p $port -O 10 -t 190"
|
flags="-c ${host} -p $port -O 10 -t 190"
|
||||||
fbase="iperf-to-${host}"
|
fbase="iperf"
|
||||||
|
|
||||||
if echo $host | grep -q ':'; then
|
if echo $host | grep -q ':'; then
|
||||||
flags="$flags -6"
|
flags="$flags -6"
|
||||||
|
@ -24,10 +24,10 @@ fi
|
||||||
do_benchmark()
|
do_benchmark()
|
||||||
{
|
{
|
||||||
full_flags="$@"
|
full_flags="$@"
|
||||||
iperf3_flags=$(echo $flags | sed 's/ //g')
|
iperf3_flags=$(echo $full_flags | sed 's/ //g')
|
||||||
filename="${fbase}-${iperf3_flags}"
|
filename="${fbase}-${iperf3_flags}"
|
||||||
|
|
||||||
iperf3 $flags -P$p | tee "${filename}"
|
iperf3 $full_flags | tee "${filename}"
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue