zeroshade commented on code in PR #1349:
URL: https://github.com/apache/arrow-go/pull/1349#discussion_r4188898310
##########
arrow/compute/vector_selection_bench_test.go:
##########
@@ -134,6 +144,70 @@ func BenchmarkFilterInt32FallbackControls(b *testing.B) {
}
}
+func BenchmarkFilterInt16FallbackControls(b *testing.B) {
+ controls := []struct {
+ name string
+ size int
+ offset int64
+ }{
+ {name: "unaligned-filter-offset", size: 1 << 16, offset: 3},
+ {name: "short", size: 56},
+ {name: "non-multiple-of-eight", size: 1<<16 + 1},
+ }
+
+ for _, control := range controls {
+ control := control
Review Comment:
Optional nit: `control := control` isn't needed since Go 1.22, and the loop
at L169 could be `for b.Loop()`. Both mirror the existing Int32 fallback
benchmark (L125/L135), so fine to leave and clean up both together later.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]