lidavidm commented on pull request #10557: URL: https://github.com/apache/arrow/pull/10557#issuecomment-875836424
This is quite faster though (actually almost suspiciously so; also, the benchmark loop doesn't include constructing a structarray from individual boolean arrays). Struct: ``` CaseWhenBench32/1048576/0 5780694 ns 5780134 ns 116 bytes_per_second=2.72434G/s CaseWhenBench64/1048576/0 6079444 ns 6078645 ns 115 bytes_per_second=5.16103G/s CaseWhenBench32/1048576/99 5717893 ns 5717306 ns 122 bytes_per_second=2.75402G/s CaseWhenBench64/1048576/99 6160254 ns 6159488 ns 110 bytes_per_second=5.09281G/s CaseWhenBench32Contiguous/1048576/0 1652127 ns 1645047 ns 423 bytes_per_second=7.19786G/s CaseWhenBench64Contiguous/1048576/0 1986278 ns 1986066 ns 334 bytes_per_second=11.8624G/s CaseWhenBench32Contiguous/1048576/99 1826875 ns 1826675 ns 377 bytes_per_second=6.48156G/s CaseWhenBench64Contiguous/1048576/99 2415119 ns 2414697 ns 312 bytes_per_second=9.75582G/s ``` Alternating arguments: ``` CaseWhenBench32/1048576/0 44467484 ns 44467216 ns 16 bytes_per_second=362.627M/s CaseWhenBench64/1048576/0 44722665 ns 44721786 ns 16 bytes_per_second=718.33M/s CaseWhenBench32/1048576/99 45402157 ns 45399285 ns 16 bytes_per_second=355.148M/s CaseWhenBench64/1048576/99 45465935 ns 45464130 ns 15 bytes_per_second=706.534M/s CaseWhenBench32Contiguous/1048576/0 17973260 ns 17972895 ns 39 bytes_per_second=674.627M/s CaseWhenBench64Contiguous/1048576/0 18549381 ns 18548768 ns 37 bytes_per_second=1.27014G/s CaseWhenBench32Contiguous/1048576/99 18203192 ns 18202563 ns 39 bytes_per_second=666.052M/s CaseWhenBench64Contiguous/1048576/99 18817987 ns 18817296 ns 37 bytes_per_second=1.2519G/s ``` -- 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]
