We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
iperf
b.N
1 parent 3040753 commit db0c9e8Copy full SHA for db0c9e8
test/benchmarks/tools/iperf.go
@@ -35,7 +35,8 @@ func (i *Iperf) MakeCmd(host string, port int) []string {
35
cmd = append(cmd, "--len", "128K") // Length of data buffer per request.
36
n := i.Num
37
if i.Parallel > 0 {
38
- n = i.Num / i.Parallel
+ // Must be at least 1, otherwise iperf will complain about having nothing to transmit.
39
+ n = max(i.Num/i.Parallel, 1)
40
}
41
cmd = append(cmd, "--num", fmt.Sprintf("%dK", n)) // Number of requests to send.
42
cmd = append(cmd, "--client", host)
0 commit comments