Repository: flink Updated Branches: refs/heads/release-0.10 698fbc354 -> a77d21d41
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/0c5ba1fc Tree: http://git-wip-us.apache.org/repos/asf/flink/tree/0c5ba1fc Diff: http://git-wip-us.apache.org/repos/asf/flink/diff/0c5ba1fc Branch: refs/heads/release-0.10 Commit: 0c5ba1fc55bd1d923c5d8e4b9cba944b077314fc Parents: 698fbc3 Author: Maximilian Michels <m...@apache.org> Authored: Mon Nov 2 22:35:45 2015 +0100 Committer: Maximilian Michels <m...@apache.org> Committed: Mon Nov 2 22:40:46 2015 +0100 ---------------------------------------------------------------------- flink-benchmark/pom.xml | 100 ------------------- .../flink/util/RandomGeneratorBenchmark.java | 82 --------------- pom.xml | 1 - 3 files changed, 183 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flink/blob/0c5ba1fc/flink-benchmark/pom.xml ---------------------------------------------------------------------- diff --git a/flink-benchmark/pom.xml b/flink-benchmark/pom.xml deleted file mode 100644 index b139be5..0000000 --- a/flink-benchmark/pom.xml +++ /dev/null @@ -1,100 +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>0.10-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.4.1</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> - </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/0c5ba1fc/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/0c5ba1fc/pom.xml ---------------------------------------------------------------------- diff --git a/pom.xml b/pom.xml index 30d4d38..54a9ccd 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>