Commit 4e7bba4
authored
Extend in_list benchmark coverage (#19376)
## Which issue does this PR close?
- Related to #19241
## Rationale for this change
This PR enhances the `in_list` benchmark suite to provide more
comprehensive performance measurements across a wider range of data
types and list sizes. These improvements are necessary groundwork for
evaluating optimizations proposed in #19241.
The current benchmarks were limited in scope, making it difficult to
assess the performance impact of potential `in_list` optimizations
across different data types and scenarios.
## What changes are included in this PR?
- Added benchmarks for `UInt8Array`, `Int16Array`, and
`TimestampNanosecondArray`
- Added `28` to `IN_LIST_LENGTHS` (now `[3, 8, 28, 100]`) to better
cover the range between small and large lists
- Increased `ARRAY_LENGTH` from `1024` to `8192` to be aligned with the
default DataFusionbatch size
- Configured criterion with shorter warm-up (100ms) and measurement
times (500ms) for faster iteration
## Are these changes tested?
Yes, this PR adds benchmark coverage. The benchmarks can be run with:
```bash
cargo bench --bench in_list
```
The benchmarks verify that the `in_list` expression evaluates correctly
for all the new data types.
## Are there any user-facing changes?
No user-facing changes. This PR only affects the benchmark suite used
for performance testing and development.1 parent 14cd71e commit 4e7bba4
1 file changed
+37
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| 32 | + | |
31 | 33 | | |
32 | 34 | | |
33 | 35 | | |
| |||
47 | 49 | | |
48 | 50 | | |
49 | 51 | | |
50 | | - | |
| 52 | + | |
51 | 53 | | |
52 | 54 | | |
53 | | - | |
| 55 | + | |
54 | 56 | | |
55 | 57 | | |
56 | 58 | | |
| |||
61 | 63 | | |
62 | 64 | | |
63 | 65 | | |
| 66 | + | |
| 67 | + | |
64 | 68 | | |
65 | 69 | | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
66 | 74 | | |
67 | 75 | | |
68 | 76 | | |
| |||
142 | 150 | | |
143 | 151 | | |
144 | 152 | | |
145 | | - | |
| 153 | + | |
146 | 154 | | |
147 | 155 | | |
148 | 156 | | |
| |||
151 | 159 | | |
152 | 160 | | |
153 | 161 | | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
154 | 174 | | |
155 | 175 | | |
156 | 176 | | |
| |||
163 | 183 | | |
164 | 184 | | |
165 | 185 | | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
166 | 192 | | |
167 | 193 | | |
168 | | - | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
169 | 201 | | |
0 commit comments