flink-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From m..@apache.org
Subject [1/7] flink git commit: remove flink-benchmark due to licensing issues
Date Tue, 03 Nov 2015 09:25:50 GMT
Repository: flink
Updated Branches:
  refs/heads/master 458009da8 -> 044bd42b4


remove flink-benchmark due to licensing issues


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

Branch: refs/heads/master
Commit: dd66e61ecc5da5b15a610f04b98c8386d141f910
Parents: 458009d
Author: Maximilian Michels <mxm@apache.org>
Authored: Mon Nov 2 22:35:45 2015 +0100
Committer: Maximilian Michels <mxm@apache.org>
Committed: Mon Nov 2 22:46:59 2015 +0100

----------------------------------------------------------------------
 flink-benchmark/pom.xml                         | 113 -------------------
 .../flink/util/RandomGeneratorBenchmark.java    |  82 --------------
 pom.xml                                         |   1 -
 3 files changed, 196 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flink/blob/dd66e61e/flink-benchmark/pom.xml
----------------------------------------------------------------------
diff --git a/flink-benchmark/pom.xml b/flink-benchmark/pom.xml
deleted file mode 100644
index c60d522..0000000
--- a/flink-benchmark/pom.xml
+++ /dev/null
@@ -1,113 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-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.
--->
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
-
-	<modelVersion>4.0.0</modelVersion>
-
-	<parent>
-		<groupId>org.apache.flink</groupId>
-		<artifactId>flink-parent</artifactId>
-		<version>1.0-SNAPSHOT</version>
-		<relativePath>..</relativePath>
-	</parent>
-
-	<artifactId>flink-benchmark</artifactId>
-	<name>flink-benchmark</name>
-	<packaging>jar</packaging>
-
-	<properties>
-		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
-		<jmh.version>1.11</jmh.version>
-		<uberjar.name>benchmarks</uberjar.name>
-	</properties>
-
-	<dependencies>
-		<dependency>
-			<groupId>org.apache.flink</groupId>
-			<artifactId>flink-clients</artifactId>
-			<version>${project.version}</version>
-		</dependency>
-		<dependency>
-			<groupId>org.openjdk.jmh</groupId>
-			<artifactId>jmh-core</artifactId>
-			<version>${jmh.version}</version>
-		</dependency>
-		<dependency>
-			<groupId>org.openjdk.jmh</groupId>
-			<artifactId>jmh-generator-annprocess</artifactId>
-			<version>${jmh.version}</version>
-			<scope>provided</scope>
-		</dependency>	
-		<dependency>
-			<groupId>org.apache.flink</groupId>
-			<artifactId>flink-runtime</artifactId>
-			<version>${project.version}</version>
-			<type>test-jar</type>
-			<scope>test</scope>
-		</dependency>
-		<dependency>
-			<groupId>org.apache.flink</groupId>
-			<artifactId>flink-java</artifactId>
-			<version>${project.version}</version>
-			<type>test-jar</type>
-			<scope>test</scope>
-		</dependency>
-	</dependencies>
-
-	<build>
-		<plugins>
-			<plugin>
-				<groupId>org.apache.maven.plugins</groupId>
-				<artifactId>maven-shade-plugin</artifactId>
-				<executions>
-					<execution>
-						<phase>package</phase>
-						<goals>
-							<goal>shade</goal>
-						</goals>
-						<configuration>
-							<finalName>${uberjar.name}</finalName>
-							<transformers>
-								<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
-									<mainClass>org.openjdk.jmh.Main</mainClass>
-								</transformer>
-							</transformers>
-							<filters>
-								<filter>
-									<!--
-									Shading signed JARs will fail without this.
-									http://stackoverflow.com/questions/999489/invalid-signature-file-when-attempting-to-run-a-jar
-									-->
-									<artifact>*:*</artifact>
-									<excludes>
-										<exclude>META-INF/*.SF</exclude>
-										<exclude>META-INF/*.DSA</exclude>
-										<exclude>META-INF/*.RSA</exclude>
-									</excludes>
-								</filter>
-							</filters>
-						</configuration>
-					</execution>
-				</executions>
-			</plugin>
-		</plugins>
-	</build>
-</project>

http://git-wip-us.apache.org/repos/asf/flink/blob/dd66e61e/flink-benchmark/src/main/java/org/apache/flink/util/RandomGeneratorBenchmark.java
----------------------------------------------------------------------
diff --git a/flink-benchmark/src/main/java/org/apache/flink/util/RandomGeneratorBenchmark.java
b/flink-benchmark/src/main/java/org/apache/flink/util/RandomGeneratorBenchmark.java
deleted file mode 100644
index 65b2434..0000000
--- a/flink-benchmark/src/main/java/org/apache/flink/util/RandomGeneratorBenchmark.java
+++ /dev/null
@@ -1,82 +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.util;
-
-import org.openjdk.jmh.annotations.Benchmark;
-import org.openjdk.jmh.annotations.BenchmarkMode;
-import org.openjdk.jmh.annotations.Fork;
-import org.openjdk.jmh.annotations.Measurement;
-import org.openjdk.jmh.annotations.Mode;
-import org.openjdk.jmh.annotations.OutputTimeUnit;
-import org.openjdk.jmh.annotations.Scope;
-import org.openjdk.jmh.annotations.Setup;
-import org.openjdk.jmh.annotations.State;
-import org.openjdk.jmh.annotations.Warmup;
-import org.openjdk.jmh.runner.Runner;
-import org.openjdk.jmh.runner.RunnerException;
-import org.openjdk.jmh.runner.options.Options;
-import org.openjdk.jmh.runner.options.OptionsBuilder;
-
-import java.util.Random;
-import java.util.concurrent.TimeUnit;
-
-@State(Scope.Benchmark)
-public class RandomGeneratorBenchmark {
-
-	@BenchmarkMode(Mode.Throughput)
-	@Fork(1)
-	@State(Scope.Thread)
-	@OutputTimeUnit(TimeUnit.SECONDS)
-	public static abstract class AbstractRandomBench {
-		private final static long ITERATOR_NUMBER = 10000000;
-		protected Random random;
-
-		@Setup
-		public abstract void init();
-
-		@Benchmark
-		@Warmup(iterations = 5)
-		@Measurement(iterations = 5)
-		public void bench() {
-			for (int i = 0; i < ITERATOR_NUMBER; i++) {
-				random.nextInt();
-			}
-		}
-	}
-
-	public static class RandomBench extends AbstractRandomBench {
-		@Override
-		public void init() {
-			this.random = new Random(11);
-		}
-	}
-
-	public static class XORShiftRandomBench extends AbstractRandomBench {
-
-		@Override
-		public void init() {
-			this.random = new XORShiftRandom(11);
-		}
-	}
-
-	public static void main(String[] args) throws RunnerException {
-		Options opt = new OptionsBuilder().include(".*" + RandomGeneratorBenchmark.class.getSimpleName()
+
-			".*").build();
-		new Runner(opt).run();
-	}
-}

http://git-wip-us.apache.org/repos/asf/flink/blob/dd66e61e/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index 3cc3e54..cb14d64 100644
--- a/pom.xml
+++ b/pom.xml
@@ -71,7 +71,6 @@ under the License.
 		<module>flink-quickstart</module>
 		<module>flink-contrib</module>
 		<module>flink-dist</module>
-		<module>flink-benchmark</module>
 	</modules>
 
 	<properties>


Mime
View raw message