| <?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/xsd/maven-4.0.0.xsd"> |
| |
| <modelVersion>4.0.0</modelVersion> |
| |
| <parent> |
| <artifactId>plc4j-protocols</artifactId> |
| <groupId>org.apache.plc4x</groupId> |
| <version>0.3.1</version> |
| </parent> |
| |
| <artifactId>plc4j-protocol-benchmarks</artifactId> |
| <name>PLC4J: Protocol: Benchmarks</name> |
| <description>Runs benchmarks on ads protocols</description> |
| |
| <properties> |
| <jmh.version>1.20</jmh.version> |
| </properties> |
| |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.plc4x</groupId> |
| <artifactId>plc4j-protocol-ads</artifactId> |
| <version>0.3.1</version> |
| </dependency> |
| <dependency> |
| <groupId>ch.qos.logback</groupId> |
| <artifactId>logback-classic</artifactId> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>io.netty</groupId> |
| <artifactId>netty-buffer</artifactId> |
| </dependency> |
| <!-- GNU General Public License (GPL), version 2, with the Classpath exception see https://commons.apache.org/proper/commons-lang/dependencies.html--> |
| <dependency> |
| <groupId>org.openjdk.jmh</groupId> |
| <artifactId>jmh-core</artifactId> |
| </dependency> |
| <!-- GNU General Public License (GPL), version 2, with the Classpath exception see https://commons.apache.org/proper/commons-lang/dependencies.html--> |
| <dependency> |
| <groupId>org.openjdk.jmh</groupId> |
| <artifactId>jmh-generator-annprocess</artifactId> |
| <scope>provided</scope> |
| </dependency> |
| </dependencies> |
| |
| <build> |
| <plugins> |
| <!-- TODO: we might run this tests with a maven plugin--> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-shade-plugin</artifactId> |
| <executions> |
| <execution> |
| <phase>package</phase> |
| <goals> |
| <goal>shade</goal> |
| </goals> |
| <configuration> |
| <finalName>benchmarks</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> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-dependency-plugin</artifactId> |
| <configuration> |
| <usedDependencies> |
| <usedDependency>org.openjdk.jmh:jmh-generator-annprocess</usedDependency> |
| </usedDependencies> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| |
| <profiles> |
| <profile> |
| <id>run-benchmark</id> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>exec-maven-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>run-benchmarks</id> |
| <phase>integration-test</phase> |
| <goals> |
| <goal>exec</goal> |
| </goals> |
| <configuration> |
| <classpathScope>test</classpathScope> |
| <executable>${java.home}/bin/java</executable> |
| <arguments> |
| <argument>-classpath</argument> |
| <classpath /> |
| <argument>org.openjdk.jmh.Main</argument> |
| <argument>.*</argument> |
| <!-- Optional profiling showing a stack profile --> |
| <argument>-prof</argument> |
| <argument>stack</argument> |
| </arguments> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| </profiles> |
| |
| </project> |