You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by ch...@apache.org on 2018/04/19 08:00:29 UTC

[9/9] flink git commit: [FLINK-9208][tests] fix naming of StreamNetworkThroughputBenchmarkTest

[FLINK-9208][tests] fix naming of StreamNetworkThroughputBenchmarkTest

This closes #5873.


Project: http://git-wip-us.apache.org/repos/asf/flink/repo
Commit: http://git-wip-us.apache.org/repos/asf/flink/commit/236d2898
Tree: http://git-wip-us.apache.org/repos/asf/flink/tree/236d2898
Diff: http://git-wip-us.apache.org/repos/asf/flink/diff/236d2898

Branch: refs/heads/master
Commit: 236d28983883ace9a71932a74ce736bec52b9747
Parents: 727370a
Author: Nico Kruber <ni...@data-artisans.com>
Authored: Wed Apr 18 17:04:38 2018 +0200
Committer: zentol <ch...@apache.org>
Committed: Thu Apr 19 09:58:15 2018 +0200

----------------------------------------------------------------------
 .../StreamNetworkThroughputBenchmarkTest.java   | 98 ++++++++++++++++++++
 .../StreamNetworkThroughputBenchmarkTests.java  | 98 --------------------
 2 files changed, 98 insertions(+), 98 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flink/blob/236d2898/flink-streaming-java/src/test/java/org/apache/flink/streaming/runtime/io/benchmark/StreamNetworkThroughputBenchmarkTest.java
----------------------------------------------------------------------
diff --git a/flink-streaming-java/src/test/java/org/apache/flink/streaming/runtime/io/benchmark/StreamNetworkThroughputBenchmarkTest.java b/flink-streaming-java/src/test/java/org/apache/flink/streaming/runtime/io/benchmark/StreamNetworkThroughputBenchmarkTest.java
new file mode 100644
index 0000000..ba8fe27
--- /dev/null
+++ b/flink-streaming-java/src/test/java/org/apache/flink/streaming/runtime/io/benchmark/StreamNetworkThroughputBenchmarkTest.java
@@ -0,0 +1,98 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.flink.streaming.runtime.io.benchmark;
+
+import org.junit.Test;
+
+/**
+ * Tests for various network benchmarks based on {@link StreamNetworkThroughputBenchmark}.
+ */
+public class StreamNetworkThroughputBenchmarkTest {
+	@Test
+	public void pointToPointBenchmark() throws Exception {
+		StreamNetworkThroughputBenchmark benchmark = new StreamNetworkThroughputBenchmark();
+		benchmark.setUp(1, 1, 100);
+		try {
+			benchmark.executeBenchmark(1_000);
+		}
+		finally {
+			benchmark.tearDown();
+		}
+	}
+
+	@Test
+	public void largeLocalMode() throws Exception {
+		StreamNetworkThroughputBenchmark env = new StreamNetworkThroughputBenchmark();
+		env.setUp(4, 10, 100, true);
+		env.executeBenchmark(10_000_000);
+		env.tearDown();
+	}
+
+	@Test
+	public void largeRemoteMode() throws Exception {
+		StreamNetworkThroughputBenchmark env = new StreamNetworkThroughputBenchmark();
+		env.setUp(4, 10, 100, false);
+		env.executeBenchmark(10_000_000);
+		env.tearDown();
+	}
+
+	@Test
+	public void largeRemoteAlwaysFlush() throws Exception {
+		StreamNetworkThroughputBenchmark env = new StreamNetworkThroughputBenchmark();
+		env.setUp(1, 1, 0, false);
+		env.executeBenchmark(1_000_000);
+		env.tearDown();
+	}
+
+	@Test
+	public void pointToMultiPointBenchmark() throws Exception {
+		StreamNetworkThroughputBenchmark benchmark = new StreamNetworkThroughputBenchmark();
+		benchmark.setUp(1, 100, 100);
+		try {
+			benchmark.executeBenchmark(1_000);
+		}
+		finally {
+			benchmark.tearDown();
+		}
+	}
+
+	@Test
+	public void multiPointToPointBenchmark() throws Exception {
+		StreamNetworkThroughputBenchmark benchmark = new StreamNetworkThroughputBenchmark();
+		benchmark.setUp(4, 1, 100);
+		try {
+			benchmark.executeBenchmark(1_000);
+		}
+		finally {
+			benchmark.tearDown();
+		}
+	}
+
+	@Test
+	public void multiPointToMultiPointBenchmark() throws Exception {
+		StreamNetworkThroughputBenchmark benchmark = new StreamNetworkThroughputBenchmark();
+		benchmark.setUp(4, 100, 100);
+		try {
+			benchmark.executeBenchmark(1_000);
+		}
+		finally {
+			benchmark.tearDown();
+		}
+	}
+}

http://git-wip-us.apache.org/repos/asf/flink/blob/236d2898/flink-streaming-java/src/test/java/org/apache/flink/streaming/runtime/io/benchmark/StreamNetworkThroughputBenchmarkTests.java
----------------------------------------------------------------------
diff --git a/flink-streaming-java/src/test/java/org/apache/flink/streaming/runtime/io/benchmark/StreamNetworkThroughputBenchmarkTests.java b/flink-streaming-java/src/test/java/org/apache/flink/streaming/runtime/io/benchmark/StreamNetworkThroughputBenchmarkTests.java
deleted file mode 100644
index a60fa3c..0000000
--- a/flink-streaming-java/src/test/java/org/apache/flink/streaming/runtime/io/benchmark/StreamNetworkThroughputBenchmarkTests.java
+++ /dev/null
@@ -1,98 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.flink.streaming.runtime.io.benchmark;
-
-import org.junit.Test;
-
-/**
- * Tests for various network benchmarks based on {@link StreamNetworkThroughputBenchmark}.
- */
-public class StreamNetworkThroughputBenchmarkTests {
-	@Test
-	public void pointToPointBenchmark() throws Exception {
-		StreamNetworkThroughputBenchmark benchmark = new StreamNetworkThroughputBenchmark();
-		benchmark.setUp(1, 1, 100);
-		try {
-			benchmark.executeBenchmark(1_000);
-		}
-		finally {
-			benchmark.tearDown();
-		}
-	}
-
-	@Test
-	public void largeLocalMode() throws Exception {
-		StreamNetworkThroughputBenchmark env = new StreamNetworkThroughputBenchmark();
-		env.setUp(4, 10, 100, true);
-		env.executeBenchmark(10_000_000);
-		env.tearDown();
-	}
-
-	@Test
-	public void largeRemoteMode() throws Exception {
-		StreamNetworkThroughputBenchmark env = new StreamNetworkThroughputBenchmark();
-		env.setUp(4, 10, 100, false);
-		env.executeBenchmark(10_000_000);
-		env.tearDown();
-	}
-
-	@Test
-	public void largeRemoteAlwaysFlush() throws Exception {
-		StreamNetworkThroughputBenchmark env = new StreamNetworkThroughputBenchmark();
-		env.setUp(1, 1, 0, false);
-		env.executeBenchmark(1_000_000);
-		env.tearDown();
-	}
-
-	@Test
-	public void pointToMultiPointBenchmark() throws Exception {
-		StreamNetworkThroughputBenchmark benchmark = new StreamNetworkThroughputBenchmark();
-		benchmark.setUp(1, 100, 100);
-		try {
-			benchmark.executeBenchmark(1_000);
-		}
-		finally {
-			benchmark.tearDown();
-		}
-	}
-
-	@Test
-	public void multiPointToPointBenchmark() throws Exception {
-		StreamNetworkThroughputBenchmark benchmark = new StreamNetworkThroughputBenchmark();
-		benchmark.setUp(4, 1, 100);
-		try {
-			benchmark.executeBenchmark(1_000);
-		}
-		finally {
-			benchmark.tearDown();
-		}
-	}
-
-	@Test
-	public void multiPointToMultiPointBenchmark() throws Exception {
-		StreamNetworkThroughputBenchmark benchmark = new StreamNetworkThroughputBenchmark();
-		benchmark.setUp(4, 100, 100);
-		try {
-			benchmark.executeBenchmark(1_000);
-		}
-		finally {
-			benchmark.tearDown();
-		}
-	}
-}