Revert "Preparing release."
[commons-rng.git] / commons-rng-examples / examples-jmh / pom.xml
1 <?xml version="1.0"?>
2 <!--
3 Licensed to the Apache Software Foundation (ASF) under one or more
4 contributor license agreements. See the NOTICE file distributed with
5 this work for additional information regarding copyright ownership.
6 The ASF licenses this file to You under the Apache License, Version 2.0
7 (the "License"); you may not use this file except in compliance with
8 the License. You may obtain a copy of the License at
9
10 http://www.apache.org/licenses/LICENSE-2.0
11
12 Unless required by applicable law or agreed to in writing, software
13 distributed under the License is distributed on an "AS IS" BASIS,
14 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 See the License for the specific language governing permissions and
16 limitations under the License.
17 -->
18 <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
19 xmlns="http://maven.apache.org/POM/4.0.0"
20 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
21 <modelVersion>4.0.0</modelVersion>
22
23 <parent>
24 <groupId>org.apache.commons</groupId>
25 <artifactId>commons-rng-examples</artifactId>
26 <version>1.1-SNAPSHOT</version>
27 </parent>
28
29 <groupId>org.apache.commons</groupId>
30 <artifactId>commons-rng-examples-jmh</artifactId>
31 <version>1.1-SNAPSHOT</version>
32 <name>JMH Benchmark</name>
33
34 <description>Code for running JMH benchmarks that assess the performance of the generators.
35 Code in this module is not part of the public API.</description>
36
37 <dependencies>
38 <dependency>
39 <groupId>org.apache.commons</groupId>
40 <artifactId>commons-rng-simple</artifactId>
41 </dependency>
42
43 <dependency>
44 <groupId>org.apache.commons</groupId>
45 <artifactId>commons-rng-sampling</artifactId>
46 </dependency>
47
48 <dependency>
49 <groupId>org.openjdk.jmh</groupId>
50 <artifactId>jmh-core</artifactId>
51 <version>${jmh.version}</version>
52 </dependency>
53
54 <dependency>
55 <groupId>org.openjdk.jmh</groupId>
56 <artifactId>jmh-generator-annprocess</artifactId>
57 <version>${jmh.version}</version>
58 </dependency>
59 </dependencies>
60
61 <properties>
62 <!-- OSGi -->
63 <commons.osgi.symbolicName>org.apache.commons.rng.examples.jmh</commons.osgi.symbolicName>
64 <commons.osgi.export>org.apache.commons.rng.examples.jmh</commons.osgi.export>
65 <!-- Java 9+ -->
66 <commons.automatic.module.name>org.apache.commons.rng.examples.jmh</commons.automatic.module.name>
67 <!-- Workaround to avoid duplicating config files. -->
68 <rng.parent.dir>${basedir}/../..</rng.parent.dir>
69
70 <!-- JMH Benchmark related properties, version, target compiler and name of the benchmarking uber jar. -->
71 <jmh.version>1.13</jmh.version>
72 <uberjar.name>benchmarks</uberjar.name>
73 </properties>
74
75 <profiles>
76 <profile>
77 <id>benchmark</id>
78 <properties>
79 <skipTests>true</skipTests>
80 <benchmark>org.apache</benchmark>
81 </properties>
82
83 <build>
84 <plugins>
85 <plugin>
86 <groupId>org.apache.maven.plugins</groupId>
87 <artifactId>maven-compiler-plugin</artifactId>
88 <version>3.1</version>
89 <configuration>
90 <compilerVersion>${maven.compiler.target}</compilerVersion>
91 <source>${maven.compiler.target}</source>
92 <target>${maven.compiler.target}</target>
93 </configuration>
94 </plugin>
95 <plugin>
96 <groupId>org.codehaus.mojo</groupId>
97 <artifactId>exec-maven-plugin</artifactId>
98 <executions>
99 <execution>
100 <id>benchmark</id>
101 <phase>test</phase>
102 <goals>
103 <goal>exec</goal>
104 </goals>
105 <configuration>
106 <classpathScope>test</classpathScope>
107 <executable>java</executable>
108 <arguments>
109 <argument>-classpath</argument>
110 <classpath/>
111 <argument>org.openjdk.jmh.Main</argument>
112 <argument>-rf</argument>
113 <argument>json</argument>
114 <argument>-rff</argument>
115 <argument>target/jmh-result.${benchmark}.json</argument>
116 <argument>${benchmark}</argument>
117 </arguments>
118 </configuration>
119 </execution>
120 </executions>
121 </plugin>
122 </plugins>
123 </build>
124 </profile>
125 </profiles>
126
127 </project>