summaryrefslogtreecommitdiffhomepage
path: root/test/benchmarks/network
diff options
context:
space:
mode:
authorZach Koopmans <zkoopmans@google.com>2021-02-12 12:53:51 -0800
committergVisor bot <gvisor-bot@google.com>2021-02-12 12:55:33 -0800
commit58a0a66900b6f38c8eee638a7c249bcc0a1bd9be (patch)
treeb80e8a528f22c947c207023baaddefe6c2073e11 /test/benchmarks/network
parentc99ad8d541670e7fec7480b97d6d258460f041e3 (diff)
Rename params for iperf and tensorflow.
Rename operation params in iperf and tensorflow to match other similar benchmarks. PiperOrigin-RevId: 357250304
Diffstat (limited to 'test/benchmarks/network')
-rw-r--r--test/benchmarks/network/iperf_test.go9
1 files changed, 8 insertions, 1 deletions
diff --git a/test/benchmarks/network/iperf_test.go b/test/benchmarks/network/iperf_test.go
index d8dd2a6ae..296f9b1ac 100644
--- a/test/benchmarks/network/iperf_test.go
+++ b/test/benchmarks/network/iperf_test.go
@@ -56,7 +56,14 @@ func BenchmarkIperf(b *testing.B) {
serverFunc: serverMachine.GetContainer,
},
} {
- b.Run(bm.name, func(b *testing.B) {
+ name, err := tools.ParametersToName(tools.Parameter{
+ Name: "operation",
+ Value: bm.name,
+ })
+ if err != nil {
+ b.Fatalf("Failed to parse parameters: %v", err)
+ }
+ b.Run(name, func(b *testing.B) {
// Set up the containers.
server := bm.serverFunc(ctx, b)
defer server.CleanUp(ctx)