Skip to content

Add parquet filter and sort to bench.sh #6172

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 3, 2023
Merged

Conversation

alamb
Copy link
Contributor

@alamb alamb commented May 1, 2023

Which issue does this PR close?

Follow on to #6131

Rationale for this change

Add support for running parquet filter and sort benchmarks to sort

What changes are included in this PR?

Are these changes tested?

Are there any user-facing changes?

You can now run

bench.sh run sort

and

bench.sh run parquet

to run benchmarks

@alamb alamb added the development-process Related to development process of DataFusion label May 1, 2023
@alamb alamb marked this pull request as ready for review May 1, 2023 09:46
RESULTS_FILE="${RESULTS_DIR}/parquet.json"
echo "RESULTS_FILE: ${RESULTS_FILE}"
echo "Running parquet filter benchmark..."
$CARGO_COMMAND --bin parquet -- filter --path "${DATA_DIR}" --scale-factor 1.0 --iterations 5 -o ${RESULTS_FILE}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why we dont apply scale-factor for tpch? is it 1 by default?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is even more confusing -- the scale factor for tpch is actually a applied, but it is applied when we create the data. Specifically

https://github.com/apache/arrow-datafusion/blob/2787e7a36a6be83d91201df20827d3695f933300/benchmarks/bench.sh#L202

The "parquet" benchmark actually doesn't use the tpch dataset at all, and instead generates its own data. Hwever, it overloads the "scale factor" terminology to describe the relative sizes

Copy link
Contributor

@avantgardnerio avantgardnerio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes things no worse! I think TPC-H scaling could be handled in a separate issue/PR.

RESULTS_FILE="${RESULTS_DIR}/parquet.json"
echo "RESULTS_FILE: ${RESULTS_FILE}"
echo "Running parquet filter benchmark..."
$CARGO_COMMAND --bin parquet -- filter --path "${DATA_DIR}" --scale-factor 1.0 --iterations 5 -o ${RESULTS_FILE}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is somewhat ugly to have to run a second command(parquet) for different benchmarks -- I plan to combine them into a single benchmark runner over time

RESULTS_FILE="${RESULTS_DIR}/parquet.json"
echo "RESULTS_FILE: ${RESULTS_FILE}"
echo "Running parquet filter benchmark..."
$CARGO_COMMAND --bin parquet -- filter --path "${DATA_DIR}" --scale-factor 1.0 --iterations 5 -o ${RESULTS_FILE}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is even more confusing -- the scale factor for tpch is actually a applied, but it is applied when we create the data. Specifically

https://github.com/apache/arrow-datafusion/blob/2787e7a36a6be83d91201df20827d3695f933300/benchmarks/bench.sh#L202

The "parquet" benchmark actually doesn't use the tpch dataset at all, and instead generates its own data. Hwever, it overloads the "scale factor" terminology to describe the relative sizes

@alamb alamb merged commit 424e4d8 into apache:main May 3, 2023
@alamb alamb deleted the alamb/sort_bench branch May 3, 2023 17:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
development-process Related to development process of DataFusion
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants