Commit 32c7ab9
Add non-power-of-2 shapes for Morton coding to benchmarks (#3717)
* tests: Add non-power-of-2 shard shapes to benchmarks
Add (30,30,30) to large_morton_shards and (10,10,10), (20,20,20),
(30,30,30) to morton_iter_shapes to benchmark the scalar fallback path
for non-power-of-2 shapes, which are not fully covered by the vectorized
hypercube path.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* tests: Add near-miss power-of-2 shape (33,33,33) to benchmarks
Documents the performance penalty when a shard shape is just above a
power-of-2 boundary, causing n_z to jump from 32,768 to 262,144.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* style: Apply ruff format to benchmark file
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* changes: Add changelog entry for PR #3717
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: Davis Bennett <davis.v.bennett@gmail.com>1 parent efed3a4 commit 32c7ab9
2 files changed
+12
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
109 | | - | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
110 | 113 | | |
111 | 114 | | |
112 | 115 | | |
| |||
197 | 200 | | |
198 | 201 | | |
199 | 202 | | |
200 | | - | |
201 | | - | |
202 | | - | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
203 | 210 | | |
204 | 211 | | |
205 | 212 | | |
| |||
0 commit comments