Skip to content

perf: preserve dictionary encoding in replace - #27449

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

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

Conversation

@Rich-T-kid

Copy link
Copy Markdown
Contributor

Which issue does this PR close?\n\n- Part of #20935.\n\n## Rationale for this change\n\nreplace currently materializes dictionary-encoded strings before applying scalar replacements. Low-cardinality inputs therefore repeat the same replacement work for every key occurrence.\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 the haystack dictionary when the replacement arguments are scalar.\n- Apply replacement to dictionary values and reuse the input keys.\n- Compact oversized retained dictionaries before replacement.\n- Fall back to decoded arrays for array-valued replacement arguments.\n- Add coercion, null, scalar, fallback, and retained-dictionary 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-functions string::replace --lib\n- cargo clippy -p datafusion-functions --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 values are unchanged. Dictionary input with scalar replacement arguments now returns a dictionary array with the same key type.

@github-actions github-actions Bot added the functions Changes to functions implementation label 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-c6887503019-5124-rj7fp 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-replace-suite-gate (039b1a0) 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-c6887503019-5125-sd7vp 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-replace-suite-gate (039b1a0) 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-replace-suite-gate (039b1a0) 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-replace-suite-gate
--------------------
Benchmark tpch_sf1.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query     ┃     HEAD ┃ codex_dict-replace-suite-gate ┃        Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 1  │ 42.51 ms │                      41.67 ms │     no change │
│ QQuery 2  │ 20.70 ms │                      20.71 ms │     no change │
│ QQuery 3  │ 30.59 ms │                      31.63 ms │     no change │
│ QQuery 4  │ 18.98 ms │                      19.28 ms │     no change │
│ QQuery 5  │ 39.34 ms │                      40.31 ms │     no change │
│ QQuery 6  │ 15.25 ms │                      14.96 ms │     no change │
│ QQuery 7  │ 48.00 ms │                      46.66 ms │     no change │
│ QQuery 8  │ 44.72 ms │                      42.62 ms │     no change │
│ QQuery 9  │ 56.04 ms │                      53.70 ms │     no change │
│ QQuery 10 │ 66.32 ms │                      65.32 ms │     no change │
│ QQuery 11 │ 16.12 ms │                      15.40 ms │     no change │
│ QQuery 12 │ 22.08 ms │                      22.57 ms │     no change │
│ QQuery 13 │ 55.80 ms │                      52.30 ms │ +1.07x faster │
│ QQuery 14 │ 26.68 ms │                      25.02 ms │ +1.07x faster │
│ QQuery 15 │ 35.07 ms │                      33.33 ms │     no change │
│ QQuery 16 │ 14.70 ms │                      15.35 ms │     no change │
│ QQuery 17 │ 81.55 ms │                      84.95 ms │     no change │
│ QQuery 18 │ 73.13 ms │                      73.52 ms │     no change │
│ QQuery 19 │ 31.78 ms │                      31.02 ms │     no change │
│ QQuery 20 │ 37.75 ms │                      36.69 ms │     no change │
│ QQuery 21 │ 62.02 ms │                      61.76 ms │     no change │
│ QQuery 22 │ 17.81 ms │                      17.57 ms │     no change │
└───────────┴──────────┴───────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━┓
┃ Benchmark Summary                            ┃          ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━┩
│ Total Time (HEAD)                            │ 856.94ms │
│ Total Time (codex_dict-replace-suite-gate)   │ 846.32ms │
│ Average Time (HEAD)                          │  38.95ms │
│ Average Time (codex_dict-replace-suite-gate) │  38.47ms │
│ Queries Faster                               │        2 │
│ Queries Slower                               │        0 │
│ Queries with No Change                       │       20 │
│ Queries with Failure                         │        0 │
└──────────────────────────────────────────────┴──────────┘

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

Comparing HEAD and codex_dict-replace-suite-gate
--------------------
Benchmark tpch_sf1.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query     ┃                           HEAD ┃  codex_dict-replace-suite-gate ┃        Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 1  │ 42.51 / 43.83 ±1.09 / 45.32 ms │ 41.67 / 43.23 ±1.26 / 44.65 ms │     no change │
│ QQuery 2  │ 20.70 / 20.82 ±0.14 / 21.04 ms │ 20.71 / 21.01 ±0.27 / 21.47 ms │     no change │
│ QQuery 3  │ 30.59 / 30.88 ±0.17 / 31.10 ms │ 31.63 / 32.01 ±0.25 / 32.30 ms │     no change │
│ QQuery 4  │ 18.98 / 19.45 ±0.82 / 21.09 ms │ 19.28 / 20.72 ±1.16 / 22.35 ms │  1.07x slower │
│ QQuery 5  │ 39.34 / 39.90 ±0.52 / 40.85 ms │ 40.31 / 41.69 ±1.41 / 43.71 ms │     no change │
│ QQuery 6  │ 15.25 / 15.61 ±0.48 / 16.55 ms │ 14.96 / 15.30 ±0.25 / 15.59 ms │     no change │
│ QQuery 7  │ 48.00 / 51.09 ±2.42 / 55.00 ms │ 46.66 / 48.99 ±2.01 / 52.50 ms │     no change │
│ QQuery 8  │ 44.72 / 45.06 ±0.42 / 45.86 ms │ 42.62 / 44.11 ±1.22 / 46.33 ms │     no change │
│ QQuery 9  │ 56.04 / 57.64 ±1.32 / 59.25 ms │ 53.70 / 55.62 ±2.04 / 58.40 ms │     no change │
│ QQuery 10 │ 66.32 / 68.73 ±2.62 / 73.80 ms │ 65.32 / 70.37 ±3.62 / 74.58 ms │     no change │
│ QQuery 11 │ 16.12 / 17.78 ±3.19 / 24.15 ms │ 15.40 / 16.56 ±1.71 / 19.91 ms │ +1.07x faster │
│ QQuery 12 │ 22.08 / 22.87 ±0.52 / 23.67 ms │ 22.57 / 23.07 ±0.40 / 23.74 ms │     no change │
│ QQuery 13 │ 55.80 / 56.74 ±0.81 / 58.16 ms │ 52.30 / 53.86 ±1.11 / 55.59 ms │ +1.05x faster │
│ QQuery 14 │ 26.68 / 27.53 ±1.09 / 29.58 ms │ 25.02 / 25.28 ±0.17 / 25.52 ms │ +1.09x faster │
│ QQuery 15 │ 35.07 / 37.07 ±1.34 / 39.21 ms │ 33.33 / 34.12 ±0.65 / 35.11 ms │ +1.09x faster │
│ QQuery 16 │ 14.70 / 14.91 ±0.13 / 15.09 ms │ 15.35 / 15.58 ±0.18 / 15.83 ms │     no change │
│ QQuery 17 │ 81.55 / 85.48 ±3.26 / 89.98 ms │ 84.95 / 87.27 ±2.27 / 91.16 ms │     no change │
│ QQuery 18 │ 73.13 / 74.16 ±0.98 / 75.44 ms │ 73.52 / 74.47 ±0.84 / 75.50 ms │     no change │
│ QQuery 19 │ 31.78 / 32.49 ±0.48 / 33.06 ms │ 31.02 / 31.44 ±0.59 / 32.59 ms │     no change │
│ QQuery 20 │ 37.75 / 39.22 ±2.36 / 43.90 ms │ 36.69 / 38.30 ±0.93 / 39.19 ms │     no change │
│ QQuery 21 │ 62.02 / 64.34 ±1.61 / 66.42 ms │ 61.76 / 63.51 ±1.16 / 65.20 ms │     no change │
│ QQuery 22 │ 17.81 / 18.13 ±0.24 / 18.51 ms │ 17.57 / 17.74 ±0.11 / 17.89 ms │     no change │
└───────────┴────────────────────────────────┴────────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━┓
┃ Benchmark Summary                            ┃          ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━┩
│ Total Time (HEAD)                            │ 883.68ms │
│ Total Time (codex_dict-replace-suite-gate)   │ 874.24ms │
│ Average Time (HEAD)                          │  40.17ms │
│ Average Time (codex_dict-replace-suite-gate) │  39.74ms │
│ Queries Faster                               │        4 │
│ Queries Slower                               │        1 │
│ Queries with No Change                       │       17 │
│ 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-replace-suite-gate

tpch — tpch_sf1

Query Base Changed Change
Query 1 40.1 MiB 30.1 MiB -25.0%
Query 2 23.1 MiB 23.1 MiB +0.0%
Query 3 10.6 MiB 10.9 MiB +2.4%
Query 4 32.2 MiB 22.3 MiB -30.9%
Query 5 42.8 MiB 42.7 MiB -0.0%
Query 6 832 B 832 B +0.0%
Query 7 104.0 MiB 102.0 MiB -2.0%
Query 8 39.8 MiB 39.8 MiB +0.0%
Query 9 141.9 MiB 142.4 MiB +0.3%
Query 10 53.3 MiB 53.3 MiB +0.0%
Query 11 61.7 MiB 51.9 MiB -15.9%
Query 12 22.5 MiB 22.5 MiB +0.2%
Query 13 62.3 MiB 72.3 MiB +16.0%
Query 14 6.7 MiB 6.7 MiB +0.0%
Query 15 12.7 MiB 13.0 MiB +2.3%
Query 16 43.5 MiB 42.9 MiB -1.4%
Query 17 150.3 MiB 150.3 MiB +0.0%
Query 18 108.0 MiB 103.6 MiB -4.0%
Query 19 209.7 KiB 209.7 KiB +0.0%
Query 20 61.3 MiB 60.1 MiB -2.0%
Query 21 36.0 MiB 35.9 MiB -0.4%
Query 22 32.1 MiB 32.0 MiB -0.5%

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 947.3 MiB 7.3×
tpch changed (codex/dict-replace-suite-gate) 150.3 MiB 1.1 GiB 1002.9 MiB 7.7×
Resource Usage

tpch — base (merge-base)

Metric Value
Wall time 5.0s
Peak memory 1.1 GiB
Avg memory 617.7 MiB
CPU user 21.0s
CPU sys 1.7s
Peak spill 0 B

tpch — branch

