Skip to content

introduce decode benchmarks#10202

Merged
alamb merged 1 commit into
apache:mainfrom
Rich-T-kid:rich-T-kid/arrow-flight-decode-opt
Jun 23, 2026
Merged

introduce decode benchmarks#10202
alamb merged 1 commit into
apache:mainfrom
Rich-T-kid:rich-T-kid/arrow-flight-decode-opt

Conversation

@Rich-T-kid

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

Rationale for this change

there were no benchmarks for the decode path

What changes are included in this PR?

single benchmark that measures the time it takes to decode a stream of flight_data

Are these changes tested?

n/a

Are there any user-facing changes?

no

@github-actions github-actions Bot added arrow Changes to the arrow crate arrow-flight Changes to the arrow-flight crate labels Jun 23, 2026
@Rich-T-kid

Copy link
Copy Markdown
Contributor Author

@alamb / @gabotechs smaller PR

@alamb alamb left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thank you @Rich-T-kid

let batch = build_batch(name, rows, cols, build);
let frames: Vec<FlightData> = rt
.block_on(
FlightDataEncoderBuilder::new()

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I was wondering if it also made sense to benchmark decoding more than one batch (for example, a stream with replacement dictionary) but I think for now this is good

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I made a follow up PR for that here #10207 🚀

@alamb alamb merged commit 006c59f into apache:main Jun 23, 2026
12 checks passed
alamb pushed a commit that referenced this pull request Jun 24, 2026
# Which issue does this PR close?

<!--
We generally require a GitHub issue to be filed for all bug fixes and
enhancements and this helps us generate change logs for our releases.
You can link an issue to this PR using the GitHub syntax.
-->

Follow up of #10202 , see
[comment](#10202 (comment))
works towards #10125 

# Rationale for this change
this provides more visibility to performances changes that occurs on the
decode path. Multi batch decoding is more representative of real world
work loads.
<!--
Why are you proposing this change? If this is already explained clearly
in the issue then this section is not needed.
Explaining clearly why changes are proposed helps reviewers understand
your changes and offer better suggestions for fixes.
-->

# What changes are included in this PR?
Added multi-batch decode benchmarks covering both plain and dictionary
types, including the replacement-dictionary path,
<!--
There is no need to duplicate the description in the issue here but it
is sometimes worth providing a summary of the individual changes in this
PR.
-->

# Are these changes tested?
n/a
<!--
We typically require tests for all PRs in order to:
1. Prevent the code from being accidentally broken by subsequent changes
2. Serve as another way to document the expected behavior of the code

If tests are not included in your PR, please explain why (for example,
are they covered by existing tests)?

If this PR claims a performance improvement, please include evidence
such as benchmark results.
-->

# Are there any user-facing changes?

<!--
If there are user-facing changes then we may require documentation to be
updated before approving the PR.

If there are any breaking changes to public APIs, please call them out.
-->
no
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

arrow Changes to the arrow crate arrow-flight Changes to the arrow-flight crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants