Skip to content

IN LIST: add UInt8 bitmap filter#23011

Merged
alamb merged 3 commits into
apache:mainfrom
geoffreyclaude:perf/in_list_bitmap_u8_filter
Jun 24, 2026
Merged

IN LIST: add UInt8 bitmap filter#23011
alamb merged 3 commits into
apache:mainfrom
geoffreyclaude:perf/in_list_bitmap_u8_filter

Conversation

@geoffreyclaude

@geoffreyclaude geoffreyclaude commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

Rationale for this change

IN LIST evaluates expressions like x IN (1, 3, 7). The list on the right is fixed, so DataFusion can precompute a small lookup structure once and then reuse it for every input row.

For UInt8, there are only 256 possible values: 0 through 255. That means the lookup can be a tiny checklist with one bit per possible value:

  • If the list contains 3, set bit 3.
  • If the list contains 7, set bit 7.
  • To check whether an input value is present, read that one bit.

So instead of hashing each input value or comparing it against the list, membership becomes one indexed bit test. The bitmap is only 32 bytes, because 256 bits = 32 bytes.

This PR adds the first specialized primitive path in the stack as a concrete UInt8 filter. The UInt16 version is added in #23012, and the shared bitmap abstraction is introduced only after both concrete implementations are visible in #23035.

What changes are included in this PR?

  • Adds UInt8BitmapFilter, a 32-byte bitmap built from the non-null constants in the IN list.
  • Routes UInt8 constant-list filtering to that bitmap path.
  • Keeps the same SQL null behavior as the generic path for both IN and NOT IN.
  • Moves shared dictionary-needle handling into static_filter.rs, so specialized filters can reuse it consistently.
  • Adds focused tests for UInt8 null handling and dictionary-encoded needles.

Are these changes tested?

Yes.

  • cargo fmt --all
  • cargo test -p datafusion-physical-expr bitmap_filter_u8 --lib
  • cargo test -p datafusion-physical-expr in_list_int_types --lib
  • cargo clippy -p datafusion-physical-expr --all-targets --all-features -- -D warnings

Are there any user-facing changes?

No. This is an internal performance optimization only.

Local benchmark snapshot

Benchmark command:

cargo bench -p datafusion-physical-expr --profile release-nonlto --bench in_list_strategy -- --save-baseline <name>

Method: compare adjacent saved baselines using raw Criterion sample minima (min(time / iters)). Lower is better; changes within +/-5% are treated as noise. These numbers were not rerun after splitting the bitmap abstraction into #23035.

Compared baselines: #21927 -> #23011

Relevant scope: UInt8 narrow-integer rows.

Summary: 5 relevant rows, 5 faster, 0 slower, 0 within +/-5%.

Benchmark Before After Change
narrow_integer/u8/list=16/match=0% 20.39 us 3.94 us -80.7% (5.18x faster)
narrow_integer/u8/list=16/match=50% 38.38 us 3.98 us -89.6% (9.65x faster)
narrow_integer/u8/list=4/match=0% 18.18 us 3.93 us -78.4% (4.62x faster)
narrow_integer/u8/list=4/match=50% 34.63 us 3.96 us -88.6% (8.75x faster)
nulls/narrow_integer/u8/list=16/match=50%/nulls=20% 37.12 us 4.16 us -88.8% (8.93x faster)

@github-actions github-actions Bot added the physical-expr Changes to the physical-expr crates label Jun 18, 2026
@geoffreyclaude geoffreyclaude force-pushed the perf/in_list_bitmap_u8_filter branch from b865b12 to b910c6a Compare June 18, 2026 07:55
@geoffreyclaude geoffreyclaude changed the title Implement Bitmap Filter for UInt8 (Stack-based) IN LIST: add UInt8 bitmap filter Jun 18, 2026
@geoffreyclaude geoffreyclaude force-pushed the perf/in_list_bitmap_u8_filter branch 2 times, most recently from 80597b1 to 2f19956 Compare June 19, 2026 05:35
@geoffreyclaude geoffreyclaude force-pushed the perf/in_list_bitmap_u8_filter branch 2 times, most recently from 5351b95 to acfc578 Compare June 22, 2026 13:50
@geoffreyclaude geoffreyclaude marked this pull request as ready for review June 22, 2026 14:06
@adriangb

Copy link
Copy Markdown
Contributor

run benchmark in_list_strategy

@adriangb

Copy link
Copy Markdown
Contributor

run benchmarks

@adriangb

Copy link
Copy Markdown
Contributor

@geoffreyclaude mind fixing failing ci?

@adriangbot

Copy link
Copy Markdown

🤖 Benchmark running (GKE) | trigger
Instance: c4a-highmem-16 (12 vCPU / 65 GiB) | Linux bench-c4769512194-607-49pzg 6.12.68+ #1 SMP Sat May 2 07:49:07 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 perf/in_list_bitmap_u8_filter (acfc578) to d2d9b12 (merge-base) diff using: in_list_strategy
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-c4769512820-608-t8nnc 6.12.68+ #1 SMP Sat May 2 07:49:07 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 perf/in_list_bitmap_u8_filter (acfc578) to d2d9b12 (merge-base) diff using: clickbench_partitioned
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-c4769512820-609-zh6g5 6.12.68+ #1 SMP Sat May 2 07:49:07 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 perf/in_list_bitmap_u8_filter (acfc578) to d2d9b12 (merge-base) diff using: tpcds
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-c4769512820-610-c2r54 6.12.68+ #1 SMP Sat May 2 07:49:07 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 perf/in_list_bitmap_u8_filter (acfc578) to d2d9b12 (merge-base) diff using: tpch
Results will be posted here when complete


File an issue against this benchmark runner

exec_datafusion_err!("UInt8BitmapFilter: expected UInt8 array")
})?;
let mut bits = [0u64; 4];
for v in prim_array.iter().flatten() {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • prim_array.iter().flatten() generally is slower than iterating over .values() (when no nulls). (Also for nulls I think it is probably faster to include the nulls into the bits[index / 64] |= calculation.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in new commit on this PR

@adriangbot

Copy link
Copy Markdown

🤖 Benchmark completed (GKE) | trigger

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

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

Comparing HEAD and perf_in_list_bitmap_u8_filter
--------------------
Benchmark tpch_sf1.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┓
┃ Query     ┃                           HEAD ┃  perf_in_list_bitmap_u8_filter ┃       Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━┩
│ QQuery 1  │ 38.05 / 39.41 ±1.29 / 41.13 ms │ 38.17 / 38.87 ±0.86 / 40.54 ms │    no change │
│ QQuery 2  │ 19.23 / 19.88 ±0.89 / 21.63 ms │ 19.13 / 19.52 ±0.24 / 19.89 ms │    no change │
│ QQuery 3  │ 30.69 / 32.03 ±1.23 / 33.86 ms │ 30.73 / 31.72 ±0.93 / 33.42 ms │    no change │
│ QQuery 4  │ 17.47 / 17.92 ±0.57 / 19.00 ms │ 17.39 / 17.86 ±0.52 / 18.87 ms │    no change │
│ QQuery 5  │ 37.93 / 39.99 ±1.62 / 41.34 ms │ 38.60 / 40.38 ±1.00 / 41.19 ms │    no change │
│ QQuery 6  │ 16.15 / 16.25 ±0.05 / 16.30 ms │ 16.16 / 16.75 ±0.70 / 18.10 ms │    no change │
│ QQuery 7  │ 42.80 / 45.68 ±1.84 / 48.50 ms │ 45.33 / 45.94 ±0.76 / 47.42 ms │    no change │
│ QQuery 8  │ 42.88 / 43.09 ±0.17 / 43.28 ms │ 43.14 / 43.45 ±0.27 / 43.92 ms │    no change │
│ QQuery 9  │ 48.52 / 50.19 ±1.02 / 51.56 ms │ 49.78 / 50.52 ±0.91 / 52.24 ms │    no change │
│ QQuery 10 │ 42.43 / 42.93 ±0.63 / 44.06 ms │ 42.33 / 42.87 ±0.29 / 43.21 ms │    no change │
│ QQuery 11 │ 13.59 / 14.12 ±0.56 / 15.02 ms │ 13.29 / 13.50 ±0.12 / 13.60 ms │    no change │
│ QQuery 12 │ 23.81 / 24.11 ±0.34 / 24.76 ms │ 23.96 / 24.44 ±0.30 / 24.78 ms │    no change │
│ QQuery 13 │ 31.75 / 32.93 ±0.96 / 34.61 ms │ 31.84 / 34.99 ±3.43 / 40.89 ms │ 1.06x slower │
│ QQuery 14 │ 23.76 / 23.87 ±0.16 / 24.17 ms │ 23.72 / 24.38 ±0.90 / 26.15 ms │    no change │
│ QQuery 15 │ 31.23 / 32.37 ±0.78 / 33.62 ms │ 31.12 / 31.70 ±0.60 / 32.78 ms │    no change │
│ QQuery 16 │ 14.06 / 14.32 ±0.21 / 14.66 ms │ 13.86 / 14.13 ±0.14 / 14.26 ms │    no change │
│ QQuery 17 │ 73.56 / 74.69 ±1.60 / 77.84 ms │ 72.76 / 74.20 ±1.20 / 76.39 ms │    no change │
│ QQuery 18 │ 58.65 / 60.71 ±1.09 / 61.84 ms │ 58.13 / 60.05 ±1.53 / 62.63 ms │    no change │
│ QQuery 19 │ 32.97 / 33.39 ±0.54 / 34.43 ms │ 33.31 / 33.94 ±0.76 / 35.11 ms │    no change │
│ QQuery 20 │ 31.60 / 32.22 ±0.32 / 32.52 ms │ 32.00 / 32.35 ±0.23 / 32.63 ms │    no change │
│ QQuery 21 │ 54.41 / 55.53 ±0.81 / 56.87 ms │ 55.39 / 57.17 ±1.07 / 58.19 ms │    no change │
│ QQuery 22 │ 13.66 / 13.96 ±0.36 / 14.66 ms │ 13.55 / 13.95 ±0.21 / 14.10 ms │    no change │
└───────────┴────────────────────────────────┴────────────────────────────────┴──────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━┓
┃ Benchmark Summary                            ┃          ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━┩
│ Total Time (HEAD)                            │ 759.60ms │
│ Total Time (perf_in_list_bitmap_u8_filter)   │ 762.68ms │
│ Average Time (HEAD)                          │  34.53ms │
│ Average Time (perf_in_list_bitmap_u8_filter) │  34.67ms │
│ Queries Faster                               │        0 │
│ Queries Slower                               │        1 │
│ Queries with No Change                       │       21 │
│ Queries with Failure                         │        0 │
└──────────────────────────────────────────────┴──────────┘

Resource Usage

tpch — base (merge-base)

Metric Value
Wall time 5.0s
Peak memory 1.2 GiB
Avg memory 513.5 MiB
CPU user 21.9s
CPU sys 1.6s
Peak spill 0 B

tpch — branch

Metric Value
Wall time 5.0s
Peak memory 1.2 GiB
Avg memory 515.1 MiB
CPU user 21.9s
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)

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 perf_in_list_bitmap_u8_filter
--------------------
Benchmark tpcds_sf1.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query     ┃                                  HEAD ┃         perf_in_list_bitmap_u8_filter ┃        Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 1  │           5.68 / 6.18 ±0.87 / 7.90 ms │           5.69 / 6.15 ±0.80 / 7.75 ms │     no change │
│ QQuery 2  │        80.90 / 81.36 ±0.46 / 82.04 ms │        80.83 / 81.35 ±0.32 / 81.83 ms │     no change │
│ QQuery 3  │        29.84 / 29.92 ±0.06 / 30.01 ms │        29.83 / 30.00 ±0.12 / 30.17 ms │     no change │
│ QQuery 4  │     499.89 / 507.33 ±4.71 / 513.50 ms │     494.80 / 500.17 ±2.96 / 503.43 ms │     no change │
│ QQuery 5  │        52.58 / 52.85 ±0.36 / 53.55 ms │        52.11 / 52.71 ±0.47 / 53.52 ms │     no change │
│ QQuery 6  │        37.23 / 37.67 ±0.32 / 38.11 ms │        37.72 / 37.95 ±0.16 / 38.18 ms │     no change │
│ QQuery 7  │       95.57 / 97.49 ±1.88 / 100.16 ms │       95.40 / 97.07 ±2.61 / 102.20 ms │     no change │
│ QQuery 8  │        37.39 / 37.84 ±0.32 / 38.34 ms │        37.34 / 37.87 ±0.45 / 38.66 ms │     no change │
│ QQuery 9  │        52.58 / 54.68 ±1.88 / 57.88 ms │        52.33 / 54.81 ±1.60 / 56.54 ms │     no change │
│ QQuery 10 │        64.58 / 64.88 ±0.16 / 65.05 ms │        63.98 / 64.34 ±0.23 / 64.64 ms │     no change │
│ QQuery 11 │     310.02 / 316.19 ±3.51 / 320.89 ms │     309.42 / 312.81 ±2.81 / 317.10 ms │     no change │
│ QQuery 12 │        28.99 / 29.25 ±0.14 / 29.41 ms │        29.16 / 29.39 ±0.12 / 29.52 ms │     no change │
│ QQuery 13 │     119.33 / 119.75 ±0.28 / 120.13 ms │     118.39 / 121.93 ±4.44 / 130.57 ms │     no change │
│ QQuery 14 │     419.98 / 424.29 ±5.26 / 434.65 ms │     414.90 / 422.82 ±6.16 / 430.25 ms │     no change │
│ QQuery 15 │        58.80 / 59.67 ±0.60 / 60.47 ms │        59.01 / 59.60 ±0.58 / 60.57 ms │     no change │
│ QQuery 16 │           7.00 / 7.14 ±0.13 / 7.39 ms │           6.87 / 7.02 ±0.17 / 7.35 ms │     no change │
│ QQuery 17 │        81.21 / 82.58 ±1.43 / 85.12 ms │        81.01 / 82.23 ±1.17 / 84.29 ms │     no change │
│ QQuery 18 │     124.06 / 126.04 ±1.14 / 127.51 ms │     125.08 / 127.29 ±1.88 / 130.22 ms │     no change │
│ QQuery 19 │        42.78 / 43.05 ±0.27 / 43.54 ms │        41.98 / 42.22 ±0.28 / 42.74 ms │     no change │
│ QQuery 20 │        36.21 / 37.53 ±1.57 / 40.33 ms │        36.12 / 37.41 ±1.04 / 39.15 ms │     no change │
│ QQuery 21 │        17.67 / 17.83 ±0.16 / 18.14 ms │        17.86 / 18.85 ±1.28 / 21.35 ms │  1.06x slower │
│ QQuery 22 │        63.49 / 64.72 ±0.66 / 65.34 ms │        62.92 / 64.18 ±0.77 / 65.11 ms │     no change │
│ QQuery 23 │     349.79 / 353.74 ±3.47 / 359.22 ms │     350.07 / 354.99 ±3.78 / 360.13 ms │     no change │
│ QQuery 24 │     228.58 / 231.56 ±4.63 / 240.78 ms │     228.30 / 231.70 ±3.13 / 235.40 ms │     no change │
│ QQuery 25 │     112.14 / 113.51 ±1.10 / 115.21 ms │     111.37 / 112.65 ±1.44 / 114.52 ms │     no change │
│ QQuery 26 │        58.90 / 60.17 ±1.07 / 61.44 ms │        59.10 / 59.90 ±0.64 / 60.75 ms │     no change │
│ QQuery 27 │           6.58 / 6.78 ±0.15 / 7.03 ms │           6.50 / 6.61 ±0.15 / 6.91 ms │     no change │
│ QQuery 28 │        60.58 / 61.62 ±0.71 / 62.66 ms │        58.21 / 60.94 ±1.46 / 62.48 ms │     no change │
│ QQuery 29 │      98.71 / 103.52 ±4.84 / 111.31 ms │      98.85 / 101.00 ±3.27 / 107.49 ms │     no change │
│ QQuery 30 │        33.54 / 33.74 ±0.16 / 33.92 ms │        33.08 / 33.63 ±0.45 / 34.17 ms │     no change │
│ QQuery 31 │     112.57 / 113.46 ±1.22 / 115.79 ms │     113.03 / 113.85 ±0.53 / 114.58 ms │     no change │
│ QQuery 32 │        20.66 / 21.09 ±0.31 / 21.60 ms │        21.43 / 22.78 ±2.45 / 27.67 ms │  1.08x slower │
│ QQuery 33 │        38.35 / 38.81 ±0.25 / 39.06 ms │        38.62 / 39.89 ±0.90 / 41.38 ms │     no change │
│ QQuery 34 │         9.91 / 10.21 ±0.28 / 10.69 ms │        10.17 / 10.54 ±0.36 / 11.17 ms │     no change │
│ QQuery 35 │        72.57 / 73.47 ±0.58 / 74.33 ms │        74.15 / 74.78 ±0.44 / 75.40 ms │     no change │
│ QQuery 36 │           5.90 / 6.01 ±0.13 / 6.26 ms │           5.98 / 6.09 ±0.16 / 6.42 ms │     no change │
│ QQuery 37 │           7.04 / 7.07 ±0.04 / 7.14 ms │           7.15 / 7.30 ±0.14 / 7.56 ms │     no change │
│ QQuery 38 │        62.84 / 63.28 ±0.42 / 63.87 ms │        63.92 / 65.16 ±1.58 / 68.18 ms │     no change │
│ QQuery 39 │     449.18 / 453.34 ±2.23 / 455.62 ms │     446.48 / 453.33 ±6.34 / 464.24 ms │     no change │
│ QQuery 40 │        23.63 / 23.85 ±0.17 / 24.05 ms │        23.68 / 24.09 ±0.25 / 24.44 ms │     no change │
│ QQuery 41 │        11.61 / 11.93 ±0.26 / 12.38 ms │        11.82 / 12.01 ±0.21 / 12.41 ms │     no change │
│ QQuery 42 │        23.87 / 24.09 ±0.16 / 24.33 ms │        23.93 / 24.11 ±0.16 / 24.40 ms │     no change │
│ QQuery 43 │           4.88 / 5.02 ±0.16 / 5.34 ms │           4.96 / 5.06 ±0.14 / 5.33 ms │     no change │
│ QQuery 44 │          9.58 / 9.71 ±0.17 / 10.02 ms │           9.61 / 9.70 ±0.11 / 9.91 ms │     no change │
│ QQuery 45 │        38.81 / 40.18 ±1.00 / 41.67 ms │        39.27 / 40.07 ±0.72 / 41.13 ms │     no change │
│ QQuery 46 │        11.88 / 13.41 ±2.62 / 18.64 ms │        11.73 / 11.99 ±0.15 / 12.18 ms │ +1.12x faster │
│ QQuery 47 │     232.52 / 236.47 ±4.03 / 242.29 ms │     229.28 / 234.00 ±3.54 / 239.07 ms │     no change │
│ QQuery 48 │        96.92 / 97.96 ±0.66 / 98.93 ms │       97.23 / 98.26 ±1.68 / 101.60 ms │     no change │
│ QQuery 49 │        77.39 / 80.56 ±4.55 / 89.57 ms │        77.22 / 77.84 ±0.37 / 78.38 ms │     no change │
│ QQuery 50 │        60.68 / 62.02 ±2.43 / 66.87 ms │        58.89 / 60.29 ±1.23 / 62.52 ms │     no change │
│ QQuery 51 │        92.98 / 94.17 ±1.20 / 96.41 ms │        91.67 / 94.22 ±1.58 / 96.58 ms │     no change │
│ QQuery 52 │        24.16 / 24.50 ±0.27 / 24.94 ms │        24.00 / 24.38 ±0.22 / 24.68 ms │     no change │
│ QQuery 53 │        30.24 / 31.76 ±2.53 / 36.80 ms │        29.89 / 32.25 ±4.45 / 41.15 ms │     no change │
│ QQuery 54 │        57.04 / 58.19 ±1.79 / 61.75 ms │        56.35 / 57.50 ±1.39 / 60.12 ms │     no change │
│ QQuery 55 │        23.70 / 24.05 ±0.25 / 24.42 ms │        23.95 / 24.31 ±0.35 / 24.91 ms │     no change │
│ QQuery 56 │        39.27 / 39.88 ±0.42 / 40.43 ms │        39.54 / 39.82 ±0.21 / 40.16 ms │     no change │
│ QQuery 57 │     180.53 / 181.39 ±1.24 / 183.85 ms │     178.09 / 181.67 ±3.20 / 187.59 ms │     no change │
│ QQuery 58 │     117.33 / 118.70 ±1.23 / 120.14 ms │     116.27 / 118.54 ±2.81 / 124.04 ms │     no change │
│ QQuery 59 │     117.63 / 119.04 ±0.99 / 120.47 ms │     118.29 / 119.83 ±2.03 / 123.85 ms │     no change │
│ QQuery 60 │        39.97 / 40.40 ±0.26 / 40.77 ms │        40.60 / 41.15 ±0.40 / 41.61 ms │     no change │
│ QQuery 61 │        12.73 / 12.84 ±0.18 / 13.20 ms │        12.87 / 13.03 ±0.22 / 13.48 ms │     no change │
│ QQuery 62 │        46.94 / 47.44 ±0.72 / 48.86 ms │        47.57 / 49.57 ±1.71 / 51.88 ms │     no change │
│ QQuery 63 │        30.13 / 30.33 ±0.17 / 30.62 ms │        30.18 / 30.67 ±0.43 / 31.44 ms │     no change │
│ QQuery 64 │     416.85 / 419.63 ±2.48 / 423.65 ms │     415.15 / 419.67 ±3.83 / 426.74 ms │     no change │
│ QQuery 65 │     145.25 / 149.34 ±2.47 / 151.83 ms │     147.28 / 150.16 ±1.69 / 151.99 ms │     no change │
│ QQuery 66 │        79.33 / 79.88 ±0.43 / 80.58 ms │        79.29 / 80.45 ±0.87 / 81.83 ms │     no change │
│ QQuery 67 │     244.64 / 247.70 ±3.29 / 251.72 ms │     243.38 / 250.21 ±6.65 / 259.44 ms │     no change │
│ QQuery 68 │        12.02 / 14.67 ±4.13 / 22.89 ms │        12.08 / 12.33 ±0.24 / 12.78 ms │ +1.19x faster │
│ QQuery 69 │        58.85 / 59.88 ±0.97 / 61.69 ms │        58.19 / 63.02 ±5.64 / 73.94 ms │  1.05x slower │
│ QQuery 70 │     106.49 / 108.15 ±2.29 / 112.69 ms │     105.06 / 108.68 ±3.64 / 114.97 ms │     no change │
│ QQuery 71 │        35.40 / 38.85 ±4.64 / 47.94 ms │        35.39 / 35.76 ±0.26 / 36.07 ms │ +1.09x faster │
│ QQuery 72 │ 2146.90 / 2230.19 ±68.77 / 2311.31 ms │ 2196.49 / 2245.58 ±33.80 / 2289.56 ms │     no change │
│ QQuery 73 │         9.78 / 10.30 ±0.33 / 10.67 ms │        10.03 / 10.35 ±0.29 / 10.81 ms │     no change │
│ QQuery 74 │     174.74 / 177.16 ±1.41 / 179.01 ms │     172.16 / 175.60 ±2.01 / 178.15 ms │     no change │
│ QQuery 75 │     150.73 / 152.66 ±2.55 / 157.62 ms │     150.69 / 152.58 ±2.52 / 157.42 ms │     no change │
│ QQuery 76 │        35.29 / 37.04 ±1.74 / 40.28 ms │        35.63 / 38.71 ±4.97 / 48.62 ms │     no change │
│ QQuery 77 │        61.16 / 62.99 ±2.34 / 67.57 ms │        61.80 / 63.52 ±1.50 / 66.30 ms │     no change │
│ QQuery 78 │     187.92 / 192.64 ±3.65 / 198.85 ms │     187.33 / 192.34 ±4.52 / 199.40 ms │     no change │
│ QQuery 79 │        68.04 / 68.59 ±0.32 / 68.99 ms │        67.90 / 68.30 ±0.26 / 68.58 ms │     no change │
│ QQuery 80 │     100.32 / 105.34 ±3.97 / 109.91 ms │     100.03 / 101.27 ±1.01 / 102.65 ms │     no change │
│ QQuery 81 │        26.47 / 26.90 ±0.39 / 27.63 ms │        26.25 / 26.43 ±0.09 / 26.51 ms │     no change │
│ QQuery 82 │        16.84 / 17.25 ±0.27 / 17.67 ms │        16.53 / 17.23 ±1.09 / 19.39 ms │     no change │
│ QQuery 83 │        40.79 / 41.31 ±0.36 / 41.87 ms │        40.47 / 41.13 ±0.39 / 41.62 ms │     no change │
│ QQuery 84 │        30.33 / 30.69 ±0.19 / 30.85 ms │        30.10 / 30.61 ±0.31 / 30.91 ms │     no change │
│ QQuery 85 │     108.95 / 113.34 ±4.07 / 119.97 ms │     108.53 / 113.68 ±6.63 / 125.66 ms │     no change │
│ QQuery 86 │        25.74 / 26.23 ±0.44 / 26.84 ms │        25.32 / 25.93 ±0.75 / 27.36 ms │     no change │
│ QQuery 87 │        62.80 / 64.15 ±1.09 / 66.13 ms │        62.86 / 64.13 ±1.14 / 65.85 ms │     no change │
│ QQuery 88 │        64.72 / 67.21 ±3.79 / 74.66 ms │        63.73 / 64.73 ±1.40 / 67.47 ms │     no change │
│ QQuery 89 │        36.33 / 37.20 ±0.56 / 37.88 ms │        36.25 / 37.06 ±0.83 / 38.29 ms │     no change │
│ QQuery 90 │        17.55 / 17.79 ±0.17 / 18.07 ms │        17.48 / 17.66 ±0.15 / 17.92 ms │     no change │
│ QQuery 91 │        46.94 / 47.46 ±0.31 / 47.87 ms │        46.96 / 47.74 ±0.56 / 48.57 ms │     no change │
│ QQuery 92 │        30.24 / 30.96 ±0.61 / 31.81 ms │        30.32 / 30.71 ±0.26 / 31.13 ms │     no change │
│ QQuery 93 │        51.01 / 51.42 ±0.32 / 51.86 ms │        49.12 / 50.42 ±0.83 / 51.42 ms │     no change │
│ QQuery 94 │        40.10 / 41.07 ±0.97 / 42.84 ms │        38.73 / 40.05 ±1.38 / 42.65 ms │     no change │
│ QQuery 95 │        82.86 / 84.46 ±1.15 / 86.22 ms │        82.90 / 83.89 ±0.60 / 84.53 ms │     no change │
│ QQuery 96 │        24.31 / 24.74 ±0.29 / 25.23 ms │        24.42 / 24.71 ±0.18 / 24.93 ms │     no change │
│ QQuery 97 │        47.14 / 48.50 ±1.90 / 52.23 ms │        46.89 / 47.14 ±0.17 / 47.39 ms │     no change │
│ QQuery 98 │        43.13 / 44.61 ±1.27 / 46.97 ms │        43.00 / 44.79 ±1.94 / 48.39 ms │     no change │
│ QQuery 99 │        71.01 / 71.45 ±0.31 / 71.92 ms │        70.67 / 71.18 ±0.33 / 71.48 ms │     no change │
└───────────┴───────────────────────────────────────┴───────────────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ Benchmark Summary                            ┃            ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
│ Total Time (HEAD)                            │ 10519.24ms │
│ Total Time (perf_in_list_bitmap_u8_filter)   │ 10515.41ms │
│ Average Time (HEAD)                          │   106.25ms │
│ Average Time (perf_in_list_bitmap_u8_filter) │   106.22ms │
│ Queries Faster                               │          3 │
│ Queries Slower                               │          3 │
│ Queries with No Change                       │         93 │
│ Queries with Failure                         │          0 │
└──────────────────────────────────────────────┴────────────┘

Resource Usage

tpcds — base (merge-base)

Metric Value
Wall time 55.0s
Peak memory 2.1 GiB
Avg memory 1.5 GiB
CPU user 237.9s
CPU sys 5.9s
Peak spill 0 B

tpcds — branch

Metric Value
Wall time 55.0s
Peak memory 1.9 GiB
Avg memory 1.3 GiB
CPU user 240.1s
CPU sys 5.8s
Peak spill 0 B

File an issue against this benchmark runner

@geoffreyclaude

Copy link
Copy Markdown
Contributor Author

@geoffreyclaude mind fixing failing ci?

@adriangb Unfortunately it's completely unrelated to my change:

Failed to start MinIO container. Ensure Docker is running and accessible: failed to pull the image 'minio/minio:RELEASE.2025-02-28T09-55-16Z'

@adriangbot

Copy link
Copy Markdown

🤖 Benchmark completed (GKE) | trigger

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

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

Comparing HEAD and perf_in_list_bitmap_u8_filter
--------------------
Benchmark clickbench_partitioned.json
--------------------
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┓
┃ Query     ┃                                  HEAD ┃         perf_in_list_bitmap_u8_filter ┃        Change ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━┩
│ QQuery 0  │          1.26 / 4.07 ±5.51 / 15.10 ms │          1.22 / 3.96 ±5.42 / 14.79 ms │     no change │
│ QQuery 1  │        13.25 / 13.53 ±0.15 / 13.67 ms │        12.74 / 13.02 ±0.18 / 13.26 ms │     no change │
│ QQuery 2  │        36.26 / 36.64 ±0.32 / 37.18 ms │        36.36 / 36.70 ±0.23 / 36.95 ms │     no change │
│ QQuery 3  │        30.44 / 31.28 ±0.87 / 32.91 ms │        30.17 / 30.66 ±0.68 / 32.02 ms │     no change │
│ QQuery 4  │     225.60 / 226.76 ±1.10 / 228.33 ms │     217.56 / 221.51 ±2.74 / 225.29 ms │     no change │
│ QQuery 5  │     271.21 / 273.44 ±1.65 / 275.06 ms │     269.88 / 272.97 ±2.33 / 275.72 ms │     no change │
│ QQuery 6  │           1.25 / 1.40 ±0.22 / 1.83 ms │           1.28 / 1.44 ±0.23 / 1.90 ms │     no change │
│ QQuery 7  │        14.30 / 14.53 ±0.18 / 14.85 ms │        14.25 / 14.39 ±0.08 / 14.48 ms │     no change │
│ QQuery 8  │     320.20 / 324.15 ±2.53 / 328.10 ms │     319.16 / 322.59 ±2.32 / 326.43 ms │     no change │
│ QQuery 9  │     450.78 / 455.54 ±3.06 / 458.99 ms │     450.56 / 458.82 ±8.59 / 474.19 ms │     no change │
│ QQuery 10 │        70.70 / 73.35 ±4.13 / 81.59 ms │        71.24 / 71.70 ±0.40 / 72.35 ms │     no change │
│ QQuery 11 │        81.81 / 82.81 ±0.83 / 84.18 ms │        82.15 / 83.08 ±0.64 / 84.07 ms │     no change │
│ QQuery 12 │     267.62 / 271.83 ±4.49 / 277.81 ms │     263.22 / 271.64 ±7.17 / 281.95 ms │     no change │
│ QQuery 13 │     364.56 / 375.00 ±8.05 / 386.77 ms │     369.42 / 375.81 ±5.35 / 385.10 ms │     no change │
│ QQuery 14 │     282.65 / 287.93 ±5.19 / 296.61 ms │     279.33 / 283.88 ±4.07 / 291.21 ms │     no change │
│ QQuery 15 │     264.21 / 271.43 ±7.28 / 285.26 ms │     266.67 / 273.07 ±4.95 / 279.27 ms │     no change │
│ QQuery 16 │    600.81 / 618.92 ±10.05 / 631.87 ms │     618.59 / 628.11 ±8.11 / 639.71 ms │     no change │
│ QQuery 17 │     616.52 / 620.69 ±3.44 / 624.96 ms │     617.21 / 628.53 ±7.33 / 636.59 ms │     no change │
│ QQuery 18 │ 1239.68 / 1268.28 ±23.35 / 1308.21 ms │ 1263.67 / 1303.53 ±27.67 / 1328.36 ms │     no change │
│ QQuery 19 │        27.78 / 30.88 ±5.24 / 41.31 ms │       27.32 / 35.00 ±13.44 / 61.82 ms │  1.13x slower │
│ QQuery 20 │     515.40 / 526.91 ±8.32 / 539.33 ms │    519.80 / 531.42 ±12.89 / 555.98 ms │     no change │
│ QQuery 21 │     518.50 / 523.66 ±4.66 / 530.86 ms │     517.58 / 527.50 ±8.25 / 538.24 ms │     no change │
│ QQuery 22 │   998.65 / 1008.62 ±5.89 / 1014.97 ms │     985.61 / 993.36 ±5.15 / 999.39 ms │     no change │
│ QQuery 23 │ 3071.94 / 3093.57 ±12.15 / 3106.71 ms │ 3078.03 / 3123.95 ±40.51 / 3173.01 ms │     no change │
│ QQuery 24 │        41.44 / 44.87 ±4.79 / 54.19 ms │        41.37 / 45.61 ±6.88 / 59.30 ms │     no change │
│ QQuery 25 │     111.40 / 113.03 ±1.28 / 114.87 ms │     112.86 / 113.96 ±1.20 / 116.12 ms │     no change │
│ QQuery 26 │        41.68 / 45.30 ±5.41 / 56.04 ms │        41.98 / 44.52 ±3.96 / 52.41 ms │     no change │
│ QQuery 27 │     671.31 / 675.95 ±4.24 / 682.38 ms │     665.87 / 672.67 ±5.11 / 681.44 ms │     no change │
│ QQuery 28 │ 3028.49 / 3046.09 ±18.70 / 3080.95 ms │  3033.94 / 3047.47 ±7.62 / 3057.19 ms │     no change │
│ QQuery 29 │        40.42 / 41.16 ±1.03 / 43.19 ms │        41.17 / 50.76 ±8.76 / 63.79 ms │  1.23x slower │
│ QQuery 30 │    304.36 / 312.98 ±10.86 / 334.13 ms │     298.45 / 311.19 ±9.12 / 319.19 ms │     no change │
│ QQuery 31 │     284.27 / 289.72 ±5.79 / 298.52 ms │    285.37 / 297.18 ±10.66 / 315.81 ms │     no change │
│ QQuery 32 │    938.37 / 957.73 ±19.18 / 986.09 ms │   944.95 / 987.71 ±24.84 / 1017.51 ms │     no change │
│ QQuery 33 │ 1455.06 / 1493.73 ±30.60 / 1541.50 ms │ 1444.11 / 1477.30 ±24.48 / 1510.64 ms │     no change │
│ QQuery 34 │ 1484.42 / 1499.72 ±10.95 / 1517.31 ms │ 1437.86 / 1485.30 ±29.38 / 1530.66 ms │     no change │
│ QQuery 35 │    277.74 / 315.07 ±60.38 / 435.20 ms │   276.93 / 361.45 ±119.96 / 589.46 ms │  1.15x slower │
│ QQuery 36 │        67.35 / 78.33 ±7.66 / 86.84 ms │        64.97 / 68.26 ±2.54 / 71.97 ms │ +1.15x faster │
│ QQuery 37 │        35.91 / 37.99 ±2.36 / 42.59 ms │        35.71 / 41.39 ±4.79 / 48.36 ms │  1.09x slower │
│ QQuery 38 │        40.08 / 45.56 ±5.21 / 55.47 ms │        40.40 / 42.72 ±1.79 / 45.90 ms │ +1.07x faster │
│ QQuery 39 │     133.66 / 144.17 ±5.97 / 151.65 ms │    136.29 / 154.59 ±17.71 / 188.43 ms │  1.07x slower │
│ QQuery 40 │        13.87 / 15.29 ±2.18 / 19.63 ms │        13.64 / 14.43 ±0.48 / 14.97 ms │ +1.06x faster │
│ QQuery 41 │        13.81 / 16.48 ±5.02 / 26.52 ms │        13.38 / 13.60 ±0.13 / 13.77 ms │ +1.21x faster │
│ QQuery 42 │        13.56 / 13.80 ±0.14 / 13.95 ms │        12.99 / 15.99 ±5.68 / 27.35 ms │  1.16x slower │
└───────────┴───────────────────────────────────────┴───────────────────────────────────────┴───────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ Benchmark Summary                            ┃            ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━┩
│ Total Time (HEAD)                            │ 19622.19ms │
│ Total Time (perf_in_list_bitmap_u8_filter)   │ 19752.74ms │
│ Average Time (HEAD)                          │   456.33ms │
│ Average Time (perf_in_list_bitmap_u8_filter) │   459.37ms │
│ Queries Faster                               │          4 │
│ Queries Slower                               │          6 │
│ Queries with No Change                       │         33 │
│ Queries with Failure                         │          0 │
└──────────────────────────────────────────────┴────────────┘

Resource Usage

clickbench_partitioned — base (merge-base)

Metric Value
Wall time 100.0s
Peak memory 11.8 GiB
Avg memory 4.5 GiB
CPU user 1008.3s
CPU sys 71.1s
Peak spill 0 B

clickbench_partitioned — branch

Metric Value
Wall time 100.0s
Peak memory 11.5 GiB
Avg memory 4.6 GiB
CPU user 1006.9s
CPU sys 71.3s
Peak spill 0 B

File an issue against this benchmark runner

@alamb

alamb commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

@geoffreyclaude mind fixing failing ci?

@adriangb Unfortunately it's completely unrelated to my change:

Failed to start MinIO container. Ensure Docker is running and accessible: failed to pull the image 'minio/minio:RELEASE.2025-02-28T09-55-16Z'

I retriggered it

Replaces HashSet<u8> with a 32-byte stack-allocated bitmap. Provides O(1) membership testing via bit-shifting, significantly reducing memory overhead and improving cache locality. Triggers for UInt8 arrays.
@geoffreyclaude geoffreyclaude force-pushed the perf/in_list_bitmap_u8_filter branch from acfc578 to 3bf986a Compare June 22, 2026 15:29
@adriangbot

Copy link
Copy Markdown

🤖 Benchmark completed (GKE) | trigger

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

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

group                                                                HEAD                                   perf_in_list_bitmap_u8_filter
-----                                                                ----                                   -----------------------------
dictionary/i32/dict=10/list=16                                       1.00      7.6±0.00µs        ? ?/sec    1.00      7.6±0.01µs        ? ?/sec
dictionary/i32/dict=100/list=16                                      1.00      7.7±0.00µs        ? ?/sec    1.00      7.8±0.01µs        ? ?/sec
dictionary/i32/dict=100/list=16/NOT_IN                               1.00      7.7±0.02µs        ? ?/sec    1.00      7.7±0.09µs        ? ?/sec
dictionary/i32/dict=100/list=4                                       1.00      7.7±0.03µs        ? ?/sec    1.00      7.7±0.01µs        ? ?/sec
dictionary/i32/dict=100/list=64                                      1.00      7.8±0.00µs        ? ?/sec    1.00      7.8±0.01µs        ? ?/sec
dictionary/i32/dict=1000/list=16                                     1.01      9.0±0.05µs        ? ?/sec    1.00      9.0±0.01µs        ? ?/sec
dictionary/utf8_long/dict=100/list=16                                1.01      8.4±0.01µs        ? ?/sec    1.00      8.4±0.02µs        ? ?/sec
dictionary/utf8_short/dict=50/list=32                                1.00      8.1±0.01µs        ? ?/sec    1.00      8.2±0.01µs        ? ?/sec
dictionary/utf8_short/dict=50/list=8                                 1.00      8.0±0.01µs        ? ?/sec    1.00      8.0±0.01µs        ? ?/sec
dictionary/utf8_short/dict=500/list=20                               1.00      9.7±0.01µs        ? ?/sec    1.00      9.7±0.06µs        ? ?/sec
f32/large_list/list=64/match=0%                                      1.00     15.8±0.03µs        ? ?/sec    1.00     15.8±0.03µs        ? ?/sec
f32/large_list/list=64/match=50%                                     1.00     22.3±0.20µs        ? ?/sec    1.01     22.5±0.38µs        ? ?/sec
f32/small_list/list=32/match=0%                                      1.00     15.8±0.01µs        ? ?/sec    1.02     16.1±0.04µs        ? ?/sec
f32/small_list/list=32/match=50%                                     1.40     27.1±0.29µs        ? ?/sec    1.00     19.4±0.10µs        ? ?/sec
f32/small_list/list=4/match=0%                                       1.01     16.1±0.01µs        ? ?/sec    1.00     16.0±0.01µs        ? ?/sec
f32/small_list/list=4/match=50%                                      1.00     27.7±0.21µs        ? ?/sec    1.01     28.0±0.32µs        ? ?/sec
fixed_size_binary/fsb16/list=10000/match=0%                          1.07     26.9±0.06µs        ? ?/sec    1.00     25.1±0.02µs        ? ?/sec
fixed_size_binary/fsb16/list=10000/match=50%                         1.04     56.8±0.46µs        ? ?/sec    1.00     54.6±0.23µs        ? ?/sec
fixed_size_binary/fsb16/list=256/match=0%                            1.04     24.7±0.24µs        ? ?/sec    1.00     23.7±0.02µs        ? ?/sec
fixed_size_binary/fsb16/list=256/match=50%                           1.04     52.1±0.60µs        ? ?/sec    1.00     49.9±0.63µs        ? ?/sec
fixed_size_binary/fsb16/list=4/match=0%                              1.05     23.9±0.21µs        ? ?/sec    1.00     22.8±0.02µs        ? ?/sec
fixed_size_binary/fsb16/list=4/match=50%                             1.00     55.1±0.63µs        ? ?/sec    1.03     56.7±1.24µs        ? ?/sec
fixed_size_binary/fsb16/list=64/match=0%                             1.02     23.6±0.02µs        ? ?/sec    1.00     23.0±0.22µs        ? ?/sec
fixed_size_binary/fsb16/list=64/match=50%                            1.00     54.6±0.52µs        ? ?/sec    1.02     55.5±0.24µs        ? ?/sec
narrow_integer/i16/list=256/match=0%                                 1.01     12.1±0.03µs        ? ?/sec    1.00     12.0±0.00µs        ? ?/sec
narrow_integer/i16/list=256/match=50%                                1.00     18.2±0.17µs        ? ?/sec    1.07     19.5±0.15µs        ? ?/sec
narrow_integer/i16/list=4/match=0%                                   1.06     12.6±0.01µs        ? ?/sec    1.00     11.9±0.03µs        ? ?/sec
narrow_integer/i16/list=4/match=50%                                  1.00     22.1±0.22µs        ? ?/sec    1.01     22.3±0.36µs        ? ?/sec
narrow_integer/i16/list=64/match=0%                                  1.05     12.7±0.03µs        ? ?/sec    1.00     12.1±0.01µs        ? ?/sec
narrow_integer/i16/list=64/match=50%                                 1.00     20.6±0.34µs        ? ?/sec    1.02     20.9±0.14µs        ? ?/sec
narrow_integer/u8/list=16/match=0%                                   2.40     12.5±0.15µs        ? ?/sec    1.00      5.2±0.00µs        ? ?/sec
narrow_integer/u8/list=16/match=50%                                  4.36     22.7±0.47µs        ? ?/sec    1.00      5.2±0.01µs        ? ?/sec
narrow_integer/u8/list=4/match=0%                                    2.37     12.3±0.02µs        ? ?/sec    1.00      5.2±0.00µs        ? ?/sec
narrow_integer/u8/list=4/match=50%                                   4.47     23.3±0.19µs        ? ?/sec    1.00      5.2±0.01µs        ? ?/sec
nulls/narrow_integer/u8/list=16/match=50%/nulls=20%                  4.70     24.8±0.11µs        ? ?/sec    1.00      5.3±0.02µs        ? ?/sec
nulls/primitive/i32/large_list/list=64/match=50%/nulls=20%           1.25     27.8±0.50µs        ? ?/sec    1.00     22.3±0.10µs        ? ?/sec
nulls/primitive/i32/small_list/list=16/match=50%/nulls=20%           1.31     28.8±0.30µs        ? ?/sec    1.00     21.9±0.09µs        ? ?/sec
nulls/primitive/i32/small_list/list=16/match=50%/nulls=20%/NOT_IN    1.10     25.6±0.17µs        ? ?/sec    1.00     23.2±0.12µs        ? ?/sec
nulls/primitive/i32/small_list/list=16/match=50%/nulls=50%           1.42     22.6±0.19µs        ? ?/sec    1.00     15.8±0.08µs        ? ?/sec
nulls/utf8/long_24b/list=16/match=50%/nulls=20%                      1.04     73.2±1.20µs        ? ?/sec    1.00     70.3±0.39µs        ? ?/sec
nulls/utf8/short_8b/list=16/match=50%/nulls=20%                      1.07     63.1±0.44µs        ? ?/sec    1.00     59.0±0.40µs        ? ?/sec
nulls/utf8view/long_24b/list=16/match=50%/nulls=20%                  1.00     86.6±0.76µs        ? ?/sec    1.00     86.7±0.13µs        ? ?/sec
nulls/utf8view/short_8b/list=16/match=50%/nulls=20%                  1.00     45.5±0.27µs        ? ?/sec    1.07     48.6±0.23µs        ? ?/sec
nulls/utf8view/short_8b/list=16/match=50%/nulls=20%/NOT_IN           1.00     45.6±0.22µs        ? ?/sec    1.06     48.5±0.17µs        ? ?/sec
nulls/utf8view/short_8b/list=16/match=50%/nulls=50%                  1.00     35.8±0.15µs        ? ?/sec    1.00     35.9±0.11µs        ? ?/sec
primitive/i32/large_list/list=256/match=0%                           1.00     12.2±0.01µs        ? ?/sec    1.02     12.4±0.00µs        ? ?/sec
primitive/i32/large_list/list=256/match=50%                          1.46     26.6±0.27µs        ? ?/sec    1.00     18.3±0.26µs        ? ?/sec
primitive/i32/large_list/list=64/match=0%                            1.00     11.9±0.01µs        ? ?/sec    1.00     11.8±0.02µs        ? ?/sec
primitive/i32/large_list/list=64/match=50%                           1.49     31.4±0.19µs        ? ?/sec    1.00     21.1±0.60µs        ? ?/sec
primitive/i32/small_list/list=16/match=50%/NOT_IN                    1.11     28.7±0.30µs        ? ?/sec    1.00     25.8±0.25µs        ? ?/sec
primitive/i32/small_list/list=32/match=0%                            1.01     12.0±0.02µs        ? ?/sec    1.00     11.9±0.04µs        ? ?/sec
primitive/i32/small_list/list=32/match=50%                           1.15     26.2±0.32µs        ? ?/sec    1.00     22.8±0.38µs        ? ?/sec
primitive/i32/small_list/list=4/match=0%                             1.01     12.1±0.01µs        ? ?/sec    1.00     12.0±0.01µs        ? ?/sec
primitive/i32/small_list/list=4/match=50%                            1.49     32.6±0.17µs        ? ?/sec    1.00     21.8±0.52µs        ? ?/sec
primitive/i64/large_list/list=128/match=0%                           1.09     13.1±0.01µs        ? ?/sec    1.00     12.0±0.01µs        ? ?/sec
primitive/i64/large_list/list=128/match=50%                          1.00     19.3±0.20µs        ? ?/sec    1.03     19.8±0.14µs        ? ?/sec
primitive/i64/large_list/list=32/match=0%                            1.00     12.1±0.01µs        ? ?/sec    1.00     12.1±0.02µs        ? ?/sec
primitive/i64/large_list/list=32/match=50%                           1.20     21.6±0.29µs        ? ?/sec    1.00     17.9±0.21µs        ? ?/sec
primitive/i64/small_list/list=16/match=0%                            1.05     12.7±0.01µs        ? ?/sec    1.00     12.0±0.01µs        ? ?/sec
primitive/i64/small_list/list=16/match=50%                           1.00     22.1±0.34µs        ? ?/sec    1.00     22.0±0.25µs        ? ?/sec
primitive/i64/small_list/list=4/match=0%                             1.00     12.0±0.03µs        ? ?/sec    1.00     12.0±0.01µs        ? ?/sec
primitive/i64/small_list/list=4/match=50%                            1.03     23.4±0.44µs        ? ?/sec    1.00     22.7±0.61µs        ? ?/sec
timestamp_ns/large_list/list=32/match=0%                             1.00     17.5±0.02µs        ? ?/sec    1.00     17.5±0.03µs        ? ?/sec
timestamp_ns/large_list/list=32/match=50%                            1.11     33.7±0.28µs        ? ?/sec    1.00     30.3±0.64µs        ? ?/sec
timestamp_ns/small_list/list=16/match=0%                             1.01     17.7±0.07µs        ? ?/sec    1.00     17.5±0.02µs        ? ?/sec
timestamp_ns/small_list/list=16/match=50%                            1.20     35.8±0.31µs        ? ?/sec    1.00     29.8±0.78µs        ? ?/sec
timestamp_ns/small_list/list=4/match=0%                              1.00     17.7±0.18µs        ? ?/sec    1.02     18.0±0.44µs        ? ?/sec
timestamp_ns/small_list/list=4/match=50%                             1.04     32.1±0.15µs        ? ?/sec    1.00     30.8±0.26µs        ? ?/sec
utf8/long_24b/list=256/match=0%                                      1.02     34.5±0.03µs        ? ?/sec    1.00     33.8±0.04µs        ? ?/sec
utf8/long_24b/list=256/match=50%                                     1.00     71.8±0.52µs        ? ?/sec    1.01     72.5±0.47µs        ? ?/sec
utf8/long_24b/list=4/match=0%                                        1.03     35.1±0.12µs        ? ?/sec    1.00     34.1±0.08µs        ? ?/sec
utf8/long_24b/list=4/match=50%                                       1.00     72.8±0.48µs        ? ?/sec    1.01     73.5±0.22µs        ? ?/sec
utf8/long_24b/list=64/match=0%                                       1.01     34.7±0.36µs        ? ?/sec    1.00     34.4±0.23µs        ? ?/sec
utf8/long_24b/list=64/match=50%                                      1.00     71.2±0.45µs        ? ?/sec    1.04     73.9±0.54µs        ? ?/sec
utf8/mixed_len/list=16/match=0%                                      1.00     37.9±0.10µs        ? ?/sec    1.00     37.9±0.10µs        ? ?/sec
utf8/mixed_len/list=16/match=50%                                     1.01    107.5±0.87µs        ? ?/sec    1.00    106.3±0.76µs        ? ?/sec
utf8/mixed_len/list=64/match=0%                                      1.00     39.1±0.12µs        ? ?/sec    1.00     39.1±0.12µs        ? ?/sec
utf8/mixed_len/list=64/match=50%                                     1.04    120.5±0.71µs        ? ?/sec    1.00    115.7±0.54µs        ? ?/sec
utf8/shared_prefix/pfx=12/list=32/match=50%                          1.00     71.6±0.33µs        ? ?/sec    1.02     72.9±0.29µs        ? ?/sec
utf8/short_8b/list=16/match=50%/NOT_IN                               1.08     67.9±1.49µs        ? ?/sec    1.00     62.8±0.80µs        ? ?/sec
utf8/short_8b/list=256/match=0%                                      1.04     27.2±0.03µs        ? ?/sec    1.00     26.3±0.02µs        ? ?/sec
utf8/short_8b/list=256/match=50%                                     1.05     65.8±0.51µs        ? ?/sec    1.00     62.6±0.38µs        ? ?/sec
utf8/short_8b/list=4/match=0%                                        1.03     27.1±0.05µs        ? ?/sec    1.00     26.4±0.06µs        ? ?/sec
utf8/short_8b/list=4/match=50%                                       1.01     65.8±0.70µs        ? ?/sec    1.00     65.1±0.32µs        ? ?/sec
utf8/short_8b/list=64/match=0%                                       1.04     27.2±0.08µs        ? ?/sec    1.00     26.2±0.05µs        ? ?/sec
utf8/short_8b/list=64/match=50%                                      1.03     65.3±0.50µs        ? ?/sec    1.00     63.7±0.72µs        ? ?/sec
utf8view/len_12b/list=16/match=0%                                    1.04     18.5±0.02µs        ? ?/sec    1.00     17.9±0.06µs        ? ?/sec
utf8view/len_12b/list=16/match=50%                                   1.00     45.6±0.27µs        ? ?/sec    1.00     45.8±0.37µs        ? ?/sec
utf8view/len_12b/list=64/match=0%                                    1.05     18.7±0.03µs        ? ?/sec    1.00     17.9±0.02µs        ? ?/sec
utf8view/len_12b/list=64/match=50%                                   1.02     46.0±0.27µs        ? ?/sec    1.00     44.9±0.47µs        ? ?/sec
utf8view/long_24b/list=16/match=0%                                   1.03     41.5±0.24µs        ? ?/sec    1.00     40.3±0.02µs        ? ?/sec
utf8view/long_24b/list=16/match=50%                                  1.00     84.8±0.20µs        ? ?/sec    1.02     86.2±0.16µs        ? ?/sec
utf8view/long_24b/list=256/match=0%                                  1.02     40.8±0.30µs        ? ?/sec    1.00     40.1±0.04µs        ? ?/sec
utf8view/long_24b/list=256/match=50%                                 1.00     84.6±0.21µs        ? ?/sec    1.00     84.9±0.21µs        ? ?/sec
utf8view/long_24b/list=4/match=0%                                    1.00     40.8±0.04µs        ? ?/sec    1.01     41.2±0.11µs        ? ?/sec
utf8view/long_24b/list=4/match=50%                                   1.00     84.3±0.34µs        ? ?/sec    1.02     86.2±0.29µs        ? ?/sec
utf8view/long_24b/list=64/match=0%                                   1.01     40.7±0.04µs        ? ?/sec    1.00     40.3±0.03µs        ? ?/sec
utf8view/long_24b/list=64/match=50%                                  1.00     83.6±0.38µs        ? ?/sec    1.00     83.4±0.12µs        ? ?/sec
utf8view/mixed_len/list=16/match=0%                                  1.01     34.2±0.11µs        ? ?/sec    1.00     34.0±0.10µs        ? ?/sec
utf8view/mixed_len/list=16/match=50%                                 1.00     96.4±0.66µs        ? ?/sec    1.00     96.1±0.64µs        ? ?/sec
utf8view/mixed_len/list=64/match=0%                                  1.00     34.3±0.10µs        ? ?/sec    1.00     34.4±0.12µs        ? ?/sec
utf8view/mixed_len/list=64/match=50%                                 1.00    106.8±0.42µs        ? ?/sec    1.00    106.7±0.52µs        ? ?/sec
utf8view/shared_prefix/pfx=12/list=32/match=0%                       1.02     43.1±0.06µs        ? ?/sec    1.00     42.1±0.05µs        ? ?/sec
utf8view/shared_prefix/pfx=12/list=32/match=50%                      1.00     83.9±0.37µs        ? ?/sec    1.00     83.5±0.23µs        ? ?/sec
utf8view/shared_prefix/pfx=16/list=64/match=0%                       1.01     40.7±0.05µs        ? ?/sec    1.00     40.4±0.15µs        ? ?/sec
utf8view/shared_prefix/pfx=16/list=64/match=50%                      1.00     84.4±0.25µs        ? ?/sec    1.01     85.4±0.49µs        ? ?/sec
utf8view/shared_prefix/pfx=8/list=16/match=0%                        1.00     30.0±0.06µs        ? ?/sec    1.00     29.9±0.04µs        ? ?/sec
utf8view/shared_prefix/pfx=8/list=16/match=50%                       1.00     71.7±0.32µs        ? ?/sec    1.00     71.4±0.33µs        ? ?/sec
utf8view/short_8b/list=16/match=0%                                   1.02     18.1±0.02µs        ? ?/sec    1.00     17.7±0.02µs        ? ?/sec
utf8view/short_8b/list=16/match=50%                                  1.00     41.2±0.22µs        ? ?/sec    1.02     42.0±0.18µs        ? ?/sec
utf8view/short_8b/list=256/match=0%                                  1.03     18.3±0.03µs        ? ?/sec    1.00     17.8±0.02µs        ? ?/sec
utf8view/short_8b/list=256/match=50%                                 1.01     41.3±0.13µs        ? ?/sec    1.00     41.0±0.21µs        ? ?/sec
utf8view/short_8b/list=4/match=0%                                    1.04     18.5±0.03µs        ? ?/sec    1.00     17.8±0.03µs        ? ?/sec
utf8view/short_8b/list=4/match=50%                                   1.00     44.7±0.28µs        ? ?/sec    1.00     44.8±0.25µs        ? ?/sec
utf8view/short_8b/list=64/match=0%                                   1.03     18.4±0.04µs        ? ?/sec    1.00     17.9±0.03µs        ? ?/sec
utf8view/short_8b/list=64/match=50%                                  1.00     40.0±0.22µs        ? ?/sec    1.01     40.3±0.20µs        ? ?/sec

Resource Usage

in_list_strategy — base (merge-base)

Metric Value
Wall time 1340.3s
Peak memory 41.4 MiB
Avg memory 28.6 MiB
CPU user 1398.2s
CPU sys 1.2s
Peak spill 0 B

in_list_strategy — branch

Metric Value
Wall time 1330.3s
Peak memory 40.8 MiB
Avg memory 28.3 MiB
CPU user 1408.9s
CPU sys 1.3s
Peak spill 0 B

File an issue against this benchmark runner

@geoffreyclaude geoffreyclaude force-pushed the perf/in_list_bitmap_u8_filter branch from 3bf986a to 2ee4eab Compare June 22, 2026 16:03
let values = prim_array.values();
match prim_array.nulls() {
None => {
for &v in values {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

values.iter().copied().for_each(set_bit) is shorter, but less legible. Both should compile the same.

@geoffreyclaude

Copy link
Copy Markdown
Contributor Author

run benchmark in_list_strategy

@adriangbot

Copy link
Copy Markdown

🤖 Benchmark running (GKE) | trigger
Instance: c4a-highmem-16 (12 vCPU / 65 GiB) | Linux bench-c4771034380-613-nw4hl 6.12.68+ #1 SMP Sat May 2 07:49:07 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 perf/in_list_bitmap_u8_filter (2ee4eab) to 60c407c (merge-base) diff using: in_list_strategy
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)

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

group                                                                HEAD                                   perf_in_list_bitmap_u8_filter
-----                                                                ----                                   -----------------------------
dictionary/i32/dict=10/list=16                                       1.00      7.6±0.01µs        ? ?/sec    1.00      7.6±0.01µs        ? ?/sec
dictionary/i32/dict=100/list=16                                      1.00      7.8±0.04µs        ? ?/sec    1.00      7.7±0.01µs        ? ?/sec
dictionary/i32/dict=100/list=16/NOT_IN                               1.00      7.8±0.01µs        ? ?/sec    1.00      7.7±0.01µs        ? ?/sec
dictionary/i32/dict=100/list=4                                       1.00      7.7±0.01µs        ? ?/sec    1.00      7.7±0.01µs        ? ?/sec
dictionary/i32/dict=100/list=64                                      1.00      7.8±0.07µs        ? ?/sec    1.00      7.8±0.01µs        ? ?/sec
dictionary/i32/dict=1000/list=16                                     1.00      9.0±0.01µs        ? ?/sec    1.00      9.0±0.01µs        ? ?/sec
dictionary/utf8_long/dict=100/list=16                                1.00      8.4±0.03µs        ? ?/sec    1.00      8.3±0.01µs        ? ?/sec
dictionary/utf8_short/dict=50/list=32                                1.00      8.1±0.01µs        ? ?/sec    1.00      8.1±0.01µs        ? ?/sec
dictionary/utf8_short/dict=50/list=8                                 1.00      8.0±0.01µs        ? ?/sec    1.00      8.0±0.01µs        ? ?/sec
dictionary/utf8_short/dict=500/list=20                               1.01      9.7±0.05µs        ? ?/sec    1.00      9.6±0.01µs        ? ?/sec
f32/large_list/list=64/match=0%                                      1.00     15.6±0.01µs        ? ?/sec    1.00     15.7±0.01µs        ? ?/sec
f32/large_list/list=64/match=50%                                     1.00     26.5±0.41µs        ? ?/sec    1.06     28.1±0.43µs        ? ?/sec
f32/small_list/list=32/match=0%                                      1.00     15.6±0.01µs        ? ?/sec    1.02     16.0±0.01µs        ? ?/sec
f32/small_list/list=32/match=50%                                     1.00     22.3±0.24µs        ? ?/sec    1.04     23.1±0.23µs        ? ?/sec
f32/small_list/list=4/match=0%                                       1.00     16.0±0.01µs        ? ?/sec    1.02     16.2±0.10µs        ? ?/sec
f32/small_list/list=4/match=50%                                      1.00     27.6±0.48µs        ? ?/sec    1.03     28.4±0.34µs        ? ?/sec
fixed_size_binary/fsb16/list=10000/match=0%                          1.06     27.0±0.05µs        ? ?/sec    1.00     25.5±0.20µs        ? ?/sec
fixed_size_binary/fsb16/list=10000/match=50%                         1.07     57.7±0.87µs        ? ?/sec    1.00     54.0±0.30µs        ? ?/sec
fixed_size_binary/fsb16/list=256/match=0%                            1.03     24.6±0.04µs        ? ?/sec    1.00     23.9±0.07µs        ? ?/sec
fixed_size_binary/fsb16/list=256/match=50%                           1.00     51.7±0.73µs        ? ?/sec    1.00     51.6±2.55µs        ? ?/sec
fixed_size_binary/fsb16/list=4/match=0%                              1.00     24.0±0.18µs        ? ?/sec    1.00     24.1±0.02µs        ? ?/sec
fixed_size_binary/fsb16/list=4/match=50%                             1.00     54.3±0.51µs        ? ?/sec    1.02     55.4±0.24µs        ? ?/sec
fixed_size_binary/fsb16/list=64/match=0%                             1.04     23.8±0.03µs        ? ?/sec    1.00     22.9±0.05µs        ? ?/sec
fixed_size_binary/fsb16/list=64/match=50%                            1.00     54.4±0.35µs        ? ?/sec    1.00     54.7±0.18µs        ? ?/sec
narrow_integer/i16/list=256/match=0%                                 1.00     11.9±0.01µs        ? ?/sec    1.04     12.3±0.02µs        ? ?/sec
narrow_integer/i16/list=256/match=50%                                1.00     18.6±0.10µs        ? ?/sec    1.00     18.5±0.14µs        ? ?/sec
narrow_integer/i16/list=4/match=0%                                   1.01     12.7±0.01µs        ? ?/sec    1.00     12.5±0.02µs        ? ?/sec
narrow_integer/i16/list=4/match=50%                                  1.08     22.8±0.28µs        ? ?/sec    1.00     21.1±0.08µs        ? ?/sec
narrow_integer/i16/list=64/match=0%                                  1.00     12.5±0.03µs        ? ?/sec    1.01     12.6±0.01µs        ? ?/sec
narrow_integer/i16/list=64/match=50%                                 1.11     22.6±1.49µs        ? ?/sec    1.00     20.3±0.22µs        ? ?/sec
narrow_integer/u8/list=16/match=0%                                   2.40     12.5±0.07µs        ? ?/sec    1.00      5.2±0.00µs        ? ?/sec
narrow_integer/u8/list=16/match=50%                                  4.84     25.2±0.33µs        ? ?/sec    1.00      5.2±0.00µs        ? ?/sec
narrow_integer/u8/list=4/match=0%                                    2.38     12.4±0.05µs        ? ?/sec    1.00      5.2±0.00µs        ? ?/sec
narrow_integer/u8/list=4/match=50%                                   4.34     22.6±0.29µs        ? ?/sec    1.00      5.2±0.00µs        ? ?/sec
nulls/narrow_integer/u8/list=16/match=50%/nulls=20%                  4.19     22.1±0.57µs        ? ?/sec    1.00      5.3±0.00µs        ? ?/sec
nulls/primitive/i32/large_list/list=64/match=50%/nulls=20%           1.00     19.8±0.21µs        ? ?/sec    1.36     26.9±0.31µs        ? ?/sec
nulls/primitive/i32/small_list/list=16/match=50%/nulls=20%           1.03     30.3±0.45µs        ? ?/sec    1.00     29.3±0.25µs        ? ?/sec
nulls/primitive/i32/small_list/list=16/match=50%/nulls=20%/NOT_IN    1.01     25.7±0.21µs        ? ?/sec    1.00     25.5±0.10µs        ? ?/sec
nulls/primitive/i32/small_list/list=16/match=50%/nulls=50%           1.00     21.1±0.05µs        ? ?/sec    1.04     22.0±0.05µs        ? ?/sec
nulls/utf8/long_24b/list=16/match=50%/nulls=20%                      1.02     71.5±0.28µs        ? ?/sec    1.00     69.9±0.42µs        ? ?/sec
nulls/utf8/short_8b/list=16/match=50%/nulls=20%                      1.06     62.6±0.34µs        ? ?/sec    1.00     59.0±0.37µs        ? ?/sec
nulls/utf8view/long_24b/list=16/match=50%/nulls=20%                  1.09     87.0±0.22µs        ? ?/sec    1.00     79.8±0.26µs        ? ?/sec
nulls/utf8view/short_8b/list=16/match=50%/nulls=20%                  1.13     46.0±0.42µs        ? ?/sec    1.00     40.7±0.14µs        ? ?/sec
nulls/utf8view/short_8b/list=16/match=50%/nulls=20%/NOT_IN           1.14     46.3±0.43µs        ? ?/sec    1.00     40.7±0.10µs        ? ?/sec
nulls/utf8view/short_8b/list=16/match=50%/nulls=50%                  1.22     36.0±0.41µs        ? ?/sec    1.00     29.4±0.13µs        ? ?/sec
primitive/i32/large_list/list=256/match=0%                           1.05     12.4±0.01µs        ? ?/sec    1.00     11.8±0.04µs        ? ?/sec
primitive/i32/large_list/list=256/match=50%                          1.00     26.5±0.24µs        ? ?/sec    1.01     26.8±0.36µs        ? ?/sec
primitive/i32/large_list/list=64/match=0%                            1.02     12.1±0.03µs        ? ?/sec    1.00     11.8±0.02µs        ? ?/sec
primitive/i32/large_list/list=64/match=50%                           1.00     25.7±0.50µs        ? ?/sec    1.30     33.5±0.20µs        ? ?/sec
primitive/i32/small_list/list=16/match=50%/NOT_IN                    1.05     22.9±0.47µs        ? ?/sec    1.00     21.9±0.35µs        ? ?/sec
primitive/i32/small_list/list=32/match=0%                            1.00     12.1±0.01µs        ? ?/sec    1.00     12.1±0.01µs        ? ?/sec
primitive/i32/small_list/list=32/match=50%                           1.00     23.7±0.40µs        ? ?/sec    1.16     27.6±0.41µs        ? ?/sec
primitive/i32/small_list/list=4/match=0%                             1.02     12.0±0.02µs        ? ?/sec    1.00     11.8±0.01µs        ? ?/sec
primitive/i32/small_list/list=4/match=50%                            1.04     33.8±0.19µs        ? ?/sec    1.00     32.6±0.14µs        ? ?/sec
primitive/i64/large_list/list=128/match=0%                           1.00     11.8±0.01µs        ? ?/sec    1.04     12.3±0.01µs        ? ?/sec
primitive/i64/large_list/list=128/match=50%                          1.00     20.6±0.18µs        ? ?/sec    1.08     22.1±0.41µs        ? ?/sec
primitive/i64/large_list/list=32/match=0%                            1.01     12.2±0.01µs        ? ?/sec    1.00     12.1±0.01µs        ? ?/sec
primitive/i64/large_list/list=32/match=50%                           1.00     22.0±0.48µs        ? ?/sec    1.04     22.9±0.39µs        ? ?/sec
primitive/i64/small_list/list=16/match=0%                            1.00     12.1±0.01µs        ? ?/sec    1.00     12.0±0.01µs        ? ?/sec
primitive/i64/small_list/list=16/match=50%                           1.00     22.3±0.47µs        ? ?/sec    1.04     23.2±0.35µs        ? ?/sec
primitive/i64/small_list/list=4/match=0%                             1.01     12.1±0.02µs        ? ?/sec    1.00     11.9±0.01µs        ? ?/sec
primitive/i64/small_list/list=4/match=50%                            1.00     23.3±0.44µs        ? ?/sec    1.01     23.6±0.29µs        ? ?/sec
timestamp_ns/large_list/list=32/match=0%                             1.02     17.6±0.08µs        ? ?/sec    1.00     17.2±0.01µs        ? ?/sec
timestamp_ns/large_list/list=32/match=50%                            1.16     33.9±0.36µs        ? ?/sec    1.00     29.3±0.26µs        ? ?/sec
timestamp_ns/small_list/list=16/match=0%                             1.03     17.8±0.03µs        ? ?/sec    1.00     17.3±0.01µs        ? ?/sec
timestamp_ns/small_list/list=16/match=50%                            1.17     36.2±0.21µs        ? ?/sec    1.00     30.8±1.95µs        ? ?/sec
timestamp_ns/small_list/list=4/match=0%                              1.04     17.8±0.02µs        ? ?/sec    1.00     17.1±0.01µs        ? ?/sec
timestamp_ns/small_list/list=4/match=50%                             1.07     32.3±0.22µs        ? ?/sec    1.00     30.0±0.44µs        ? ?/sec
utf8/long_24b/list=256/match=0%                                      1.03     34.6±0.05µs        ? ?/sec    1.00     33.8±0.18µs        ? ?/sec
utf8/long_24b/list=256/match=50%                                     1.00     71.8±0.31µs        ? ?/sec    1.00     71.9±0.60µs        ? ?/sec
utf8/long_24b/list=4/match=0%                                        1.00     34.5±0.05µs        ? ?/sec    1.00     34.5±0.05µs        ? ?/sec
utf8/long_24b/list=4/match=50%                                       1.02     74.0±0.47µs        ? ?/sec    1.00     72.6±0.26µs        ? ?/sec
utf8/long_24b/list=64/match=0%                                       1.03     34.5±0.06µs        ? ?/sec    1.00     33.6±0.04µs        ? ?/sec
utf8/long_24b/list=64/match=50%                                      1.01     71.9±0.39µs        ? ?/sec    1.00     71.1±0.52µs        ? ?/sec
utf8/mixed_len/list=16/match=0%                                      1.01     36.7±0.22µs        ? ?/sec    1.00     36.4±0.09µs        ? ?/sec
utf8/mixed_len/list=16/match=50%                                     1.02    108.2±0.62µs        ? ?/sec    1.00    105.7±0.46µs        ? ?/sec
utf8/mixed_len/list=64/match=0%                                      1.04     39.3±0.14µs        ? ?/sec    1.00     37.7±0.12µs        ? ?/sec
utf8/mixed_len/list=64/match=50%                                     1.04    119.6±0.51µs        ? ?/sec    1.00    115.1±0.59µs        ? ?/sec
utf8/shared_prefix/pfx=12/list=32/match=50%                          1.00     71.5±0.31µs        ? ?/sec    1.02     72.9±0.43µs        ? ?/sec
utf8/short_8b/list=16/match=50%/NOT_IN                               1.06     65.4±0.93µs        ? ?/sec    1.00     61.6±0.55µs        ? ?/sec
utf8/short_8b/list=256/match=0%                                      1.01     27.2±0.02µs        ? ?/sec    1.00     26.9±0.40µs        ? ?/sec
utf8/short_8b/list=256/match=50%                                     1.07     65.5±0.58µs        ? ?/sec    1.00     61.5±0.26µs        ? ?/sec
utf8/short_8b/list=4/match=0%                                        1.03     27.2±0.03µs        ? ?/sec    1.00     26.5±0.09µs        ? ?/sec
utf8/short_8b/list=4/match=50%                                       1.05     66.1±0.35µs        ? ?/sec    1.00     62.9±0.59µs        ? ?/sec
utf8/short_8b/list=64/match=0%                                       1.05     27.5±0.31µs        ? ?/sec    1.00     26.3±0.07µs        ? ?/sec
utf8/short_8b/list=64/match=50%                                      1.08     66.5±0.50µs        ? ?/sec    1.00     61.8±0.48µs        ? ?/sec
utf8view/len_12b/list=16/match=0%                                    1.05     18.6±0.05µs        ? ?/sec    1.00     17.8±0.02µs        ? ?/sec
utf8view/len_12b/list=16/match=50%                                   1.00     46.3±0.21µs        ? ?/sec    1.04     47.9±0.18µs        ? ?/sec
utf8view/len_12b/list=64/match=0%                                    1.05     18.7±0.03µs        ? ?/sec    1.00     17.8±0.02µs        ? ?/sec
utf8view/len_12b/list=64/match=50%                                   1.00     45.8±0.48µs        ? ?/sec    1.01     46.4±0.31µs        ? ?/sec
utf8view/long_24b/list=16/match=0%                                   1.00     41.0±0.04µs        ? ?/sec    1.00     41.0±0.25µs        ? ?/sec
utf8view/long_24b/list=16/match=50%                                  1.00     84.4±0.20µs        ? ?/sec    1.02     86.2±0.21µs        ? ?/sec
utf8view/long_24b/list=256/match=0%                                  1.01     40.6±0.04µs        ? ?/sec    1.00     40.1±0.04µs        ? ?/sec
utf8view/long_24b/list=256/match=50%                                 1.00     84.7±0.24µs        ? ?/sec    1.00     85.0±0.23µs        ? ?/sec
utf8view/long_24b/list=4/match=0%                                    1.02     41.4±0.07µs        ? ?/sec    1.00     40.4±0.07µs        ? ?/sec
utf8view/long_24b/list=4/match=50%                                   1.00     84.8±0.15µs        ? ?/sec    1.02     86.7±0.17µs        ? ?/sec
utf8view/long_24b/list=64/match=0%                                   1.01     40.7±0.08µs        ? ?/sec    1.00     40.4±0.03µs        ? ?/sec
utf8view/long_24b/list=64/match=50%                                  1.00     83.5±0.52µs        ? ?/sec    1.00     83.4±0.26µs        ? ?/sec
utf8view/mixed_len/list=16/match=0%                                  1.14     34.5±0.11µs        ? ?/sec    1.00     30.3±0.07µs        ? ?/sec
utf8view/mixed_len/list=16/match=50%                                 1.31     96.1±1.10µs        ? ?/sec    1.00     73.2±0.53µs        ? ?/sec
utf8view/mixed_len/list=64/match=0%                                  1.00     34.3±0.13µs        ? ?/sec    1.01     34.6±0.13µs        ? ?/sec
utf8view/mixed_len/list=64/match=50%                                 1.25    107.5±0.46µs        ? ?/sec    1.00     85.7±0.54µs        ? ?/sec
utf8view/shared_prefix/pfx=12/list=32/match=0%                       1.02     42.9±0.03µs        ? ?/sec    1.00     42.2±0.05µs        ? ?/sec
utf8view/shared_prefix/pfx=12/list=32/match=50%                      1.02     84.5±0.28µs        ? ?/sec    1.00     83.2±0.37µs        ? ?/sec
utf8view/shared_prefix/pfx=16/list=64/match=0%                       1.01     40.7±0.04µs        ? ?/sec    1.00     40.3±0.04µs        ? ?/sec
utf8view/shared_prefix/pfx=16/list=64/match=50%                      1.01     84.7±0.38µs        ? ?/sec    1.00     83.8±0.38µs        ? ?/sec
utf8view/shared_prefix/pfx=8/list=16/match=0%                        1.00     30.1±0.06µs        ? ?/sec    1.00     30.0±0.04µs        ? ?/sec
utf8view/shared_prefix/pfx=8/list=16/match=50%                       1.00     70.7±0.37µs        ? ?/sec    1.02     71.9±0.31µs        ? ?/sec
utf8view/short_8b/list=16/match=0%                                   1.03     18.2±0.05µs        ? ?/sec    1.00     17.7±0.02µs        ? ?/sec
utf8view/short_8b/list=16/match=50%                                  1.00     41.6±0.16µs        ? ?/sec    1.03     43.0±0.09µs        ? ?/sec
utf8view/short_8b/list=256/match=0%                                  1.02     18.4±0.04µs        ? ?/sec    1.00     18.0±0.04µs        ? ?/sec
utf8view/short_8b/list=256/match=50%                                 1.00     41.7±0.34µs        ? ?/sec    1.02     42.6±0.19µs        ? ?/sec
utf8view/short_8b/list=4/match=0%                                    1.04     18.6±0.02µs        ? ?/sec    1.00     17.9±0.02µs        ? ?/sec
utf8view/short_8b/list=4/match=50%                                   1.00     44.8±0.25µs        ? ?/sec    1.04     46.6±0.33µs        ? ?/sec
utf8view/short_8b/list=64/match=0%                                   1.03     18.4±0.04µs        ? ?/sec    1.00     17.9±0.05µs        ? ?/sec
utf8view/short_8b/list=64/match=50%                                  1.00     39.9±0.24µs        ? ?/sec    1.03     41.3±0.19µs        ? ?/sec

Resource Usage

in_list_strategy — base (merge-base)

Metric Value
Wall time 1255.3s
Peak memory 41.3 MiB
Avg memory 30.5 MiB
CPU user 1396.2s
CPU sys 1.3s
Peak spill 0 B

in_list_strategy — branch

Metric Value
Wall time 1265.3s
Peak memory 42.2 MiB
Avg memory 30.1 MiB
CPU user 1413.7s
CPU sys 1.2s
Peak spill 0 B

File an issue against this benchmark runner

@geoffreyclaude geoffreyclaude requested a review from Dandandan June 23, 2026 14:29

@alamb alamb left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @geoffreyclaude and @Dandandan -- this looks good to me

#[inline(always)]
fn check(&self, needle: u8) -> bool {
let index = needle as usize;
(self.bits[index / 64] >> (index % 64)) & 1 != 0

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be interesting to know of llvm could optimize the bounds check here (it knows that index <= 256 so index / 64 is always in bounds

@geoffreyclaude geoffreyclaude Jun 23, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Confirmed (with some Codex help): rustc/LLVM does optimize this bounds check away in optimized builds.

Godbolt repro: https://godbolt.org/z/6r1WjvYv4

I used LLVM IR there because retained Rust bounds checks are easy to spot: they show up as a branch to a panic block calling panic_bounds_check.

For the u8 versions (bitmap_check / bitmap_set), there is no such branch. The IR widens the u8 with:

%index = zext i8 %needle to i64

then computes index / 64 as a shift and directly loads/stores from the [u64; 4].

For contrast, the repro also includes the same expression with index: usize; that version does emit:

icmp ult i64 %index, 256
br i1 ..., label %bb1, label %panic

followed by panic_bounds_check.

So I think the safe indexing here already compiles to the unchecked access we want on the hot path, without needing get_unchecked.

@alamb

alamb commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

I'll plan to merge this tomorrow unless anyone else would like more time to review

Thank you (again) for your patience @geoffreyclaude

@alamb alamb added this pull request to the merge queue Jun 24, 2026
Merged via the queue into apache:main with commit d0f8c34 Jun 24, 2026
38 checks passed
@geoffreyclaude geoffreyclaude deleted the perf/in_list_bitmap_u8_filter branch June 24, 2026 20:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

physical-expr Changes to the physical-expr crates

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants