From 7ecf78aa6cd1724cceb14243f355431a7c339d63 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Thu, 15 Aug 2019 12:19:51 +0200 Subject: [PATCH] [benchmark] reorder, add host arg --- bin/run-benchmark.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/run-benchmark.sh b/bin/run-benchmark.sh index cfa9b10..e1a58af 100755 --- a/bin/run-benchmark.sh +++ b/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}" }