ARROW-10069: [Java] Support running Java benchmarks from command line#8245
ARROW-10069: [Java] Support running Java benchmarks from command line#8245liyafan82 wants to merge 2 commits intoapache:masterfrom
Conversation
|
The straightforward way of running a Java benchmark is through the following command: However, it is like to fail with the following message: 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: We also support filtering specific benchmarks, for example: In addtion, we also support configuring other benchmark parameters, for example: |
There was a problem hiding this comment.
LGTM. Two questions:
- Should we include this in the developer docs in Sphinx, or in the README in the Java subproject?
- How do I run the benchmarks without cleaning and re-building the project? (This seems to do it:
mvn install --also-make -Dskip.perf.benchmarks=false -Dbenchmark.filter=.\*IntBenchmarks.setIntDirectly -pl :arrow-performance)
|
Thank you. Looks good. In my environment, while |
|
@lidavidm Thanks for your feedback. Please see my reply in line.
Thanks for the good suggestion. It seems we do not have a development guide for Java. Maybe we should add one in a separate issue.
Good question. We can run However, it is fast to rebuild the code, as there are only a few classes in the performance module. Rebuilding is helpful for making the generated benchmark code up to date. |
@kiszk Thanks for your feedback. |
|
Thank you. Now, these three parameters work correctly as we expect. |
See https://issues.apache.org/jira/browse/ARROW-10069 Closes apache#8245 from liyafan82/fly_0923_pf Authored-by: liyafan82 <[email protected]> Signed-off-by: David Li <[email protected]>
See https://issues.apache.org/jira/browse/ARROW-10069