PARQUET-1644: Clean up some benchmark code and docs.#672
PARQUET-1644: Clean up some benchmark code and docs.#672gszadovszky merged 9 commits intoapache:masterfrom
Conversation
parquet-benchmarks/run.sh
Outdated
|
|
||
| echo "Starting WRITE benchmarks" | ||
| java -jar ${SCRIPT_PATH}/target/parquet-benchmarks.jar p*Write* "$@" | ||
| java -jar ${SCRIPT_PATH}/target/parquet-benchmarks.jar org.apache.parquet.benchmarks.WriteBenchmarks "$@" |
There was a problem hiding this comment.
With this change, NestedNullWritingBenchmarks won't be executed in this benchmark suite, but I think that's fine. @gszadovszky do you agree?
There was a problem hiding this comment.
I agree. When this script was created only ReadBenchmarks and WriteBenchmarks were exist. However, it might make sense to have a more descriptive name (e.g. runReadWrite.sh).
There was a problem hiding this comment.
I combined the two existing run scripts into one with some very limited functionality to run predefined "suites" by keyword, but also to run all benchmarks.
What do you think?
|
Thanks for taking a look! I'm going to make the run.sh script a bit more descriptive to run "feature sets" so that there's a standard way to run all or some benchmarks. I don't want to go crazy with bash, but I think there's some value to have one entry point to running benchmarks in a standard way. JMH isn't behaving as I would like for setting up and cleaning resources... I have a couple more fixes to make and I'll push. |
Do not clean up resources after a benchmark, leave them for the next run.
|
For info, I made a change around general benchmarks setup/cleanup. Before, the read files for
As far as I can tell, this is the preferred way to use JMH when running "macro-benchmarks". I didn't observe any actual functional differences after changing the setup strategy -- the total user time to run the |
gszadovszky
left a comment
There was a problem hiding this comment.
Thanks for working on this. I have some minor issues, but like it overall.
parquet-benchmarks/src/main/java/org/apache/parquet/benchmarks/FilteringBenchmarks.java
Outdated
Show resolved
Hide resolved
parquet-benchmarks/src/main/java/org/apache/parquet/benchmarks/ReadBenchmarks.java
Outdated
Show resolved
Hide resolved
nandorKollar
left a comment
There was a problem hiding this comment.
LGTM, please address Gabor's comments.
|
Hello! I Thanks for the review, and my apologies for the late fixes! |
Make sure you have checked all steps below.
Jira
Tests
Commits
Documentation