Metric Value
Wall time 5.0s
Peak memory 1.1 GiB
Avg memory 668.0 MiB
CPU user 21.1s
CPU sys 1.9s
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-replace-suite-gate (039b1a0) 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-replace-suite-gate
--------------------
Benchmark tpcds_sf1.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┓
┃ Query     ┃       HEAD ┃ codex_dict-replace-suite-gate ┃       Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━┩
│ QQuery 1  │    5.95 ms │                       5.90 ms │    no change │
│ QQuery 2  │   77.72 ms │                      77.68 ms │    no change │
│ QQuery 3  │   29.53 ms │                      29.30 ms │    no change │
│ QQuery 4  │  610.13 ms │                     595.95 ms │    no change │
│ QQuery 5  │   52.45 ms │                      51.45 ms │    no change │
│ QQuery 6  │   35.10 ms │                      34.52 ms │    no change │
│ QQuery 7  │   73.05 ms │                      72.81 ms │    no change │
│ QQuery 8  │   40.15 ms │                      39.42 ms │    no change │
│ QQuery 9  │   54.30 ms │                      52.10 ms │    no change │
│ QQuery 10 │   60.40 ms │                      59.27 ms │    no change │
│ QQuery 11 │  404.92 ms │                     391.99 ms │    no change │
│ QQuery 12 │   27.27 ms │                      26.97 ms │    no change │
│ QQuery 13 │  115.63 ms │                     114.21 ms │    no change │
│ QQuery 14 │  386.55 ms │                     381.61 ms │    no change │
│ QQuery 15 │   57.35 ms │                      57.04 ms │    no change │
│ QQuery 16 │    6.86 ms │                       6.52 ms │    no change │
│ QQuery 17 │   80.58 ms │                      80.08 ms │    no change │
│ QQuery 18 │  111.31 ms │                     109.98 ms │    no change │
│ QQuery 19 │   42.57 ms │                      42.75 ms │    no change │
│ QQuery 20 │   32.42 ms │                      32.17 ms │    no change │
│ QQuery 21 │   18.09 ms │                      17.70 ms │    no change │
│ QQuery 22 │   66.83 ms │                      64.30 ms │    no change │
│ QQuery 23 │  319.47 ms │                     317.85 ms │    no change │
│ QQuery 24 │  207.99 ms │                     204.03 ms │    no change │
│ QQuery 25 │  108.09 ms │                     106.53 ms │    no change │
│ QQuery 26 │   47.03 ms │                      46.14 ms │    no change │
│ QQuery 27 │    5.93 ms │                       5.88 ms │    no change │
│ QQuery 28 │   57.41 ms │                      57.14 ms │    no change │
│ QQuery 29 │   96.72 ms │                      96.58 ms │    no change │
│ QQuery 30 │   39.23 ms │                      38.74 ms │    no change │
│ QQuery 31 │  113.24 ms │                     112.02 ms │    no change │
│ QQuery 32 │   21.82 ms │                      21.32 ms │    no change │
│ QQuery 33 │   38.25 ms │                      38.35 ms │    no change │
│ QQuery 34 │    6.28 ms │                       6.20 ms │    no change │
│ QQuery 35 │   74.45 ms │                      75.55 ms │    no change │
│ QQuery 36 │    6.55 ms │                       6.60 ms │    no change │
│ QQuery 37 │    8.30 ms │                       8.38 ms │    no change │
│ QQuery 38 │   68.83 ms │                      68.48 ms │    no change │
│ QQuery 39 │   78.03 ms │                      76.95 ms │    no change │
│ QQuery 40 │   24.58 ms │                      24.97 ms │    no change │
│ QQuery 41 │   15.37 ms │                      15.25 ms │    no change │
│ QQuery 42 │   24.52 ms │                      24.27 ms │    no change │
│ QQuery 43 │    5.44 ms │                       5.62 ms │    no change │
│ QQuery 44 │    6.26 ms │                       6.04 ms │    no change │
│ QQuery 45 │   38.87 ms │                      38.62 ms │    no change │
│ QQuery 46 │   12.38 ms │                      12.47 ms │    no change │
│ QQuery 47 │  225.40 ms │                     222.59 ms │    no change │
│ QQuery 48 │   92.98 ms │                      93.14 ms │    no change │
│ QQuery 49 │   71.87 ms │                      71.44 ms │    no change │
│ QQuery 50 │   59.44 ms │                      58.16 ms │    no change │
│ QQuery 51 │   95.20 ms │                      93.94 ms │    no change │
│ QQuery 52 │   24.90 ms │                      24.73 ms │    no change │
│ QQuery 53 │   30.19 ms │                      30.00 ms │    no change │
│ QQuery 54 │   54.62 ms │                      55.44 ms │    no change │
│ QQuery 55 │   24.34 ms │                      24.77 ms │    no change │
│ QQuery 56 │   39.54 ms │                      39.44 ms │    no change │
│ QQuery 57 │  157.55 ms │                     157.92 ms │    no change │
│ QQuery 58 │  105.48 ms │                     106.12 ms │    no change │
│ QQuery 59 │  108.50 ms │                     109.57 ms │    no change │
│ QQuery 60 │   39.63 ms │                      40.37 ms │    no change │
│ QQuery 61 │    9.81 ms │                       9.82 ms │    no change │
│ QQuery 62 │   39.42 ms │                      38.91 ms │    no change │
│ QQuery 63 │   30.38 ms │                      30.48 ms │    no change │
│ QQuery 64 │  372.75 ms │                     374.07 ms │    no change │
│ QQuery 65 │   74.92 ms │                      74.23 ms │    no change │
│ QQuery 66 │   75.76 ms │                      75.70 ms │    no change │
│ QQuery 67 │  204.63 ms │                     205.93 ms │    no change │
│ QQuery 68 │    7.09 ms │                       7.09 ms │    no change │
│ QQuery 69 │   55.16 ms │                      56.18 ms │    no change │
│ QQuery 70 │   98.81 ms │                      98.13 ms │    no change │
│ QQuery 71 │   36.13 ms │                      35.88 ms │    no change │
│ QQuery 72 │ 1536.22 ms │                    1661.93 ms │ 1.08x slower │
│ QQuery 73 │    5.85 ms │                       5.87 ms │    no change │
│ QQuery 74 │  266.08 ms │                     259.52 ms │    no change │
│ QQuery 75 │  143.82 ms │                     141.63 ms │    no change │
│ QQuery 76 │   35.35 ms │                      35.07 ms │    no change │
│ QQuery 77 │   61.27 ms │                      61.14 ms │    no change │
│ QQuery 78 │  281.22 ms │                     282.62 ms │    no change │
│ QQuery 79 │   69.78 ms │                      68.90 ms │    no change │
│ QQuery 80 │   98.02 ms │                      97.61 ms │    no change │
│ QQuery 81 │   30.49 ms │                      30.21 ms │    no change │
│ QQuery 82 │   18.12 ms │                      18.17 ms │    no change │
│ QQuery 83 │   33.55 ms │                      33.72 ms │    no change │
│ QQuery 84 │   31.69 ms │                      31.62 ms │    no change │
│ QQuery 85 │   98.30 ms │                      98.39 ms │    no change │
│ QQuery 86 │   25.03 ms │                      24.79 ms │    no change │
│ QQuery 87 │   68.34 ms │                      68.44 ms │    no change │
│ QQuery 88 │   61.73 ms │                      61.07 ms │    no change │
│ QQuery 89 │   37.25 ms │                      36.92 ms │    no change │
│ QQuery 90 │   17.08 ms │                      17.05 ms │    no change │
│ QQuery 91 │   41.11 ms │                      41.30 ms │    no change │
│ QQuery 92 │   30.20 ms │                      30.80 ms │    no change │
│ QQuery 93 │   50.24 ms │                      50.70 ms │    no change │
│ QQuery 94 │   39.74 ms │                      40.41 ms │    no change │
│ QQuery 95 │   81.35 ms │                      80.90 ms │    no change │
│ QQuery 96 │   24.26 ms │                      24.18 ms │    no change │
│ QQuery 97 │   51.57 ms │                      51.75 ms │    no change │
│ QQuery 98 │   38.82 ms │                      39.07 ms │    no change │
│ QQuery 99 │   58.10 ms │                      58.02 ms │    no change │
└───────────┴────────────┴───────────────────────────────┴──────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━┓
┃ Benchmark Summary                            ┃           ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━┩
│ Total Time (HEAD)                            │ 9283.24ms │
│ Total Time (codex_dict-replace-suite-gate)   │ 9343.58ms │
│ Average Time (HEAD)                          │   93.77ms │
│ Average Time (codex_dict-replace-suite-gate) │   94.38ms │
│ Queries Faster                               │         0 │
│ Queries Slower                               │         1 │
│ Queries with No Change                       │        98 │
│ Queries with Failure                         │         0 │
└──────────────────────────────────────────────┴───────────┘

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

Comparing HEAD and codex_dict-replace-suite-gate
--------------------
Benchmark tpcds_sf1.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query     ┃                                  HEAD ┃         codex_dict-replace-suite-gate ┃        Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 1  │           5.95 / 6.57 ±1.07 / 8.70 ms │           5.90 / 6.53 ±1.06 / 8.64 ms │     no change │
│ QQuery 2  │        77.72 / 78.04 ±0.29 / 78.58 ms │        77.68 / 77.95 ±0.15 / 78.09 ms │     no change │
│ QQuery 3  │        29.53 / 29.87 ±0.26 / 30.24 ms │        29.30 / 29.64 ±0.19 / 29.82 ms │     no change │
│ QQuery 4  │     610.13 / 616.45 ±4.87 / 624.08 ms │     595.95 / 606.05 ±9.30 / 619.33 ms │     no change │
│ QQuery 5  │        52.45 / 52.62 ±0.21 / 53.00 ms │        51.45 / 51.99 ±0.37 / 52.47 ms │     no change │
│ QQuery 6  │        35.10 / 37.71 ±3.92 / 45.52 ms │        34.52 / 37.00 ±4.07 / 45.12 ms │     no change │
│ QQuery 7  │        73.05 / 74.28 ±1.10 / 76.20 ms │        72.81 / 73.73 ±0.74 / 74.61 ms │     no change │
│ QQuery 8  │        40.15 / 40.38 ±0.25 / 40.80 ms │        39.42 / 39.60 ±0.11 / 39.70 ms │     no change │
│ QQuery 9  │        54.30 / 55.66 ±1.03 / 56.96 ms │        52.10 / 54.33 ±1.27 / 55.61 ms │     no change │
│ QQuery 10 │        60.40 / 62.75 ±3.42 / 69.50 ms │        59.27 / 61.94 ±3.77 / 69.35 ms │     no change │
│ QQuery 11 │     404.92 / 407.74 ±2.68 / 411.71 ms │     391.99 / 397.13 ±3.85 / 403.22 ms │     no change │
│ QQuery 12 │        27.27 / 27.77 ±0.59 / 28.84 ms │        26.97 / 27.26 ±0.19 / 27.50 ms │     no change │
│ QQuery 13 │     115.63 / 117.55 ±2.60 / 122.67 ms │     114.21 / 115.41 ±0.71 / 116.33 ms │     no change │
│ QQuery 14 │     386.55 / 389.69 ±2.16 / 393.09 ms │     381.61 / 385.65 ±2.49 / 387.99 ms │     no change │
│ QQuery 15 │        57.35 / 59.44 ±2.20 / 63.04 ms │        57.04 / 59.19 ±3.61 / 66.38 ms │     no change │
│ QQuery 16 │           6.86 / 6.99 ±0.12 / 7.20 ms │           6.52 / 6.65 ±0.11 / 6.84 ms │     no change │
│ QQuery 17 │        80.58 / 82.68 ±2.93 / 88.41 ms │        80.08 / 81.95 ±2.00 / 84.55 ms │     no change │
│ QQuery 18 │     111.31 / 113.16 ±1.33 / 115.11 ms │     109.98 / 110.99 ±1.79 / 114.56 ms │     no change │
│ QQuery 19 │        42.57 / 43.84 ±1.34 / 46.37 ms │        42.75 / 43.20 ±0.74 / 44.68 ms │     no change │
│ QQuery 20 │        32.42 / 32.82 ±0.25 / 33.06 ms │        32.17 / 32.89 ±0.44 / 33.39 ms │     no change │
│ QQuery 21 │        18.09 / 18.28 ±0.14 / 18.51 ms │        17.70 / 17.91 ±0.20 / 18.28 ms │     no change │
│ QQuery 22 │        66.83 / 67.47 ±0.69 / 68.32 ms │        64.30 / 65.18 ±0.59 / 65.80 ms │     no change │
│ QQuery 23 │     319.47 / 323.60 ±3.29 / 327.67 ms │     317.85 / 325.99 ±6.12 / 333.01 ms │     no change │
│ QQuery 24 │     207.99 / 211.86 ±4.47 / 220.31 ms │     204.03 / 208.05 ±4.11 / 214.23 ms │     no change │
│ QQuery 25 │     108.09 / 109.97 ±1.61 / 112.44 ms │     106.53 / 108.84 ±2.06 / 112.69 ms │     no change │
│ QQuery 26 │        47.03 / 48.68 ±2.46 / 53.53 ms │        46.14 / 46.56 ±0.30 / 46.89 ms │     no change │
│ QQuery 27 │           5.93 / 6.00 ±0.06 / 6.08 ms │           5.88 / 5.92 ±0.02 / 5.95 ms │     no change │
│ QQuery 28 │        57.41 / 61.18 ±2.11 / 62.92 ms │        57.14 / 63.17 ±4.49 / 71.10 ms │     no change │
│ QQuery 29 │       96.72 / 98.46 ±1.44 / 100.76 ms │        96.58 / 98.09 ±0.92 / 99.43 ms │     no change │
│ QQuery 30 │        39.23 / 42.11 ±4.40 / 50.88 ms │        38.74 / 39.06 ±0.30 / 39.56 ms │ +1.08x faster │
│ QQuery 31 │     113.24 / 114.53 ±1.56 / 117.61 ms │     112.02 / 114.83 ±2.99 / 120.53 ms │     no change │
│ QQuery 32 │        21.82 / 22.19 ±0.33 / 22.67 ms │        21.32 / 21.67 ±0.24 / 21.97 ms │     no change │
│ QQuery 33 │        38.25 / 40.18 ±3.06 / 46.25 ms │        38.35 / 38.61 ±0.26 / 39.09 ms │     no change │
│ QQuery 34 │           6.28 / 6.41 ±0.07 / 6.51 ms │           6.20 / 6.28 ±0.07 / 6.42 ms │     no change │
│ QQuery 35 │        74.45 / 76.27 ±1.00 / 77.30 ms │        75.55 / 76.98 ±1.99 / 80.82 ms │     no change │
│ QQuery 36 │           6.55 / 6.71 ±0.18 / 7.04 ms │           6.60 / 6.77 ±0.13 / 6.93 ms │     no change │
│ QQuery 37 │           8.30 / 8.47 ±0.10 / 8.58 ms │           8.38 / 8.48 ±0.06 / 8.54 ms │     no change │
│ QQuery 38 │        68.83 / 69.41 ±0.57 / 70.19 ms │        68.48 / 69.21 ±0.89 / 70.97 ms │     no change │
│ QQuery 39 │        78.03 / 79.10 ±1.18 / 81.29 ms │        76.95 / 77.84 ±0.83 / 79.32 ms │     no change │
│ QQuery 40 │        24.58 / 25.06 ±0.28 / 25.34 ms │        24.97 / 25.77 ±0.64 / 26.89 ms │     no change │
│ QQuery 41 │        15.37 / 15.45 ±0.06 / 15.51 ms │        15.25 / 15.54 ±0.16 / 15.72 ms │     no change │
│ QQuery 42 │        24.52 / 25.48 ±1.04 / 27.26 ms │        24.27 / 25.01 ±0.48 / 25.66 ms │     no change │
│ QQuery 43 │           5.44 / 5.61 ±0.13 / 5.82 ms │           5.62 / 5.67 ±0.06 / 5.77 ms │     no change │
│ QQuery 44 │           6.26 / 6.35 ±0.10 / 6.54 ms │           6.04 / 6.19 ±0.13 / 6.36 ms │     no change │
│ QQuery 45 │        38.87 / 40.43 ±1.01 / 41.77 ms │        38.62 / 39.85 ±0.91 / 41.31 ms │     no change │
│ QQuery 46 │        12.38 / 12.48 ±0.05 / 12.51 ms │        12.47 / 13.27 ±1.49 / 16.25 ms │  1.06x slower │
│ QQuery 47 │    225.40 / 246.92 ±16.25 / 267.51 ms │     222.59 / 226.05 ±2.58 / 229.58 ms │ +1.09x faster │
│ QQuery 48 │        92.98 / 95.81 ±2.47 / 99.09 ms │        93.14 / 94.47 ±1.78 / 97.99 ms │     no change │
│ QQuery 49 │        71.87 / 72.72 ±0.99 / 74.63 ms │        71.44 / 72.89 ±1.52 / 75.82 ms │     no change │
│ QQuery 50 │        59.44 / 59.91 ±0.37 / 60.37 ms │        58.16 / 59.47 ±0.81 / 60.61 ms │     no change │
│ QQuery 51 │       95.20 / 97.53 ±2.29 / 101.92 ms │        93.94 / 96.44 ±1.47 / 98.23 ms │     no change │
│ QQuery 52 │        24.90 / 25.02 ±0.11 / 25.17 ms │        24.73 / 24.91 ±0.15 / 25.17 ms │     no change │
│ QQuery 53 │        30.19 / 32.08 ±2.56 / 37.10 ms │        30.00 / 30.97 ±1.15 / 33.22 ms │     no change │
│ QQuery 54 │        54.62 / 55.39 ±0.40 / 55.70 ms │        55.44 / 55.82 ±0.44 / 56.67 ms │     no change │
│ QQuery 55 │        24.34 / 24.71 ±0.23 / 24.98 ms │        24.77 / 25.61 ±0.68 / 26.64 ms │     no change │
│ QQuery 56 │        39.54 / 40.29 ±1.25 / 42.78 ms │        39.44 / 40.09 ±0.51 / 41.02 ms │     no change │
│ QQuery 57 │     157.55 / 160.35 ±2.62 / 164.62 ms │     157.92 / 160.24 ±2.16 / 163.01 ms │     no change │
│ QQuery 58 │     105.48 / 106.78 ±1.09 / 108.60 ms │     106.12 / 106.84 ±0.88 / 108.53 ms │     no change │
│ QQuery 59 │     108.50 / 109.07 ±0.31 / 109.35 ms │     109.57 / 110.76 ±1.28 / 113.21 ms │     no change │
│ QQuery 60 │        39.63 / 40.16 ±0.60 / 41.33 ms │        40.37 / 40.59 ±0.17 / 40.81 ms │     no change │
│ QQuery 61 │          9.81 / 9.96 ±0.12 / 10.14 ms │          9.82 / 9.97 ±0.11 / 10.09 ms │     no change │
│ QQuery 62 │        39.42 / 41.54 ±2.62 / 46.67 ms │        38.91 / 40.34 ±1.82 / 43.89 ms │     no change │
│ QQuery 63 │        30.38 / 31.38 ±0.65 / 32.20 ms │        30.48 / 30.95 ±0.34 / 31.36 ms │     no change │
│ QQuery 64 │     372.75 / 377.13 ±2.42 / 379.56 ms │     374.07 / 378.07 ±4.85 / 387.42 ms │     no change │
│ QQuery 65 │        74.92 / 76.12 ±1.76 / 79.59 ms │        74.23 / 74.96 ±0.55 / 75.63 ms │     no change │
│ QQuery 66 │        75.76 / 76.52 ±0.78 / 78.01 ms │        75.70 / 76.33 ±0.72 / 77.62 ms │     no change │
│ QQuery 67 │     204.63 / 208.69 ±4.02 / 215.85 ms │     205.93 / 209.31 ±3.04 / 214.32 ms │     no change │
│ QQuery 68 │           7.09 / 7.24 ±0.18 / 7.59 ms │           7.09 / 7.20 ±0.14 / 7.47 ms │     no change │
│ QQuery 69 │        55.16 / 57.35 ±3.33 / 63.87 ms │        56.18 / 57.11 ±1.48 / 60.04 ms │     no change │
│ QQuery 70 │      98.81 / 100.13 ±1.43 / 102.91 ms │      98.13 / 101.65 ±5.03 / 111.58 ms │     no change │
│ QQuery 71 │        36.13 / 36.36 ±0.22 / 36.64 ms │        35.88 / 36.48 ±0.53 / 37.30 ms │     no change │
│ QQuery 72 │ 1536.22 / 1644.18 ±86.06 / 1793.79 ms │ 1661.93 / 1734.44 ±62.27 / 1834.17 ms │  1.05x slower │
│ QQuery 73 │           5.85 / 5.93 ±0.08 / 6.09 ms │           5.87 / 5.98 ±0.09 / 6.11 ms │     no change │
│ QQuery 74 │     266.08 / 269.72 ±2.90 / 273.16 ms │     259.52 / 268.44 ±4.58 / 272.22 ms │     no change │
│ QQuery 75 │     143.82 / 146.77 ±4.38 / 155.28 ms │     141.63 / 144.27 ±1.98 / 147.00 ms │     no change │
│ QQuery 76 │        35.35 / 36.02 ±0.65 / 36.90 ms │        35.07 / 35.39 ±0.22 / 35.69 ms │     no change │
│ QQuery 77 │        61.27 / 63.07 ±1.69 / 65.89 ms │        61.14 / 63.11 ±2.31 / 67.28 ms │     no change │
│ QQuery 78 │     281.22 / 294.18 ±8.99 / 309.07 ms │    282.62 / 291.98 ±10.24 / 310.95 ms │     no change │
│ QQuery 79 │        69.78 / 71.83 ±3.58 / 78.98 ms │        68.90 / 69.86 ±0.69 / 70.62 ms │     no change │
│ QQuery 80 │      98.02 / 100.11 ±1.93 / 103.64 ms │      97.61 / 100.49 ±3.56 / 107.15 ms │     no change │
│ QQuery 81 │        30.49 / 31.01 ±0.31 / 31.43 ms │        30.21 / 30.87 ±0.72 / 32.22 ms │     no change │
│ QQuery 82 │        18.12 / 18.66 ±0.30 / 18.91 ms │        18.17 / 18.32 ±0.15 / 18.61 ms │     no change │
│ QQuery 83 │        33.55 / 34.34 ±1.28 / 36.90 ms │        33.72 / 34.08 ±0.30 / 34.59 ms │     no change │
│ QQuery 84 │        31.69 / 31.92 ±0.27 / 32.33 ms │        31.62 / 31.96 ±0.28 / 32.45 ms │     no change │
│ QQuery 85 │      98.30 / 100.07 ±2.19 / 104.36 ms │      98.39 / 101.34 ±3.01 / 106.81 ms │     no change │
│ QQuery 86 │        25.03 / 25.35 ±0.22 / 25.69 ms │        24.79 / 25.21 ±0.41 / 25.87 ms │     no change │
│ QQuery 87 │        68.34 / 69.43 ±0.79 / 70.51 ms │        68.44 / 68.93 ±0.41 / 69.53 ms │     no change │
│ QQuery 88 │        61.73 / 63.12 ±1.01 / 64.80 ms │        61.07 / 62.85 ±1.83 / 66.15 ms │     no change │
│ QQuery 89 │        37.25 / 37.68 ±0.37 / 38.17 ms │        36.92 / 38.30 ±1.87 / 41.96 ms │     no change │
│ QQuery 90 │        17.08 / 17.18 ±0.06 / 17.23 ms │        17.05 / 17.18 ±0.11 / 17.36 ms │     no change │
│ QQuery 91 │        41.11 / 41.53 ±0.36 / 42.08 ms │        41.30 / 41.65 ±0.28 / 41.96 ms │     no change │
│ QQuery 92 │        30.20 / 30.55 ±0.31 / 30.95 ms │        30.80 / 31.39 ±0.73 / 32.77 ms │     no change │
│ QQuery 93 │        50.24 / 51.33 ±0.78 / 52.43 ms │        50.70 / 51.02 ±0.31 / 51.45 ms │     no change │
│ QQuery 94 │        39.74 / 40.32 ±0.40 / 40.92 ms │        40.41 / 40.58 ±0.18 / 40.86 ms │     no change │
│ QQuery 95 │        81.35 / 83.23 ±2.31 / 87.70 ms │        80.90 / 81.47 ±0.67 / 82.46 ms │     no change │
│ QQuery 96 │        24.26 / 24.29 ±0.04 / 24.37 ms │        24.18 / 24.41 ±0.18 / 24.63 ms │     no change │
│ QQuery 97 │        51.57 / 52.67 ±0.81 / 53.38 ms │        51.75 / 53.85 ±2.44 / 58.23 ms │     no change │
│ QQuery 98 │        38.82 / 39.37 ±0.37 / 39.93 ms │        39.07 / 39.41 ±0.19 / 39.58 ms │     no change │
│ QQuery 99 │        58.10 / 59.77 ±2.74 / 65.21 ms │        58.02 / 59.52 ±2.31 / 64.12 ms │     no change │
└───────────┴───────────────────────────────────────┴───────────────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━┓
┃ Benchmark Summary                            ┃           ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━┩
│ Total Time (HEAD)                            │ 9550.55ms │
│ Total Time (codex_dict-replace-suite-gate)   │ 9563.62ms │
│ Average Time (HEAD)                          │   96.47ms │
│ Average Time (codex_dict-replace-suite-gate) │   96.60ms │
│ Queries Faster                               │         2 │
│ Queries Slower                               │         2 │
│ Queries with No Change                       │        95 │
│ 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-replace-suite-gate

tpcds — tpcds_sf1

Query Base Changed Change
Query 1 135.7 KiB 135.7 KiB +0.0%
Query 2 88.1 MiB 69.9 MiB -20.7%
Query 3 2.1 MiB 2.1 MiB +2.0%
Query 4 85.6 MiB 85.5 MiB -0.1%
Query 5 13.0 MiB 12.5 MiB -4.1%
Query 6 5.0 MiB 4.7 MiB -5.7%
Query 7 4.2 MiB 3.6 MiB -14.4%
Query 8 1.8 MiB 1.8 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.1%
Query 12 114.4 MiB 124.1 MiB +8.5%
Query 13 13.7 MiB 13.7 MiB +0.0%
Query 14 170.9 MiB 170.9 MiB +0.0%
Query 15 4.2 MiB 4.2 MiB +0.3%
Query 16 118.6 KiB 118.6 KiB +0.0%
Query 17 39.5 MiB 39.6 MiB +0.3%
Query 18 21.2 MiB 21.2 MiB +0.0%
Query 19 2.2 MiB 2.1 MiB -3.5%
Query 20 114.6 MiB 114.6 MiB +0.0%
Query 21 3.6 MiB 4.1 MiB +12.4%
Query 22 61.8 MiB 61.8 MiB +0.0%
Query 23 211.7 MiB 211.7 MiB -0.0%
Query 24 36.4 MiB 36.4 MiB +0.0%
Query 25 86.1 MiB 85.6 MiB -0.5%
Query 26 3.6 MiB 3.5 MiB -3.1%
Query 27 929.6 KiB 929.6 KiB +0.0%
Query 28 1.3 MiB 1.3 MiB -0.0%
Query 29 100.4 MiB 97.1 MiB -3.3%
Query 30 3.7 MiB 3.7 MiB -0.1%
Query 31 13.4 MiB 13.4 MiB +0.1%
Query 32 2.9 MiB 2.7 MiB -7.6%
Query 33 4.7 MiB 5.4 MiB +17.0%
Query 34 96.3 KiB 96.3 KiB +0.0%
Query 35 18.4 MiB 16.6 MiB -9.6%
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.4 MiB +0.0%
Query 39 62.4 MiB 63.3 MiB +1.4%
Query 40 11.5 MiB 11.5 MiB +0.1%
Query 41 2.1 MiB 2.1 MiB +0.0%
Query 42 1.3 MiB 1.3 MiB -1.3%
Query 43 258.2 KiB 258.2 KiB +0.0%
Query 44 9.7 KiB 9.7 KiB +0.0%
Query 45 4.5 MiB 4.5 MiB -0.3%
Query 46 5.4 MiB 5.4 MiB +0.0%
Query 47 132.6 MiB 132.5 MiB -0.0%
Query 48 11.8 MiB 11.8 MiB +0.0%
Query 49 62.0 MiB 52.4 MiB -15.5%
Query 50 16.3 MiB 16.3 MiB +0.0%
Query 51 177.7 MiB 177.7 MiB +0.0%
Query 52 1.8 MiB 1.8 MiB -0.0%
Query 53 30.6 MiB 30.6 MiB +0.0%
Query 54 2.0 MiB 2.0 MiB +0.0%
Query 55 1.5 MiB 1.3 MiB -14.7%
Query 56 3.0 MiB 3.0 MiB -0.0%
Query 57 125.3 MiB 120.8 MiB -3.6%
Query 58 4.4 MiB 4.2 MiB -4.8%
Query 59 11.6 MiB 11.6 MiB +0.0%
Query 60 5.0 MiB 5.4 MiB +8.4%
Query 61 2.4 KiB 2.4 KiB +0.0%
Query 62 3.3 MiB 3.6 MiB +9.9%
Query 63 30.6 MiB 30.4 MiB -0.5%
Query 64 115.3 MiB 106.2 MiB -7.9%
Query 65 29.5 MiB 29.5 MiB +0.0%
Query 66 15.0 MiB 15.0 MiB +0.0%
Query 67 117.0 MiB 117.0 MiB -0.0%
Query 68 218.6 KiB 218.6 KiB +0.0%
Query 69 3.8 MiB 3.6 MiB -5.0%
Query 70 32.5 MiB 32.5 MiB +0.0%
Query 71 50.4 MiB 40.4 MiB -19.8%
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.7 MiB 23.1 MiB -2.5%
Query 76 4.2 MiB 4.2 MiB +0.0%
Query 77 4.1 MiB 4.1 MiB +0.0%
Query 78 316.9 MiB 316.9 MiB +0.0%
Query 79 9.3 MiB 8.7 MiB -7.0%
Query 80 42.8 MiB 42.8 MiB +0.0%
Query 81 4.1 MiB 4.1 MiB -0.4%
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.7 MiB 1.6 MiB -5.4%
Query 89 112.0 MiB 112.2 MiB +0.1%
Query 90 348.6 KiB 348.6 KiB +0.0%
Query 91 21.5 MiB 31.3 MiB +45.7%
Query 92 2.5 MiB 2.9 MiB +17.7%
Query 93 15.4 MiB 15.1 MiB -1.6%
Query 94 3.7 MiB 3.4 MiB -7.6%
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.8 MiB 1.7 MiB -10.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.2 GiB 1.9 GiB 7.0×
tpcds changed (codex/dict-replace-suite-gate) 316.9 MiB 1.9 GiB 1.6 GiB 6.3×
Resource Usage

