coderfender commented on PR #21453:
URL: https://github.com/apache/datafusion/pull/21453#issuecomment-4204541389
`critcmp` results :
u16 / i16 are `2X faster` :)
```
critcmp bitmap main
group bitmap
main
----- ------
----
approx_distinct i16 bitmap 1.00 3.0±0.01µs ?
?/sec 2.00 5.9±0.08µs ? ?/sec
approx_distinct i64 80% distinct 1.00 5.6±0.15µs ?
?/sec 1.03 5.8±0.14µs ? ?/sec
approx_distinct i64 99% distinct 1.00 5.8±0.12µs ?
?/sec 1.01 5.8±0.17µs ? ?/sec
approx_distinct i8 bitmap 1.00 6.0±0.28µs ?
?/sec 1.00 5.9±0.06µs ? ?/sec
approx_distinct u16 bitmap 1.00 3.0±0.24µs ?
?/sec 1.93 5.8±0.23µs ? ?/sec
approx_distinct u8 bitmap 1.00 5.8±0.08µs ?
?/sec 1.01 5.8±0.34µs ? ?/sec
approx_distinct utf8 long 80% distinct 1.00 16.3±0.08µs ?
?/sec 1.00 16.2±0.49µs ? ?/sec
approx_distinct utf8 long 99% distinct 1.01 16.3±0.05µs ?
?/sec 1.00 16.2±0.23µs ? ?/sec
approx_distinct utf8 short 80% distinct 1.02 11.1±0.14µs ?
?/sec 1.00 11.0±0.08µs ? ?/sec
approx_distinct utf8 short 99% distinct 1.01 11.2±0.67µs ?
?/sec 1.00 11.0±0.48µs ? ?/sec
approx_distinct utf8view long 80% distinct 1.04 19.7±0.58µs ?
?/sec 1.00 19.0±0.49µs ? ?/sec
approx_distinct utf8view long 99% distinct 1.04 19.7±0.35µs ?
?/sec 1.00 19.0±0.19µs ? ?/sec
approx_distinct utf8view short 80% distinct 1.00 6.3±0.06µs ?
?/sec 1.00 6.3±0.40µs ? ?/sec
approx_distinct utf8view short 99% distinct 1.02 6.4±0.17µs ?
?/sec 1.00 6.2±0.22µs ? ?/sec
```
cc : @neilconway , @Dandandan
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]