Loop differently to get all results at least once

This commit is contained in:
Nico Schottelius 2019-08-15 17:54:46 +02:00
parent c04c59ab01
commit f6b60a50fa

View file

@ -24,16 +24,18 @@ fi
do_benchmark() do_benchmark()
{ {
run=$1; shift
full_flags="$@" full_flags="$@"
iperf3_flags=$(echo $full_flags | sed 's/ //g') iperf3_flags=$(echo $full_flags | sed 's/ //g')
for run in 1 2 3; do
filename="${fbase}${iperf3_flags}-run${run}" filename="${fbase}${iperf3_flags}-run${run}"
iperf3 $full_flags | tee "${filename}" iperf3 $full_flags | tee "${filename}"
done
} }
for run in 1 2 3; do
for p in 1 10 20 50; do for p in 1 10 20 50; do
do_benchmark $flags -P$p do_benchmark $run $flags -P$p
do_benchmark $flags -P$p -u -b0 do_benchmark $run $flags -P$p -u -b0
done
done done