zeroshade commented on PR #1552: URL: https://github.com/apache/arrow-go/pull/1552#issuecomment-6925923062
> It would be useful to benchmark on amd64 as well The amd64 run showed the AVX2 path gained less than NEON. At most widths the AVX2 unpacker builds each register from scalar inserts, and the scaling pass converts one value at a time. b40e7ac9 adds an AVX2 kernel that unpacks, converts and scales 8 deltas of up to 25 bits at a time, and decodes to the same bits as Go's conversion. Against this PR without it, on the same Intel Core Ultra 7 155H, 30 alternating samples each: | | without | with | | |---|---|---|---| | `Float32/no_exceptions/len_65536` | 56.07µs | 11.63µs | -79% | | `Float64/no_exceptions/len_65536` | 56.68µs | 19.08µs | -66% | | `Float64Batched/len_65536` | 70.85µs | 32.67µs | -54% | | geomean, all 16 | 7.589µs | 3.630µs | -52% | Deltas wider than 25 bits, zero-width vectors and arm64 are unchanged. The description has the full table and how the kernel works. -- 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]