tpcds — base (merge-base)

Metric Value
Wall time 50.0s
Peak memory 2.2 GiB
Avg memory 1.5 GiB
CPU user 193.3s
CPU sys 5.7s
Peak spill 0 B

tpcds — branch

Metric Value
Wall time 50.0s
Peak memory 1.9 GiB
Avg memory 1.3 GiB
CPU user 197.5s
CPU sys 5.7s
Peak spill 0 B

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-c6887503019-5126-qzfkd 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-replace-suite-gate (039b1a0) 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 completed (GKE) | trigger

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

Comparing codex/dict-replace-suite-gate (039b1a0) 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-replace-suite-gate
--------------------
Benchmark clickbench_partitioned.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query     ┃       HEAD ┃ codex_dict-replace-suite-gate ┃        Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 0  │    1.10 ms │                       1.09 ms │     no change │
│ QQuery 1  │   11.32 ms │                      11.31 ms │     no change │
│ QQuery 2  │   34.68 ms │                      34.93 ms │     no change │
│ QQuery 3  │   30.78 ms │                      30.80 ms │     no change │
│ QQuery 4  │  229.80 ms │                     233.12 ms │     no change │
│ QQuery 5  │  730.03 ms │                     731.50 ms │     no change │
│ QQuery 6  │    1.12 ms │                       1.17 ms │     no change │
│ QQuery 7  │   12.47 ms │                      12.40 ms │     no change │
│ QQuery 8  │  324.52 ms │                     328.34 ms │     no change │
│ QQuery 9  │  455.71 ms │                     462.56 ms │     no change │
│ QQuery 10 │  199.03 ms │                     200.52 ms │     no change │
│ QQuery 11 │  209.96 ms │                     211.31 ms │     no change │
│ QQuery 12 │  734.49 ms │                     729.89 ms │     no change │
│ QQuery 13 │ 1063.02 ms │                    1062.27 ms │     no change │
│ QQuery 14 │  831.99 ms │                     836.87 ms │     no change │
│ QQuery 15 │  288.27 ms │                     284.81 ms │     no change │
│ QQuery 16 │ 1265.58 ms │                    1276.45 ms │     no change │
│ QQuery 17 │ 1231.20 ms │                    1236.76 ms │     no change │
│ QQuery 18 │ 1980.49 ms │                    2024.25 ms │     no change │
│ QQuery 19 │   26.86 ms │                      26.88 ms │     no change │
│ QQuery 20 │ 1040.29 ms │                    1039.07 ms │     no change │
│ QQuery 21 │ 1360.27 ms │                    1363.90 ms │     no change │
│ QQuery 22 │ 3171.31 ms │                    3211.48 ms │     no change │
│ QQuery 23 │ 9162.16 ms │                    9067.43 ms │     no change │
│ QQuery 24 │   95.81 ms │                      95.83 ms │     no change │
│ QQuery 25 │  352.87 ms │                     353.24 ms │     no change │
│ QQuery 26 │   97.84 ms │                      97.97 ms │     no change │
│ QQuery 27 │ 1139.51 ms │                    1146.52 ms │     no change │
│ QQuery 28 │ 2491.74 ms │                    2455.46 ms │     no change │
│ QQuery 29 │   37.40 ms │                      37.50 ms │     no change │
│ QQuery 30 │  541.04 ms │                     542.04 ms │     no change │
│ QQuery 31 │  541.44 ms │                     539.50 ms │     no change │
│ QQuery 32 │  989.52 ms │                    1008.66 ms │     no change │
│ QQuery 33 │ 3133.61 ms │                    3149.28 ms │     no change │
│ QQuery 34 │ 3269.07 ms │                    3357.10 ms │     no change │
│ QQuery 35 │  292.74 ms │                     293.93 ms │     no change │
│ QQuery 36 │  129.90 ms │                     121.63 ms │ +1.07x faster │
│ QQuery 37 │   93.60 ms │                      95.54 ms │     no change │
│ QQuery 38 │   79.68 ms │                      77.88 ms │     no change │
│ QQuery 39 │  301.01 ms │                     308.98 ms │     no change │
│ QQuery 40 │   13.56 ms │                      12.94 ms │     no change │
│ QQuery 41 │   12.23 ms │                      12.23 ms │     no change │
│ QQuery 42 │   11.75 ms │                      11.67 ms │     no change │
└───────────┴────────────┴───────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ Benchmark Summary                            ┃            ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
│ Total Time (HEAD)                            │ 38020.78ms │
│ Total Time (codex_dict-replace-suite-gate)   │ 38137.00ms │
│ Average Time (HEAD)                          │   884.20ms │
│ Average Time (codex_dict-replace-suite-gate) │   886.91ms │
│ Queries Faster                               │          1 │
│ Queries Slower                               │          0 │
│ Queries with No Change                       │         42 │
│ Queries with Failure                         │          0 │
└──────────────────────────────────────────────┴────────────┘

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

Comparing HEAD and codex_dict-replace-suite-gate
--------------------
Benchmark clickbench_partitioned.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query     ┃                                   HEAD ┃          codex_dict-replace-suite-gate ┃        Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 0  │            1.10 / 1.71 ±1.11 / 3.93 ms │            1.09 / 1.69 ±1.11 / 3.91 ms │     no change │
│ QQuery 1  │         11.32 / 11.36 ±0.03 / 11.40 ms │         11.31 / 11.36 ±0.05 / 11.43 ms │     no change │
│ QQuery 2  │         34.68 / 35.08 ±0.38 / 35.76 ms │         34.93 / 35.08 ±0.13 / 35.25 ms │     no change │
│ QQuery 3  │         30.78 / 31.53 ±0.89 / 33.15 ms │         30.80 / 31.25 ±0.32 / 31.78 ms │     no change │
│ QQuery 4  │      229.80 / 234.52 ±3.54 / 240.09 ms │      233.12 / 235.84 ±1.65 / 237.71 ms │     no change │
│ QQuery 5  │     730.03 / 744.21 ±12.02 / 764.78 ms │      731.50 / 739.19 ±6.80 / 749.97 ms │     no change │
│ QQuery 6  │            1.12 / 1.29 ±0.24 / 1.76 ms │            1.17 / 1.31 ±0.23 / 1.76 ms │     no change │
│ QQuery 7  │         12.47 / 12.62 ±0.09 / 12.73 ms │         12.40 / 12.61 ±0.15 / 12.86 ms │     no change │
│ QQuery 8  │      324.52 / 330.94 ±5.26 / 339.64 ms │      328.34 / 331.13 ±2.21 / 333.50 ms │     no change │
│ QQuery 9  │      455.71 / 469.50 ±8.09 / 479.62 ms │     462.56 / 477.55 ±11.38 / 492.75 ms │     no change │
│ QQuery 10 │      199.03 / 200.43 ±0.98 / 201.83 ms │      200.52 / 201.74 ±1.37 / 204.17 ms │     no change │
│ QQuery 11 │      209.96 / 211.87 ±1.61 / 214.54 ms │      211.31 / 212.05 ±0.49 / 212.59 ms │     no change │
│ QQuery 12 │     734.49 / 747.55 ±10.58 / 763.91 ms │     729.89 / 758.63 ±16.67 / 780.11 ms │     no change │
│ QQuery 13 │  1063.02 / 1075.36 ±12.31 / 1097.40 ms │  1062.27 / 1086.51 ±34.41 / 1154.30 ms │     no change │
│ QQuery 14 │     831.99 / 861.14 ±19.74 / 891.19 ms │     836.87 / 853.13 ±11.01 / 866.71 ms │     no change │
│ QQuery 15 │     288.27 / 301.12 ±10.68 / 317.44 ms │      284.81 / 298.08 ±7.51 / 304.91 ms │     no change │
│ QQuery 16 │  1265.58 / 1304.20 ±29.43 / 1352.68 ms │  1276.45 / 1310.61 ±22.38 / 1337.07 ms │     no change │
│ QQuery 17 │  1231.20 / 1251.12 ±12.33 / 1267.89 ms │  1236.76 / 1269.88 ±25.87 / 1299.21 ms │     no change │
│ QQuery 18 │  1980.49 / 2034.29 ±42.29 / 2097.68 ms │  2024.25 / 2049.76 ±14.27 / 2065.40 ms │     no change │
│ QQuery 19 │         26.86 / 31.07 ±7.95 / 46.96 ms │        26.88 / 35.87 ±15.67 / 67.12 ms │  1.15x slower │
│ QQuery 20 │   1040.29 / 1046.89 ±3.69 / 1050.82 ms │   1039.07 / 1051.33 ±7.45 / 1061.88 ms │     no change │
│ QQuery 21 │   1360.27 / 1369.53 ±8.41 / 1381.06 ms │   1363.90 / 1366.29 ±1.90 / 1369.57 ms │     no change │
│ QQuery 22 │  3171.31 / 3270.37 ±65.86 / 3349.94 ms │  3211.48 / 3260.52 ±24.91 / 3279.10 ms │     no change │
│ QQuery 23 │ 9162.16 / 9497.76 ±186.34 / 9699.53 ms │ 9067.43 / 9282.32 ±131.07 / 9469.95 ms │     no change │
│ QQuery 24 │       95.81 / 101.54 ±7.07 / 115.29 ms │      95.83 / 126.67 ±31.22 / 180.49 ms │  1.25x slower │
│ QQuery 25 │      352.87 / 355.50 ±2.77 / 359.66 ms │      353.24 / 357.04 ±3.91 / 364.30 ms │     no change │
│ QQuery 26 │        97.84 / 99.52 ±1.89 / 102.95 ms │        97.97 / 99.06 ±0.84 / 100.42 ms │     no change │
│ QQuery 27 │  1139.51 / 1153.85 ±12.59 / 1169.25 ms │   1146.52 / 1154.71 ±6.57 / 1162.73 ms │     no change │
│ QQuery 28 │  2491.74 / 2508.08 ±15.52 / 2531.08 ms │  2455.46 / 2475.21 ±19.44 / 2506.70 ms │     no change │
│ QQuery 29 │        37.40 / 45.39 ±14.24 / 73.81 ms │        37.50 / 47.63 ±17.57 / 82.68 ms │     no change │
│ QQuery 30 │      541.04 / 545.86 ±3.01 / 550.40 ms │      542.04 / 551.25 ±8.09 / 561.40 ms │     no change │
│ QQuery 31 │     541.44 / 554.44 ±11.75 / 576.39 ms │     539.50 / 552.84 ±14.44 / 570.93 ms │     no change │
│ QQuery 32 │   989.52 / 1018.97 ±20.21 / 1048.37 ms │  1008.66 / 1061.95 ±50.47 / 1154.69 ms │     no change │
│ QQuery 33 │ 3133.61 / 3318.42 ±102.79 / 3435.37 ms │ 3149.28 / 3291.80 ±112.69 / 3413.21 ms │     no change │
│ QQuery 34 │  3269.07 / 3379.85 ±65.62 / 3461.22 ms │  3357.10 / 3370.96 ±13.11 / 3388.19 ms │     no change │
│ QQuery 35 │     292.74 / 314.60 ±28.45 / 369.82 ms │     293.93 / 316.85 ±17.69 / 348.44 ms │     no change │
│ QQuery 36 │     129.90 / 141.09 ±13.82 / 167.68 ms │      121.63 / 131.65 ±8.97 / 147.55 ms │ +1.07x faster │
│ QQuery 37 │        93.60 / 97.99 ±3.97 / 102.77 ms │      95.54 / 105.65 ±15.29 / 135.98 ms │  1.08x slower │
│ QQuery 38 │        79.68 / 86.01 ±7.48 / 100.57 ms │         77.88 / 82.10 ±2.17 / 83.73 ms │     no change │
│ QQuery 39 │     301.01 / 312.21 ±11.61 / 330.67 ms │     308.98 / 320.24 ±15.16 / 349.67 ms │     no change │
│ QQuery 40 │         13.56 / 14.77 ±1.40 / 17.50 ms │         12.94 / 15.20 ±2.35 / 19.39 ms │     no change │
│ QQuery 41 │         12.23 / 12.85 ±0.47 / 13.31 ms │         12.23 / 12.42 ±0.18 / 12.64 ms │     no change │
│ QQuery 42 │         11.75 / 12.07 ±0.31 / 12.58 ms │         11.67 / 11.85 ±0.14 / 12.07 ms │     no change │
└───────────┴────────────────────────────────────────┴────────────────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ Benchmark Summary                            ┃            ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
│ Total Time (HEAD)                            │ 39148.51ms │
│ Total Time (codex_dict-replace-suite-gate)   │ 38998.81ms │
│ Average Time (HEAD)                          │   910.43ms │
│ Average Time (codex_dict-replace-suite-gate) │   906.95ms │
│ Queries Faster                               │          1 │
│ Queries Slower                               │          3 │
│ Queries with No Change                       │         39 │
│ 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-replace-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 826.7 MiB 827.7 MiB +0.1%
Query 5 1.4 GiB 1.3 GiB -0.3%
Query 6 0 B 0 B 0.0%
Query 7 50.3 MiB 60.0 MiB +19.4%
Query 8 944.2 MiB 944.8 MiB +0.1%
Query 9 593.9 MiB 552.2 MiB -7.0%
Query 10 72.8 MiB 74.1 MiB +1.8%
Query 11 77.8 MiB 78.5 MiB +0.9%
Query 12 1.5 GiB 1.5 GiB -0.7%
Query 13 1.5 GiB 1.6 GiB +1.2%
Query 14 1.7 GiB 1.6 GiB -4.4%
Query 15 1.2 GiB 1.2 GiB +1.3%
Query 16 3.2 GiB 3.2 GiB +0.5%
Query 17 3.1 GiB 3.2 GiB +4.0%
Query 18 7.3 GiB 7.2 GiB -1.5%
Query 19 0 B 0 B 0.0%
Query 20 104 B 104 B +0.0%
Query 21 1.4 MiB 1.1 MiB -18.8%
Query 22 2.7 MiB 2.5 MiB -8.0%
Query 23 11.9 MiB 12.6 MiB +6.3%
Query 24 6.4 MiB 6.3 MiB -1.9%
Query 25 8.1 MiB 8.1 MiB +0.0%
Query 26 7.9 MiB 7.5 MiB -4.7%
Query 27 2.5 MiB 2.6 MiB +5.9%
Query 28 1.9 GiB 1.8 GiB -2.1%
Query 29 624 B 624 B +0.0%
Query 30 656.5 MiB 663.9 MiB +1.1%
Query 31 1.5 GiB 1.5 GiB +1.6%
Query 32 7.2 GiB 7.1 GiB -0.2%
Query 33 9.6 GiB 9.6 GiB -0.1%
Query 34 9.6 GiB 9.9 GiB +3.0%
Query 35 674.6 MiB 674.4 MiB -0.0%
Query 36 100.1 MiB 100.1 MiB +0.0%
Query 37 8.4 MiB 8.4 MiB +0.0%
Query 38 5.2 MiB 5.1 MiB -1.0%
Query 39 213.4 MiB 213.4 MiB +0.0%
Query 40 2.3 MiB 2.6 MiB +15.3%
Query 41 3.3 MiB 3.3 MiB +0.0%
Query 42 1.8 MiB 1.6 MiB -11.5%

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.9 GiB 3.2 GiB 1.3×
clickbench_partitioned changed (codex/dict-replace-suite-gate) 9.9 GiB 12.7 GiB 2.8 GiB 1.3×
Resource Usage

clickbench_partitioned — base (merge-base)

Metric Value
Wall time 200.0s
Peak memory 12.9 GiB
Avg memory 5.4 GiB
CPU user 1880.5s
CPU sys 128.0s
Peak spill 0 B

clickbench_partitioned — branch

Metric Value
Wall time 200.0s
Peak memory 12.7 GiB
Avg memory 5.1 GiB
CPU user 1883.3s
CPU sys 131.5s
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 scalar replace optimization.

None of the required suites calls scalar replace. ClickBench Q28 calls REGEXP_REPLACE, which is a different UDF and cannot execute this patch:

  • TPC-H: 856.94 ms -> 846.32 ms, with 2 unrelated queries classified faster.
  • TPC-DS: 9283.24 ms -> 9343.58 ms, with one unrelated query classified slower.
  • Partitioned ClickBench: 38020.78 ms -> 38137.00 ms, with one unrelated query classified faster.

Because no benchmark query enters the changed path, the isolated classifications cannot be attributed to dictionary-preserving replace. 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

functions Changes to functions implementation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants