Commit f88921c
authored
Add benchmarks for FromIter (PrimitiveArray and BooleanArray) (#8525)
# Which issue does this PR close?
- Relates to #8505 .
-
I want to see any performance regressions to `BooleanArray::from_iter`.
# Rationale for this change
Add microbenchmarks for observing the performance of
`XYZArray::from_iter`.
On my machine, executing the benchmarks back to back results in
deviations within 1% .
```
Int64Array::from_iter time: [14.292 µs 14.297 µs 14.303 µs]
change: [-0.0049% +0.1290% +0.2631%] (p = 0.06 > 0.05)
No change in performance detected.
Found 26 outliers among 100 measurements (26.00%)
1 (1.00%) low severe
3 (3.00%) low mild
9 (9.00%) high mild
13 (13.00%) high severe
Int64Array::from_trusted_len_iter
time: [6.7355 µs 6.7472 µs 6.7628 µs]
change: [+0.0215% +0.1868% +0.3739%] (p = 0.03 < 0.05)
Change within noise threshold.
Found 11 outliers among 100 measurements (11.00%)
4 (4.00%) high mild
7 (7.00%) high severe
BooleanArray::from_iter time: [7.3389 µs 7.3596 µs 7.3861 µs]
change: [-1.3820% -0.8065% -0.2803%] (p = 0.00 < 0.05)
Change within noise threshold.
Found 16 outliers among 100 measurements (16.00%)
9 (9.00%) high mild
7 (7.00%) high severe
```
# What changes are included in this PR?
Only benchmarks
# Are these changes tested?
Functionality is tested in the implementation file.
# Are there any user-facing changes?
None1 parent 4b62c80 commit f88921c
2 files changed
+41
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
123 | | - | |
| 123 | + | |
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
| |||
Lines changed: 40 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| |||
117 | 118 | | |
118 | 119 | | |
119 | 120 | | |
120 | | - | |
| 121 | + | |
121 | 122 | | |
122 | 123 | | |
123 | 124 | | |
| |||
170 | 171 | | |
171 | 172 | | |
172 | 173 | | |
173 | | - | |
| 174 | + | |
174 | 175 | | |
175 | 176 | | |
176 | 177 | | |
| |||
206 | 207 | | |
207 | 208 | | |
208 | 209 | | |
209 | | - | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
210 | 247 | | |
0 commit comments