nikolaobradovic-db opened a new pull request, #12561:
URL: https://github.com/apache/arrow-rs/pull/12561
# Which issue does this PR close?
- Part of #12557
# Rationale for this change
The existing `arrow_writer` bench cases have few nested nodes and large
batches. Thus, they do not
show the cost of building the levels for wide and deep struct columns that
are written in small
batches. #12558 changes this code. These cases were part of #12558, and a
review asked to move
them into their own PR. With these cases on main, the bench runner can
compare main and #12558 on
them. #12558 drops its bench commit when this PR is merged.
# What changes are included in this PR?
Two new `arrow_writer` bench groups with three cases (filter: `^wide_`):
- `wide_nested_struct_small_batches/default`: 64 Int32 leaves under 2 levels
of structs, 65,536
rows in batches of 64 rows.
- `wide_deep_nested_struct/16_rows` and `/128_rows`: a binary tree of 10
struct levels with 1024
leaves (Int64, Utf8, Boolean and Int32 in turn), 2048 rows in batches of
16 and of 128 rows.
The input of each case is built on first use, so a filter that skips the
case does not build it.
# Are these changes tested?
This PR adds bench cases only, so it has no new tests. I ran all three cases
in Criterion's test
mode.
# Are there any significant user-facing changes?
No.
# AI usage disclosure
An AI coding assistant helped to write the bench cases and this description.
I reviewed all of
it and ran it.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]