Skip to content

Replace ArrayData with direct Array construction in arrow-row - #10229

Merged
alamb merged 4 commits into
apache:mainfrom
Jefffrey:row-refactor-out-arraydata
Jun 30, 2026
Merged

Replace ArrayData with direct Array construction in arrow-row#10229
alamb merged 4 commits into
apache:mainfrom
Jefffrey:row-refactor-out-arraydata

Conversation

@Jefffrey

@Jefffrey Jefffrey commented Jun 28, 2026

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

Rationale for this change

Avoid indirection via ArrayData construction for potentially some small performance benefits.

What changes are included in this PR?

Switch all usages of ArrayData to direct Array construction in arrow-row.

Are these changes tested?

Existing tests

Are there any user-facing changes?

No

@github-actions github-actions Bot added the arrow Changes to the arrow crate label Jun 28, 2026
@Jefffrey

Copy link
Copy Markdown
Contributor Author

run benchmark row_format

@adriangbot

Copy link
Copy Markdown

🤖 Arrow criterion benchmark running (GKE) | trigger
Instance: c4a-highmem-16 (12 vCPU / 65 GiB) | Linux bench-c4826396486-730-fh22t 6.12.85+ #1 SMP Mon May 11 08:17:35 UTC 2026 aarch64 GNU/Linux

CPU Details (lscpu)
Architecture:                            aarch64
CPU op-mode(s):                          64-bit
Byte Order:                              Little Endian
CPU(s):                                  16
On-line CPU(s) list:                     0-15
Vendor ID:                               ARM
Model name:                              Neoverse-V2
Model:                                   1
Thread(s) per core:                      1
Core(s) per cluster:                     16
Socket(s):                               -
Cluster(s):                              1
Stepping:                                r0p1
BogoMIPS:                                2000.00
Flags:                                   fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng bti
L1d cache:                               1 MiB (16 instances)
L1i cache:                               1 MiB (16 instances)
L2 cache:                                32 MiB (16 instances)
L3 cache:                                80 MiB (1 instance)
NUMA node(s):                            1
NUMA node0 CPU(s):                       0-15
Vulnerability Gather data sampling:      Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit:             Not affected
Vulnerability L1tf:                      Not affected
Vulnerability Mds:                       Not affected
Vulnerability Meltdown:                  Not affected
Vulnerability Mmio stale data:           Not affected
Vulnerability Reg file data sampling:    Not affected
Vulnerability Retbleed:                  Not affected
Vulnerability Spec rstack overflow:      Not affected
Vulnerability Spec store bypass:         Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1:                Mitigation; __user pointer sanitization
Vulnerability Spectre v2:                Mitigation; CSV2, BHB
Vulnerability Srbds:                     Not affected
Vulnerability Tsa:                       Not affected
Vulnerability Tsx async abort:           Not affected
Vulnerability Vmscape:                   Not affected

Comparing row-refactor-out-arraydata (033eb20) to da07bce (merge-base) diff
BENCH_NAME=row_format
BENCH_COMMAND=cargo bench --features=arrow,async,test_common,experimental,object_store --bench row_format
BENCH_FILTER=
Results will be posted here when complete


File an issue against this benchmark runner

Comment thread arrow-row/src/fixed.rs
/// and all other values as a null
///
/// Returns the null count and null buffer
pub fn decode_nulls(rows: &[&[u8]]) -> (usize, Buffer) {

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.

Instead of returning a separate null count & null buffer (as Buffer), just return Option<NullBuffer> where None is if the resulting null buffer has 0 nulls

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 think NullBuffers also contain a null count, however, they compute the null count with quite optimized code, so I think recomputing it in many cases is fine

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 assumed the way nullbuffer calculates its count might be as fast (or faster) than the manual count in the loop

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.

Yes -- when we last checked LLVM was using the native hardware instruction to count set bits which was crazy fast

As I recall there were a few times it was faster to avoid a second pass through the data, but only when the bits were already being processed a word (u64) at a time, not individually

Comment thread arrow-row/src/fixed.rs
/// # Safety
///
/// `data_type` must be appropriate native type for `T`
unsafe fn decode_fixed<T: FixedLengthEncoding + ArrowNativeType>(

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.

This has been inlined into decode_primitive

Comment thread arrow-row/src/variable.rs
}
}

