liyafan82 commented on pull request #8245: URL: https://github.com/apache/arrow/pull/8245#issuecomment-697173842
The straightforward way of running a Java benchmark is through the following command: ``` java -jar ./performance/target/benchmarks.jar ``` However, it is like to fail with the following message: ``` ERROR: Unable to find the resource: /META-INF/BenchmarkList ``` The fundamental reason for this error is missing some jars in the class path, and it is considered a bug of maven compilation plugin (https://issues.apache.org/jira/browse/MCOMPILER-369) Since there are many jars required (directly or indirected referenced), we recommend running the benchmarks through maven. To run all benchmarks, please go to the arrow-performance directory, and invoke the command: ``` mvn clean install -Dskip.perf.benchmarks=false ``` We also support filtering specific benchmarks, for example: ``` mvn clean install -Dskip.perf.benchmarks=false -Dbenchmark.filter=.*IntBenchmarks.setIntDirectly ``` In addtion, we also support configuring other benchmark parameters, for example: ``` mvn clean install -Dskip.perf.benchmarks=false -Dbenchmark.filter=.*IntBenchmarks.setIntDirectly -Dbenchmark.forks=1 -Dbenchmark.warmups=5 -Dbenchmark.runs=5 ``` ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
