Commit df63590
[Minor] Use per-predicate projection masks in arrow_reader_clickbench benchmark (#9413)
# Which issue does this PR close?
- Closes #NNN.
# Rationale for this change
As suggested by Claude - currently it uses a projection mask for all
columns, significantly slowing down queries that have multiple
predicates.
This makes it more in line with consumer side (e.g. DataFusion) (so we
can more accurately benchmark improvements).
It shows the perf difference in a number of (multi-filter) queries:
```
group clickbench-optimizations main
arrow_reader_clickbench/async_object_store/Q22 1.00 151.8±6.46ms ? ?/sec 1.52 230.5±1.68ms ? ?/sec
arrow_reader_clickbench/async_object_store/Q36 1.00 26.3±0.24ms ? ?/sec 4.30 113.1±0.67ms ? ?/sec
arrow_reader_clickbench/async_object_store/Q37 1.00 9.3±0.06ms ? ?/sec 9.64 89.7±1.20ms ? ?/sec
arrow_reader_clickbench/async_object_store/Q38 1.00 22.4±0.26ms ? ?/sec 1.44 32.3±0.29ms ? ?/sec
arrow_reader_clickbench/async_object_store/Q39 1.00 38.1±0.66ms ? ?/sec 1.09 41.5±0.35ms ? ?/sec
arrow_reader_clickbench/async_object_store/Q40 1.00 13.0±0.15ms ? ?/sec 2.96 38.6±0.45ms ? ?/sec
arrow_reader_clickbench/async_object_store/Q41 1.00 10.1±0.11ms ? ?/sec 2.83 28.5±0.73ms ? ?/sec
arrow_reader_clickbench/async_object_store/Q42 1.00 5.6±0.05ms ? ?/sec 1.87 10.5±0.12ms ? ?/sec
```
# What changes are included in this PR?
# Are these changes tested?
# Are there any user-facing changes?
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent 39a2b71 commit df63590
1 file changed
Lines changed: 16 additions & 81 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
638 | 638 | | |
639 | 639 | | |
640 | 640 | | |
641 | | - | |
642 | | - | |
643 | | - | |
644 | | - | |
645 | | - | |
646 | | - | |
647 | | - | |
648 | | - | |
649 | | - | |
650 | | - | |
651 | | - | |
652 | | - | |
653 | | - | |
654 | | - | |
655 | | - | |
656 | | - | |
657 | | - | |
658 | | - | |
659 | | - | |
660 | | - | |
661 | | - | |
662 | | - | |
663 | | - | |
664 | | - | |
665 | | - | |
666 | | - | |
667 | | - | |
668 | | - | |
669 | | - | |
670 | | - | |
671 | | - | |
672 | | - | |
673 | | - | |
674 | | - | |
675 | | - | |
676 | | - | |
677 | | - | |
678 | | - | |
679 | | - | |
680 | | - | |
681 | | - | |
682 | | - | |
683 | | - | |
684 | | - | |
685 | | - | |
686 | | - | |
687 | | - | |
688 | | - | |
689 | | - | |
690 | | - | |
691 | | - | |
692 | | - | |
693 | | - | |
694 | | - | |
695 | | - | |
696 | | - | |
697 | | - | |
698 | | - | |
699 | | - | |
700 | | - | |
701 | 641 | | |
702 | 642 | | |
703 | 643 | | |
| |||
706 | 646 | | |
707 | 647 | | |
708 | 648 | | |
709 | | - | |
710 | | - | |
711 | | - | |
712 | | - | |
| 649 | + | |
| 650 | + | |
713 | 651 | | |
714 | 652 | | |
715 | 653 | | |
| |||
744 | 682 | | |
745 | 683 | | |
746 | 684 | | |
747 | | - | |
748 | | - | |
749 | | - | |
750 | 685 | | |
751 | 686 | | |
752 | 687 | | |
753 | 688 | | |
754 | 689 | | |
755 | | - | |
756 | | - | |
| 690 | + | |
757 | 691 | | |
758 | 692 | | |
759 | 693 | | |
| |||
851 | 785 | | |
852 | 786 | | |
853 | 787 | | |
854 | | - | |
855 | | - | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
856 | 791 | | |
857 | | - | |
858 | | - | |
859 | | - | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
860 | 797 | | |
861 | | - | |
862 | 798 | | |
863 | 799 | | |
864 | 800 | | |
865 | 801 | | |
866 | | - | |
867 | | - | |
| 802 | + | |
| 803 | + | |
868 | 804 | | |
869 | | - | |
870 | | - | |
871 | | - | |
872 | | - | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
873 | 808 | | |
874 | 809 | | |
875 | 810 | | |
| |||
0 commit comments