Skip to content

perf: Add a dictionary cache for parquet dict types - #11982

Merged
Rich-T-kid merged 5 commits into
apache:mainfrom
EmilyMatt:parquet-dictionary-cache
Nov 7, 2026
Merged

Rich-T-kid merged 5 commits into
apache:mainfrom
EmilyMatt:parquet-dictionary-cache

Conversation

@EmilyMatt

@EmilyMatt EmilyMatt commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Rationale for this change

Since we already get a dictionary type, we can just calculate hash once per entry, until the dictionary provider changes.

What changes are included in this PR?

Use a Weak ref (so we don't hold the dict alive), and encode each entry only once, the moment the dict changes, clear the current hashes, should be a huge improvement to perf.
Made some private functions use slices directly.

Are these changes tested?

Yes.
Local benchmark results:

Benchmark main (ms) branch (ms) Change
string/default 87.09 86.32 -0.9%
string/parquet_2 106.94 103.09 -3.6%
string_dictionary/default 45.38 45.55 +0.4%
string_dictionary/parquet_2 55.00 54.40 -1.1%
string_dictionary_low_cardinality_100/default 18.57 8.97 -51.7%
string_dictionary_low_cardinality_100/parquet_2 18.46 8.96 -51.5%
string_non_null/default 92.34 91.97 -0.4%
string_non_null/parquet_2 117.59 115.82 -1.5%
string_ree_of_dict/default 45.84 37.10 -19.1%
string_ree_of_dict/parquet_2 45.86 37.13 -19.0%

Are there any significant user-facing changes?

No

@github-actions github-actions Bot added the parquet parquet crate label Oct 29, 2026
@Rich-T-kid

Copy link
Copy Markdown
Contributor

run benchmark arrow_writer
env:
BENCH_FILTER: string_dictionary

@adriangbot

Copy link
Copy Markdown

🤖 Benchmark starting (GKE) | trigger

Target: arrow_writer

Sharding factor: 1 (1 workers).

Comparing parquet-dictionary-cache (c19410f) to cacb42e (merge-base) diff

Run configuration
run benchmark arrow_writer
env:
  BENCH_FILTER: string_dictionary
shards: 1

Results will be posted when all workers finish.


File an issue against this benchmark runner

@Rich-T-kid

Copy link
Copy Markdown
Contributor

run benchmark arrow_writer
env:
BENCH_FILTER: string_ree_of_dict

@adriangbot

Copy link
Copy Markdown

🤖 Benchmark starting (GKE) | trigger

Target: arrow_writer

Sharding factor: 1 (1 workers).

Comparing parquet-dictionary-cache (c19410f) to cacb42e (merge-base) diff

Run configuration
run benchmark arrow_writer
env:
  BENCH_FILTER: string_ree_of_dict
shards: 1

Results will be posted when all workers finish.


File an issue against this benchmark runner

@Rich-T-kid

Copy link
Copy Markdown
Contributor

run benchmark arrow_writer
env:
BENCH_FILTER: ree_struct_of_dict

@adriangbot

Copy link
Copy Markdown

🤖 Benchmark starting (GKE) | trigger

Target: arrow_writer

Sharding factor: 1 (1 workers).

Comparing parquet-dictionary-cache (c19410f) to cacb42e (merge-base) diff

Run configuration
run benchmark arrow_writer
env:
  BENCH_FILTER: ree_struct_of_dict
shards: 1

Results will be posted when all workers finish.


File an issue against this benchmark runner

@adriangbot

Copy link
Copy Markdown

🤖 Benchmark completed (GKE) | trigger

Target: arrow_writer

Comparing parquet-dictionary-cache (c19410f) to cacb42e (merge-base) diff

Run configuration
run benchmark arrow_writer
env:
  BENCH_FILTER: string_ree_of_dict
shards: 1
Details
group                                        base                                   changed
-----                                        ----                                   -------
string_ree_of_dict/bloom_filter              1.34     44.3±0.25ms 22.6 MElem/sec    1.00     33.0±0.10ms 30.3 MElem/sec
string_ree_of_dict/cdc                       1.31     47.5±0.28ms 21.0 MElem/sec    1.00     36.3±0.11ms 27.6 MElem/sec
string_ree_of_dict/default                   1.34     44.1±0.22ms 22.7 MElem/sec    1.00     32.8±0.08ms 30.5 MElem/sec
string_ree_of_dict/number_distinct_values    1.22     64.0±1.80ms 15.6 MElem/sec    1.00     52.5±1.51ms 19.1 MElem/sec
string_ree_of_dict/parquet_2                 1.34     44.1±0.27ms 22.7 MElem/sec    1.00     33.0±0.22ms 30.3 MElem/sec
string_ree_of_dict/zstd                      1.34     44.3±0.25ms 22.5 MElem/sec    1.00     33.1±0.23ms 30.2 MElem/sec
string_ree_of_dict/zstd_parquet_2            1.33     44.2±0.30ms 22.6 MElem/sec    1.00     33.1±0.14ms 30.2 MElem/sec

Per-runner information
arrow_writer — shard 1/1

Node: gk3-benchmark-cluster-nap-3aaq6n7v-edc0ea33-4ppc

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

uname:

Linux bench-c6498453946-4109-rdzfv 6.12.105+ #1 SMP Sat Sep 19 07:55:25 UTC 2026 aarch64 GNU/Linux

BENCH_COMMAND:

cargo bench --features=arrow,async,test_common,experimental,object_store --bench arrow_writer
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
Resource Usage

base (merge-base)

Metric Value
Wall time 100.0s
Peak memory 2.1 GiB
Avg memory 61.1 MiB
CPU user 96.6s
CPU sys 0.2s
Peak spill 0 B

branch

Metric Value
Wall time 80.0s
Peak memory 2.1 GiB
Avg memory 66.2 MiB
CPU user 75.9s
CPU sys 0.2s
Peak spill 0 B

File an issue against this benchmark runner

@adriangbot

Copy link
Copy Markdown

🤖 Benchmark completed (GKE) | trigger

Target: arrow_writer

Comparing parquet-dictionary-cache (c19410f) to cacb42e (merge-base) diff

Run configuration
run benchmark arrow_writer
env:
  BENCH_FILTER: ree_struct_of_dict
shards: 1
Details
group                                        base                                   changed
-----                                        ----                                   -------
ree_struct_of_dict/bloom_filter              1.24     60.8±1.38ms 16.4 MElem/sec    1.00     48.9±0.85ms 20.4 MElem/sec
ree_struct_of_dict/cdc                       1.19     68.2±1.64ms 14.7 MElem/sec    1.00     57.2±1.56ms 17.5 MElem/sec
ree_struct_of_dict/default                   1.25     59.6±1.30ms 16.8 MElem/sec    1.00     47.6±0.44ms 21.0 MElem/sec
ree_struct_of_dict/number_distinct_values    1.13     99.8±1.93ms 10.0 MElem/sec    1.00     88.0±1.59ms 11.4 MElem/sec
ree_struct_of_dict/parquet_2                 1.24     59.3±0.87ms 16.9 MElem/sec    1.00     47.7±0.53ms 21.0 MElem/sec
ree_struct_of_dict/zstd                      1.23     63.0±1.01ms 15.9 MElem/sec    1.00     51.3±1.31ms 19.5 MElem/sec
ree_struct_of_dict/zstd_parquet_2            1.22     62.7±1.05ms 16.0 MElem/sec    1.00     51.3±1.64ms 19.5 MElem/sec

Per-runner information
arrow_writer — shard 1/1

Node: gk3-benchmark-cluster-nap-3aaq6n7v-edc0ea33-tnxw

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

uname:

Linux bench-c6498456147-4110-tpvr5 6.12.105+ #1 SMP Sat Sep 19 07:55:25 UTC 2026 aarch64 GNU/Linux

BENCH_COMMAND:

cargo bench --features=arrow,async,test_common,experimental,object_store --bench arrow_writer
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
Resource Usage

base (merge-base)

Metric Value
Wall time 80.0s
Peak memory 1.5 GiB
Avg memory 76.5 MiB
CPU user 75.4s
CPU sys 0.4s
Peak spill 0 B

branch

Metric Value
Wall time 85.0s
Peak memory 1.6 GiB
Avg memory 77.5 MiB
CPU user 82.6s
CPU sys 0.5s
Peak spill 0 B

File an issue against this benchmark runner

@adriangbot

Copy link
Copy Markdown

🤖 Benchmark completed (GKE) | trigger

Target: arrow_writer

Comparing parquet-dictionary-cache (c19410f) to cacb42e (merge-base) diff

Run configuration
run benchmark arrow_writer
env:
  BENCH_FILTER: string_dictionary
shards: 1
Details
group                                                           base                                   changed
-----                                                           ----                                   -------
string_dictionary/bloom_filter                                  1.01     84.5±7.05ms 11.8 MElem/sec    1.00     83.7±7.77ms 12.0 MElem/sec
string_dictionary/cdc                                           1.08     50.2±9.30ms 19.9 MElem/sec    1.00     46.4±4.03ms 21.6 MElem/sec
string_dictionary/default                                       1.05     43.8±4.05ms 22.8 MElem/sec    1.00     41.9±5.25ms 23.9 MElem/sec
string_dictionary/number_distinct_values                        1.02   103.7±13.23ms  9.6 MElem/sec    1.00   101.9±15.06ms  9.8 MElem/sec
string_dictionary/parquet_2                                     1.00     48.6±4.09ms 20.6 MElem/sec    1.00     48.6±5.28ms 20.6 MElem/sec
string_dictionary/zstd                                          1.01   216.8±11.55ms  4.6 MElem/sec    1.00   215.6±13.41ms  4.6 MElem/sec
string_dictionary/zstd_parquet_2                                1.00    195.3±9.11ms  5.1 MElem/sec    1.00    194.7±9.01ms  5.1 MElem/sec
string_dictionary_1pct_cardinality/bloom_filter                 1.89     22.5±0.14ms 44.4 MElem/sec    1.00     11.9±0.07ms 84.0 MElem/sec
string_dictionary_1pct_cardinality/cdc                          1.73     25.8±0.18ms 38.8 MElem/sec    1.00     14.9±0.13ms 67.1 MElem/sec
string_dictionary_1pct_cardinality/default                      1.91     22.3±0.11ms 44.8 MElem/sec    1.00     11.7±0.08ms 85.8 MElem/sec
string_dictionary_1pct_cardinality/number_distinct_values       1.36     41.2±0.82ms 24.3 MElem/sec    1.00     30.4±0.79ms 32.9 MElem/sec
string_dictionary_1pct_cardinality/parquet_2                    1.89     22.1±0.18ms 45.3 MElem/sec    1.00     11.7±0.09ms 85.5 MElem/sec
string_dictionary_1pct_cardinality/zstd                         1.78     25.6±0.32ms 39.1 MElem/sec    1.00     14.4±0.19ms 69.4 MElem/sec
string_dictionary_1pct_cardinality/zstd_parquet_2               1.76     25.1±0.27ms 39.9 MElem/sec    1.00     14.2±0.09ms 70.3 MElem/sec
string_dictionary_low_cardinality_100/bloom_filter              2.18     22.6±0.20ms 44.3 MElem/sec    1.00     10.4±0.04ms 96.5 MElem/sec
string_dictionary_low_cardinality_100/cdc                       1.98     24.8±0.25ms 40.3 MElem/sec    1.00     12.5±0.04ms 79.8 MElem/sec
string_dictionary_low_cardinality_100/default                   2.19     22.5±0.21ms 44.4 MElem/sec    1.00     10.3±0.07ms 97.3 MElem/sec
string_dictionary_low_cardinality_100/number_distinct_values    1.37     45.8±0.85ms 21.8 MElem/sec    1.00     33.5±0.74ms 29.9 MElem/sec
string_dictionary_low_cardinality_100/parquet_2                 2.19     22.5±0.20ms 44.4 MElem/sec    1.00     10.3±0.06ms 97.3 MElem/sec
string_dictionary_low_cardinality_100/zstd                      2.15     22.9±0.21ms 43.7 MElem/sec    1.00     10.6±0.02ms 93.9 MElem/sec
string_dictionary_low_cardinality_100/zstd_parquet_2            2.16     22.8±0.20ms 43.8 MElem/sec    1.00     10.6±0.02ms 94.4 MElem/sec
string_dictionary_low_cardinality_20/bloom_filter               2.17     22.5±0.19ms 44.4 MElem/sec    1.00     10.4±0.04ms 96.4 MElem/sec
string_dictionary_low_cardinality_20/cdc                        1.97     24.7±0.15ms 40.4 MElem/sec    1.00     12.6±0.09ms 79.5 MElem/sec
string_dictionary_low_cardinality_20/default                    2.18     22.5±0.22ms 44.5 MElem/sec    1.00     10.3±0.03ms 97.3 MElem/sec
string_dictionary_low_cardinality_20/number_distinct_values     1.36     45.9±1.28ms 21.8 MElem/sec    1.00     33.6±1.12ms 29.7 MElem/sec
string_dictionary_low_cardinality_20/parquet_2                  2.18     22.4±0.20ms 44.6 MElem/sec    1.00     10.3±0.02ms 97.3 MElem/sec
string_dictionary_low_cardinality_20/zstd                       2.16     22.5±0.18ms 44.4 MElem/sec    1.00     10.4±0.02ms 95.8 MElem/sec
string_dictionary_low_cardinality_20/zstd_parquet_2             2.16     22.5±0.20ms 44.4 MElem/sec    1.00     10.4±0.07ms 95.9 MElem/sec
string_dictionary_low_cardinality_400/bloom_filter              2.19     23.2±0.22ms 43.2 MElem/sec    1.00     10.6±0.08ms 94.6 MElem/sec
string_dictionary_low_cardinality_400/cdc                       1.99     25.3±0.17ms 39.5 MElem/sec    1.00     12.7±0.04ms 78.6 MElem/sec
string_dictionary_low_cardinality_400/default                   2.21     23.1±0.19ms 43.3 MElem/sec    1.00     10.4±0.06ms 95.8 MElem/sec
string_dictionary_low_cardinality_400/number_distinct_values    1.38     46.3±0.84ms 21.6 MElem/sec    1.00     33.6±0.70ms 29.8 MElem/sec
string_dictionary_low_cardinality_400/parquet_2                 2.21     23.1±0.20ms 43.3 MElem/sec    1.00     10.4±0.03ms 95.9 MElem/sec
string_dictionary_low_cardinality_400/zstd                      2.16     23.6±0.26ms 42.4 MElem/sec    1.00     10.9±0.09ms 91.6 MElem/sec
string_dictionary_low_cardinality_400/zstd_parquet_2            2.16     23.5±0.18ms 42.5 MElem/sec    1.00     10.9±0.06ms 91.8 MElem/sec

Per-runner information
arrow_writer — shard 1/1

Node: gk3-benchmark-cluster-nap-1idxzbee-33b9562b-bkh5

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

uname:

Linux bench-c6498435666-4108-87899 6.12.105+ #1 SMP Sat Sep 19 07:55:25 UTC 2026 aarch64 GNU/Linux

BENCH_COMMAND:

cargo bench --features=arrow,async,test_common,experimental,object_store --bench arrow_writer
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
Resource Usage

base (merge-base)

Metric Value
Wall time 465.1s
Peak memory 1.4 GiB
Avg memory 147.7 MiB
CPU user 453.4s
CPU sys 4.9s
Peak spill 0 B

branch

Metric Value
Wall time 415.1s
Peak memory 2.1 GiB
Avg memory 166.4 MiB
CPU user 406.6s
CPU sys 4.9s
Peak spill 0 B

File an issue against this benchmark runner

@Rich-T-kid
Rich-T-kid self-requested a review October 29, 2026 14:16
@etseidl etseidl added the performance Speed or memory optimizations label Oct 29, 2026

@Rich-T-kid Rich-T-kid 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.

thanks @EmilyMatt this is looking good. benchmarks look very strong!

I left a few comments feel free to ping me for another review once those are addressed 🙇

Comment thread parquet/src/arrow/arrow_writer/mod.rs Resolved
Comment thread parquet/src/arrow/arrow_writer/mod.rs Resolved
@EmilyMatt

Copy link
Copy Markdown
Contributor Author

@Rich-T-kid I believe this is ready for review again

@Rich-T-kid
Rich-T-kid self-requested a review November 1, 2026 22:48
@Rich-T-kid

Copy link
Copy Markdown
Contributor

run benchmark arrow_writer
env:
BENCH_FILTER: ree_struct_of_dict

@adriangbot

Copy link
Copy Markdown

🤖 Benchmark starting (GKE) | trigger

Target: arrow_writer

Sharding factor: 1 (1 workers).

Comparing parquet-dictionary-cache (5e1df3f) to 89fc173 (merge-base) diff

Run configuration
run benchmark arrow_writer
env:
  BENCH_FILTER: ree_struct_of_dict
shards: 1

Results will be posted when all workers finish.


File an issue against this benchmark runner

@Rich-T-kid

Copy link
Copy Markdown
Contributor

run benchmark arrow_writer
env:
BENCH_FILTER: ree_struct_of_dict

@adriangbot

Copy link
Copy Markdown

🤖 Benchmark starting (GKE) | trigger

Target: arrow_writer

Sharding factor: 1 (1 workers).

Comparing parquet-dictionary-cache (5e1df3f) to 89fc173 (merge-base) diff

Run configuration
run benchmark arrow_writer
env:
  BENCH_FILTER: ree_struct_of_dict
shards: 1

Results will be posted when all workers finish.


File an issue against this benchmark runner

@adriangbot

Copy link
Copy Markdown

🤖 Benchmark completed (GKE) | trigger

Target: arrow_writer

Comparing parquet-dictionary-cache (5e1df3f) to 89fc173 (merge-base) diff

Run configuration
run benchmark arrow_writer
env:
  BENCH_FILTER: ree_struct_of_dict
shards: 1
Details
group                                        base                                   changed
-----                                        ----                                   -------
ree_struct_of_dict/bloom_filter              1.24     59.6±0.89ms 16.8 MElem/sec    1.00     48.1±0.75ms 20.8 MElem/sec
ree_struct_of_dict/cdc                       1.20     68.0±1.80ms 14.7 MElem/sec    1.00     56.5±1.44ms 17.7 MElem/sec
ree_struct_of_dict/default                   1.24     58.5±0.90ms 17.1 MElem/sec    1.00     47.1±0.56ms 21.2 MElem/sec
ree_struct_of_dict/number_distinct_values    1.13     99.1±1.80ms 10.1 MElem/sec    1.00     88.0±2.68ms 11.4 MElem/sec
ree_struct_of_dict/parquet_2                 1.24     58.3±0.83ms 17.1 MElem/sec    1.00     47.2±0.50ms 21.2 MElem/sec
ree_struct_of_dict/zstd                      1.22     62.0±1.03ms 16.1 MElem/sec    1.00     50.7±0.96ms 19.7 MElem/sec
ree_struct_of_dict/zstd_parquet_2            1.22     61.8±1.05ms 16.2 MElem/sec    1.00     50.6±1.34ms 19.8 MElem/sec

Per-runner information
arrow_writer — shard 1/1

Node: gk3-benchmark-cluster-nap-15byy74d-2cdb697e-pxsn

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

uname:

Linux bench-c6661008211-4520-nlff8 6.12.105+ #1 SMP Sat Sep 19 07:55:25 UTC 2026 aarch64 GNU/Linux

BENCH_COMMAND:

cargo bench --features=arrow,async,test_common,experimental,object_store --bench arrow_writer
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
Resource Usage

base (merge-base)

Metric Value
Wall time 80.0s
Peak memory 2.2 GiB
Avg memory 86.8 MiB
CPU user 74.4s
CPU sys 0.4s
Peak spill 0 B

branch

Metric Value
Wall time 90.0s
Peak memory 2.2 GiB
Avg memory 89.4 MiB
CPU user 84.6s
CPU sys 0.6s
Peak spill 0 B

File an issue against this benchmark runner

@adriangbot

Copy link
Copy Markdown

🤖 Benchmark completed (GKE) | trigger

Target: arrow_writer

Comparing parquet-dictionary-cache (5e1df3f) to 89fc173 (merge-base) diff

Run configuration
run benchmark arrow_writer
env:
  BENCH_FILTER: ree_struct_of_dict
shards: 1
Details
group                                        base                                   changed
-----                                        ----                                   -------
ree_struct_of_dict/bloom_filter              1.23     59.6±0.64ms 16.8 MElem/sec    1.00     48.5±0.81ms 20.6 MElem/sec
ree_struct_of_dict/cdc                       1.20     68.0±1.80ms 14.7 MElem/sec    1.00     56.7±1.52ms 17.6 MElem/sec
ree_struct_of_dict/default                   1.23     58.4±0.77ms 17.1 MElem/sec    1.00     47.4±0.51ms 21.1 MElem/sec
ree_struct_of_dict/number_distinct_values    1.13     99.4±2.21ms 10.1 MElem/sec    1.00     88.2±3.06ms 11.3 MElem/sec
ree_struct_of_dict/parquet_2                 1.23     58.5±0.87ms 17.1 MElem/sec    1.00     47.4±0.61ms 21.1 MElem/sec
ree_struct_of_dict/zstd                      1.22     62.0±1.07ms 16.1 MElem/sec    1.00     50.9±1.18ms 19.7 MElem/sec
ree_struct_of_dict/zstd_parquet_2            1.22     61.9±0.93ms 16.2 MElem/sec    1.00     50.9±1.29ms 19.7 MElem/sec

Per-runner information
arrow_writer — shard 1/1

Node: gk3-benchmark-cluster-nap-15byy74d-5558d1dd-mbrt

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

uname:

Linux bench-c6661006196-4519-pn5rl 6.12.105+ #1 SMP Sat Sep 19 07:55:25 UTC 2026 aarch64 GNU/Linux

BENCH_COMMAND:

cargo bench --features=arrow,async,test_common,experimental,object_store --bench arrow_writer
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
Resource Usage

base (merge-base)

Metric Value
Wall time 80.0s
Peak memory 2.2 GiB
Avg memory 91.1 MiB
CPU user 74.3s
CPU sys 0.4s
Peak spill 0 B

branch

Metric Value
Wall time 90.0s
Peak memory 2.2 GiB
Avg memory 89.1 MiB
CPU user 84.5s
CPU sys 0.6s
Peak spill 0 B

File an issue against this benchmark runner

@Rich-T-kid Rich-T-kid 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.

left a comment but this looks good to me, thanks @EmilyMatt

cc @HippoBaro in case your interested in taking a look

@Rich-T-kid

Copy link
Copy Markdown
Contributor

thanks @EmilyMatt

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

Labels

parquet parquet crate performance Speed or memory optimizations

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants