-
-
Save Koziolek/04eff5782e8a29b598fc5977eca34e3e to your computer and use it in GitHub Desktop.
Using JMH in a Maven project.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<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> | |
<!-- Benchmark code goes into src/test/java --> | |
<dependencies> | |
<dependency> | |
<groupId>org.openjdk.jmh</groupId> | |
<artifactId>jmh-core</artifactId> | |
<version>1.0-SNAPSHOT</version> | |
<scope>test</scope> | |
</dependency> | |
</dependencies> | |
<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</executable> | |
<arguments> | |
<argument>-classpath</argument> | |
<classpath/> | |
<argument>org.openjdk.jmh.Main</argument> | |
<argument>.*</argument> | |
</arguments> | |
</configuration> | |
</execution> | |
</executions> | |
</plugin> | |
</plugins> | |
</build> | |
</project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment