Skip to content

[Epic] Variant performance and memory benchmark coverage #11101

Open

Description

@sdf-jkl

Is your feature request related to a problem or challenge?

Variant changes need benchmarks on the paths they touch, and a few kernels still have gaps. unshred_variant and cast_to_variant have no benchmarks at all, so a change like #11106 can't be compared on the existing suite. No Variant benchmark measures memory either, although the row builders allocate per row and per object.

Describe the solution you'd like

Add a few cases per gap, each with a distinct execution path or cost, preferably in benchmark-only PRs that later changes can be evaluated against. Extend variant_kernels and reuse its fixtures where possible.

  • unshred_variant: PR to follow
  • cast_to_variant: primitive and string arrays, lists and structs
  • shred_variant: fully typed objects and lists
  • variant_get: a field path on shredded objects
  • Memory: peak and cumulative allocated bytes for representative Variant kernels, in a separate bench target because the tracking allocator is process-wide, following parquet/benches/arrow_reader_peak_memory.rs and parquet/benches/arrow_writer_peak_memory.rs

Covered today:

Kernel Coverage PRs
variant_get Empty path, unshredded object path, per-row and unsorted metadata, list index, typed conversions to UTF-8, Binary and Decimal #11107, #11193, #11253, #11416, #11556, #11624
shred_variant Partial and unmatched objects
variant_to_json Scalars, small and wide objects, lists, shredded input, encoded metadata #11773
json_to_variant Repeated objects, lists, random JSON, representative shapes #11411
Builders, validation, paths variant_builder, variant_validation, variant_path #11461, #11508

Additional context

#10906 stays open for the variant_to_json regression itself, since #11773 only added its benchmarks.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions