This is an automated email from the ASF dual-hosted git repository.
lidavidm pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow.git
The following commit(s) were added to refs/heads/master by this push:
new d3786a1 ARROW-10069: [Java] Support running Java benchmarks from
command line
d3786a1 is described below
commit d3786a1b799017d6223a76bf4b6310986f4bc275
Author: liyafan82 <[email protected]>
AuthorDate: Sun Sep 27 13:52:44 2020 -0400
ARROW-10069: [Java] Support running Java benchmarks from command line
See https://issues.apache.org/jira/browse/ARROW-10069
Closes #8245 from liyafan82/fly_0923_pf
Authored-by: liyafan82 <[email protected]>
Signed-off-by: David Li <[email protected]>
---
java/performance/pom.xml | 36 ++++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
diff --git a/java/performance/pom.xml b/java/performance/pom.xml
index 42b0b35..d1eb45a 100644
--- a/java/performance/pom.xml
+++ b/java/performance/pom.xml
@@ -96,6 +96,11 @@
<jmh.version>1.21</jmh.version>
<javac.target>1.8</javac.target>
<uberjar.name>benchmarks</uberjar.name>
+ <skip.perf.benchmarks>true</skip.perf.benchmarks>
+ <benchmark.filter>.*</benchmark.filter>
+ <benchmark.forks>1</benchmark.forks>
+ <benchmark.warmups>5</benchmark.warmups>
+ <benchmark.runs>5</benchmark.runs>
</properties>
<build>
@@ -140,6 +145,37 @@
</execution>
</executions>
</plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>exec-maven-plugin</artifactId>
+ <version>1.6.0</version>
+ <executions>
+ <execution>
+ <id>run-java-benchmarks</id>
+ <phase>integration-test</phase>
+ <goals>
+ <goal>exec</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <skip>${skip.perf.benchmarks}</skip>
+ <classpathScope>test</classpathScope>
+ <executable>java</executable>
+ <arguments>
+ <argument>-classpath</argument>
+ <classpath/>
+ <argument>org.openjdk.jmh.Main</argument>
+ <argument>${benchmark.filter}</argument>
+ <argument>-f</argument>
+ <argument>${benchmark.forks}</argument>
+ <argument>-wi</argument>
+ <argument>${benchmark.warmups}</argument>
+ <argument>-i</argument>
+ <argument>${benchmark.runs}</argument>
+ </arguments>
+ </configuration>
+ </plugin>
</plugins>
<pluginManagement>
<plugins>