diff options
author | Zach Koopmans <zkoopmans@google.com> | 2021-02-18 12:59:22 -0800 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2021-02-18 13:01:44 -0800 |
commit | ec20f4f38ef49efc8756595e6ec3fb3e578cc097 (patch) | |
tree | ce2faa00bc16ade3a8f575c149a75c88d4de4407 /test/benchmarks/network | |
parent | 2a2cb29e1cc5c94299b79a3e561d7a6915158ae6 (diff) |
Make b.N increase by KB not bytes on iperf.
Currently, iperf runs a client that scales by
bytes sent. In practice, this causes b.N to scale
slowly and have several short lived containers.
Instead, scale by KB to more quickly reach required time.
PiperOrigin-RevId: 358244926
Diffstat (limited to 'test/benchmarks/network')
-rw-r--r-- | test/benchmarks/network/iperf_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/benchmarks/network/iperf_test.go b/test/benchmarks/network/iperf_test.go index 296f9b1ac..6ac7717b1 100644 --- a/test/benchmarks/network/iperf_test.go +++ b/test/benchmarks/network/iperf_test.go @@ -97,7 +97,7 @@ func BenchmarkIperf(b *testing.B) { } iperf := tools.Iperf{ - Num: b.N, + Num: b.N, // KB for the client to send. } // Run the client. |