pub(crate) fn decode_nulls_sentinel(rows: &[&[u8]], options: SortOptions) -> Option<NullBuffer> {

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.

Similar to the one in fixed.rs but compares using null_sentinel()

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.

perhaps some small comments explaining what it does would help future readers

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.

added

@Jefffrey
Jefffrey marked this pull request as ready for review June 28, 2026 14:31
@Jefffrey
Jefffrey requested a review from alamb June 28, 2026 15:11
@Jefffrey

Copy link
Copy Markdown
Contributor Author

fyi @liamzwbao since you worked on similar PRs before

@adriangbot

Copy link
Copy Markdown

🤖 Arrow criterion benchmark completed (GKE) | trigger

Instance: c4a-highmem-16 (12 vCPU / 65 GiB)

CPU Details (lscpu)
Architecture:                            aarch64
CPU op-mode(s):                          64-bit
Byte Order:                              Little Endian
CPU(s):                                  16
On-line CPU(s) list:                     0-15
Vendor ID:                               ARM
Model name:                              Neoverse-V2
Model:                                   1
Thread(s) per core:                      1
Core(s) per cluster:                     16
Socket(s):                               -
Cluster(s):                              1
Stepping:                                r0p1
BogoMIPS:                                2000.00
Flags:                                   fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng bti
L1d cache:                               1 MiB (16 instances)
L1i cache:                               1 MiB (16 instances)
L2 cache:                                32 MiB (16 instances)
L3 cache:                                80 MiB (1 instance)
NUMA node(s):                            1
NUMA node0 CPU(s):                       0-15
Vulnerability Gather data sampling:      Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit:             Not affected
Vulnerability L1tf:                      Not affected
Vulnerability Mds:                       Not affected
Vulnerability Meltdown:                  Not affected
Vulnerability Mmio stale data:           Not affected
Vulnerability Reg file data sampling:    Not affected
Vulnerability Retbleed:                  Not affected
Vulnerability Spec rstack overflow:      Not affected
Vulnerability Spec store bypass:         Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1:                Mitigation; __user pointer sanitization
Vulnerability Spectre v2:                Mitigation; CSV2, BHB
Vulnerability Srbds:                     Not affected
Vulnerability Tsa:                       Not affected
Vulnerability Tsx async abort:           Not affected
Vulnerability Vmscape:                   Not affected
Details

group                                                                                                                         main                                   row-refactor-out-arraydata
-----                                                                                                                         ----                                   --------------------------
append_rows 10 large_list(0) of u64(0)                                                                                        1.00    563.4±3.73ns        ? ?/sec    1.00    562.7±2.88ns        ? ?/sec
append_rows 10 list(0) of u64(0)                                                                                              1.00    592.9±3.80ns        ? ?/sec    1.01    596.8±3.05ns        ? ?/sec
append_rows 4096 4096 string_dictionary(20, 0.5), string_dictionary(30, 0), string_dictionary(100, 0), i64(0)                 1.00    186.5±1.78µs        ? ?/sec    1.01    187.7±1.43µs        ? ?/sec
append_rows 4096 53 columns                                                                                                   1.00    821.1±4.14µs        ? ?/sec    1.01    827.8±1.30µs        ? ?/sec
append_rows 4096 bool(0, 0.5)                                                                                                 1.04      5.1±0.00µs        ? ?/sec    1.00      4.9±0.01µs        ? ?/sec
append_rows 4096 bool(0.3, 0.5)                                                                                               1.00      5.8±0.00µs        ? ?/sec    1.00      5.8±0.01µs        ? ?/sec
append_rows 4096 i64(0)                                                                                                       1.00      4.4±0.04µs        ? ?/sec    1.08      4.7±0.41µs        ? ?/sec
append_rows 4096 i64(0.3)                                                                                                     1.02      5.5±0.01µs        ? ?/sec    1.00      5.4±0.00µs        ? ?/sec
append_rows 4096 large_list(0) of u64(0)                                                                                      1.03     91.3±0.26µs        ? ?/sec    1.00     89.0±0.14µs        ? ?/sec
append_rows 4096 large_list(0) sliced to 10 of u64(0)                                                                         1.00    760.1±4.44ns        ? ?/sec    1.01    765.6±3.10ns        ? ?/sec
append_rows 4096 list(0) of u64(0)                                                                                            1.00     91.0±0.18µs        ? ?/sec    1.01     91.5±0.20µs        ? ?/sec
append_rows 4096 list(0) sliced to 10 of u64(0)                                                                               1.00    838.9±8.36ns        ? ?/sec    1.00    836.1±2.89ns        ? ?/sec
append_rows 4096 run_primitive(1024 physical)                                                                                 1.01     22.5±0.26µs        ? ?/sec    1.00     22.2±0.48µs        ? ?/sec
append_rows 4096 run_primitive(256 physical)                                                                                  1.00     12.3±0.06µs        ? ?/sec    1.00     12.4±0.04µs        ? ?/sec
append_rows 4096 run_primitive(512 physical)                                                                                  1.00     15.3±0.18µs        ? ?/sec    1.00     15.3±0.21µs        ? ?/sec
append_rows 4096 string view(1..100, 0)                                                                                       1.02     38.4±0.23µs        ? ?/sec    1.00     37.8±0.14µs        ? ?/sec
append_rows 4096 string view(1..100, 0.5)                                                                                     1.05     32.2±0.37µs        ? ?/sec    1.00     30.6±0.41µs        ? ?/sec
append_rows 4096 string view(10, 0)                                                                                           1.00     29.3±0.04µs        ? ?/sec    1.00     29.3±0.03µs        ? ?/sec
append_rows 4096 string view(100, 0)                                                                                          1.00     44.6±0.37µs        ? ?/sec    1.00     44.8±0.14µs        ? ?/sec
append_rows 4096 string view(100, 0.5)                                                                                        1.00     37.5±0.36µs        ? ?/sec    1.00     37.6±0.43µs        ? ?/sec
append_rows 4096 string view(30, 0)                                                                                           1.00     34.5±0.06µs        ? ?/sec    1.00     34.4±0.14µs        ? ?/sec
append_rows 4096 string(10, 0)                                                                                                1.01     26.7±0.03µs        ? ?/sec    1.00     26.5±0.03µs        ? ?/sec
append_rows 4096 string(100, 0)                                                                                               1.00     36.5±0.12µs        ? ?/sec    1.01     36.7±0.35µs        ? ?/sec
append_rows 4096 string(100, 0.5)                                                                                             1.00     32.6±0.38µs        ? ?/sec    1.07     34.7±0.26µs        ? ?/sec
append_rows 4096 string(20, 0.5), string(30, 0), string(100, 0), i64(0)                                                       1.00     93.3±1.77µs        ? ?/sec    1.01     94.7±1.57µs        ? ?/sec
append_rows 4096 string(30, 0)                                                                                                1.00     29.4±1.27µs        ? ?/sec    1.00     29.5±1.23µs        ? ?/sec
append_rows 4096 string_dictionary(10, 0)                                                                                     1.00     49.3±0.05µs        ? ?/sec    1.00     49.3±0.08µs        ? ?/sec
append_rows 4096 string_dictionary(100, 0)                                                                                    1.00     71.9±0.17µs        ? ?/sec    1.03     74.2±0.14µs        ? ?/sec
append_rows 4096 string_dictionary(100, 0.5)                                                                                  1.00     51.7±0.23µs        ? ?/sec    1.07     55.1±0.17µs        ? ?/sec
append_rows 4096 string_dictionary(30, 0)                                                                                     1.00     54.8±1.33µs        ? ?/sec    1.00     54.8±1.27µs        ? ?/sec
append_rows 4096 string_dictionary_low_cardinality(10, 0)                                                                     1.01     22.4±0.06µs        ? ?/sec    1.00     22.2±0.07µs        ? ?/sec
append_rows 4096 string_dictionary_low_cardinality(100, 0)                                                                    1.01     32.5±0.03µs        ? ?/sec    1.00     32.3±0.02µs        ? ?/sec
append_rows 4096 string_dictionary_low_cardinality(30, 0)                                                                     1.01     24.9±0.06µs        ? ?/sec    1.00     24.6±0.07µs        ? ?/sec
append_rows 4096 u64(0)                                                                                                       1.17      5.0±0.57µs        ? ?/sec    1.00      4.3±0.32µs        ? ?/sec
append_rows 4096 u64(0.3)                                                                                                     1.08      5.9±0.02µs        ? ?/sec    1.00      5.4±0.00µs        ? ?/sec
append_rows 8192 53 columns                                                                                                   1.00   1718.8±6.33µs        ? ?/sec    1.00   1721.6±2.41µs        ? ?/sec
convert_columns 10 large_list(0) of u64(0)                                                                                    1.00    849.7±1.88ns        ? ?/sec    1.00    853.4±7.71ns        ? ?/sec
convert_columns 10 list(0) of u64(0)                                                                                          1.01    874.9±3.23ns        ? ?/sec    1.00    869.8±7.28ns        ? ?/sec
convert_columns 4096 4096 string_dictionary(20, 0.5), string_dictionary(30, 0), string_dictionary(100, 0), i64(0)             1.00    189.5±1.51µs        ? ?/sec    1.01    192.1±1.49µs        ? ?/sec
convert_columns 4096 53 columns                                                                                               1.00    824.8±2.74µs        ? ?/sec    1.01    831.3±1.15µs        ? ?/sec
convert_columns 4096 bool(0, 0.5)                                                                                             1.05      5.4±0.00µs        ? ?/sec    1.00      5.2±0.03µs        ? ?/sec
convert_columns 4096 bool(0.3, 0.5)                                                                                           1.00      6.0±0.00µs        ? ?/sec    1.00      6.0±0.00µs        ? ?/sec
convert_columns 4096 i64(0)                                                                                                   1.01      4.7±0.22µs        ? ?/sec    1.00      4.6±0.01µs        ? ?/sec
convert_columns 4096 i64(0.3)                                                                                                 1.02      5.7±0.01µs        ? ?/sec    1.00      5.6±0.01µs        ? ?/sec
convert_columns 4096 large_list(0) of u64(0)                                                                                  1.02     91.7±0.25µs        ? ?/sec    1.00     89.6±0.15µs        ? ?/sec
convert_columns 4096 large_list(0) sliced to 10 of u64(0)                                                                     1.00   1045.8±2.00ns        ? ?/sec    1.00   1046.2±5.99ns        ? ?/sec
convert_columns 4096 list(0) of u64(0)                                                                                        1.00     91.2±0.18µs        ? ?/sec    1.01     92.0±0.16µs        ? ?/sec
convert_columns 4096 list(0) sliced to 10 of u64(0)                                                                           1.00   1119.0±2.68ns        ? ?/sec    1.03   1155.4±7.60ns        ? ?/sec
convert_columns 4096 run_primitive(1024 physical)                                                                             1.00     22.7±0.24µs        ? ?/sec    1.00     22.8±0.25µs        ? ?/sec
convert_columns 4096 run_primitive(256 physical)                                                                              1.00     12.7±0.05µs        ? ?/sec    1.00     12.7±0.06µs        ? ?/sec
convert_columns 4096 run_primitive(512 physical)                                                                              1.00     15.7±0.20µs        ? ?/sec    1.00     15.7±0.20µs        ? ?/sec
convert_columns 4096 string view(1..100, 0)                                                                                   1.02     38.5±0.11µs        ? ?/sec    1.00     37.9±0.14µs        ? ?/sec
convert_columns 4096 string view(1..100, 0.5)                                                                                 1.05     32.5±0.41µs        ? ?/sec    1.00     30.8±0.39µs        ? ?/sec
convert_columns 4096 string view(10, 0)                                                                                       1.00     29.6±0.10µs        ? ?/sec    1.00     29.5±0.08µs        ? ?/sec
convert_columns 4096 string view(100, 0)                                                                                      1.01     44.9±0.26µs        ? ?/sec    1.00     44.6±0.15µs        ? ?/sec
convert_columns 4096 string view(100, 0.5)                                                                                    1.01     37.4±0.32µs        ? ?/sec    1.00     37.0±0.29µs        ? ?/sec
convert_columns 4096 string view(30, 0)                                                                                       1.00     34.6±0.04µs        ? ?/sec    1.00     34.5±0.07µs        ? ?/sec
convert_columns 4096 string(10, 0)                                                                                            1.00     26.8±0.12µs        ? ?/sec    1.00     26.9±0.03µs        ? ?/sec
convert_columns 4096 string(100, 0)                                                                                           1.00     37.0±0.13µs        ? ?/sec    1.00     36.9±0.13µs        ? ?/sec
convert_columns 4096 string(100, 0.5)                                                                                         1.00     32.7±0.44µs        ? ?/sec    1.06     34.8±0.32µs        ? ?/sec
convert_columns 4096 string(20, 0.5), string(30, 0), string(100, 0), i64(0)                                                   1.00     93.8±1.70µs        ? ?/sec    1.01     94.7±1.66µs        ? ?/sec
convert_columns 4096 string(30, 0)                                                                                            1.01     29.8±1.29µs        ? ?/sec    1.00     29.6±1.24µs        ? ?/sec
convert_columns 4096 string_dictionary(10, 0)                                                                                 1.00     50.2±0.04µs        ? ?/sec    1.03     51.6±0.03µs        ? ?/sec
convert_columns 4096 string_dictionary(100, 0)                                                                                1.00     74.4±0.87µs        ? ?/sec    1.00     74.4±0.15µs        ? ?/sec
convert_columns 4096 string_dictionary(100, 0.5)                                                                              1.00     52.6±0.23µs        ? ?/sec    1.07     56.2±0.29µs        ? ?/sec
convert_columns 4096 string_dictionary(30, 0)                                                                                 1.00     56.4±1.27µs        ? ?/sec    1.00     56.1±1.20µs        ? ?/sec
convert_columns 4096 string_dictionary_low_cardinality(10, 0)                                                                 1.01     23.5±0.02µs        ? ?/sec    1.00     23.2±0.02µs        ? ?/sec
convert_columns 4096 string_dictionary_low_cardinality(100, 0)                                                                1.01     33.7±0.15µs        ? ?/sec    1.00     33.4±0.05µs        ? ?/sec
convert_columns 4096 string_dictionary_low_cardinality(30, 0)                                                                 1.01     26.0±0.08µs        ? ?/sec    1.00     25.8±0.08µs        ? ?/sec
convert_columns 4096 u64(0)                                                                                                   1.00      4.4±0.01µs        ? ?/sec    1.01      4.4±0.07µs        ? ?/sec
convert_columns 4096 u64(0.3)                                                                                                 1.08      6.1±0.05µs        ? ?/sec    1.00      5.7±0.01µs        ? ?/sec
convert_columns 8192 53 columns                                                                                               1.00   1718.1±3.58µs        ? ?/sec    1.00   1725.3±2.50µs        ? ?/sec
convert_columns_prepared 10 large_list(0) of u64(0)                                                                           1.00    638.3±2.69ns        ? ?/sec    1.00    639.4±4.83ns        ? ?/sec
convert_columns_prepared 10 list(0) of u64(0)                                                                                 1.01    667.6±3.18ns        ? ?/sec    1.00    662.7±4.44ns        ? ?/sec
convert_columns_prepared 4096 4096 string_dictionary(20, 0.5), string_dictionary(30, 0), string_dictionary(100, 0), i64(0)    1.00    185.8±1.46µs        ? ?/sec    1.01    187.9±1.34µs        ? ?/sec
convert_columns_prepared 4096 53 columns                                                                                      1.00    821.6±1.36µs        ? ?/sec    1.02    834.0±2.02µs        ? ?/sec
convert_columns_prepared 4096 bool(0, 0.5)                                                                                    1.03      5.3±0.00µs        ? ?/sec    1.00      5.1±0.06µs        ? ?/sec
convert_columns_prepared 4096 bool(0.3, 0.5)                                                                                  1.00      5.9±0.00µs        ? ?/sec    1.00      5.9±0.01µs        ? ?/sec
convert_columns_prepared 4096 i64(0)                                                                                          1.00      4.5±0.01µs        ? ?/sec    1.01      4.5±0.01µs        ? ?/sec
convert_columns_prepared 4096 i64(0.3)                                                                                        1.02      5.6±0.00µs        ? ?/sec    1.00      5.5±0.01µs        ? ?/sec
convert_columns_prepared 4096 large_list(0) of u64(0)                                                                         1.02     91.3±0.22µs        ? ?/sec    1.00     89.2±0.15µs        ? ?/sec
convert_columns_prepared 4096 large_list(0) sliced to 10 of u64(0)                                                            1.00    833.3±2.47ns        ? ?/sec    1.01    838.3±5.29ns        ? ?/sec
convert_columns_prepared 4096 list(0) of u64(0)                                                                               1.00     91.0±0.17µs        ? ?/sec    1.01     91.7±0.15µs        ? ?/sec
convert_columns_prepared 4096 list(0) sliced to 10 of u64(0)                                                                  1.00    910.4±4.74ns        ? ?/sec    1.00    913.7±4.70ns        ? ?/sec
convert_columns_prepared 4096 run_primitive(1024 physical)                                                                    1.00     22.2±0.42µs        ? ?/sec    1.02     22.6±0.19µs        ? ?/sec
convert_columns_prepared 4096 run_primitive(256 physical)                                                                     1.00     12.5±0.05µs        ? ?/sec    1.00     12.5±0.05µs        ? ?/sec
convert_columns_prepared 4096 run_primitive(512 physical)                                                                     1.00     15.5±0.18µs        ? ?/sec    1.00     15.4±0.19µs        ? ?/sec
convert_columns_prepared 4096 string view(1..100, 0)                                                                          1.01     38.4±0.22µs        ? ?/sec    1.00     38.0±0.21µs        ? ?/sec
convert_columns_prepared 4096 string view(1..100, 0.5)                                                                        1.06     32.7±1.57µs        ? ?/sec    1.00     30.7±0.41µs        ? ?/sec
convert_columns_prepared 4096 string view(10, 0)                                                                              1.00     29.3±0.05µs        ? ?/sec    1.00     29.4±0.03µs        ? ?/sec
convert_columns_prepared 4096 string view(100, 0)                                                                             1.00     44.3±0.20µs        ? ?/sec    1.02     45.3±0.19µs        ? ?/sec
convert_columns_prepared 4096 string view(100, 0.5)                                                                           1.00     37.2±0.41µs        ? ?/sec    1.00     37.3±0.33µs        ? ?/sec
convert_columns_prepared 4096 string view(30, 0)                                                                              1.00     34.2±0.08µs        ? ?/sec    1.01     34.5±0.07µs        ? ?/sec
convert_columns_prepared 4096 string(10, 0)                                                                                   1.00     26.6±0.03µs        ? ?/sec    1.01     26.7±0.08µs        ? ?/sec
convert_columns_prepared 4096 string(100, 0)                                                                                  1.00     36.8±0.13µs        ? ?/sec    1.01     37.3±0.11µs        ? ?/sec
convert_columns_prepared 4096 string(100, 0.5)                                                                                1.00     34.1±1.76µs        ? ?/sec    1.01     34.3±0.37µs        ? ?/sec
convert_columns_prepared 4096 string(20, 0.5), string(30, 0), string(100, 0), i64(0)                                          1.00     93.8±1.69µs        ? ?/sec    1.01     94.6±1.64µs        ? ?/sec
convert_columns_prepared 4096 string(30, 0)                                                                                   1.00     29.5±1.26µs        ? ?/sec    1.00     29.5±1.24µs        ? ?/sec
convert_columns_prepared 4096 string_dictionary(10, 0)                                                                        1.00     49.2±0.04µs        ? ?/sec    1.00     49.3±0.04µs        ? ?/sec
convert_columns_prepared 4096 string_dictionary(100, 0)                                                                       1.00     72.0±0.19µs        ? ?/sec    1.02     73.4±0.14µs        ? ?/sec
convert_columns_prepared 4096 string_dictionary(100, 0.5)                                                                     1.00     52.1±0.17µs        ? ?/sec    1.03     53.8±0.19µs        ? ?/sec
convert_columns_prepared 4096 string_dictionary(30, 0)                                                                        1.00     55.1±1.29µs        ? ?/sec    1.02     56.3±1.27µs        ? ?/sec
convert_columns_prepared 4096 string_dictionary_low_cardinality(10, 0)                                                        1.01     22.5±0.04µs        ? ?/sec    1.00     22.3±0.06µs        ? ?/sec
convert_columns_prepared 4096 string_dictionary_low_cardinality(100, 0)                                                       1.00     32.7±0.02µs        ? ?/sec    1.00     32.7±0.09µs        ? ?/sec
convert_columns_prepared 4096 string_dictionary_low_cardinality(30, 0)                                                        1.01     24.9±0.05µs        ? ?/sec    1.00     24.7±0.03µs        ? ?/sec
convert_columns_prepared 4096 u64(0)                                                                                          1.00      4.2±0.01µs        ? ?/sec    1.23      5.2±0.49µs        ? ?/sec
convert_columns_prepared 4096 u64(0.3)                                                                                        1.09      6.0±0.03µs        ? ?/sec    1.00      5.5±0.01µs        ? ?/sec
convert_columns_prepared 8192 53 columns                                                                                      1.01  1730.7±10.02µs        ? ?/sec    1.00   1721.1±1.86µs        ? ?/sec
convert_rows 10 large_list(0) of u64(0)                                                                                       1.34   1284.2±4.61ns        ? ?/sec    1.00    957.3±4.62ns        ? ?/sec
convert_rows 10 list(0) of u64(0)                                                                                             1.33   1343.6±7.00ns        ? ?/sec    1.00   1010.2±5.80ns        ? ?/sec
convert_rows 4096 4096 string_dictionary(20, 0.5), string_dictionary(30, 0), string_dictionary(100, 0), i64(0)                1.07    235.2±0.55µs        ? ?/sec    1.00    220.1±0.36µs        ? ?/sec
convert_rows 4096 53 columns                                                                                                  1.10   1852.6±2.73µs        ? ?/sec    1.00   1686.4±3.48µs        ? ?/sec
convert_rows 4096 bool(0, 0.5)                                                                                                1.03     13.8±0.01µs        ? ?/sec    1.00     13.4±0.01µs        ? ?/sec
convert_rows 4096 bool(0.3, 0.5)                                                                                              1.03     13.8±0.01µs        ? ?/sec    1.00     13.4±0.01µs        ? ?/sec
convert_rows 4096 i64(0)                                                                                                      1.27     26.7±0.04µs        ? ?/sec    1.00     21.0±0.02µs        ? ?/sec
convert_rows 4096 i64(0.3)                                                                                                    1.27     26.7±0.02µs        ? ?/sec    1.00     21.0±0.01µs        ? ?/sec
convert_rows 4096 large_list(0) of u64(0)                                                                                     1.04    165.7±0.27µs        ? ?/sec    1.00    159.6±0.35µs        ? ?/sec
convert_rows 4096 large_list(0) sliced to 10 of u64(0)                                                                        1.30   1591.6±3.51ns        ? ?/sec    1.00   1228.8±6.64ns        ? ?/sec
convert_rows 4096 list(0) of u64(0)                                                                                           1.11    176.2±0.24µs        ? ?/sec    1.00    159.1±0.31µs        ? ?/sec
convert_rows 4096 list(0) sliced to 10 of u64(0)                                                                              1.28   1706.3±4.69ns        ? ?/sec    1.00   1333.1±5.51ns        ? ?/sec
convert_rows 4096 run_primitive(1024 physical)                                                                                1.03     78.0±0.16µs        ? ?/sec    1.00     75.7±0.16µs        ? ?/sec
convert_rows 4096 run_primitive(256 physical)                                                                                 1.01     54.9±0.05µs        ? ?/sec    1.00     54.5±0.09µs        ? ?/sec
convert_rows 4096 run_primitive(512 physical)                                                                                 1.02     63.2±0.09µs        ? ?/sec    1.00     61.8±0.16µs        ? ?/sec
convert_rows 4096 string view(1..100, 0)                                                                                      1.00     70.7±0.07µs        ? ?/sec    1.16     81.9±0.30µs        ? ?/sec
convert_rows 4096 string view(1..100, 0.5)                                                                                    1.00     48.4±0.08µs        ? ?/sec    1.45     70.3±0.44µs        ? ?/sec
convert_rows 4096 string view(10, 0)                                                                                          1.12     50.5±0.05µs        ? ?/sec    1.00     44.9±0.25µs        ? ?/sec
convert_rows 4096 string view(100, 0)                                                                                         1.06    102.6±0.12µs        ? ?/sec    1.00     96.9±0.10µs        ? ?/sec
convert_rows 4096 string view(100, 0.5)                                                                                       1.00     62.5±0.06µs        ? ?/sec    1.02     64.0±0.12µs        ? ?/sec
convert_rows 4096 string view(30, 0)                                                                                          1.09     63.6±0.11µs        ? ?/sec    1.00     58.1±0.04µs        ? ?/sec
convert_rows 4096 string(10, 0)                                                                                               1.09     44.3±0.04µs        ? ?/sec    1.00     40.6±0.07µs        ? ?/sec
convert_rows 4096 string(100, 0)                                                                                              1.03    101.8±0.09µs        ? ?/sec    1.00     99.1±0.16µs        ? ?/sec
convert_rows 4096 string(100, 0.5)                                                                                            1.00     60.8±0.04µs        ? ?/sec    1.02     61.9±0.18µs        ? ?/sec
convert_rows 4096 string(20, 0.5), string(30, 0), string(100, 0), i64(0)                                                      1.07    237.3±0.27µs        ? ?/sec    1.00    222.3±0.37µs        ? ?/sec
convert_rows 4096 string(30, 0)                                                                                               1.08     69.3±0.08µs        ? ?/sec    1.00     64.3±0.11µs        ? ?/sec
convert_rows 4096 string_dictionary(10, 0)                                                                                    1.09     44.4±0.05µs        ? ?/sec    1.00     40.9±0.05µs        ? ?/sec
convert_rows 4096 string_dictionary(100, 0)                                                                                   1.03    102.1±0.07µs        ? ?/sec    1.00     99.3±0.13µs        ? ?/sec
convert_rows 4096 string_dictionary(100, 0.5)                                                                                 1.00     60.9±0.04µs        ? ?/sec    1.01     61.7±0.14µs        ? ?/sec
convert_rows 4096 string_dictionary(30, 0)                                                                                    1.08     69.6±0.06µs        ? ?/sec    1.00     64.6±0.39µs        ? ?/sec
convert_rows 4096 string_dictionary_low_cardinality(10, 0)                                                                    1.09     44.5±0.27µs        ? ?/sec    1.00     40.7±0.03µs        ? ?/sec
convert_rows 4096 string_dictionary_low_cardinality(100, 0)                                                                   1.02    101.7±0.10µs        ? ?/sec    1.00    100.1±0.10µs        ? ?/sec
convert_rows 4096 string_dictionary_low_cardinality(30, 0)                                                                    1.07     69.4±0.06µs        ? ?/sec    1.00     64.8±0.42µs        ? ?/sec
convert_rows 4096 u64(0)                                                                                                      1.28     26.3±0.03µs        ? ?/sec    1.00     20.6±0.05µs        ? ?/sec
convert_rows 4096 u64(0.3)                                                                                                    1.28     26.3±0.01µs        ? ?/sec    1.00     20.6±0.02µs        ? ?/sec
convert_rows 8192 53 columns                                                                                                  1.08      4.4±0.02ms        ? ?/sec    1.00      4.1±0.01ms        ? ?/sec
iterate rows                                                                                                                  1.00      2.0±0.00µs        ? ?/sec    1.00      2.0±0.00µs        ? ?/sec

Resource Usage

base (merge-base)

Metric Value
Wall time 1400.3s
Peak memory 28.4 MiB
Avg memory 8.5 MiB
CPU user 1393.0s
CPU sys 0.3s
Peak spill 0 B

branch

Metric Value
Wall time 1430.3s
Peak memory 22.5 MiB
Avg memory 8.4 MiB
CPU user 1425.5s
CPU sys 0.3s
Peak spill 0 B

File an issue against this benchmark runner

@Jefffrey

Copy link
Copy Markdown
Contributor Author

note to self: only convert_rows benchmarks should be affected, rest would be just noise

@Jefffrey

Copy link
Copy Markdown
Contributor Author

run benchmark row_format

@adriangbot

Copy link
Copy Markdown

🤖 Arrow criterion benchmark running (GKE) | trigger
Instance: c4a-highmem-16 (12 vCPU / 65 GiB) | Linux bench-c4826541889-731-mmgk8 6.12.85+ #1 SMP Mon May 11 08:17:35 UTC 2026 aarch64 GNU/Linux

CPU Details (lscpu)
Architecture:                            aarch64
CPU op-mode(s):                          64-bit
Byte Order:                              Little Endian
CPU(s):                                  16
On-line CPU(s) list:                     0-15
Vendor ID:                               ARM
Model name:                              Neoverse-V2
Model:                                   1
Thread(s) per core:                      1
Core(s) per cluster:                     16
Socket(s):                               -
Cluster(s):                              1
Stepping:                                r0p1
BogoMIPS:                                2000.00
Flags:                                   fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng bti
L1d cache:                               1 MiB (16 instances)
L1i cache:                               1 MiB (16 instances)
L2 cache:                                32 MiB (16 instances)
L3 cache:                                80 MiB (1 instance)
NUMA node(s):                            1
NUMA node0 CPU(s):                       0-15
Vulnerability Gather data sampling:      Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit:             Not affected
Vulnerability L1tf:                      Not affected
Vulnerability Mds:                       Not affected
Vulnerability Meltdown:                  Not affected
Vulnerability Mmio stale data:           Not affected
Vulnerability Reg file data sampling:    Not affected
Vulnerability Retbleed:                  Not affected
Vulnerability Spec rstack overflow:      Not affected
Vulnerability Spec store bypass:         Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1:                Mitigation; __user pointer sanitization
Vulnerability Spectre v2:                Mitigation; CSV2, BHB
Vulnerability Srbds:                     Not affected
Vulnerability Tsa:                       Not affected
Vulnerability Tsx async abort:           Not affected
Vulnerability Vmscape:                   Not affected

Comparing row-refactor-out-arraydata (033eb20) to da07bce (merge-base) diff
BENCH_NAME=row_format
BENCH_COMMAND=cargo bench --features=arrow,async,test_common,experimental,object_store --bench row_format
BENCH_FILTER=
Results will be posted here when complete


File an issue against this benchmark runner

@adriangbot

Copy link
Copy Markdown

🤖 Arrow criterion benchmark completed (GKE) | trigger

Instance: c4a-highmem-16 (12 vCPU / 65 GiB)

CPU Details (lscpu)
Architecture:                            aarch64
CPU op-mode(s):                          64-bit
Byte Order:                              Little Endian
CPU(s):                                  16
On-line CPU(s) list:                     0-15
Vendor ID:                               ARM
Model name:                              Neoverse-V2
Model:                                   1
Thread(s) per core:                      1
Core(s) per cluster:                     16
Socket(s):                               -
Cluster(s):                              1
Stepping:                                r0p1
BogoMIPS:                                2000.00
Flags:                                   fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng bti
L1d cache:                               1 MiB (16 instances)
L1i cache:                               1 MiB (16 instances)
L2 cache:                                32 MiB (16 instances)
L3 cache:                                80 MiB (1 instance)
NUMA node(s):                            1
NUMA node0 CPU(s):                       0-15
Vulnerability Gather data sampling:      Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit:             Not affected
Vulnerability L1tf:                      Not affected
Vulnerability Mds:                       Not affected
Vulnerability Meltdown:                  Not affected
Vulnerability Mmio stale data:           Not affected
Vulnerability Reg file data sampling:    Not affected
Vulnerability Retbleed:                  Not affected
Vulnerability Spec rstack overflow:      Not affected
Vulnerability Spec store bypass:         Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1:                Mitigation; __user pointer sanitization
Vulnerability Spectre v2:                Mitigation; CSV2, BHB
Vulnerability Srbds:                     Not affected
Vulnerability Tsa:                       Not affected
Vulnerability Tsx async abort:           Not affected
Vulnerability Vmscape:                   Not affected
Details

group                                                                                                                         main                                   row-refactor-out-arraydata
-----                                                                                                                         ----                                   --------------------------
append_rows 10 large_list(0) of u64(0)                                                                                        1.00    565.0±2.20ns        ? ?/sec    1.00    562.7±3.68ns        ? ?/sec
append_rows 10 list(0) of u64(0)                                                                                              1.00    596.0±3.09ns        ? ?/sec    1.00    597.0±3.63ns        ? ?/sec
append_rows 4096 4096 string_dictionary(20, 0.5), string_dictionary(30, 0), string_dictionary(100, 0), i64(0)                 1.00    184.8±1.55µs        ? ?/sec    1.01    186.0±2.13µs        ? ?/sec
append_rows 4096 53 columns                                                                                                   1.00    825.3±4.37µs        ? ?/sec    1.00    823.4±0.92µs        ? ?/sec
append_rows 4096 bool(0, 0.5)                                                                                                 1.05      5.1±0.02µs        ? ?/sec    1.00      4.9±0.00µs        ? ?/sec
append_rows 4096 bool(0.3, 0.5)                                                                                               1.00      5.8±0.00µs        ? ?/sec    1.00      5.8±0.00µs        ? ?/sec
append_rows 4096 i64(0)                                                                                                       1.00      4.4±0.04µs        ? ?/sec    1.00      4.4±0.01µs        ? ?/sec
append_rows 4096 i64(0.3)                                                                                                     1.02      5.5±0.01µs        ? ?/sec    1.00      5.4±0.00µs        ? ?/sec
append_rows 4096 large_list(0) of u64(0)                                                                                      1.03     91.3±0.25µs        ? ?/sec    1.00     88.7±0.39µs        ? ?/sec
append_rows 4096 large_list(0) sliced to 10 of u64(0)                                                                         1.00    773.7±4.27ns        ? ?/sec    1.01    778.2±4.53ns        ? ?/sec
append_rows 4096 list(0) of u64(0)                                                                                            1.00     90.9±0.16µs        ? ?/sec    1.01     91.6±0.17µs        ? ?/sec
append_rows 4096 list(0) sliced to 10 of u64(0)                                                                               1.00    834.2±2.95ns        ? ?/sec    1.02    850.4±3.73ns        ? ?/sec
append_rows 4096 run_primitive(1024 physical)                                                                                 1.01     22.5±0.20µs        ? ?/sec    1.00     22.2±0.40µs        ? ?/sec
append_rows 4096 run_primitive(256 physical)                                                                                  1.00     12.4±0.06µs        ? ?/sec    1.00     12.4±0.05µs        ? ?/sec
append_rows 4096 run_primitive(512 physical)                                                                                  1.00     15.3±0.19µs        ? ?/sec    1.00     15.4±0.18µs        ? ?/sec
append_rows 4096 string view(1..100, 0)                                                                                       1.01     38.5±0.20µs        ? ?/sec    1.00     37.9±0.13µs        ? ?/sec
append_rows 4096 string view(1..100, 0.5)                                                                                     1.05     32.2±0.33µs        ? ?/sec    1.00     30.6±0.44µs        ? ?/sec
append_rows 4096 string view(10, 0)                                                                                           1.00     29.3±0.06µs        ? ?/sec    1.00     29.4±0.03µs        ? ?/sec
append_rows 4096 string view(100, 0)                                                                                          1.00     44.2±0.18µs        ? ?/sec    1.01     44.5±0.26µs        ? ?/sec
append_rows 4096 string view(100, 0.5)                                                                                        1.00     37.8±0.53µs        ? ?/sec    1.00     37.6±0.37µs        ? ?/sec
append_rows 4096 string view(30, 0)                                                                                           1.00     34.3±0.06µs        ? ?/sec    1.00     34.3±0.07µs        ? ?/sec
append_rows 4096 string(10, 0)                                                                                                1.00     26.5±0.03µs        ? ?/sec    1.00     26.4±0.03µs        ? ?/sec
append_rows 4096 string(100, 0)                                                                                               1.00     36.1±0.13µs        ? ?/sec    1.01     36.3±0.13µs        ? ?/sec
append_rows 4096 string(100, 0.5)                                                                                             1.00     32.4±0.44µs        ? ?/sec    1.14     37.0±0.30µs        ? ?/sec
append_rows 4096 string(20, 0.5), string(30, 0), string(100, 0), i64(0)                                                       1.00     93.5±1.83µs        ? ?/sec    1.03     96.7±1.50µs        ? ?/sec
append_rows 4096 string(30, 0)                                                                                                1.01     29.6±1.27µs        ? ?/sec    1.00     29.4±1.26µs        ? ?/sec
append_rows 4096 string_dictionary(10, 0)                                                                                     1.00     49.6±0.05µs        ? ?/sec    1.00     49.5±0.33µs        ? ?/sec
append_rows 4096 string_dictionary(100, 0)                                                                                    1.01     73.1±0.17µs        ? ?/sec    1.00     72.3±0.26µs        ? ?/sec
append_rows 4096 string_dictionary(100, 0.5)                                                                                  1.00     50.8±0.15µs        ? ?/sec    1.08     54.7±0.28µs        ? ?/sec
append_rows 4096 string_dictionary(30, 0)                                                                                     1.00     55.1±1.20µs        ? ?/sec    1.00     55.0±1.45µs        ? ?/sec
append_rows 4096 string_dictionary_low_cardinality(10, 0)                                                                     1.01     22.4±0.06µs        ? ?/sec    1.00     22.2±0.03µs        ? ?/sec
append_rows 4096 string_dictionary_low_cardinality(100, 0)                                                                    1.00     32.6±0.05µs        ? ?/sec    1.00     32.6±0.25µs        ? ?/sec
append_rows 4096 string_dictionary_low_cardinality(30, 0)                                                                     1.00     24.8±0.04µs        ? ?/sec    1.00     24.8±0.26µs        ? ?/sec
append_rows 4096 u64(0)                                                                                                       1.00      4.2±0.00µs        ? ?/sec    1.00      4.2±0.01µs        ? ?/sec
append_rows 4096 u64(0.3)                                                                                                     1.09      5.9±0.03µs        ? ?/sec    1.00      5.4±0.00µs        ? ?/sec
append_rows 8192 53 columns                                                                                                   1.00   1717.3±5.36µs        ? ?/sec    1.00  1712.9±14.32µs        ? ?/sec
convert_columns 10 large_list(0) of u64(0)                                                                                    1.01    852.5±2.00ns        ? ?/sec    1.00    847.8±4.44ns        ? ?/sec
convert_columns 10 list(0) of u64(0)                                                                                          1.00    871.3±2.52ns        ? ?/sec    1.00    871.8±7.27ns        ? ?/sec
convert_columns 4096 4096 string_dictionary(20, 0.5), string_dictionary(30, 0), string_dictionary(100, 0), i64(0)             1.01    190.4±2.42µs        ? ?/sec    1.00    188.2±1.48µs        ? ?/sec
convert_columns 4096 53 columns                                                                                               1.00    826.1±2.17µs        ? ?/sec    1.01    830.7±4.38µs        ? ?/sec
convert_columns 4096 bool(0, 0.5)                                                                                             1.06      5.5±0.07µs        ? ?/sec    1.00      5.2±0.01µs        ? ?/sec
convert_columns 4096 bool(0.3, 0.5)                                                                                           1.00      6.0±0.00µs        ? ?/sec    1.00      6.0±0.01µs        ? ?/sec
convert_columns 4096 i64(0)                                                                                                   1.07      4.9±0.44µs        ? ?/sec    1.00      4.6±0.01µs        ? ?/sec
convert_columns 4096 i64(0.3)                                                                                                 1.01      5.7±0.00µs        ? ?/sec    1.00      5.6±0.01µs        ? ?/sec
convert_columns 4096 large_list(0) of u64(0)                                                                                  1.02     91.4±0.20µs        ? ?/sec    1.00     89.7±0.11µs        ? ?/sec
convert_columns 4096 large_list(0) sliced to 10 of u64(0)                                                                     1.00   1047.3±2.36ns        ? ?/sec    1.00   1049.6±3.96ns        ? ?/sec
convert_columns 4096 list(0) of u64(0)                                                                                        1.00     91.2±0.22µs        ? ?/sec    1.01     92.0±0.21µs        ? ?/sec
convert_columns 4096 list(0) sliced to 10 of u64(0)                                                                           1.00   1114.3±2.07ns        ? ?/sec    1.00   1114.8±3.64ns        ? ?/sec
convert_columns 4096 run_primitive(1024 physical)                                                                             1.00     22.5±0.43µs        ? ?/sec    1.02     22.8±0.24µs        ? ?/sec
convert_columns 4096 run_primitive(256 physical)                                                                              1.00     12.7±0.07µs        ? ?/sec    1.00     12.7±0.05µs        ? ?/sec
convert_columns 4096 run_primitive(512 physical)                                                                              1.01     15.8±0.21µs        ? ?/sec    1.00     15.7±0.19µs        ? ?/sec
convert_columns 4096 string view(1..100, 0)                                                                                   1.01     38.5±0.19µs        ? ?/sec    1.00     38.1±0.13µs        ? ?/sec
convert_columns 4096 string view(1..100, 0.5)                                                                                 1.04     32.3±0.37µs        ? ?/sec    1.00     31.0±0.48µs        ? ?/sec
convert_columns 4096 string view(10, 0)                                                                                       1.00     29.6±0.11µs        ? ?/sec    1.00     29.5±0.02µs        ? ?/sec
convert_columns 4096 string view(100, 0)                                                                                      1.00     44.1±0.27µs        ? ?/sec    1.03     45.2±0.22µs        ? ?/sec
convert_columns 4096 string view(100, 0.5)                                                                                    1.00     37.6±0.30µs        ? ?/sec    1.00     37.6±0.33µs        ? ?/sec
convert_columns 4096 string view(30, 0)                                                                                       1.00     34.6±0.11µs        ? ?/sec    1.00     34.5±0.05µs        ? ?/sec
convert_columns 4096 string(10, 0)                                                                                            1.01     26.9±0.09µs        ? ?/sec    1.00     26.7±0.06µs        ? ?/sec
convert_columns 4096 string(100, 0)                                                                                           1.01     37.0±0.35µs        ? ?/sec    1.00     36.7±0.14µs        ? ?/sec
convert_columns 4096 string(100, 0.5)                                                                                         1.00     32.8±0.41µs        ? ?/sec    1.12     36.6±0.27µs        ? ?/sec
convert_columns 4096 string(20, 0.5), string(30, 0), string(100, 0), i64(0)                                                   1.00     93.8±1.58µs        ? ?/sec    1.04     97.3±1.55µs        ? ?/sec
convert_columns 4096 string(30, 0)                                                                                            1.01     29.8±1.31µs        ? ?/sec    1.00     29.6±1.24µs        ? ?/sec
convert_columns 4096 string_dictionary(10, 0)                                                                                 1.00     50.2±0.06µs        ? ?/sec    1.00     50.1±0.04µs        ? ?/sec
convert_columns 4096 string_dictionary(100, 0)                                                                                1.00     73.6±0.68µs        ? ?/sec    1.00     73.6±0.26µs        ? ?/sec
convert_columns 4096 string_dictionary(100, 0.5)                                                                              1.00     52.2±0.19µs        ? ?/sec    1.04     54.5±0.19µs        ? ?/sec
convert_columns 4096 string_dictionary(30, 0)                                                                                 1.00     56.1±1.26µs        ? ?/sec    1.00     56.0±1.23µs        ? ?/sec
convert_columns 4096 string_dictionary_low_cardinality(10, 0)                                                                 1.02     23.7±0.18µs        ? ?/sec    1.00     23.2±0.04µs        ? ?/sec
convert_columns 4096 string_dictionary_low_cardinality(100, 0)                                                                1.01     33.6±0.05µs        ? ?/sec    1.00     33.4±0.04µs        ? ?/sec
convert_columns 4096 string_dictionary_low_cardinality(30, 0)                                                                 1.01     25.9±0.03µs        ? ?/sec    1.00     25.7±0.06µs        ? ?/sec
convert_columns 4096 u64(0)                                                                                                   1.01      4.4±0.06µs        ? ?/sec    1.00      4.4±0.12µs        ? ?/sec
convert_columns 4096 u64(0.3)                                                                                                 1.09      6.2±0.03µs        ? ?/sec    1.00      5.6±0.01µs        ? ?/sec
convert_columns 8192 53 columns                                                                                               1.00  1734.2±27.33µs        ? ?/sec    1.03  1782.7±35.84µs        ? ?/sec
convert_columns_prepared 10 large_list(0) of u64(0)                                                                           1.00    638.6±2.35ns        ? ?/sec    1.00    639.6±4.17ns        ? ?/sec
convert_columns_prepared 10 list(0) of u64(0)                                                                                 1.00    665.0±3.12ns        ? ?/sec    1.00    664.4±4.02ns        ? ?/sec
convert_columns_prepared 4096 4096 string_dictionary(20, 0.5), string_dictionary(30, 0), string_dictionary(100, 0), i64(0)    1.01    187.4±2.26µs        ? ?/sec    1.00    186.3±1.50µs        ? ?/sec
convert_columns_prepared 4096 53 columns                                                                                      1.00    824.2±2.98µs        ? ?/sec    1.00    825.8±2.18µs        ? ?/sec
convert_columns_prepared 4096 bool(0, 0.5)                                                                                    1.00      5.3±0.09µs        ? ?/sec    1.01      5.3±0.20µs        ? ?/sec
convert_columns_prepared 4096 bool(0.3, 0.5)                                                                                  1.00      5.9±0.00µs        ? ?/sec    1.00      5.9±0.02µs        ? ?/sec
convert_columns_prepared 4096 i64(0)                                                                                          1.01      4.5±0.01µs        ? ?/sec    1.00      4.5±0.00µs        ? ?/sec
convert_columns_prepared 4096 i64(0.3)                                                                                        1.02      5.6±0.00µs        ? ?/sec    1.00      5.5±0.01µs        ? ?/sec
convert_columns_prepared 4096 large_list(0) of u64(0)                                                                         1.02     91.1±0.22µs        ? ?/sec    1.00     89.0±0.21µs        ? ?/sec
convert_columns_prepared 4096 large_list(0) sliced to 10 of u64(0)                                                            1.00    842.0±2.83ns        ? ?/sec    1.01    847.5±4.82ns        ? ?/sec
convert_columns_prepared 4096 list(0) of u64(0)                                                                               1.00     91.2±0.22µs        ? ?/sec    1.00     91.3±0.16µs        ? ?/sec
convert_columns_prepared 4096 list(0) sliced to 10 of u64(0)                                                                  1.00    909.4±3.06ns        ? ?/sec    1.00    911.2±3.43ns        ? ?/sec
convert_columns_prepared 4096 run_primitive(1024 physical)                                                                    1.00     22.5±0.25µs        ? ?/sec    1.01     22.6±0.25µs        ? ?/sec
convert_columns_prepared 4096 run_primitive(256 physical)                                                                     1.00     12.5±0.05µs        ? ?/sec    1.00     12.5±0.06µs        ? ?/sec
convert_columns_prepared 4096 run_primitive(512 physical)                                                                     1.00     15.5±0.19µs        ? ?/sec    1.00     15.5±0.17µs        ? ?/sec
convert_columns_prepared 4096 string view(1..100, 0)                                                                          1.02     38.7±0.24µs        ? ?/sec    1.00     38.1±0.13µs        ? ?/sec
convert_columns_prepared 4096 string view(1..100, 0.5)                                                                        1.05     32.3±0.31µs        ? ?/sec    1.00     30.7±0.43µs        ? ?/sec
convert_columns_prepared 4096 string view(10, 0)                                                                              1.00     29.5±0.07µs        ? ?/sec    1.00     29.4±0.03µs        ? ?/sec
convert_columns_prepared 4096 string view(100, 0)                                                                             1.00     44.2±0.19µs        ? ?/sec    1.02     45.1±0.30µs        ? ?/sec
convert_columns_prepared 4096 string view(100, 0.5)                                                                           1.00     37.4±0.33µs        ? ?/sec    1.00     37.5±0.45µs        ? ?/sec
convert_columns_prepared 4096 string view(30, 0)                                                                              1.00     34.3±0.06µs        ? ?/sec    1.00     34.4±0.05µs        ? ?/sec
convert_columns_prepared 4096 string(10, 0)                                                                                   1.00     26.8±0.03µs        ? ?/sec    1.00     26.7±0.11µs        ? ?/sec
convert_columns_prepared 4096 string(100, 0)                                                                                  1.00     36.4±0.17µs        ? ?/sec    1.02     37.2±0.15µs        ? ?/sec
convert_columns_prepared 4096 string(100, 0.5)                                                                                1.00     32.4±0.54µs        ? ?/sec    1.14     36.9±0.25µs        ? ?/sec
convert_columns_prepared 4096 string(20, 0.5), string(30, 0), string(100, 0), i64(0)                                          1.00     93.4±1.81µs        ? ?/sec    1.04     96.8±1.49µs        ? ?/sec
convert_columns_prepared 4096 string(30, 0)                                                                                   1.00     29.5±1.26µs        ? ?/sec    1.00     29.5±1.26µs        ? ?/sec
convert_columns_prepared 4096 string_dictionary(10, 0)                                                                        1.00     49.2±0.06µs        ? ?/sec    1.00     49.3±0.05µs        ? ?/sec
convert_columns_prepared 4096 string_dictionary(100, 0)                                                                       1.00     72.7±0.45µs        ? ?/sec    1.00     72.7±0.82µs        ? ?/sec
convert_columns_prepared 4096 string_dictionary(100, 0.5)                                                                     1.00     51.9±1.61µs        ? ?/sec    1.04     54.2±0.24µs        ? ?/sec
convert_columns_prepared 4096 string_dictionary(30, 0)                                                                        1.02     55.9±1.36µs        ? ?/sec    1.00     54.7±1.28µs        ? ?/sec
convert_columns_prepared 4096 string_dictionary_low_cardinality(10, 0)                                                        1.01     22.5±0.04µs        ? ?/sec    1.00     22.4±0.23µs        ? ?/sec
convert_columns_prepared 4096 string_dictionary_low_cardinality(100, 0)                                                       1.01     32.6±0.06µs        ? ?/sec    1.00     32.3±0.04µs        ? ?/sec
convert_columns_prepared 4096 string_dictionary_low_cardinality(30, 0)                                                        1.01     24.9±0.03µs        ? ?/sec    1.00     24.7±0.05µs        ? ?/sec
convert_columns_prepared 4096 u64(0)                                                                                          1.00      4.2±0.01µs        ? ?/sec    1.00      4.3±0.01µs        ? ?/sec
convert_columns_prepared 4096 u64(0.3)                                                                                        1.09      6.0±0.03µs        ? ?/sec    1.00      5.5±0.01µs        ? ?/sec
convert_columns_prepared 8192 53 columns                                                                                      1.00  1722.6±15.51µs        ? ?/sec    1.01  1738.6±41.83µs        ? ?/sec
convert_rows 10 large_list(0) of u64(0)                                                                                       1.39  1313.8±15.75ns        ? ?/sec    1.00    948.6±3.21ns        ? ?/sec
convert_rows 10 list(0) of u64(0)                                                                                             1.36  1366.6±12.86ns        ? ?/sec    1.00   1003.3±4.65ns        ? ?/sec
convert_rows 4096 4096 string_dictionary(20, 0.5), string_dictionary(30, 0), string_dictionary(100, 0), i64(0)                1.05    233.4±2.11µs        ? ?/sec    1.00    223.4±0.85µs        ? ?/sec
convert_rows 4096 53 columns                                                                                                  1.14   1876.7±8.83µs        ? ?/sec    1.00   1643.0±4.29µs        ? ?/sec
convert_rows 4096 bool(0, 0.5)                                                                                                1.03     13.8±0.01µs        ? ?/sec    1.00     13.4±0.01µs        ? ?/sec
convert_rows 4096 bool(0.3, 0.5)                                                                                              1.03     13.8±0.01µs        ? ?/sec    1.00     13.5±0.03µs        ? ?/sec
convert_rows 4096 i64(0)                                                                                                      1.27     26.6±0.02µs        ? ?/sec    1.00     21.0±0.02µs        ? ?/sec
convert_rows 4096 i64(0.3)                                                                                                    1.27     26.7±0.02µs        ? ?/sec    1.00     21.0±0.12µs        ? ?/sec
convert_rows 4096 large_list(0) of u64(0)                                                                                     1.04    166.5±0.35µs        ? ?/sec    1.00    159.5±0.42µs        ? ?/sec
convert_rows 4096 large_list(0) sliced to 10 of u64(0)                                                                        1.34  1641.3±15.87ns        ? ?/sec    1.00   1226.5±7.61ns        ? ?/sec
convert_rows 4096 list(0) of u64(0)                                                                                           1.11    176.3±0.28µs        ? ?/sec    1.00    159.3±0.27µs        ? ?/sec
convert_rows 4096 list(0) sliced to 10 of u64(0)                                                                              1.31  1739.2±10.78ns        ? ?/sec    1.00   1325.0±4.81ns        ? ?/sec
convert_rows 4096 run_primitive(1024 physical)                                                                                1.03     78.4±0.38µs        ? ?/sec    1.00     75.7±0.14µs        ? ?/sec
convert_rows 4096 run_primitive(256 physical)                                                                                 1.00     54.8±0.12µs        ? ?/sec    1.00     54.8±0.07µs        ? ?/sec
convert_rows 4096 run_primitive(512 physical)                                                                                 1.01     63.0±0.20µs        ? ?/sec    1.00     62.4±0.06µs        ? ?/sec
convert_rows 4096 string view(1..100, 0)                                                                                      1.00     70.9±0.14µs        ? ?/sec    1.16     82.5±0.36µs        ? ?/sec
convert_rows 4096 string view(1..100, 0.5)                                                                                    1.00     48.4±0.08µs        ? ?/sec    1.45     70.4±0.41µs        ? ?/sec
convert_rows 4096 string view(10, 0)                                                                                          1.12     50.4±0.05µs        ? ?/sec    1.00     45.2±0.81µs        ? ?/sec
convert_rows 4096 string view(100, 0)                                                                                         1.06    102.8±0.19µs        ? ?/sec    1.00     96.9±0.18µs        ? ?/sec
convert_rows 4096 string view(100, 0.5)                                                                                       1.00     62.5±0.07µs        ? ?/sec    1.02     63.7±0.26µs        ? ?/sec
convert_rows 4096 string view(30, 0)                                                                                          1.09     63.6±0.07µs        ? ?/sec    1.00     58.1±0.03µs        ? ?/sec
convert_rows 4096 string(10, 0)                                                                                               1.09     44.2±0.06µs        ? ?/sec    1.00     40.4±0.06µs        ? ?/sec
convert_rows 4096 string(100, 0)                                                                                              1.03    102.0±0.34µs        ? ?/sec    1.00     99.0±0.09µs        ? ?/sec
convert_rows 4096 string(100, 0.5)                                                                                            1.00     61.4±0.05µs        ? ?/sec    1.01     61.8±0.19µs        ? ?/sec
convert_rows 4096 string(20, 0.5), string(30, 0), string(100, 0), i64(0)                                                      1.06    232.1±0.54µs        ? ?/sec    1.00    218.6±0.96µs        ? ?/sec
convert_rows 4096 string(30, 0)                                                                                               1.08     69.2±0.08µs        ? ?/sec    1.00     64.3±0.10µs        ? ?/sec
convert_rows 4096 string_dictionary(10, 0)                                                                                    1.09     44.4±0.04µs        ? ?/sec    1.00     40.6±0.20µs        ? ?/sec
convert_rows 4096 string_dictionary(100, 0)                                                                                   1.02    101.8±0.15µs        ? ?/sec    1.00     99.3±0.07µs        ? ?/sec
convert_rows 4096 string_dictionary(100, 0.5)                                                                                 1.00     61.4±0.14µs        ? ?/sec    1.01     62.0±0.17µs        ? ?/sec
convert_rows 4096 string_dictionary(30, 0)                                                                                    1.08     69.6±0.08µs        ? ?/sec    1.00     64.6±0.05µs        ? ?/sec
convert_rows 4096 string_dictionary_low_cardinality(10, 0)                                                                    1.10     44.5±0.05µs        ? ?/sec    1.00     40.5±0.04µs        ? ?/sec
convert_rows 4096 string_dictionary_low_cardinality(100, 0)                                                                   1.04    103.1±0.24µs        ? ?/sec    1.00     99.2±0.07µs        ? ?/sec
convert_rows 4096 string_dictionary_low_cardinality(30, 0)                                                                    1.08     69.6±0.08µs        ? ?/sec    1.00     64.6±0.06µs        ? ?/sec
convert_rows 4096 u64(0)                                                                                                      1.28     26.3±0.03µs        ? ?/sec    1.00     20.6±0.02µs        ? ?/sec
convert_rows 4096 u64(0.3)                                                                                                    1.28     26.3±0.02µs        ? ?/sec    1.00     20.6±0.02µs        ? ?/sec
convert_rows 8192 53 columns                                                                                                  1.02      4.4±0.01ms        ? ?/sec    1.00      4.3±0.51ms        ? ?/sec
iterate rows                                                                                                                  1.00      2.0±0.00µs        ? ?/sec    1.00      2.0±0.00µs        ? ?/sec

Resource Usage

base (merge-base)

Metric Value
Wall time 1405.3s
Peak memory 27.4 MiB
Avg memory 8.5 MiB
CPU user 1399.1s
CPU sys 0.3s
Peak spill 0 B

branch

Metric Value
Wall time 1425.3s
Peak memory 22.0 MiB
Avg memory 8.5 MiB
CPU user 1423.5s
CPU sys 0.3s
Peak spill 0 B

File an issue against this benchmark runner

@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.

This is a really nice cleanup @Jefffrey 👏
Thank you

Comment thread arrow-row/src/fixed.rs
.null_count(null_count)
.add_buffer(values.into())
.null_bit_buffer(Some(nulls.into()));
let nulls = NullBuffer::new(BooleanBuffer::new(nulls.into(), 0, len));

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 think new recomputes the null cound

We could use new_unchecked here to keep the exact same behavior

https://docs.rs/arrow/latest/arrow/buffer/struct.NullBuffer.html#method.new_unchecked

However it seems from the bencmarks it doesn't really matter (this formulation is as fast or faster as main)

ppend_rows 4096 bool(0, 0.5)                                                                                                 1.05      5.1±0.02µs        ? ?/sec    1.00      4.9±0.00µs        ? ?/sec
append_rows 4096 bool(0.3, 0.5)                                                                                               1.00      5.8±0.00µs        ? ?/sec    1.00      5.8±0.00µs        ? ?/se

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.

yeah i wasnt sure if keeping the existing manual count was faster than however nullbuffer calculates its count; decided to keep it simpler with less unsafe blocks (and follow other changes i made in this PR to remove the manual count)

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 agree -- sounds like a good call and it is reflected in the benchmarks as well

Comment thread arrow-row/src/fixed.rs
/// and all other values as a null
///
/// Returns the null count and null buffer
pub fn decode_nulls(rows: &[&[u8]]) -> (usize, Buffer) {

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 think NullBuffers also contain a null count, however, they compute the null count with quite optimized code, so I think recomputing it in many cases is fine

Comment thread arrow-row/src/fixed.rs Outdated

let len = rows.len();

let mut values = BufferBuilder::<T::Native>::new(len);

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.

We could potentially use Vec<T::Native> here which may be faster

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.

refactored to use vec; i wonder if we should also look for usages of [offset]bufferbuilder and replace them, like we're doing for arraydata 🤔

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.

locally i seem to get some nice speedups from switching to vec:

convert_rows 4096 u64(0)
                        time:   [13.356 µs 13.413 µs 13.463 µs]
                        change: [−12.772% −12.336% −11.901%] (p = 0.00 < 0.05)
                        Performance has improved.

convert_rows 4096 u64(0.3)
                        time:   [13.653 µs 13.692 µs 13.730 µs]
                        change: [−11.773% −11.227% −10.677%] (p = 0.00 < 0.05)
                        Performance has improved.
Found 5 outliers among 100 measurements (5.00%)
  1 (1.00%) low mild
  4 (4.00%) high mild

convert_rows 4096 i64(0)
                        time:   [13.174 µs 13.209 µs 13.241 µs]
                        change: [−11.255% −10.789% −10.340%] (p = 0.00 < 0.05)
                        Performance has improved.

convert_rows 4096 i64(0.3)
                        time:   [13.996 µs 14.038 µs 14.079 µs]
                        change: [−8.9987% −8.5290% −8.0439%] (p = 0.00 < 0.05)
                        Performance has improved.
Found 4 outliers among 100 measurements (4.00%)
  2 (2.00%) low mild
  2 (2.00%) high mild

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.

locally i seem to get some nice speedups from switching to vec:

Yeah, the Rust team has optimized Vec a lot

i wonder if we should also look for usages of [offset]bufferbuilder and replace them, like we're doing for arraydata 🤔

Yes, I think that would be a nice idea. I filed a ticket

Comment thread arrow-row/src/lib.rs
}
Codec::Struct(converter, _) => {
let (null_count, nulls) = fixed::decode_nulls(rows);
let nulls = fixed::decode_nulls(rows);

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.

this is really nice

Comment thread arrow-row/src/lib.rs

Arc::new(StructArray::from(unsafe { builder.build_unchecked() }))

Arc::new(unsafe {

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 think it would be nice to add a small safety justification here, though I see the previous code didn't have one either

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 guess something like

/// SAFETY: valid by construction

which does feel a little weak 😅

i was looking at the invariants and i find it difficult to justify all the invariants were upheld (from looking at this code alone) 🤔

Comment thread arrow-row/src/variable.rs
}
}

pub(crate) fn decode_nulls_sentinel(rows: &[&[u8]], options: SortOptions) -> Option<NullBuffer> {

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.

perhaps some small comments explaining what it does would help future readers

Comment thread arrow-row/src/variable.rs Outdated
}

pub(crate) fn decode_nulls_sentinel(rows: &[&[u8]], options: SortOptions) -> Option<NullBuffer> {
let nulls = BooleanBuffer::collect_bool(rows.len(), |x| rows[x][0] != null_sentinel(options));

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.

Given there are only two null values for null sentinel, I wonder if we could make two separate loops here for the two values and generate even more efficient code

As a follow PR

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.

could be a wider refactor too, since null_sentinel() is used in other loops too. for now ive hoisted the function outside the loop (though maybe LLVM already would have optimized it like this)

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.

Another thought is we could potentially make a null sentinel type and then template the relevant functions (to have rust do the code copy for us)

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.

@Jefffrey

Copy link
Copy Markdown
Contributor Author

run benchmark row_format
baseline:
ref: 033eb20
env:
BENCH_FILTER: convert_rows

@adriangbot

This comment was marked as outdated.

@adriangbot

Copy link
Copy Markdown

🤖 Arrow criterion benchmark completed (GKE) | trigger

Instance: c4a-highmem-16 (12 vCPU / 65 GiB)

CPU Details (lscpu)
Architecture:                            aarch64
CPU op-mode(s):                          64-bit
Byte Order:                              Little Endian
CPU(s):                                  16
On-line CPU(s) list:                     0-15
Vendor ID:                               ARM
Model name:                              Neoverse-V2
Model:                                   1
Thread(s) per core:                      1
Core(s) per cluster:                     16
Socket(s):                               -
Cluster(s):                              1
Stepping:                                r0p1
BogoMIPS:                                2000.00
Flags:                                   fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng bti
L1d cache:                               1 MiB (16 instances)
L1i cache:                               1 MiB (16 instances)
L2 cache:                                32 MiB (16 instances)
L3 cache:                                80 MiB (1 instance)
NUMA node(s):                            1
NUMA node0 CPU(s):                       0-15
Vulnerability Gather data sampling:      Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit:             Not affected
Vulnerability L1tf:                      Not affected
Vulnerability Mds:                       Not affected
Vulnerability Meltdown:                  Not affected
Vulnerability Mmio stale data:           Not affected
Vulnerability Reg file data sampling:    Not affected
Vulnerability Retbleed:                  Not affected
Vulnerability Spec rstack overflow:      Not affected
Vulnerability Spec store bypass:         Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1:                Mitigation; __user pointer sanitization
Vulnerability Spectre v2:                Mitigation; CSV2, BHB
Vulnerability Srbds:                     Not affected
Vulnerability Tsa:                       Not affected
Vulnerability Tsx async abort:           Not affected
Vulnerability Vmscape:                   Not affected
Details

group                                                                                                             main                                   row-refactor-out-arraydata
-----                                                                                                             ----                                   --------------------------
convert_rows 10 large_list(0) of u64(0)                                                                           1.05    932.4±6.80ns        ? ?/sec    1.00    884.0±4.91ns        ? ?/sec
convert_rows 10 list(0) of u64(0)                                                                                 1.05    985.9±8.58ns        ? ?/sec    1.00    938.8±8.16ns        ? ?/sec
convert_rows 4096 4096 string_dictionary(20, 0.5), string_dictionary(30, 0), string_dictionary(100, 0), i64(0)    1.00    220.2±0.44µs        ? ?/sec    1.04    228.0±0.34µs        ? ?/sec
convert_rows 4096 53 columns                                                                                      1.00   1704.4±3.51µs        ? ?/sec    1.05   1788.0±5.34µs        ? ?/sec
convert_rows 4096 bool(0, 0.5)                                                                                    1.01     13.4±0.01µs        ? ?/sec    1.00     13.3±0.01µs        ? ?/sec
convert_rows 4096 bool(0.3, 0.5)                                                                                  1.00     13.4±0.01µs        ? ?/sec    1.00     13.4±0.01µs        ? ?/sec
convert_rows 4096 i64(0)                                                                                          1.00     21.0±0.02µs        ? ?/sec    1.23     25.8±0.02µs        ? ?/sec
convert_rows 4096 i64(0.3)                                                                                        1.00     21.0±0.08µs        ? ?/sec    1.22     25.7±0.02µs        ? ?/sec
convert_rows 4096 large_list(0) of u64(0)                                                                         1.00    159.9±0.40µs        ? ?/sec    1.06    170.0±0.47µs        ? ?/sec
convert_rows 4096 large_list(0) sliced to 10 of u64(0)                                                            1.03  1206.4±21.42ns        ? ?/sec    1.00   1172.3±5.84ns        ? ?/sec
convert_rows 4096 list(0) of u64(0)                                                                               1.00    159.6±0.52µs        ? ?/sec    1.06    169.8±0.37µs        ? ?/sec
convert_rows 4096 list(0) sliced to 10 of u64(0)                                                                  1.02   1313.4±8.99ns        ? ?/sec    1.00   1288.5±5.64ns        ? ?/sec
convert_rows 4096 run_primitive(1024 physical)                                                                    1.00     76.6±0.27µs        ? ?/sec    1.00     76.9±0.15µs        ? ?/sec
convert_rows 4096 run_primitive(256 physical)                                                                     1.00     54.6±0.06µs        ? ?/sec    1.00     54.7±0.15µs        ? ?/sec
convert_rows 4096 run_primitive(512 physical)                                                                     1.00     62.4±0.12µs        ? ?/sec    1.00     62.4±0.10µs        ? ?/sec
convert_rows 4096 string view(1..100, 0)                                                                          1.01     82.1±0.33µs        ? ?/sec    1.00     80.9±0.24µs        ? ?/sec
convert_rows 4096 string view(1..100, 0.5)                                                                        1.00     69.5±0.34µs        ? ?/sec    1.00     69.8±0.32µs        ? ?/sec
convert_rows 4096 string view(10, 0)                                                                              1.01     44.2±0.06µs        ? ?/sec    1.00     43.8±0.10µs        ? ?/sec
convert_rows 4096 string view(100, 0)                                                                             1.00     97.3±0.07µs        ? ?/sec    1.00     97.4±0.06µs        ? ?/sec
convert_rows 4096 string view(100, 0.5)                                                                           1.03     63.3±0.13µs        ? ?/sec    1.00     61.3±0.13µs        ? ?/sec
convert_rows 4096 string view(30, 0)                                                                              1.00     58.2±0.03µs        ? ?/sec    1.00     58.1±0.03µs        ? ?/sec
convert_rows 4096 string(10, 0)                                                                                   1.00     40.4±0.04µs        ? ?/sec    1.00     40.4±0.04µs        ? ?/sec
convert_rows 4096 string(100, 0)                                                                                  1.02    100.9±1.41µs        ? ?/sec    1.00     98.8±0.11µs        ? ?/sec
convert_rows 4096 string(100, 0.5)                                                                                1.00     62.1±0.27µs        ? ?/sec    1.01     62.6±0.14µs        ? ?/sec
convert_rows 4096 string(20, 0.5), string(30, 0), string(100, 0), i64(0)                                          1.00    220.0±0.45µs        ? ?/sec    1.03    225.6±0.27µs        ? ?/sec
convert_rows 4096 string(30, 0)                                                                                   1.01     64.2±0.05µs        ? ?/sec    1.00     63.9±0.06µs        ? ?/sec
convert_rows 4096 string_dictionary(10, 0)                                                                        1.00     40.5±0.06µs        ? ?/sec    1.00     40.5±0.04µs        ? ?/sec
convert_rows 4096 string_dictionary(100, 0)                                                                       1.01     99.8±0.09µs        ? ?/sec    1.00     99.2±0.58µs        ? ?/sec
convert_rows 4096 string_dictionary(100, 0.5)                                                                     1.00     62.1±0.17µs        ? ?/sec    1.01     62.8±0.19µs        ? ?/sec
convert_rows 4096 string_dictionary(30, 0)                                                                        1.00     64.6±0.49µs        ? ?/sec    1.00     64.4±0.46µs        ? ?/sec
convert_rows 4096 string_dictionary_low_cardinality(10, 0)                                                        1.00     40.5±0.07µs        ? ?/sec    1.00     40.6±0.04µs        ? ?/sec
convert_rows 4096 string_dictionary_low_cardinality(100, 0)                                                       1.01     99.8±0.57µs        ? ?/sec    1.00     99.2±0.18µs        ? ?/sec
convert_rows 4096 string_dictionary_low_cardinality(30, 0)                                                        1.00     64.3±0.08µs        ? ?/sec    1.00     64.3±0.04µs        ? ?/sec
convert_rows 4096 u64(0)                                                                                          1.00     20.6±0.01µs        ? ?/sec    1.24     25.6±0.02µs        ? ?/sec
convert_rows 4096 u64(0.3)                                                                                        1.00     20.6±0.07µs        ? ?/sec    1.24     25.5±0.02µs        ? ?/sec
convert_rows 8192 53 columns                                                                                      1.00      4.1±0.01ms        ? ?/sec    1.05      4.4±0.05ms        ? ?/sec

Resource Usage

base (merge-base)

Metric Value
Wall time 360.1s
Peak memory 21.1 MiB
Avg memory 10.5 MiB
CPU user 355.9s
CPU sys 0.1s
Peak spill 0 B

branch

Metric Value
Wall time 350.1s
Peak memory 21.0 MiB
Avg memory 9.3 MiB
CPU user 348.4s
CPU sys 0.1s
Peak spill 0 B

File an issue against this benchmark runner

@Jefffrey

Copy link
Copy Markdown
Contributor Author

run benchmark row_format
baseline:
ref: 033eb20
env:
BENCH_FILTER: convert_rows

@adriangbot

Copy link
Copy Markdown

🤖 Arrow criterion benchmark running (GKE) | trigger
Instance: c4a-highmem-16 (12 vCPU / 65 GiB) | Linux bench-c4839923058-747-497n7 6.12.85+ #1 SMP Mon May 11 08:17:35 UTC 2026 aarch64 GNU/Linux

CPU Details (lscpu)
Architecture:                            aarch64
CPU op-mode(s):                          64-bit
Byte Order:                              Little Endian
CPU(s):                                  16
On-line CPU(s) list:                     0-15
Vendor ID:                               ARM
Model name:                              Neoverse-V2
Model:                                   1
Thread(s) per core:                      1
Core(s) per cluster:                     16
Socket(s):                               -
Cluster(s):                              1
Stepping:                                r0p1
BogoMIPS:                                2000.00
Flags:                                   fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng bti
L1d cache:                               1 MiB (16 instances)
L1i cache:                               1 MiB (16 instances)
L2 cache:                                32 MiB (16 instances)
L3 cache:                                80 MiB (1 instance)
NUMA node(s):                            1
NUMA node0 CPU(s):                       0-15
Vulnerability Gather data sampling:      Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit:             Not affected
Vulnerability L1tf:                      Not affected
Vulnerability Mds:                       Not affected
Vulnerability Meltdown:                  Not affected
Vulnerability Mmio stale data:           Not affected
Vulnerability Reg file data sampling:    Not affected
Vulnerability Retbleed:                  Not affected
Vulnerability Spec rstack overflow:      Not affected
Vulnerability Spec store bypass:         Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1:                Mitigation; __user pointer sanitization
Vulnerability Spectre v2:                Mitigation; CSV2, BHB
Vulnerability Srbds:                     Not affected
Vulnerability Tsa:                       Not affected
Vulnerability Tsx async abort:           Not affected
Vulnerability Vmscape:                   Not affected

Comparing row-refactor-out-arraydata (d5d0b99) to 033eb20 diff
BENCH_NAME=row_format
BENCH_COMMAND=cargo bench --features=arrow,async,test_common,experimental,object_store --bench row_format
BENCH_FILTER=convert_rows
Results will be posted here when complete


File an issue against this benchmark runner

@adriangbot

Copy link
Copy Markdown

🤖 Arrow criterion benchmark completed (GKE) | trigger

Instance: c4a-highmem-16 (12 vCPU / 65 GiB)

CPU Details (lscpu)
Architecture:                            aarch64
CPU op-mode(s):                          64-bit
Byte Order:                              Little Endian
CPU(s):                                  16
On-line CPU(s) list:                     0-15
Vendor ID:                               ARM
Model name:                              Neoverse-V2
Model:                                   1
Thread(s) per core:                      1
Core(s) per cluster:                     16
Socket(s):                               -
Cluster(s):                              1
Stepping:                                r0p1
BogoMIPS:                                2000.00
Flags:                                   fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng bti
L1d cache:                               1 MiB (16 instances)
L1i cache:                               1 MiB (16 instances)
L2 cache:                                32 MiB (16 instances)
L3 cache:                                80 MiB (1 instance)
NUMA node(s):                            1
NUMA node0 CPU(s):                       0-15
Vulnerability Gather data sampling:      Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit:             Not affected
Vulnerability L1tf:                      Not affected
Vulnerability Mds:                       Not affected
Vulnerability Meltdown:                  Not affected
Vulnerability Mmio stale data:           Not affected
Vulnerability Reg file data sampling:    Not affected
Vulnerability Retbleed:                  Not affected
Vulnerability Spec rstack overflow:      Not affected
Vulnerability Spec store bypass:         Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1:                Mitigation; __user pointer sanitization
Vulnerability Spectre v2:                Mitigation; CSV2, BHB
Vulnerability Srbds:                     Not affected
Vulnerability Tsa:                       Not affected
Vulnerability Tsx async abort:           Not affected
Vulnerability Vmscape:                   Not affected
Details

group                                                                                                             main                                   row-refactor-out-arraydata
-----                                                                                                             ----                                   --------------------------
convert_rows 10 large_list(0) of u64(0)                                                                           1.06    944.6±8.13ns        ? ?/sec    1.00    895.1±7.64ns        ? ?/sec
convert_rows 10 list(0) of u64(0)                                                                                 1.04    995.3±9.82ns        ? ?/sec    1.00    953.4±8.18ns        ? ?/sec
convert_rows 4096 4096 string_dictionary(20, 0.5), string_dictionary(30, 0), string_dictionary(100, 0), i64(0)    1.00    221.8±0.45µs        ? ?/sec    1.02    226.2±0.57µs        ? ?/sec
convert_rows 4096 53 columns                                                                                      1.00   1679.1±3.20µs        ? ?/sec    1.07   1801.0±7.26µs        ? ?/sec
convert_rows 4096 bool(0, 0.5)                                                                                    1.01     13.4±0.02µs        ? ?/sec    1.00     13.3±0.01µs        ? ?/sec
convert_rows 4096 bool(0.3, 0.5)                                                                                  1.00     13.4±0.01µs        ? ?/sec    1.00     13.4±0.01µs        ? ?/sec
convert_rows 4096 i64(0)                                                                                          1.00     21.1±0.03µs        ? ?/sec    1.22     25.8±0.03µs        ? ?/sec
convert_rows 4096 i64(0.3)                                                                                        1.00     21.1±0.02µs        ? ?/sec    1.22     25.8±0.02µs        ? ?/sec
convert_rows 4096 large_list(0) of u64(0)                                                                         1.00    159.7±0.36µs        ? ?/sec    1.06    170.0±0.53µs        ? ?/sec
convert_rows 4096 large_list(0) sliced to 10 of u64(0)                                                            1.04   1238.6±7.03ns        ? ?/sec    1.00   1185.9±9.69ns        ? ?/sec
convert_rows 4096 list(0) of u64(0)                                                                               1.00    159.2±0.31µs        ? ?/sec    1.07    170.7±0.71µs        ? ?/sec
convert_rows 4096 list(0) sliced to 10 of u64(0)                                                                  1.04   1350.0±9.84ns        ? ?/sec    1.00   1300.1±7.39ns        ? ?/sec
convert_rows 4096 run_primitive(1024 physical)                                                                    1.00     76.7±0.13µs        ? ?/sec    1.00     76.9±0.17µs        ? ?/sec
convert_rows 4096 run_primitive(256 physical)                                                                     1.00     54.6±0.09µs        ? ?/sec    1.00     54.8±0.17µs        ? ?/sec
convert_rows 4096 run_primitive(512 physical)                                                                     1.00     62.1±0.07µs        ? ?/sec    1.00     62.4±0.11µs        ? ?/sec
convert_rows 4096 string view(1..100, 0)                                                                          1.01     82.3±0.30µs        ? ?/sec    1.00     81.1±0.46µs        ? ?/sec
convert_rows 4096 string view(1..100, 0.5)                                                                        1.00     69.7±0.41µs        ? ?/sec    1.00     70.0±0.39µs        ? ?/sec
convert_rows 4096 string view(10, 0)                                                                              1.02     44.2±0.04µs        ? ?/sec    1.00     43.5±0.06µs        ? ?/sec
convert_rows 4096 string view(100, 0)                                                                             1.00     96.5±0.07µs        ? ?/sec    1.00     96.6±0.06µs        ? ?/sec
convert_rows 4096 string view(100, 0.5)                                                                           1.04     63.7±0.14µs        ? ?/sec    1.00     61.4±0.12µs        ? ?/sec
convert_rows 4096 string view(30, 0)                                                                              1.00     58.3±0.04µs        ? ?/sec    1.00     58.2±0.06µs        ? ?/sec
convert_rows 4096 string(10, 0)                                                                                   1.01     40.7±0.48µs        ? ?/sec    1.00     40.4±0.04µs        ? ?/sec
convert_rows 4096 string(100, 0)                                                                                  1.01     99.6±1.35µs        ? ?/sec    1.00     98.9±0.13µs        ? ?/sec
convert_rows 4096 string(100, 0.5)                                                                                1.00     61.9±0.17µs        ? ?/sec    1.00     61.9±0.19µs        ? ?/sec
convert_rows 4096 string(20, 0.5), string(30, 0), string(100, 0), i64(0)                                          1.00    219.4±1.16µs        ? ?/sec    1.03    226.1±0.39µs        ? ?/sec
convert_rows 4096 string(30, 0)                                                                                   1.01     64.3±0.05µs        ? ?/sec    1.00     63.9±0.06µs        ? ?/sec
convert_rows 4096 string_dictionary(10, 0)                                                                        1.00     40.7±0.09µs        ? ?/sec    1.03     41.9±0.43µs        ? ?/sec
convert_rows 4096 string_dictionary(100, 0)                                                                       1.00     99.3±0.11µs        ? ?/sec    1.00     99.1±0.18µs        ? ?/sec
convert_rows 4096 string_dictionary(100, 0.5)                                                                     1.00     62.1±0.16µs        ? ?/sec    1.00     62.0±0.20µs        ? ?/sec
convert_rows 4096 string_dictionary(30, 0)                                                                        1.00     64.4±0.06µs        ? ?/sec    1.01     65.3±0.13µs        ? ?/sec
convert_rows 4096 string_dictionary_low_cardinality(10, 0)                                                        1.00     40.6±0.12µs        ? ?/sec    1.03     41.7±0.38µs        ? ?/sec
convert_rows 4096 string_dictionary_low_cardinality(100, 0)                                                       1.00     99.3±0.11µs        ? ?/sec    1.00     99.0±0.09µs        ? ?/sec
convert_rows 4096 string_dictionary_low_cardinality(30, 0)                                                        1.01     64.6±0.35µs        ? ?/sec    1.00     64.0±0.09µs        ? ?/sec
convert_rows 4096 u64(0)                                                                                          1.00     20.6±0.02µs        ? ?/sec    1.24     25.6±0.03µs        ? ?/sec
convert_rows 4096 u64(0.3)                                                                                        1.00     20.6±0.02µs        ? ?/sec    1.24     25.5±0.02µs        ? ?/sec
convert_rows 8192 53 columns                                                                                      1.01      4.4±0.23ms        ? ?/sec    1.00      4.4±0.09ms        ? ?/sec

Resource Usage

base (merge-base)

Metric Value
Wall time 360.1s
Peak memory 21.1 MiB
Avg memory 10.3 MiB
CPU user 356.3s
CPU sys 0.7s
Peak spill 0 B

branch

Metric Value
Wall time 350.1s
Peak memory 21.0 MiB
Avg memory 9.3 MiB
CPU user 348.3s
CPU sys 0.1s
Peak spill 0 B

File an issue against this benchmark runner

@Jefffrey

Copy link
Copy Markdown
Contributor Author

run benchmark row_format
env:
BENCH_FILTER: convert_rows

@adriangbot

Copy link
Copy Markdown

🤖 Arrow criterion benchmark running (GKE) | trigger
Instance: c4a-highmem-16 (12 vCPU / 65 GiB) | Linux bench-c4840243097-748-fh62w 6.12.85+ #1 SMP Mon May 11 08:17:35 UTC 2026 aarch64 GNU/Linux

CPU Details (lscpu)
Architecture:                            aarch64
CPU op-mode(s):                          64-bit
Byte Order:                              Little Endian
CPU(s):                                  16
On-line CPU(s) list:                     0-15
Vendor ID:                               ARM
Model name:                              Neoverse-V2
Model:                                   1
Thread(s) per core:                      1
Core(s) per cluster:                     16
Socket(s):                               -
Cluster(s):                              1
Stepping:                                r0p1
BogoMIPS:                                2000.00
Flags:                                   fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng bti
L1d cache:                               1 MiB (16 instances)
L1i cache:                               1 MiB (16 instances)
L2 cache:                                32 MiB (16 instances)
L3 cache:                                80 MiB (1 instance)
NUMA node(s):                            1
NUMA node0 CPU(s):                       0-15
Vulnerability Gather data sampling:      Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit:             Not affected
Vulnerability L1tf:                      Not affected
Vulnerability Mds:                       Not affected
Vulnerability Meltdown:                  Not affected
Vulnerability Mmio stale data:           Not affected
Vulnerability Reg file data sampling:    Not affected
Vulnerability Retbleed:                  Not affected
Vulnerability Spec rstack overflow:      Not affected
Vulnerability Spec store bypass:         Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1:                Mitigation; __user pointer sanitization
Vulnerability Spectre v2:                Mitigation; CSV2, BHB
Vulnerability Srbds:                     Not affected
Vulnerability Tsa:                       Not affected
Vulnerability Tsx async abort:           Not affected
Vulnerability Vmscape:                   Not affected

Comparing row-refactor-out-arraydata (d5d0b99) to da07bce (merge-base) diff
BENCH_NAME=row_format
BENCH_COMMAND=cargo bench --features=arrow,async,test_common,experimental,object_store --bench row_format
BENCH_FILTER=convert_rows
Results will be posted here when complete


File an issue against this benchmark runner

@adriangbot

Copy link
Copy Markdown

🤖 Arrow criterion benchmark completed (GKE) | trigger

Instance: c4a-highmem-16 (12 vCPU / 65 GiB)

CPU Details (lscpu)
Architecture:                            aarch64
CPU op-mode(s):                          64-bit
Byte Order:                              Little Endian
CPU(s):                                  16
On-line CPU(s) list:                     0-15
Vendor ID:                               ARM
Model name:                              Neoverse-V2
Model:                                   1
Thread(s) per core:                      1
Core(s) per cluster:                     16
Socket(s):                               -
Cluster(s):                              1
Stepping:                                r0p1
BogoMIPS:                                2000.00
Flags:                                   fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp cpuid asimdrdm jscvt fcma lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sve asimdfhm dit uscat ilrcpc flagm sb paca pacg dcpodp sve2 sveaes svepmull svebitperm svesha3 svesm4 flagm2 frint svei8mm svebf16 i8mm bf16 dgh rng bti
L1d cache:                               1 MiB (16 instances)
L1i cache:                               1 MiB (16 instances)
L2 cache:                                32 MiB (16 instances)
L3 cache:                                80 MiB (1 instance)
NUMA node(s):                            1
NUMA node0 CPU(s):                       0-15
Vulnerability Gather data sampling:      Not affected
Vulnerability Indirect target selection: Not affected
Vulnerability Itlb multihit:             Not affected
Vulnerability L1tf:                      Not affected
Vulnerability Mds:                       Not affected
Vulnerability Meltdown:                  Not affected
Vulnerability Mmio stale data:           Not affected
Vulnerability Reg file data sampling:    Not affected
Vulnerability Retbleed:                  Not affected
Vulnerability Spec rstack overflow:      Not affected
Vulnerability Spec store bypass:         Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1:                Mitigation; __user pointer sanitization
Vulnerability Spectre v2:                Mitigation; CSV2, BHB
Vulnerability Srbds:                     Not affected
Vulnerability Tsa:                       Not affected
Vulnerability Tsx async abort:           Not affected
Vulnerability Vmscape:                   Not affected
Details

group                                                                                                             main                                   row-refactor-out-arraydata
-----                                                                                                             ----                                   --------------------------
convert_rows 10 large_list(0) of u64(0)                                                                           1.47   1300.5±8.18ns        ? ?/sec    1.00    887.5±5.68ns        ? ?/sec
convert_rows 10 list(0) of u64(0)                                                                                 1.44   1358.0±9.21ns        ? ?/sec    1.00    943.6±7.51ns        ? ?/sec
convert_rows 4096 4096 string_dictionary(20, 0.5), string_dictionary(30, 0), string_dictionary(100, 0), i64(0)    1.02    232.5±0.33µs        ? ?/sec    1.00    227.7±0.28µs        ? ?/sec
convert_rows 4096 53 columns                                                                                      1.04   1877.5±4.41µs        ? ?/sec    1.00   1807.7±2.35µs        ? ?/sec
convert_rows 4096 bool(0, 0.5)                                                                                    1.02     13.7±0.02µs        ? ?/sec    1.00     13.4±0.06µs        ? ?/sec
convert_rows 4096 bool(0.3, 0.5)                                                                                  1.03     13.8±0.01µs        ? ?/sec    1.00     13.4±0.01µs        ? ?/sec
convert_rows 4096 i64(0)                                                                                          1.03     26.6±0.02µs        ? ?/sec    1.00     25.8±0.02µs        ? ?/sec
convert_rows 4096 i64(0.3)                                                                                        1.03     26.6±0.05µs        ? ?/sec    1.00     25.8±0.02µs        ? ?/sec
convert_rows 4096 large_list(0) of u64(0)                                                                         1.00    165.8±0.30µs        ? ?/sec    1.02    169.9±0.43µs        ? ?/sec
convert_rows 4096 large_list(0) sliced to 10 of u64(0)                                                            1.37   1616.4±5.85ns        ? ?/sec    1.00   1175.6±5.70ns        ? ?/sec
convert_rows 4096 list(0) of u64(0)                                                                               1.04    176.6±0.15µs        ? ?/sec    1.00    169.8±0.40µs        ? ?/sec
convert_rows 4096 list(0) sliced to 10 of u64(0)                                                                  1.33   1725.9±9.25ns        ? ?/sec    1.00   1298.5±6.50ns        ? ?/sec
convert_rows 4096 run_primitive(1024 physical)                                                                    1.00     77.5±0.15µs        ? ?/sec    1.00     77.4±1.11µs        ? ?/sec
convert_rows 4096 run_primitive(256 physical)                                                                     1.00     54.8±0.10µs        ? ?/sec    1.00     54.8±0.33µs        ? ?/sec
convert_rows 4096 run_primitive(512 physical)                                                                     1.00     62.5±0.13µs        ? ?/sec    1.00     62.6±0.56µs        ? ?/sec
convert_rows 4096 string view(1..100, 0)                                                                          1.00     70.7±0.05µs        ? ?/sec    1.14     80.6±0.31µs        ? ?/sec
convert_rows 4096 string view(1..100, 0.5)                                                                        1.00     48.4±0.05µs        ? ?/sec    1.43     69.3±0.35µs        ? ?/sec
convert_rows 4096 string view(10, 0)                                                                              1.15     50.3±0.04µs        ? ?/sec    1.00     43.6±0.07µs        ? ?/sec
convert_rows 4096 string view(100, 0)                                                                             1.06    102.4±0.05µs        ? ?/sec    1.00     96.4±0.08µs        ? ?/sec
convert_rows 4096 string view(100, 0.5)                                                                           1.01     62.6±0.06µs        ? ?/sec    1.00     62.1±0.18µs        ? ?/sec
convert_rows 4096 string view(30, 0)                                                                              1.09     63.5±0.03µs        ? ?/sec    1.00     58.4±0.12µs        ? ?/sec
convert_rows 4096 string(10, 0)                                                                                   1.10     44.2±0.04µs        ? ?/sec    1.00     40.3±0.04µs        ? ?/sec
convert_rows 4096 string(100, 0)                                                                                  1.03    101.4±0.09µs        ? ?/sec    1.00     98.7±0.11µs        ? ?/sec
convert_rows 4096 string(100, 0.5)                                                                                1.00     60.8±0.04µs        ? ?/sec    1.03     62.6±0.18µs        ? ?/sec
convert_rows 4096 string(20, 0.5), string(30, 0), string(100, 0), i64(0)                                          1.01    230.8±0.20µs        ? ?/sec    1.00    227.8±0.27µs        ? ?/sec
convert_rows 4096 string(30, 0)                                                                                   1.09     69.3±0.05µs        ? ?/sec    1.00     63.9±0.05µs        ? ?/sec
convert_rows 4096 string_dictionary(10, 0)                                                                        1.09     44.3±0.04µs        ? ?/sec    1.00     40.5±0.05µs        ? ?/sec
convert_rows 4096 string_dictionary(100, 0)                                                                       1.03    102.1±0.09µs        ? ?/sec    1.00     99.1±0.42µs        ? ?/sec
convert_rows 4096 string_dictionary(100, 0.5)                                                                     1.00     60.9±0.03µs        ? ?/sec    1.03     62.6±0.15µs        ? ?/sec
convert_rows 4096 string_dictionary(30, 0)                                                                        1.09     69.6±0.05µs        ? ?/sec    1.00     64.0±0.05µs        ? ?/sec
convert_rows 4096 string_dictionary_low_cardinality(10, 0)                                                        1.10     44.3±0.06µs        ? ?/sec    1.00     40.5±0.04µs        ? ?/sec
convert_rows 4096 string_dictionary_low_cardinality(100, 0)                                                       1.02    101.6±0.07µs        ? ?/sec    1.00     99.2±0.11µs        ? ?/sec
convert_rows 4096 string_dictionary_low_cardinality(30, 0)                                                        1.09     69.4±0.07µs        ? ?/sec    1.00     64.0±0.05µs        ? ?/sec
convert_rows 4096 u64(0)                                                                                          1.02     26.2±0.03µs        ? ?/sec    1.00     25.6±0.02µs        ? ?/sec
convert_rows 4096 u64(0.3)                                                                                        1.03     26.2±0.02µs        ? ?/sec    1.00     25.5±0.02µs        ? ?/sec
convert_rows 8192 53 columns                                                                                      1.00      4.4±0.02ms        ? ?/sec    1.01      4.4±0.02ms        ? ?/sec

Resource Usage

base (merge-base)

Metric Value
Wall time 355.1s
Peak memory 21.6 MiB
Avg memory 9.6 MiB
CPU user 349.0s
CPU sys 0.1s
Peak spill 0 B

branch

Metric Value
Wall time 350.1s
Peak memory 21.0 MiB
Avg memory 9.4 MiB
CPU user 348.3s
CPU sys 0.1s
Peak spill 0 B

File an issue against this benchmark runner

@alamb
alamb merged commit ae21c89 into apache:main Jun 30, 2026
14 checks passed
@alamb

alamb commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

Thank you @Jefffrey

@Jefffrey
Jefffrey deleted the row-refactor-out-arraydata branch June 30, 2026 12:35
alamb pushed a commit that referenced this pull request Jul 2, 2026
…irect construction (#10261)

# 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.
-->

- Part of #9298

# Rationale for this change

<!--
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.
-->

Missed by #10229 as it used the
`into_data()` API (I was grepping just for `ArrayData`). Instead of
roundtripping through arraydata to convert from a binary to string, just
directly use `into_parts()` and `new_unchecked()` for optimization.

# What changes are included in this PR?

<!--
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.
-->

Remove arraydata roundtrip in favour of deconstructing with
`into_parts()` and constructing with `new_unchecked()`

# Are these changes tested?

<!--
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.
-->

Existing tests

# 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
@rluvaton

rluvaton commented Jul 2, 2026

Copy link
Copy Markdown
Member

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants