Skip to content

perf: preserve dictionaries for literal regex predicates - #27447

Closed
Rich-T-kid wants to merge 1 commit into
apache:mainfrom
Rich-T-kid:codex/dict-regex-suite-gate
Closed

Rich-T-kid wants to merge 1 commit into
apache:mainfrom
Rich-T-kid:codex/dict-regex-suite-gate

Conversation

@Rich-T-kid

Copy link
Copy Markdown
Contributor

Which issue does this PR close?\n\n- Part of #1178.\n\n## Rationale for this change\n\nLiteral binary regex predicates currently cast dictionary-encoded strings to flat arrays before evaluation. This repeats the same regex work for every key occurrence instead of evaluating dictionary values once.\n\nThis is a draft performance experiment. It is gated on the existing hosted TPC-H, TPC-DS, and partitioned ClickBench suites and will be closed if they do not show an attributable speedup.\n\n## What changes are included in this PR?\n\n- Preserve dictionary input through simplification for literal regex predicates.\n- Evaluate scalar regex patterns against dictionary values and reuse the original keys.\n- Compact oversized retained dictionaries before evaluation.\n- Add optimizer, physical-expression, and end-to-end plan tests.\n\nNo benchmark files or custom benchmark queries are added or changed.\n\n## What is the testing strategy?\n\n- cargo test -p datafusion-optimizer test_cast_preimage_dictionary_regex_literal --lib\n- cargo test -p datafusion-physical-expr expressions::binary --lib\n- cargo test -p datafusion --test core_integration dictionary_literal_regex_preserves_encoding\n- cargo clippy -p datafusion-optimizer -p datafusion-physical-expr -p datafusion --lib --tests -- -D warnings\n- cargo fmt --all -- --check\n- Full repository pre-push hook\n- Hosted TPC-H, TPC-DS, and partitioned ClickBench runs on the exact PR head\n\n## Are there any user-facing changes?\n\nLogical results are unchanged. Dictionary-encoded inputs can remain dictionary encoded through the physical regex predicate.

@github-actions github-actions Bot added physical-expr Changes to the physical-expr crates optimizer Optimizer rules core Core DataFusion crate labels Nov 15, 2026
@Rich-T-kid

Copy link
Copy Markdown
Contributor Author

run benchmark tpch tpcds clickbench_partitioned
env:
DATAFUSION_RUNTIME_MEMORY_LIMIT: "32G"
DATAFUSION_EXECUTION_PARQUET_ENABLE_RLE_TO_DICTIONARY: "true"

@adriangbot

Copy link
Copy Markdown

🤖 Benchmark running (GKE) | trigger
Instance: c4a-highmem-16 (12 vCPU / 65 GiB) | Linux bench-c6887502908-5120-kt26f 6.12.105+ #1 SMP Sat Sep 19 07:55:25 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 codex/dict-regex-suite-gate (7081eb6) to 73e0b03 (merge-base) diff

Run configuration
run benchmark clickbench_partitioned
env:
  DATAFUSION_EXECUTION_PARQUET_ENABLE_RLE_TO_DICTIONARY: "true"
  DATAFUSION_RUNTIME_MEMORY_LIMIT: "32G"

Results will be posted here when complete


File an issue against this benchmark runner

@adriangbot

Copy link
Copy Markdown

🤖 Benchmark running (GKE) | trigger
Instance: c4a-highmem-16 (12 vCPU / 65 GiB) | Linux bench-c6887502908-5118-8nql8 6.12.105+ #1 SMP Sat Sep 19 07:55:25 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 codex/dict-regex-suite-gate (7081eb6) to 73e0b03 (merge-base) diff

Run configuration
run benchmark tpch
env:
  DATAFUSION_EXECUTION_PARQUET_ENABLE_RLE_TO_DICTIONARY: "true"
  DATAFUSION_RUNTIME_MEMORY_LIMIT: "32G"

Results will be posted here when complete


File an issue against this benchmark runner

@adriangbot

Copy link
Copy Markdown

🤖 Benchmark running (GKE) | trigger
Instance: c4a-highmem-16 (12 vCPU / 65 GiB) | Linux bench-c6887502908-5119-5864n 6.12.105+ #1 SMP Sat Sep 19 07:55:25 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 codex/dict-regex-suite-gate (7081eb6) to 73e0b03 (merge-base) diff

Run configuration
run benchmark tpcds
env:
  DATAFUSION_EXECUTION_PARQUET_ENABLE_RLE_TO_DICTIONARY: "true"
  DATAFUSION_RUNTIME_MEMORY_LIMIT: "32G"

Results will be posted here when complete


File an issue against this benchmark runner

@adriangbot

Copy link
Copy Markdown

🤖 Benchmark completed (GKE) | trigger

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

Comparing codex/dict-regex-suite-gate (7081eb6) to 73e0b03 (merge-base) diff

Run configuration
run benchmark tpch
env:
  DATAFUSION_EXECUTION_PARQUET_ENABLE_RLE_TO_DICTIONARY: "true"
  DATAFUSION_RUNTIME_MEMORY_LIMIT: "32G"
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

Comparing HEAD and codex_dict-regex-suite-gate
--------------------
Benchmark tpch_sf1.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query     ┃     HEAD ┃ codex_dict-regex-suite-gate ┃        Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 1  │ 39.03 ms │                    38.99 ms │     no change │
│ QQuery 2  │ 18.53 ms │                    18.58 ms │     no change │
│ QQuery 3  │ 28.41 ms │                    28.08 ms │     no change │
│ QQuery 4  │ 17.11 ms │                    17.33 ms │     no change │
│ QQuery 5  │ 34.90 ms │                    34.70 ms │     no change │
│ QQuery 6  │ 13.57 ms │                    13.47 ms │     no change │
│ QQuery 7  │ 40.47 ms │                    41.33 ms │     no change │
│ QQuery 8  │ 40.16 ms │                    39.97 ms │     no change │
│ QQuery 9  │ 48.84 ms │                    49.19 ms │     no change │
│ QQuery 10 │ 56.10 ms │                    56.29 ms │     no change │
│ QQuery 11 │ 13.42 ms │                    13.24 ms │     no change │
│ QQuery 12 │ 19.97 ms │                    20.05 ms │     no change │
│ QQuery 13 │ 45.51 ms │                    45.26 ms │     no change │
│ QQuery 14 │ 23.60 ms │                    23.42 ms │     no change │
│ QQuery 15 │ 30.84 ms │                    30.76 ms │     no change │
│ QQuery 16 │ 13.55 ms │                    13.24 ms │     no change │
│ QQuery 17 │ 80.50 ms │                    66.49 ms │ +1.21x faster │
│ QQuery 18 │ 67.02 ms │                    63.72 ms │     no change │
│ QQuery 19 │ 28.99 ms │                    28.81 ms │     no change │
│ QQuery 20 │ 33.48 ms │                    33.29 ms │     no change │
│ QQuery 21 │ 51.63 ms │                    51.25 ms │     no change │
│ QQuery 22 │ 15.14 ms │                    15.14 ms │     no change │
└───────────┴──────────┴─────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━┓
┃ Benchmark Summary                          ┃          ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━┩
│ Total Time (HEAD)                          │ 760.79ms │
│ Total Time (codex_dict-regex-suite-gate)   │ 742.59ms │
│ Average Time (HEAD)                        │  34.58ms │
│ Average Time (codex_dict-regex-suite-gate) │  33.75ms │
│ Queries Faster                             │        1 │
│ Queries Slower                             │        0 │
│ Queries with No Change                     │       21 │
│ Queries with Failure                       │        0 │
└────────────────────────────────────────────┴──────────┘

Distribution per query (min / mean ±stddev / max):

Comparing HEAD and codex_dict-regex-suite-gate
--------------------
Benchmark tpch_sf1.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query     ┃                           HEAD ┃    codex_dict-regex-suite-gate ┃        Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 1  │ 39.03 / 40.82 ±1.34 / 42.08 ms │ 38.99 / 39.85 ±1.08 / 41.81 ms │     no change │
│ QQuery 2  │ 18.53 / 18.84 ±0.42 / 19.68 ms │ 18.58 / 18.82 ±0.25 / 19.29 ms │     no change │
│ QQuery 3  │ 28.41 / 28.45 ±0.02 / 28.47 ms │ 28.08 / 28.76 ±0.70 / 29.99 ms │     no change │
│ QQuery 4  │ 17.11 / 17.58 ±0.68 / 18.92 ms │ 17.33 / 17.82 ±0.37 / 18.27 ms │     no change │
│ QQuery 5  │ 34.90 / 35.53 ±0.94 / 37.40 ms │ 34.70 / 34.91 ±0.20 / 35.16 ms │     no change │
│ QQuery 6  │ 13.57 / 13.65 ±0.06 / 13.74 ms │ 13.47 / 14.43 ±0.81 / 15.35 ms │  1.06x slower │
│ QQuery 7  │ 40.47 / 41.52 ±0.88 / 42.56 ms │ 41.33 / 42.78 ±1.01 / 43.96 ms │     no change │
│ QQuery 8  │ 40.16 / 41.00 ±1.46 / 43.91 ms │ 39.97 / 41.18 ±1.74 / 44.61 ms │     no change │
│ QQuery 9  │ 48.84 / 50.63 ±1.30 / 52.62 ms │ 49.19 / 49.68 ±0.27 / 50.03 ms │     no change │
│ QQuery 10 │ 56.10 / 56.51 ±0.30 / 56.90 ms │ 56.29 / 57.07 ±1.22 / 59.51 ms │     no change │
│ QQuery 11 │ 13.42 / 13.60 ±0.17 / 13.92 ms │ 13.24 / 13.44 ±0.16 / 13.68 ms │     no change │
│ QQuery 12 │ 19.97 / 20.40 ±0.40 / 21.10 ms │ 20.05 / 20.14 ±0.06 / 20.22 ms │     no change │
│ QQuery 13 │ 45.51 / 45.98 ±0.62 / 47.20 ms │ 45.26 / 45.66 ±0.28 / 45.94 ms │     no change │
│ QQuery 14 │ 23.60 / 23.74 ±0.14 / 23.99 ms │ 23.42 / 23.67 ±0.17 / 23.87 ms │     no change │
│ QQuery 15 │ 30.84 / 32.24 ±1.32 / 34.15 ms │ 30.76 / 31.79 ±1.36 / 34.34 ms │     no change │
│ QQuery 16 │ 13.55 / 14.04 ±0.38 / 14.43 ms │ 13.24 / 13.43 ±0.13 / 13.61 ms │     no change │
│ QQuery 17 │ 80.50 / 81.99 ±1.42 / 84.23 ms │ 66.49 / 67.49 ±0.91 / 68.62 ms │ +1.21x faster │
│ QQuery 18 │ 67.02 / 72.30 ±3.37 / 77.24 ms │ 63.72 / 65.35 ±1.38 / 66.91 ms │ +1.11x faster │
│ QQuery 19 │ 28.99 / 30.65 ±0.88 / 31.48 ms │ 28.81 / 29.10 ±0.38 / 29.85 ms │ +1.05x faster │
│ QQuery 20 │ 33.48 / 33.90 ±0.49 / 34.86 ms │ 33.29 / 33.77 ±0.35 / 34.29 ms │     no change │
│ QQuery 21 │ 51.63 / 52.91 ±0.89 / 54.17 ms │ 51.25 / 51.68 ±0.28 / 51.98 ms │     no change │
│ QQuery 22 │ 15.14 / 16.00 ±1.24 / 18.45 ms │ 15.14 / 15.30 ±0.15 / 15.53 ms │     no change │
└───────────┴────────────────────────────────┴────────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━┓
┃ Benchmark Summary                          ┃          ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━┩
│ Total Time (HEAD)                          │ 782.28ms │
│ Total Time (codex_dict-regex-suite-gate)   │ 756.11ms │
│ Average Time (HEAD)                        │  35.56ms │
│ Average Time (codex_dict-regex-suite-gate) │  34.37ms │
│ Queries Faster                             │        3 │
│ Queries Slower                             │        1 │
│ Queries with No Change                     │       18 │
│ Queries with Failure                       │        0 │
└────────────────────────────────────────────┴──────────┘

Memory Pool Peaks

Peak MemoryPool reservation per query — what DataFusion's accounting believes it reserved. Recorded only for benchmarks that write a results JSON (the dfbench suites, and the suites bench.sh runs through the Criterion SQL harness since #25644), and only under a memory limit: DATAFUSION_RUNTIME_MEMORY_LIMIT, or one the suite sets itself.

Base: 73e0b03 (merge-base) | Changed: codex/dict-regex-suite-gate

tpch — tpch_sf1

Query Base Changed Change
Query 1 30.1 MiB 30.1 MiB +0.2%
Query 2 23.1 MiB 23.1 MiB +0.0%
Query 3 10.6 MiB 10.9 MiB +2.4%
Query 4 32.1 MiB 32.1 MiB +0.0%
Query 5 42.7 MiB 32.9 MiB -23.1%
Query 6 832 B 832 B +0.0%
Query 7 104.4 MiB 104.0 MiB -0.4%
Query 8 39.8 MiB 39.8 MiB -0.0%
Query 9 141.3 MiB 139.9 MiB -1.0%
Query 10 53.3 MiB 53.6 MiB +0.5%
Query 11 41.3 MiB 51.5 MiB +24.7%
Query 12 22.5 MiB 12.6 MiB -43.9%
Query 13 62.7 MiB 72.3 MiB +15.3%
Query 14 6.7 MiB 6.7 MiB +0.0%
Query 15 12.7 MiB 12.7 MiB +0.0%
Query 16 33.3 MiB 33.2 MiB -0.3%
Query 17 150.3 MiB 150.3 MiB +0.0%
Query 18 110.5 MiB 107.1 MiB -3.1%
Query 19 209.7 KiB 209.7 KiB +0.0%
Query 20 60.5 MiB 60.5 MiB +0.0%
Query 21 35.9 MiB 35.9 MiB +0.2%
Query 22 31.9 MiB 32.0 MiB +0.0%

Pool accounting vs. process RSS

Max pool peak is the largest reservation any single query in the run reached; peak RSS covers the whole invocation, including data loading and allocator retention, and the two high-water marks need not coincide in time. The gap is therefore an upper bound on what the pool did not account for, not a measurement of it.

Benchmark Side Max pool peak Peak RSS Gap RSS / pool
tpch base (73e0b03 (merge-base)) 150.3 MiB 1.1 GiB 995.3 MiB 7.6×
tpch changed (codex/dict-regex-suite-gate) 150.3 MiB 1.1 GiB 1011.1 MiB 7.7×
Resource Usage

tpch — base (merge-base)

Metric Value
Wall time 5.0s
Peak memory 1.1 GiB
Avg memory 475.9 MiB
CPU user 20.5s
CPU sys 1.6s
Peak spill 0 B

tpch — branch

Metric Value
Wall time 5.0s
Peak memory 1.1 GiB
Avg memory 482.9 MiB
CPU user 19.5s
CPU sys 1.6s
Peak spill 0 B

File an issue against this benchmark runner

@adriangbot

Copy link
Copy Markdown

🤖 Benchmark completed (GKE) | trigger

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

Comparing codex/dict-regex-suite-gate (7081eb6) to 73e0b03 (merge-base) diff

Run configuration
run benchmark tpcds
env:
  DATAFUSION_EXECUTION_PARQUET_ENABLE_RLE_TO_DICTIONARY: "true"
  DATAFUSION_RUNTIME_MEMORY_LIMIT: "32G"
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

Comparing HEAD and codex_dict-regex-suite-gate
--------------------
Benchmark tpcds_sf1.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query     ┃       HEAD ┃ codex_dict-regex-suite-gate ┃        Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 1  │    6.22 ms │                     6.12 ms │     no change │
│ QQuery 2  │   77.53 ms │                    79.33 ms │     no change │
│ QQuery 3  │   29.64 ms │                    30.50 ms │     no change │
│ QQuery 4  │  569.55 ms │                   629.15 ms │  1.10x slower │
│ QQuery 5  │   52.37 ms │                    53.56 ms │     no change │
│ QQuery 6  │   34.51 ms │                    37.38 ms │  1.08x slower │
│ QQuery 7  │   74.71 ms │                    73.96 ms │     no change │
│ QQuery 8  │   41.28 ms │                    40.28 ms │     no change │
│ QQuery 9  │   53.18 ms │                    56.35 ms │  1.06x slower │
│ QQuery 10 │   60.33 ms │                    61.95 ms │     no change │
│ QQuery 11 │  415.83 ms │                   425.41 ms │     no change │
│ QQuery 12 │   27.99 ms │                    28.44 ms │     no change │
│ QQuery 13 │  116.81 ms │                   118.55 ms │     no change │
│ QQuery 14 │  383.76 ms │                   390.45 ms │     no change │
│ QQuery 15 │   60.10 ms │                    57.60 ms │     no change │
│ QQuery 16 │    6.75 ms │                     6.87 ms │     no change │
│ QQuery 17 │   80.53 ms │                    80.08 ms │     no change │
│ QQuery 18 │  106.79 ms │                   109.89 ms │     no change │
│ QQuery 19 │   43.00 ms │                    43.56 ms │     no change │
│ QQuery 20 │   33.34 ms │                    33.75 ms │     no change │
│ QQuery 21 │   18.41 ms │                    18.58 ms │     no change │
│ QQuery 22 │   69.07 ms │                    68.98 ms │     no change │
│ QQuery 23 │  331.22 ms │                   326.16 ms │     no change │
│ QQuery 24 │  215.33 ms │                   215.85 ms │     no change │
│ QQuery 25 │  111.77 ms │                   111.07 ms │     no change │
│ QQuery 26 │   46.75 ms │                    46.77 ms │     no change │
│ QQuery 27 │    6.17 ms │                     5.87 ms │     no change │
│ QQuery 28 │   59.45 ms │                    57.45 ms │     no change │
│ QQuery 29 │  100.22 ms │                    95.28 ms │     no change │
│ QQuery 30 │   39.12 ms │                    38.71 ms │     no change │
│ QQuery 31 │  116.08 ms │                   112.72 ms │     no change │
│ QQuery 32 │   21.67 ms │                    21.25 ms │     no change │
│ QQuery 33 │   39.43 ms │                    38.84 ms │     no change │
│ QQuery 34 │    6.58 ms │                     6.26 ms │     no change │
│ QQuery 35 │   76.74 ms │                    73.06 ms │     no change │
│ QQuery 36 │    6.80 ms │                     6.52 ms │     no change │
│ QQuery 37 │    8.38 ms │                     7.89 ms │ +1.06x faster │
│ QQuery 38 │   69.56 ms │                    66.93 ms │     no change │
│ QQuery 39 │   79.82 ms │                    79.00 ms │     no change │
│ QQuery 40 │   25.46 ms │                    25.10 ms │     no change │
│ QQuery 41 │   15.59 ms │                    15.78 ms │     no change │
│ QQuery 42 │   25.28 ms │                    25.29 ms │     no change │
│ QQuery 43 │    5.34 ms │                     5.42 ms │     no change │
│ QQuery 44 │    6.28 ms │                     6.09 ms │     no change │
│ QQuery 45 │   40.91 ms │                    40.04 ms │     no change │
│ QQuery 46 │   12.39 ms │                    12.55 ms │     no change │
│ QQuery 47 │  218.80 ms │                   222.71 ms │     no change │
│ QQuery 48 │   91.96 ms │                    95.69 ms │     no change │
│ QQuery 49 │   70.05 ms │                    72.28 ms │     no change │
│ QQuery 50 │   57.70 ms │                    59.18 ms │     no change │
│ QQuery 51 │   96.33 ms │                    97.98 ms │     no change │
│ QQuery 52 │   24.72 ms │                    26.34 ms │  1.07x slower │
│ QQuery 53 │   29.68 ms │                    31.20 ms │  1.05x slower │
│ QQuery 54 │   53.82 ms │                    57.22 ms │  1.06x slower │
│ QQuery 55 │   24.14 ms │                    26.17 ms │  1.08x slower │
│ QQuery 56 │   39.98 ms │                    42.73 ms │  1.07x slower │
│ QQuery 57 │  158.16 ms │                   172.50 ms │  1.09x slower │
│ QQuery 58 │  106.56 ms │                   111.20 ms │     no change │
│ QQuery 59 │  110.07 ms │                   114.61 ms │     no change │
│ QQuery 60 │   41.11 ms │                    42.32 ms │     no change │
│ QQuery 61 │   10.20 ms │                    10.18 ms │     no change │
│ QQuery 62 │   40.75 ms │                    41.92 ms │     no change │
│ QQuery 63 │   31.49 ms │                    32.12 ms │     no change │
│ QQuery 64 │  381.62 ms │                   398.92 ms │     no change │
│ QQuery 65 │   79.22 ms │                    82.91 ms │     no change │
│ QQuery 66 │   75.85 ms │                    80.77 ms │  1.06x slower │
│ QQuery 67 │  204.20 ms │                   233.14 ms │  1.14x slower │
│ QQuery 68 │    7.15 ms │                     8.23 ms │  1.15x slower │
│ QQuery 69 │   55.60 ms │                    58.81 ms │  1.06x slower │
│ QQuery 70 │   99.07 ms │                   104.27 ms │  1.05x slower │
│ QQuery 71 │   38.26 ms │                    38.60 ms │     no change │
│ QQuery 72 │ 1701.87 ms │                  1760.36 ms │     no change │
│ QQuery 73 │    6.47 ms │                     6.43 ms │     no change │
│ QQuery 74 │  284.50 ms │                   306.06 ms │  1.08x slower │
│ QQuery 75 │  145.45 ms │                   152.94 ms │  1.05x slower │
│ QQuery 76 │   37.28 ms │                    38.27 ms │     no change │
│ QQuery 77 │   63.69 ms │                    66.49 ms │     no change │
│ QQuery 78 │  289.83 ms │                   314.71 ms │  1.09x slower │
│ QQuery 79 │   69.95 ms │                    74.99 ms │  1.07x slower │
│ QQuery 80 │  104.47 ms │                   106.02 ms │     no change │
│ QQuery 81 │   30.25 ms │                    34.20 ms │  1.13x slower │
│ QQuery 82 │   18.43 ms │                    20.15 ms │  1.09x slower │
│ QQuery 83 │   34.08 ms │                    36.62 ms │  1.07x slower │
│ QQuery 84 │   32.77 ms │                    32.92 ms │     no change │
│ QQuery 85 │   98.85 ms │                   102.76 ms │     no change │
│ QQuery 86 │   25.65 ms │                    27.01 ms │  1.05x slower │
│ QQuery 87 │   69.68 ms │                    73.40 ms │  1.05x slower │
│ QQuery 88 │   63.44 ms │                    64.49 ms │     no change │
│ QQuery 89 │   37.34 ms │                    40.24 ms │  1.08x slower │
│ QQuery 90 │   17.41 ms │                    18.67 ms │  1.07x slower │
│ QQuery 91 │   41.06 ms │                    43.41 ms │  1.06x slower │
│ QQuery 92 │   30.16 ms │                    32.85 ms │  1.09x slower │
│ QQuery 93 │   52.15 ms │                    55.09 ms │  1.06x slower │
│ QQuery 94 │   42.26 ms │                    43.08 ms │     no change │
│ QQuery 95 │   82.47 ms │                    87.05 ms │  1.06x slower │
│ QQuery 96 │   25.19 ms │                    25.62 ms │     no change │
│ QQuery 97 │   51.71 ms │                    55.35 ms │  1.07x slower │
│ QQuery 98 │   39.80 ms │                    42.10 ms │  1.06x slower │
│ QQuery 99 │   59.51 ms │                    60.92 ms │     no change │
└───────────┴────────────┴─────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━┓
┃ Benchmark Summary                          ┃           ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━┩
│ Total Time (HEAD)                          │ 9530.21ms │
│ Total Time (codex_dict-regex-suite-gate)   │ 9874.84ms │
│ Average Time (HEAD)                        │   96.26ms │
│ Average Time (codex_dict-regex-suite-gate) │   99.75ms │
│ Queries Faster                             │         1 │
│ Queries Slower                             │        31 │
│ Queries with No Change                     │        67 │
│ Queries with Failure                       │         0 │
└────────────────────────────────────────────┴───────────┘

Distribution per query (min / mean ±stddev / max):

Comparing HEAD and codex_dict-regex-suite-gate
--------------------
Benchmark tpcds_sf1.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query     ┃                                  HEAD ┃            codex_dict-regex-suite-gate ┃        Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 1  │           6.22 / 6.86 ±1.18 / 9.22 ms │            6.12 / 6.71 ±1.12 / 8.95 ms │     no change │
│ QQuery 2  │        77.53 / 78.10 ±0.37 / 78.66 ms │         79.33 / 80.06 ±0.59 / 80.76 ms │     no change │
│ QQuery 3  │        29.64 / 30.10 ±0.26 / 30.33 ms │         30.50 / 30.66 ±0.14 / 30.85 ms │     no change │
│ QQuery 4  │    569.55 / 610.40 ±26.36 / 640.23 ms │      629.15 / 637.18 ±5.41 / 645.89 ms │     no change │
│ QQuery 5  │        52.37 / 53.02 ±0.63 / 54.15 ms │         53.56 / 55.61 ±3.16 / 61.86 ms │     no change │
│ QQuery 6  │        34.51 / 37.57 ±4.92 / 47.38 ms │         37.38 / 37.71 ±0.30 / 38.15 ms │     no change │
│ QQuery 7  │        74.71 / 75.53 ±0.71 / 76.60 ms │         73.96 / 74.69 ±1.01 / 76.68 ms │     no change │
│ QQuery 8  │        41.28 / 41.89 ±0.46 / 42.41 ms │         40.28 / 40.62 ±0.25 / 41.04 ms │     no change │
│ QQuery 9  │        53.18 / 55.16 ±1.83 / 57.62 ms │         56.35 / 58.38 ±1.41 / 60.18 ms │  1.06x slower │
│ QQuery 10 │        60.33 / 62.69 ±2.36 / 67.23 ms │         61.95 / 62.15 ±0.14 / 62.33 ms │     no change │
│ QQuery 11 │    415.83 / 428.68 ±11.90 / 449.74 ms │      425.41 / 435.01 ±5.93 / 443.92 ms │     no change │
│ QQuery 12 │        27.99 / 28.35 ±0.27 / 28.65 ms │         28.44 / 28.82 ±0.23 / 29.11 ms │     no change │
│ QQuery 13 │     116.81 / 119.50 ±2.63 / 124.28 ms │      118.55 / 120.67 ±1.23 / 122.04 ms │     no change │
│ QQuery 14 │     383.76 / 388.22 ±2.37 / 390.34 ms │      390.45 / 396.88 ±5.02 / 405.38 ms │     no change │
│ QQuery 15 │        60.10 / 61.57 ±2.18 / 65.87 ms │         57.60 / 61.11 ±2.75 / 64.37 ms │     no change │
│ QQuery 16 │           6.75 / 6.97 ±0.19 / 7.32 ms │            6.87 / 7.07 ±0.13 / 7.26 ms │     no change │
│ QQuery 17 │        80.53 / 81.23 ±0.60 / 82.16 ms │         80.08 / 81.93 ±2.48 / 86.70 ms │     no change │
│ QQuery 18 │     106.79 / 109.57 ±1.85 / 112.15 ms │      109.89 / 111.57 ±1.46 / 114.24 ms │     no change │
│ QQuery 19 │        43.00 / 44.09 ±0.62 / 44.85 ms │         43.56 / 44.12 ±0.35 / 44.47 ms │     no change │
│ QQuery 20 │        33.34 / 33.82 ±0.42 / 34.37 ms │         33.75 / 34.28 ±0.61 / 35.47 ms │     no change │
│ QQuery 21 │        18.41 / 18.82 ±0.23 / 19.06 ms │         18.58 / 18.96 ±0.28 / 19.40 ms │     no change │
│ QQuery 22 │        69.07 / 69.81 ±0.81 / 70.99 ms │         68.98 / 70.45 ±0.75 / 71.05 ms │     no change │
│ QQuery 23 │     331.22 / 344.69 ±8.11 / 354.36 ms │     326.16 / 343.64 ±12.54 / 361.15 ms │     no change │
│ QQuery 24 │     215.33 / 216.84 ±1.01 / 218.10 ms │      215.85 / 219.80 ±5.14 / 229.83 ms │     no change │
│ QQuery 25 │     111.77 / 115.49 ±5.77 / 126.85 ms │      111.07 / 117.13 ±5.97 / 128.39 ms │     no change │
│ QQuery 26 │        46.75 / 47.25 ±0.28 / 47.59 ms │         46.77 / 47.31 ±0.44 / 48.08 ms │     no change │
│ QQuery 27 │           6.17 / 6.25 ±0.07 / 6.37 ms │            5.87 / 5.93 ±0.06 / 6.03 ms │ +1.05x faster │
│ QQuery 28 │        59.45 / 63.00 ±1.90 / 64.78 ms │         57.45 / 61.61 ±2.10 / 63.01 ms │     no change │
│ QQuery 29 │     100.22 / 103.00 ±2.09 / 106.55 ms │        95.28 / 99.28 ±3.58 / 104.26 ms │     no change │
│ QQuery 30 │        39.12 / 39.84 ±0.80 / 41.33 ms │         38.71 / 40.53 ±1.67 / 43.11 ms │     no change │
│ QQuery 31 │     116.08 / 119.04 ±3.12 / 124.89 ms │      112.72 / 114.62 ±2.46 / 119.46 ms │     no change │
│ QQuery 32 │        21.67 / 21.95 ±0.16 / 22.10 ms │         21.25 / 21.67 ±0.39 / 22.28 ms │     no change │
│ QQuery 33 │        39.43 / 40.04 ±0.57 / 40.87 ms │         38.84 / 39.93 ±0.71 / 40.85 ms │     no change │
│ QQuery 34 │           6.58 / 6.75 ±0.12 / 6.95 ms │            6.26 / 6.36 ±0.12 / 6.59 ms │ +1.06x faster │
│ QQuery 35 │        76.74 / 78.58 ±1.51 / 80.33 ms │         73.06 / 74.30 ±1.01 / 75.58 ms │ +1.06x faster │
│ QQuery 36 │           6.80 / 6.97 ±0.14 / 7.12 ms │            6.52 / 6.59 ±0.07 / 6.69 ms │ +1.06x faster │
│ QQuery 37 │           8.38 / 8.50 ±0.12 / 8.73 ms │            7.89 / 8.20 ±0.21 / 8.50 ms │     no change │
│ QQuery 38 │        69.56 / 71.73 ±2.36 / 76.11 ms │         66.93 / 69.03 ±1.42 / 71.15 ms │     no change │
│ QQuery 39 │        79.82 / 81.70 ±1.14 / 83.24 ms │         79.00 / 80.72 ±1.35 / 82.13 ms │     no change │
│ QQuery 40 │        25.46 / 25.69 ±0.19 / 25.91 ms │         25.10 / 25.56 ±0.33 / 26.10 ms │     no change │
│ QQuery 41 │        15.59 / 15.88 ±0.17 / 16.11 ms │         15.78 / 15.92 ±0.14 / 16.17 ms │     no change │
│ QQuery 42 │        25.28 / 26.86 ±2.93 / 32.72 ms │         25.29 / 26.51 ±1.77 / 30.04 ms │     no change │
│ QQuery 43 │           5.34 / 5.45 ±0.09 / 5.59 ms │            5.42 / 5.54 ±0.11 / 5.70 ms │     no change │
│ QQuery 44 │           6.28 / 6.35 ±0.05 / 6.42 ms │            6.09 / 6.23 ±0.08 / 6.31 ms │     no change │
│ QQuery 45 │        40.91 / 42.21 ±0.67 / 42.75 ms │         40.04 / 40.84 ±0.69 / 42.06 ms │     no change │
│ QQuery 46 │        12.39 / 12.69 ±0.22 / 12.98 ms │         12.55 / 12.72 ±0.12 / 12.88 ms │     no change │
│ QQuery 47 │     218.80 / 227.48 ±7.26 / 235.70 ms │      222.71 / 233.11 ±7.90 / 241.15 ms │     no change │
│ QQuery 48 │        91.96 / 94.08 ±1.83 / 97.32 ms │         95.69 / 97.61 ±1.29 / 98.98 ms │     no change │
│ QQuery 49 │        70.05 / 72.39 ±1.70 / 74.71 ms │         72.28 / 73.38 ±0.85 / 74.82 ms │     no change │
│ QQuery 50 │        57.70 / 58.18 ±0.39 / 58.73 ms │         59.18 / 60.13 ±0.94 / 61.74 ms │     no change │
│ QQuery 51 │       96.33 / 99.73 ±5.44 / 110.42 ms │       97.98 / 101.58 ±4.09 / 108.62 ms │     no change │
│ QQuery 52 │        24.72 / 25.04 ±0.40 / 25.80 ms │         26.34 / 26.46 ±0.12 / 26.63 ms │  1.06x slower │
│ QQuery 53 │        29.68 / 29.82 ±0.18 / 30.16 ms │         31.20 / 31.85 ±0.87 / 33.53 ms │  1.07x slower │
│ QQuery 54 │        53.82 / 54.18 ±0.29 / 54.67 ms │         57.22 / 58.42 ±1.22 / 60.64 ms │  1.08x slower │
│ QQuery 55 │        24.14 / 25.14 ±1.24 / 27.58 ms │         26.17 / 26.72 ±0.32 / 27.09 ms │  1.06x slower │
│ QQuery 56 │        39.98 / 40.85 ±0.61 / 41.53 ms │         42.73 / 44.01 ±0.82 / 45.13 ms │  1.08x slower │
│ QQuery 57 │     158.16 / 163.70 ±6.55 / 176.38 ms │      172.50 / 173.86 ±1.17 / 175.94 ms │  1.06x slower │
│ QQuery 58 │     106.56 / 110.34 ±2.11 / 113.00 ms │      111.20 / 115.12 ±4.36 / 123.53 ms │     no change │
│ QQuery 59 │     110.07 / 113.41 ±2.21 / 116.43 ms │      114.61 / 116.46 ±2.21 / 120.25 ms │     no change │
│ QQuery 60 │        41.11 / 42.96 ±2.58 / 48.03 ms │         42.32 / 43.22 ±0.77 / 44.31 ms │     no change │
│ QQuery 61 │        10.20 / 10.35 ±0.12 / 10.54 ms │         10.18 / 10.33 ±0.13 / 10.53 ms │     no change │
│ QQuery 62 │        40.75 / 41.59 ±0.47 / 42.18 ms │         41.92 / 42.85 ±0.86 / 44.33 ms │     no change │
│ QQuery 63 │        31.49 / 32.21 ±0.60 / 33.15 ms │         32.12 / 32.43 ±0.28 / 32.84 ms │     no change │
│ QQuery 64 │     381.62 / 389.19 ±5.91 / 396.94 ms │      398.92 / 408.40 ±8.53 / 422.37 ms │     no change │
│ QQuery 65 │        79.22 / 80.78 ±1.46 / 83.33 ms │         82.91 / 86.23 ±4.39 / 94.91 ms │  1.07x slower │
│ QQuery 66 │        75.85 / 78.92 ±3.05 / 83.93 ms │         80.77 / 81.51 ±0.82 / 82.82 ms │     no change │
│ QQuery 67 │     204.20 / 212.59 ±5.84 / 220.47 ms │      233.14 / 238.03 ±6.78 / 251.04 ms │  1.12x slower │
│ QQuery 68 │           7.15 / 7.31 ±0.14 / 7.54 ms │            8.23 / 8.44 ±0.16 / 8.70 ms │  1.16x slower │
│ QQuery 69 │        55.60 / 56.35 ±1.09 / 58.52 ms │         58.81 / 61.39 ±3.15 / 67.57 ms │  1.09x slower │
│ QQuery 70 │      99.07 / 101.50 ±2.85 / 106.84 ms │      104.27 / 104.85 ±0.73 / 106.18 ms │     no change │
│ QQuery 71 │        38.26 / 39.06 ±0.48 / 39.72 ms │         38.60 / 39.55 ±0.73 / 40.64 ms │     no change │
│ QQuery 72 │ 1701.87 / 1807.71 ±77.18 / 1900.87 ms │ 1760.36 / 1924.22 ±101.60 / 2041.89 ms │  1.06x slower │
│ QQuery 73 │           6.47 / 6.51 ±0.04 / 6.57 ms │            6.43 / 6.47 ±0.04 / 6.52 ms │     no change │
│ QQuery 74 │    284.50 / 299.93 ±12.21 / 321.10 ms │      306.06 / 313.83 ±6.51 / 322.12 ms │     no change │
│ QQuery 75 │     145.45 / 148.52 ±2.61 / 152.20 ms │      152.94 / 155.64 ±3.03 / 161.03 ms │     no change │
│ QQuery 76 │        37.28 / 37.85 ±0.75 / 39.33 ms │         38.27 / 39.91 ±2.46 / 44.79 ms │  1.05x slower │
│ QQuery 77 │        63.69 / 66.88 ±4.67 / 76.18 ms │         66.49 / 67.20 ±0.51 / 68.05 ms │     no change │
│ QQuery 78 │    289.83 / 307.54 ±12.58 / 325.83 ms │     314.71 / 331.42 ±12.86 / 353.25 ms │  1.08x slower │
│ QQuery 79 │        69.95 / 72.96 ±4.61 / 82.12 ms │         74.99 / 76.12 ±0.91 / 77.54 ms │     no change │
│ QQuery 80 │     104.47 / 107.12 ±2.05 / 110.17 ms │      106.02 / 107.94 ±1.31 / 110.04 ms │     no change │
│ QQuery 81 │        30.25 / 31.20 ±0.69 / 32.34 ms │         34.20 / 36.91 ±4.51 / 45.92 ms │  1.18x slower │
│ QQuery 82 │        18.43 / 18.78 ±0.31 / 19.32 ms │         20.15 / 20.78 ±0.40 / 21.23 ms │  1.11x slower │
│ QQuery 83 │        34.08 / 34.81 ±0.54 / 35.75 ms │         36.62 / 36.94 ±0.17 / 37.09 ms │  1.06x slower │
│ QQuery 84 │        32.77 / 34.29 ±2.37 / 39.00 ms │         32.92 / 34.07 ±1.05 / 35.43 ms │     no change │
│ QQuery 85 │      98.85 / 100.99 ±2.00 / 104.31 ms │      102.76 / 105.92 ±2.65 / 108.97 ms │     no change │
│ QQuery 86 │        25.65 / 26.11 ±0.38 / 26.71 ms │         27.01 / 27.52 ±0.33 / 27.99 ms │  1.05x slower │
│ QQuery 87 │        69.68 / 70.96 ±1.59 / 74.02 ms │         73.40 / 74.79 ±0.75 / 75.59 ms │  1.05x slower │
│ QQuery 88 │        63.44 / 63.60 ±0.10 / 63.72 ms │         64.49 / 65.44 ±0.68 / 66.26 ms │     no change │
│ QQuery 89 │        37.34 / 38.07 ±0.58 / 38.77 ms │         40.24 / 42.57 ±3.93 / 50.42 ms │  1.12x slower │
│ QQuery 90 │        17.41 / 17.81 ±0.69 / 19.20 ms │         18.67 / 18.88 ±0.16 / 19.05 ms │  1.06x slower │
│ QQuery 91 │        41.06 / 42.06 ±0.57 / 42.71 ms │         43.41 / 44.06 ±0.47 / 44.61 ms │     no change │
│ QQuery 92 │        30.16 / 33.21 ±3.73 / 40.53 ms │         32.85 / 33.93 ±0.97 / 35.53 ms │     no change │
│ QQuery 93 │        52.15 / 53.15 ±0.78 / 54.37 ms │         55.09 / 56.39 ±1.07 / 58.12 ms │  1.06x slower │
│ QQuery 94 │        42.26 / 42.64 ±0.35 / 43.04 ms │         43.08 / 44.68 ±2.09 / 48.75 ms │     no change │
│ QQuery 95 │        82.47 / 83.36 ±0.73 / 84.53 ms │         87.05 / 88.74 ±1.43 / 90.64 ms │  1.06x slower │
│ QQuery 96 │        25.19 / 26.57 ±2.40 / 31.36 ms │         25.62 / 25.89 ±0.21 / 26.26 ms │     no change │
│ QQuery 97 │        51.71 / 53.27 ±2.29 / 57.74 ms │         55.35 / 57.49 ±1.65 / 59.76 ms │  1.08x slower │
│ QQuery 98 │        39.80 / 40.46 ±0.37 / 40.87 ms │         42.10 / 42.24 ±0.17 / 42.57 ms │     no change │
│ QQuery 99 │        59.51 / 60.08 ±0.44 / 60.59 ms │         60.92 / 61.73 ±0.54 / 62.46 ms │     no change │
└───────────┴───────────────────────────────────────┴────────────────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ Benchmark Summary                          ┃            ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
│ Total Time (HEAD)                          │  9882.31ms │
│ Total Time (codex_dict-regex-suite-gate)   │ 10242.28ms │
│ Average Time (HEAD)                        │    99.82ms │
│ Average Time (codex_dict-regex-suite-gate) │   103.46ms │
│ Queries Faster                             │          4 │
│ Queries Slower                             │         24 │
│ Queries with No Change                     │         71 │
│ Queries with Failure                       │          0 │
└────────────────────────────────────────────┴────────────┘

Memory Pool Peaks

Peak MemoryPool reservation per query — what DataFusion's accounting believes it reserved. Recorded only for benchmarks that write a results JSON (the dfbench suites, and the suites bench.sh runs through the Criterion SQL harness since #25644), and only under a memory limit: DATAFUSION_RUNTIME_MEMORY_LIMIT, or one the suite sets itself.

Base: 73e0b03 (merge-base) | Changed: codex/dict-regex-suite-gate

tpcds — tpcds_sf1

Query Base Changed Change
Query 1 135.7 KiB 135.7 KiB +0.0%
Query 2 80.1 MiB 100.1 MiB +24.9%
Query 3 1.7 MiB 2.3 MiB +39.7%
Query 4 85.5 MiB 85.5 MiB -0.0%
Query 5 12.5 MiB 13.0 MiB +4.1%
Query 6 4.7 MiB 4.4 MiB -4.9%
Query 7 3.7 MiB 3.6 MiB -2.6%
Query 8 2.0 MiB 2.0 MiB +0.4%
Query 9 32.1 KiB 32.1 KiB +0.0%
Query 10 2.0 MiB 2.0 MiB +0.0%
Query 11 58.1 MiB 58.1 MiB -0.0%
Query 12 114.4 MiB 114.4 MiB +0.0%
Query 13 13.0 MiB 13.0 MiB +0.0%
Query 14 170.9 MiB 170.9 MiB +0.0%
Query 15 4.3 MiB 4.2 MiB -2.6%
Query 16 118.6 KiB 118.6 KiB +0.0%
Query 17 39.6 MiB 39.5 MiB -0.2%
Query 18 21.2 MiB 21.2 MiB +0.0%
Query 19 2.3 MiB 2.2 MiB -7.6%
Query 20 114.6 MiB 114.6 MiB -0.0%
Query 21 4.0 MiB 4.4 MiB +11.3%
Query 22 61.8 MiB 61.8 MiB +0.0%
Query 23 211.4 MiB 211.6 MiB +0.1%
Query 24 36.4 MiB 36.4 MiB +0.0%
Query 25 85.5 MiB 85.5 MiB +0.0%
Query 26 3.6 MiB 3.8 MiB +4.5%
Query 27 929.6 KiB 929.6 KiB +0.0%
Query 28 1.5 MiB 1.2 MiB -18.1%
Query 29 97.2 MiB 97.0 MiB -0.3%
Query 30 3.8 MiB 3.8 MiB +0.0%
Query 31 13.4 MiB 13.4 MiB +0.1%
Query 32 2.7 MiB 2.7 MiB +0.0%
Query 33 4.0 MiB 4.0 MiB -0.0%
Query 34 96.3 KiB 96.3 KiB +0.0%
Query 35 16.6 MiB 17.5 MiB +5.3%
Query 36 10.3 MiB 10.3 MiB +0.0%
Query 37 3.3 MiB 3.3 MiB +0.0%
Query 38 10.4 MiB 10.9 MiB +4.3%
Query 39 93.7 MiB 72.9 MiB -22.3%
Query 40 11.7 MiB 11.5 MiB -2.4%
Query 41 2.1 MiB 2.1 MiB +0.0%
Query 42 1.3 MiB 1.1 MiB -17.3%
Query 43 258.2 KiB 258.2 KiB +0.0%
Query 44 81.1 KiB 9.7 KiB -88.0%
Query 45 4.7 MiB 4.5 MiB -4.7%
Query 46 5.4 MiB 5.4 MiB +0.0%
Query 47 138.2 MiB 138.2 MiB +0.0%
Query 48 11.4 MiB 11.4 MiB -0.0%
Query 49 51.6 MiB 53.2 MiB +3.2%
Query 50 16.3 MiB 16.3 MiB +0.0%
Query 51 178.0 MiB 177.7 MiB -0.2%
Query 52 1.5 MiB 1.8 MiB +14.9%
Query 53 30.6 MiB 30.6 MiB +0.0%
Query 54 1.9 MiB 2.0 MiB +3.3%
Query 55 1.5 MiB 1.7 MiB +14.7%
Query 56 2.9 MiB 3.0 MiB +0.3%
Query 57 120.8 MiB 130.6 MiB +8.1%
Query 58 4.4 MiB 4.4 MiB +0.0%
Query 59 11.6 MiB 11.6 MiB +0.0%
Query 60 5.7 MiB 5.2 MiB -8.0%
Query 61 2.4 KiB 2.5 KiB +3.3%
Query 62 3.7 MiB 3.6 MiB -0.1%
Query 63 20.6 MiB 20.6 MiB -0.0%
Query 64 113.4 MiB 127.2 MiB +12.1%
Query 65 29.5 MiB 29.5 MiB -0.0%
Query 66 15.0 MiB 15.0 MiB +0.0%
Query 67 117.1 MiB 117.0 MiB -0.1%
Query 68 218.6 KiB 218.6 KiB +0.0%
Query 69 3.6 MiB 4.3 MiB +17.5%
Query 70 32.5 MiB 32.5 MiB +0.0%
Query 71 40.4 MiB 60.4 MiB +49.3%
Query 72 91.2 MiB 91.2 MiB +0.0%
Query 73 96.3 KiB 96.3 KiB +0.0%
Query 74 35.2 MiB 35.2 MiB -0.0%
Query 75 23.1 MiB 22.8 MiB -1.6%
Query 76 4.0 MiB 4.2 MiB +5.6%
Query 77 3.8 MiB 4.1 MiB +7.4%
Query 78 316.9 MiB 316.9 MiB +0.0%
Query 79 9.3 MiB 9.3 MiB -0.0%
Query 80 42.0 MiB 41.6 MiB -1.0%
Query 81 4.1 MiB 4.1 MiB +1.3%
Query 82 4.9 MiB 4.9 MiB +0.0%
Query 83 8.3 MiB 8.3 MiB +0.0%
Query 84 11.6 MiB 11.6 MiB +0.0%
Query 85 17.0 MiB 17.0 MiB +0.0%
Query 86 82.1 MiB 82.1 MiB -0.0%
Query 87 12.9 MiB 12.9 MiB +0.0%
Query 88 1.5 MiB 1.6 MiB +7.0%
Query 89 112.2 MiB 112.2 MiB -0.0%
Query 90 348.6 KiB 348.6 KiB +0.0%
Query 91 31.2 MiB 31.5 MiB +1.0%
Query 92 2.7 MiB 2.9 MiB +8.1%
Query 93 16.6 MiB 14.9 MiB -10.7%
Query 94 3.4 MiB 3.4 MiB +0.0%
Query 95 19.4 MiB 19.4 MiB +0.0%
Query 96 224.7 KiB 224.7 KiB +0.0%
Query 97 33.1 MiB 33.1 MiB -0.2%
Query 98 114.7 MiB 114.7 MiB -0.0%
Query 99 1.9 MiB 1.9 MiB +0.4%

Pool accounting vs. process RSS

Max pool peak is the largest reservation any single query in the run reached; peak RSS covers the whole invocation, including data loading and allocator retention, and the two high-water marks need not coincide in time. The gap is therefore an upper bound on what the pool did not account for, not a measurement of it.

Benchmark Side Max pool peak Peak RSS Gap RSS / pool
tpcds base (73e0b03 (merge-base)) 316.9 MiB 2.1 GiB 1.8 GiB 6.7×
tpcds changed (codex/dict-regex-suite-gate) 316.9 MiB 2.0 GiB 1.7 GiB 6.5×
Resource Usage

tpcds — base (merge-base)

Metric Value
Wall time 50.0s
Peak memory 2.1 GiB
Avg memory 1.4 GiB
CPU user 202.7s
CPU sys 6.1s
Peak spill 0 B

tpcds — branch

Metric Value
Wall time 55.0s
Peak memory 2.0 GiB
Avg memory 1.3 GiB
CPU user 211.3s
CPU sys 6.3s
Peak spill 0 B

File an issue against this benchmark runner

@adriangbot

Copy link
Copy Markdown

🤖 Benchmark completed (GKE) | trigger

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

Comparing codex/dict-regex-suite-gate (7081eb6) to 73e0b03 (merge-base) diff

Run configuration
run benchmark clickbench_partitioned
env:
  DATAFUSION_EXECUTION_PARQUET_ENABLE_RLE_TO_DICTIONARY: "true"
  DATAFUSION_RUNTIME_MEMORY_LIMIT: "32G"
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

Comparing HEAD and codex_dict-regex-suite-gate
--------------------
Benchmark clickbench_partitioned.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query     ┃       HEAD ┃ codex_dict-regex-suite-gate ┃        Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 0  │    1.47 ms │                     1.33 ms │ +1.11x faster │
│ QQuery 1  │   12.21 ms │                    12.17 ms │     no change │
│ QQuery 2  │   35.77 ms │                    35.75 ms │     no change │
│ QQuery 3  │   33.26 ms │                    32.93 ms │     no change │
│ QQuery 4  │  285.01 ms │                   286.05 ms │     no change │
│ QQuery 5  │  848.42 ms │                   844.93 ms │     no change │
│ QQuery 6  │    1.36 ms │                     1.51 ms │  1.11x slower │
│ QQuery 7  │   14.08 ms │                    14.17 ms │     no change │
│ QQuery 8  │  407.32 ms │                   400.60 ms │     no change │
│ QQuery 9  │  581.52 ms │                   552.72 ms │     no change │
│ QQuery 10 │  207.04 ms │                   207.03 ms │     no change │
│ QQuery 11 │  219.71 ms │                   219.07 ms │     no change │
│ QQuery 12 │  848.19 ms │                   858.39 ms │     no change │
│ QQuery 13 │ 1177.84 ms │                  1192.17 ms │     no change │
│ QQuery 14 │  981.90 ms │                   947.23 ms │     no change │
│ QQuery 15 │  337.47 ms │                   362.37 ms │  1.07x slower │
│ QQuery 16 │ 1509.92 ms │                  1532.39 ms │     no change │
│ QQuery 17 │ 1454.61 ms │                  1427.52 ms │     no change │
│ QQuery 18 │ 2370.97 ms │                  2367.00 ms │     no change │
│ QQuery 19 │   29.72 ms │                    28.73 ms │     no change │
│ QQuery 20 │ 1122.99 ms │                  1107.02 ms │     no change │
│ QQuery 21 │ 1443.23 ms │                  1475.38 ms │     no change │
│ QQuery 22 │ 3430.36 ms │                  3389.91 ms │     no change │
│ QQuery 23 │ 9738.03 ms │                  9803.86 ms │     no change │
│ QQuery 24 │  102.22 ms │                   101.17 ms │     no change │
│ QQuery 25 │  364.23 ms │                   361.80 ms │     no change │
│ QQuery 26 │  107.69 ms │                   101.46 ms │ +1.06x faster │
│ QQuery 27 │ 1227.58 ms │                  1231.32 ms │     no change │
│ QQuery 28 │ 2717.34 ms │                  2650.13 ms │     no change │
│ QQuery 29 │   40.17 ms │                    38.91 ms │     no change │
│ QQuery 30 │  594.88 ms │                   588.79 ms │     no change │
│ QQuery 31 │  575.39 ms │                   569.56 ms │     no change │
│ QQuery 32 │ 1165.57 ms │                  1132.47 ms │     no change │
│ QQuery 33 │ 3963.59 ms │                  3687.65 ms │ +1.07x faster │
│ QQuery 34 │ 3857.50 ms │                  3727.02 ms │     no change │
│ QQuery 35 │  376.07 ms │                   377.80 ms │     no change │
│ QQuery 36 │  158.89 ms │                   160.45 ms │     no change │
│ QQuery 37 │  101.66 ms │                    98.98 ms │     no change │
│ QQuery 38 │   89.85 ms │                    86.22 ms │     no change │
│ QQuery 39 │  370.54 ms │                   361.65 ms │     no change │
│ QQuery 40 │   15.45 ms │                    14.30 ms │ +1.08x faster │
│ QQuery 41 │   14.86 ms │                    13.67 ms │ +1.09x faster │
│ QQuery 42 │   13.53 ms │                    13.19 ms │     no change │
└───────────┴────────────┴─────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ Benchmark Summary                          ┃            ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
│ Total Time (HEAD)                          │ 42949.39ms │
│ Total Time (codex_dict-regex-suite-gate)   │ 42416.78ms │
│ Average Time (HEAD)                        │   998.82ms │
│ Average Time (codex_dict-regex-suite-gate) │   986.44ms │
│ Queries Faster                             │          5 │
│ Queries Slower                             │          2 │
│ Queries with No Change                     │         36 │
│ Queries with Failure                       │          0 │
└────────────────────────────────────────────┴────────────┘

Distribution per query (min / mean ±stddev / max):

Comparing HEAD and codex_dict-regex-suite-gate
--------------------
Benchmark clickbench_partitioned.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query     ┃                                    HEAD ┃              codex_dict-regex-suite-gate ┃        Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 0  │             1.47 / 2.18 ±1.23 / 4.63 ms │              1.33 / 2.07 ±1.18 / 4.41 ms │ +1.06x faster │
│ QQuery 1  │          12.21 / 12.47 ±0.16 / 12.67 ms │           12.17 / 12.50 ±0.17 / 12.62 ms │     no change │
│ QQuery 2  │          35.77 / 36.73 ±1.37 / 39.42 ms │           35.75 / 36.00 ±0.25 / 36.47 ms │     no change │
│ QQuery 3  │          33.26 / 34.08 ±0.81 / 35.32 ms │           32.93 / 33.13 ±0.14 / 33.29 ms │     no change │
│ QQuery 4  │       285.01 / 293.11 ±4.21 / 297.05 ms │        286.05 / 289.33 ±4.54 / 298.34 ms │     no change │
│ QQuery 5  │      848.42 / 871.41 ±13.88 / 889.17 ms │       844.93 / 864.35 ±20.99 / 895.26 ms │     no change │
│ QQuery 6  │             1.36 / 1.55 ±0.22 / 1.98 ms │              1.51 / 1.70 ±0.20 / 2.07 ms │  1.09x slower │
│ QQuery 7  │          14.08 / 14.16 ±0.05 / 14.24 ms │           14.17 / 14.28 ±0.09 / 14.41 ms │     no change │
│ QQuery 8  │       407.32 / 417.10 ±6.56 / 425.35 ms │        400.60 / 408.34 ±6.37 / 415.95 ms │     no change │
│ QQuery 9  │       581.52 / 591.43 ±9.55 / 607.72 ms │       552.72 / 577.90 ±19.23 / 600.22 ms │     no change │
│ QQuery 10 │       207.04 / 211.16 ±2.44 / 214.69 ms │        207.03 / 209.37 ±1.66 / 211.31 ms │     no change │
│ QQuery 11 │       219.71 / 221.72 ±1.68 / 224.38 ms │        219.07 / 220.61 ±1.01 / 222.03 ms │     no change │
│ QQuery 12 │      848.19 / 889.58 ±22.34 / 915.47 ms │       858.39 / 877.00 ±13.94 / 898.41 ms │     no change │
│ QQuery 13 │   1177.84 / 1268.16 ±56.09 / 1338.23 ms │    1192.17 / 1225.39 ±21.65 / 1249.07 ms │     no change │
│ QQuery 14 │      981.90 / 993.73 ±9.32 / 1005.26 ms │      947.23 / 986.92 ±23.22 / 1010.36 ms │     no change │
│ QQuery 15 │      337.47 / 361.69 ±14.82 / 380.90 ms │       362.37 / 372.85 ±14.05 / 399.95 ms │     no change │
│ QQuery 16 │   1509.92 / 1537.95 ±26.67 / 1587.85 ms │    1532.39 / 1569.59 ±28.14 / 1609.64 ms │     no change │
│ QQuery 17 │   1454.61 / 1498.85 ±34.17 / 1547.83 ms │    1427.52 / 1475.89 ±33.84 / 1526.50 ms │     no change │
│ QQuery 18 │   2370.97 / 2400.71 ±27.31 / 2444.43 ms │    2367.00 / 2399.63 ±23.85 / 2430.85 ms │     no change │
│ QQuery 19 │         29.72 / 38.90 ±16.94 / 72.76 ms │           28.73 / 29.44 ±1.16 / 31.74 ms │ +1.32x faster │
│ QQuery 20 │    1122.99 / 1133.33 ±6.67 / 1143.25 ms │    1107.02 / 1129.17 ±15.23 / 1147.37 ms │     no change │
│ QQuery 21 │   1443.23 / 1455.52 ±13.33 / 1473.13 ms │    1475.38 / 1490.62 ±11.65 / 1504.56 ms │     no change │
│ QQuery 22 │   3430.36 / 3446.54 ±11.12 / 3463.71 ms │    3389.91 / 3443.07 ±39.85 / 3512.38 ms │     no change │
│ QQuery 23 │ 9738.03 / 9937.26 ±205.89 / 10251.07 ms │ 9803.86 / 10011.84 ±198.59 / 10331.08 ms │     no change │
│ QQuery 24 │       102.22 / 104.16 ±1.95 / 107.78 ms │        101.17 / 102.84 ±1.93 / 106.34 ms │     no change │
│ QQuery 25 │       364.23 / 372.53 ±7.29 / 385.83 ms │        361.80 / 368.04 ±6.45 / 379.35 ms │     no change │
│ QQuery 26 │       107.69 / 108.25 ±0.35 / 108.70 ms │        101.46 / 103.02 ±1.64 / 105.44 ms │     no change │
│ QQuery 27 │   1227.58 / 1262.34 ±41.79 / 1343.47 ms │    1231.32 / 1250.05 ±18.67 / 1284.93 ms │     no change │
│ QQuery 28 │   2717.34 / 2747.21 ±29.77 / 2802.23 ms │    2650.13 / 2696.31 ±39.36 / 2757.83 ms │     no change │
│ QQuery 29 │          40.17 / 53.54 ±7.48 / 60.65 ms │           38.91 / 39.00 ±0.09 / 39.17 ms │ +1.37x faster │
│ QQuery 30 │      594.88 / 605.94 ±10.91 / 626.23 ms │        588.79 / 595.92 ±5.52 / 603.43 ms │     no change │
│ QQuery 31 │      575.39 / 593.07 ±15.43 / 618.82 ms │       569.56 / 585.51 ±11.75 / 604.21 ms │     no change │
│ QQuery 32 │   1165.57 / 1236.92 ±87.73 / 1409.52 ms │   1132.47 / 1234.76 ±129.81 / 1485.28 ms │     no change │
│ QQuery 33 │  3963.59 / 4065.85 ±112.42 / 4259.56 ms │    3687.65 / 3856.38 ±86.50 / 3925.76 ms │ +1.05x faster │
│ QQuery 34 │  3857.50 / 4131.84 ±151.71 / 4317.49 ms │   3727.02 / 3860.01 ±110.14 / 4048.98 ms │ +1.07x faster │
│ QQuery 35 │      376.07 / 406.13 ±39.68 / 484.34 ms │       377.80 / 388.58 ±11.01 / 406.19 ms │     no change │
│ QQuery 36 │      158.89 / 177.66 ±16.03 / 206.20 ms │       160.45 / 172.64 ±14.53 / 199.97 ms │     no change │
│ QQuery 37 │      101.66 / 110.80 ±10.29 / 129.93 ms │         98.98 / 111.20 ±9.94 / 127.98 ms │     no change │
│ QQuery 38 │          89.85 / 91.13 ±1.04 / 92.89 ms │           86.22 / 90.19 ±3.74 / 96.18 ms │     no change │
│ QQuery 39 │      370.54 / 386.06 ±15.83 / 413.72 ms │       361.65 / 369.87 ±10.54 / 390.56 ms │     no change │
│ QQuery 40 │          15.45 / 16.80 ±0.77 / 17.61 ms │           14.30 / 17.92 ±4.26 / 24.74 ms │  1.07x slower │
│ QQuery 41 │          14.86 / 15.13 ±0.16 / 15.30 ms │           13.67 / 14.08 ±0.60 / 15.24 ms │ +1.07x faster │
│ QQuery 42 │          13.53 / 13.73 ±0.12 / 13.87 ms │           13.19 / 13.39 ±0.14 / 13.54 ms │     no change │
└───────────┴─────────────────────────────────────────┴──────────────────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ Benchmark Summary                          ┃            ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
│ Total Time (HEAD)                          │ 44168.39ms │
│ Total Time (codex_dict-regex-suite-gate)   │ 43550.70ms │
│ Average Time (HEAD)                        │  1027.17ms │
│ Average Time (codex_dict-regex-suite-gate) │  1012.81ms │
│ Queries Faster                             │          6 │
│ Queries Slower                             │          2 │
│ Queries with No Change                     │         35 │
│ Queries with Failure                       │          0 │
└────────────────────────────────────────────┴────────────┘

Memory Pool Peaks

Peak MemoryPool reservation per query — what DataFusion's accounting believes it reserved. Recorded only for benchmarks that write a results JSON (the dfbench suites, and the suites bench.sh runs through the Criterion SQL harness since #25644), and only under a memory limit: DATAFUSION_RUNTIME_MEMORY_LIMIT, or one the suite sets itself.

Base: 73e0b03 (merge-base) | Changed: codex/dict-regex-suite-gate

clickbench_partitioned

Query Base Changed Change
Query 0 0 B 0 B 0.0%
Query 1 104 B 104 B +0.0%
Query 2 936 B 936 B +0.0%
Query 3 312 B 312 B +0.0%
Query 4 829.9 MiB 843.8 MiB +1.7%
Query 5 1.4 GiB 1.4 GiB -2.6%
Query 6 0 B 0 B 0.0%
Query 7 70.2 MiB 60.3 MiB -14.0%
Query 8 947.9 MiB 946.9 MiB -0.1%
Query 9 594.2 MiB 552.0 MiB -7.1%
Query 10 71.9 MiB 72.2 MiB +0.4%
Query 11 75.2 MiB 79.8 MiB +6.1%
Query 12 1.5 GiB 1.5 GiB -1.8%
Query 13 1.5 GiB 1.5 GiB +0.2%
Query 14 1.6 GiB 1.6 GiB +1.1%
Query 15 1.2 GiB 1.2 GiB +6.8%
Query 16 3.2 GiB 3.3 GiB +0.6%
Query 17 3.3 GiB 3.4 GiB +4.0%
Query 18 7.4 GiB 7.4 GiB -0.1%
Query 19 0 B 0 B 0.0%
Query 20 104 B 104 B +0.0%
Query 21 1.6 MiB 1.4 MiB -13.3%
Query 22 2.3 MiB 2.5 MiB +5.6%
Query 23 13.1 MiB 11.1 MiB -15.1%
Query 24 7.0 MiB 6.8 MiB -2.0%
Query 25 7.6 MiB 8.1 MiB +6.9%
Query 26 6.6 MiB 7.5 MiB +13.1%
Query 27 2.8 MiB 2.5 MiB -11.7%
Query 28 1.9 GiB 1.8 GiB -5.4%
Query 29 624 B 624 B +0.0%
Query 30 697.3 MiB 707.4 MiB +1.4%
Query 31 1.5 GiB 1.5 GiB +3.2%
Query 32 7.1 GiB 7.1 GiB +0.0%
Query 33 9.6 GiB 9.4 GiB -2.4%
Query 34 9.6 GiB 9.6 GiB -0.2%
Query 35 671.3 MiB 670.4 MiB -0.1%
Query 36 100.1 MiB 100.1 MiB +0.0%
Query 37 8.2 MiB 8.4 MiB +3.0%
Query 38 5.1 MiB 4.8 MiB -4.8%
Query 39 213.9 MiB 213.9 MiB +0.0%
Query 40 2.5 MiB 2.3 MiB -9.4%
Query 41 3.3 MiB 3.3 MiB +0.0%
Query 42 1.7 MiB 1.8 MiB +7.4%

Pool accounting vs. process RSS

Max pool peak is the largest reservation any single query in the run reached; peak RSS covers the whole invocation, including data loading and allocator retention, and the two high-water marks need not coincide in time. The gap is therefore an upper bound on what the pool did not account for, not a measurement of it.

Benchmark Side Max pool peak Peak RSS Gap RSS / pool
clickbench_partitioned base (73e0b03 (merge-base)) 9.6 GiB 12.2 GiB 2.6 GiB 1.3×
clickbench_partitioned changed (codex/dict-regex-suite-gate) 9.6 GiB 12.5 GiB 2.9 GiB 1.3×
Resource Usage

clickbench_partitioned — base (merge-base)

Metric Value
Wall time 225.1s
Peak memory 12.2 GiB
Avg memory 5.1 GiB
CPU user 2094.8s
CPU sys 153.7s
Peak spill 0 B

clickbench_partitioned — branch

Metric Value
Wall time 220.1s
Peak memory 12.5 GiB
Avg memory 5.2 GiB
CPU user 2078.3s
CPU sys 138.9s
Peak spill 0 B

File an issue against this benchmark runner

@Rich-T-kid

Copy link
Copy Markdown
Contributor Author

Hosted benchmark result: this does not provide evidence for the literal-regex optimization.

None of the required suites executes the changed binary regex operators:

  • TPC-H contains no regex predicates. Total time was 760.79 ms -> 742.59 ms, with one unrelated query classified faster.
  • TPC-DS contains no regex predicates. Total time was 9530.21 ms -> 9874.84 ms, with 1 unrelated query faster and 31 unrelated queries slower.
  • Standard partitioned ClickBench does not use the changed operators. Its regex-related SQL calls REGEXP_REPLACE, which is a different UDF. Total time was 42949.39 ms -> 42416.78 ms, with 5 unrelated queries faster and 2 unrelated queries slower.

Because no benchmark query enters this code path, none of the timing movement can be attributed to this patch. There is no clear evidence of an end-to-end speedup in the required suites, so I am closing the draft.

@Rich-T-kid Rich-T-kid closed this Nov 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core Core DataFusion crate optimizer Optimizer rules physical-expr Changes to the physical-expr crates

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants