Skip to content

bench(parquet): add wide nested struct cases to arrow_writer - #12561

Open
nikolaobradovic-db wants to merge 1 commit into
apache:mainfrom
nikolaobradovic-db:bench-wide-nested-struct
Open

nikolaobradovic-db wants to merge 1 commit into
apache:mainfrom
nikolaobradovic-db:bench-wide-nested-struct

Conversation

@nikolaobradovic-db

Copy link
Copy Markdown

Which issue does this PR close?

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 branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

parquet parquet crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant