Skip to content

Commit fc954a6

Browse files
authored
fixes iperf test results (threefoldtech#2370)
Signed-off-by: Ashraf Fouda <[email protected]>
1 parent 5a9358e commit fc954a6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/perf/iperf/iperf_task.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,10 @@ func (t *IperfTest) runIperfTest(ctx context.Context, clientIP string, tcp bool)
136136
opts := make([]string, 0)
137137
opts = append(opts,
138138
"--client", clientIP,
139-
"--bandwidth", "1M",
140139
"--port", fmt.Sprint(iperf.IperfPort),
141140
"--interval", "20",
141+
"--bandwidth", "0", // unlimited because udp limit is set to 1M by default
142+
"-R", // doing the test in reverse gives more accurate results
142143
"--json",
143144
)
144145

0 commit comments

Comments
 (0)