You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "HUSTERGS (via GitHub)" <gi...@apache.org> on 2025/05/30 11:32:01 UTC

[PR] Speed up findNextGEQ by aggresive stepping [lucene]

HUSTERGS opened a new pull request, #14735:
URL: https://github.com/apache/lucene/pull/14735

   ### Description
   This PR propose to increase the step size of `findNextGEQ` to speed up adanving within a block, instead of force using AVX512, this implementation check two IntVector when target is hit.
   
   ### Benchmark result
   I ran the luceneutil `wikimediumall` corpus with two different configs
   all default config
   ```
    TaskQPS baseline      StdDevQPS my_modified_version      StdDev                Pct diff p-value
                  FilteredOrHighMed      129.21     (10.3%)      121.31      (9.7%)   -6.1% ( -23% -   15%) 0.053
                    CountOrHighHigh      110.26     (14.7%)      105.70     (13.2%)   -4.1% ( -27% -   27%) 0.350
                     CountOrHighMed      133.31     (13.5%)      128.59     (11.5%)   -3.5% ( -25% -   24%) 0.372
                 FilteredOrHighHigh       47.14      (7.6%)       45.61      (5.9%)   -3.3% ( -15% -   11%) 0.130
                    AndHighOrMedMed       73.67     (11.0%)       71.74     (11.4%)   -2.6% ( -22% -   22%) 0.457
                   IntervalsOrdered       36.73      (8.9%)       35.78      (8.3%)   -2.6% ( -18% -   16%) 0.341
                   FilteredOr3Terms       78.48      (7.9%)       76.46      (9.9%)   -2.6% ( -18% -   16%) 0.361
            CountFilteredOrHighHigh       66.75      (6.5%)       65.09      (8.9%)   -2.5% ( -16% -   13%) 0.314
                    CountAndHighMed      168.16     (14.5%)      164.67     (15.0%)   -2.1% ( -27% -   31%) 0.656
         FilteredOr2Terms2StopWords       62.18      (7.2%)       60.89      (7.9%)   -2.1% ( -15% -   14%) 0.386
                FilteredAndHighHigh       36.87      (7.2%)       36.11      (6.4%)   -2.0% ( -14% -   12%) 0.344
                FilteredOrStopWords       26.24      (4.0%)       25.78      (4.4%)   -1.8% (  -9% -    6%) 0.181
                   CountAndHighHigh      127.60     (11.0%)      125.52     (13.9%)   -1.6% ( -23% -   26%) 0.681
                             IntNRQ       94.06      (8.8%)       92.65     (11.7%)   -1.5% ( -20% -   20%) 0.647
             CountFilteredOrHighMed       83.79     (11.3%)       82.61      (9.4%)   -1.4% ( -19% -   21%) 0.666
                     FilteredIntNRQ      276.48     (14.4%)      272.68     (12.6%)   -1.4% ( -24% -   29%) 0.748
                               Term      334.73     (17.1%)      330.46     (17.7%)   -1.3% ( -30% -   40%) 0.817
                     FilteredPhrase       32.38      (3.8%)       32.06      (5.4%)   -1.0% (  -9% -    8%) 0.492
                    DismaxOrHighMed       90.22     (15.8%)       89.51     (15.5%)   -0.8% ( -27% -   36%) 0.874
                     FilteredOrMany       12.59      (4.2%)       12.50      (3.2%)   -0.7% (  -7% -    6%) 0.530
               FilteredAndStopWords       24.18      (2.9%)       24.07      (4.4%)   -0.5% (  -7% -    7%) 0.692
                             Phrase       75.02      (8.6%)       74.69      (8.9%)   -0.4% ( -16% -   18%) 0.872
                   DismaxOrHighHigh       97.71     (12.4%)       97.30     (16.1%)   -0.4% ( -25% -   32%) 0.925
                            Respell       25.95      (7.9%)       25.90      (7.3%)   -0.2% ( -14% -   16%) 0.939
                CountFilteredOrMany       19.39      (3.5%)       19.40      (3.9%)    0.0% (  -7% -    7%) 0.986
                  CombinedOrHighMed       25.89      (5.0%)       26.00      (3.7%)    0.4% (  -7% -    9%) 0.749
                CountFilteredIntNRQ       53.60      (6.7%)       53.89      (8.4%)    0.5% ( -13% -   16%) 0.823
                        CountOrMany       21.13      (4.1%)       21.26      (3.1%)    0.6% (  -6% -    8%) 0.574
                          And3Terms       82.31     (17.4%)       82.98     (13.7%)    0.8% ( -25% -   38%) 0.868
                        CountPhrase       77.38     (10.1%)       78.10      (8.2%)    0.9% ( -15% -   21%) 0.751
                          TermB1M1P      436.52     (15.9%)      440.69     (13.9%)    1.0% ( -24% -   36%) 0.840
                            Prefix3      343.67     (12.8%)      347.40      (9.4%)    1.1% ( -18% -   26%) 0.760
                       FilteredTerm       96.16     (10.5%)       97.39      (5.6%)    1.3% ( -13% -   19%) 0.632
                       CombinedTerm       37.36      (6.2%)       37.85      (7.5%)    1.3% ( -11% -   16%) 0.548
                 CombinedOrHighHigh       14.21      (6.4%)       14.41      (7.9%)    1.4% ( -12% -   16%) 0.540
                             OrMany       11.84     (10.3%)       12.01     (10.3%)    1.4% ( -17% -   24%) 0.667
                    FilteredPrefix3      188.23     (11.0%)      191.36     (11.1%)    1.7% ( -18% -   26%) 0.634
                       SloppyPhrase        9.34      (6.7%)        9.50      (6.9%)    1.7% ( -11% -   16%) 0.427
                 Or2Terms2StopWords       98.50     (13.0%)      100.26     (12.6%)    1.8% ( -21% -   31%) 0.659
                   AndMedOrHighHigh       59.17      (9.0%)       60.29      (8.0%)    1.9% ( -13% -   20%) 0.484
                CountFilteredPhrase       19.99      (3.9%)       20.50      (3.9%)    2.5% (  -5% -   10%) 0.040
                             Fuzzy2       38.40     (10.0%)       39.49     (13.0%)    2.8% ( -18% -   28%) 0.440
                 CombinedAndHighMed       65.98      (8.9%)       67.92      (8.2%)    2.9% ( -13% -   22%) 0.278
                             Fuzzy1       42.53      (7.9%)       43.83      (8.0%)    3.0% ( -11% -   20%) 0.226
                      TermMonthSort      522.43     (11.8%)      542.15     (11.4%)    3.8% ( -17% -   30%) 0.305
                           PKLookup      122.68      (7.7%)      127.40      (9.8%)    3.8% ( -12% -   23%) 0.168
                             Term1M      378.19     (17.8%)      392.87     (15.9%)    3.9% ( -25% -   45%) 0.468
                         OrHighHigh       42.53     (28.8%)       44.19     (23.9%)    3.9% ( -37% -   79%) 0.641
                        OrStopWords       39.01     (19.7%)       40.53     (22.7%)    3.9% ( -32% -   57%) 0.560
                          CountTerm     3260.09      (7.6%)     3389.74      (7.7%)    4.0% ( -10% -   20%) 0.102
                           Or3Terms       64.82     (16.5%)       67.58     (13.7%)    4.3% ( -22% -   41%) 0.373
                      TermTitleSort       36.25     (12.7%)       37.86     (13.4%)    4.5% ( -19% -   35%) 0.281
                          OrHighMed       79.76     (24.0%)       83.39     (23.7%)    4.6% ( -34% -   68%) 0.546
        FilteredAnd2Terms2StopWords       47.78     (14.0%)       50.01     (11.3%)    4.7% ( -18% -   34%) 0.244
                            Term100      377.48     (11.7%)      397.62     (14.0%)    5.3% ( -18% -   35%) 0.191
                         OrHighRare      216.65     (15.2%)      228.37     (11.2%)    5.4% ( -18% -   37%) 0.201
                CombinedAndHighHigh        9.31     (14.1%)        9.82     (12.6%)    5.5% ( -18% -   37%) 0.190
                         TermDTSort       71.24     (10.0%)       75.20     (11.2%)    5.6% ( -14% -   29%) 0.099
                         DismaxTerm      406.52     (11.7%)      429.63      (7.5%)    5.7% ( -12% -   28%) 0.068
                And2Terms2StopWords       49.26     (14.5%)       52.24     (14.0%)    6.1% ( -19% -   40%) 0.179
                           SpanNear       10.09      (7.1%)       10.71      (6.8%)    6.1% (  -7% -   21%) 0.006
                  FilteredAnd3Terms      138.60     (15.6%)      147.87     (14.2%)    6.7% ( -19% -   43%) 0.156
                           Wildcard       99.31     (14.0%)      106.77     (13.8%)    7.5% ( -17% -   40%) 0.087
                             IntSet      205.88     (10.7%)      222.75     (17.1%)    8.2% ( -17% -   40%) 0.069
                  TermDayOfYearSort       82.67     (12.6%)       89.69     (13.9%)    8.5% ( -16% -   40%) 0.043
                         AndHighMed       98.55     (18.8%)      107.12     (13.1%)    8.7% ( -19% -   50%) 0.090
                       AndStopWords       41.09     (24.1%)       44.89     (17.4%)    9.3% ( -25% -   66%) 0.164
                            Term10K      412.49     (18.8%)      458.77     (13.1%)   11.2% ( -17% -   53%) 0.029
                            TermB1M      357.58     (17.5%)      401.24     (15.1%)   12.2% ( -17% -   54%) 0.018
                 FilteredAndHighMed       98.32     (15.3%)      110.66     (14.8%)   12.6% ( -15% -   50%) 0.008
                        AndHighHigh       43.61     (23.7%)       50.86     (21.4%)   16.6% ( -23% -   80%) 0.020
   ```
   with `-searchConcurrency 0` and set `taskCountPerCat` to 5
   ```
                               TaskQPS baseline      StdDevQPS my_modified_version      StdDev                Pct diff p-value
                     FilteredOrMany        5.09      (1.8%)        4.91      (2.1%)   -3.5% (  -7% -    0%) 0.000
                       FilteredTerm       90.26      (2.7%)       87.55      (2.4%)   -3.0% (  -7% -    2%) 0.009
                 FilteredOrHighHigh       18.29      (1.4%)       17.77      (1.0%)   -2.9% (  -5% -    0%) 0.000
                  FilteredOrHighMed       54.74      (1.3%)       53.58      (1.5%)   -2.1% (  -4% -    0%) 0.001
                   FilteredOr3Terms       59.74      (1.2%)       58.48      (2.3%)   -2.1% (  -5% -    1%) 0.010
                    CountAndHighMed       91.94      (2.3%)       90.00      (3.6%)   -2.1% (  -7% -    3%) 0.115
                      TermMonthSort     2557.83      (4.7%)     2510.13      (2.6%)   -1.9% (  -8% -    5%) 0.268
                     FilteredPhrase       13.08      (1.2%)       12.84      (1.3%)   -1.8% (  -4% -    0%) 0.001
                CountFilteredPhrase       11.95      (2.2%)       11.76      (2.5%)   -1.6% (  -6% -    3%) 0.129
         FilteredOr2Terms2StopWords       70.67      (1.0%)       69.58      (1.7%)   -1.5% (  -4% -    1%) 0.016
                FilteredOrStopWords       11.07      (1.4%)       10.90      (1.5%)   -1.5% (  -4% -    1%) 0.015
                             Phrase       10.02      (1.6%)        9.90      (2.4%)   -1.3% (  -5% -    2%) 0.169
                CombinedAndHighHigh        6.26      (2.5%)        6.19      (3.7%)   -1.2% (  -7% -    5%) 0.376
            CountFilteredOrHighHigh       25.50      (1.8%)       25.24      (1.0%)   -1.0% (  -3% -    1%) 0.115
                FilteredAndHighHigh       12.87      (6.2%)       12.75      (5.9%)   -1.0% ( -12% -   11%) 0.716
                 CombinedOrHighHigh        6.32      (2.6%)        6.26      (3.0%)   -0.9% (  -6% -    4%) 0.450
             CountFilteredOrHighMed       30.05      (2.0%)       29.83      (1.7%)   -0.7% (  -4% -    2%) 0.375
                CountFilteredIntNRQ       22.54      (3.0%)       22.37      (1.9%)   -0.7% (  -5% -    4%) 0.521
                 CombinedAndHighMed       25.48      (2.7%)       25.32      (4.5%)   -0.6% (  -7% -    6%) 0.705
                   CountAndHighHigh       61.76      (1.5%)       61.44      (1.4%)   -0.5% (  -3% -    2%) 0.412
                           Wildcard       59.06      (3.8%)       58.77      (4.0%)   -0.5% (  -7% -    7%) 0.779
                            Respell       44.94      (3.2%)       44.74      (2.4%)   -0.5% (  -5% -    5%) 0.713
                     CountOrHighMed       96.16      (1.6%)       95.73      (3.0%)   -0.5% (  -5% -    4%) 0.676
                CountFilteredOrMany        6.10      (1.8%)        6.08      (2.2%)   -0.4% (  -4% -    3%) 0.644
                    CountOrHighHigh       64.03      (1.8%)       63.78      (2.0%)   -0.4% (  -4% -    3%) 0.650
                    FilteredPrefix3       94.25      (3.2%)       93.94      (3.2%)   -0.3% (  -6% -    6%) 0.816
                        CountOrMany        6.85      (2.1%)        6.82      (2.3%)   -0.3% (  -4% -    4%) 0.741
               FilteredAndStopWords       10.20      (5.7%)       10.17      (5.3%)   -0.3% ( -10% -   11%) 0.901
                    AndHighOrMedMed       18.21      (3.4%)       18.17      (3.5%)   -0.2% (  -6% -    6%) 0.889
                             Fuzzy2       46.42      (4.4%)       46.37      (2.8%)   -0.1% (  -6% -    7%) 0.954
                   IntervalsOrdered        2.99      (3.9%)        2.98      (2.9%)   -0.0% (  -6% -    6%) 0.982
                            Prefix3      100.89      (3.0%)      100.88      (2.9%)   -0.0% (  -5% -    6%) 0.994
                             Fuzzy1       51.43      (5.6%)       51.50      (3.8%)    0.1% (  -8% -   10%) 0.951
                      TermTitleSort       72.49      (3.7%)       72.61      (3.0%)    0.2% (  -6% -    7%) 0.914
                  CombinedOrHighMed       25.51      (3.1%)       25.56      (3.8%)    0.2% (  -6% -    7%) 0.900
                             IntSet      388.85      (5.6%)      389.85      (4.4%)    0.3% (  -9% -   10%) 0.909
                           PKLookup      186.01      (7.2%)      186.58      (8.4%)    0.3% ( -14% -   17%) 0.931
                           SpanNear        3.02      (5.0%)        3.03      (5.8%)    0.3% (  -9% -   11%) 0.899
                     FilteredIntNRQ       48.19      (2.5%)       48.35      (2.0%)    0.3% (  -4% -    5%) 0.758
                         OrHighRare      120.88      (5.5%)      121.28      (5.5%)    0.3% ( -10% -   11%) 0.892
                        CountPhrase        3.31      (3.8%)        3.32      (3.1%)    0.4% (  -6% -    7%) 0.794
                       CombinedTerm       13.88      (3.2%)       13.94      (4.9%)    0.4% (  -7% -    8%) 0.822
                             IntNRQ       48.37      (2.5%)       48.58      (1.8%)    0.4% (  -3% -    4%) 0.661
                  TermDayOfYearSort      381.01      (2.6%)      383.39      (1.5%)    0.6% (  -3% -    4%) 0.514
                         TermDTSort      181.20      (2.2%)      182.78      (2.5%)    0.9% (  -3% -    5%) 0.414
                          CountTerm     7148.05      (7.0%)     7230.16      (5.2%)    1.1% ( -10% -   14%) 0.676
                       SloppyPhrase        1.50      (4.2%)        1.54      (2.9%)    2.6% (  -4% -   10%) 0.109
                             OrMany        5.28     (12.6%)        5.42      (9.1%)    2.6% ( -16% -   27%) 0.599
                   AndMedOrHighHigh       19.49      (7.9%)       19.99      (6.5%)    2.6% ( -10% -   18%) 0.419
                 FilteredAndHighMed       36.56     (11.4%)       37.78      (7.5%)    3.4% ( -14% -   25%) 0.438
                         DismaxTerm      588.96     (11.4%)      610.47      (9.5%)    3.7% ( -15% -   27%) 0.437
                   DismaxOrHighHigh       42.39     (13.9%)       43.95     (11.0%)    3.7% ( -18% -   33%) 0.512
                    DismaxOrHighMed       61.95     (12.7%)       64.44     (10.8%)    4.0% ( -17% -   31%) 0.446
        FilteredAnd2Terms2StopWords       64.02     (13.8%)       66.89      (9.4%)    4.5% ( -16% -   32%) 0.395
                             Term1M      525.96     (15.8%)      551.13     (13.3%)    4.8% ( -21% -   40%) 0.464
                          TermB1M1P      525.44     (16.0%)      552.18     (13.4%)    5.1% ( -21% -   41%) 0.442
                            Term10K      525.63     (15.7%)      552.56     (13.3%)    5.1% ( -20% -   40%) 0.431
                               Term      526.88     (16.2%)      554.16     (13.0%)    5.2% ( -20% -   40%) 0.430
                  FilteredAnd3Terms       76.81     (18.4%)       80.97     (13.8%)    5.4% ( -22% -   46%) 0.456
                            TermB1M      525.09     (15.7%)      554.15     (13.1%)    5.5% ( -20% -   40%) 0.392
                 Or2Terms2StopWords       68.38     (16.1%)       72.24     (11.8%)    5.7% ( -19% -   39%) 0.371
                            Term100      522.93     (15.7%)      553.49     (13.4%)    5.8% ( -20% -   41%) 0.370
                           Or3Terms       68.30     (20.0%)       72.34     (14.1%)    5.9% ( -23% -   49%) 0.444
                And2Terms2StopWords       69.76     (15.6%)       74.00     (11.2%)    6.1% ( -17% -   38%) 0.317
                        OrStopWords        8.15     (21.2%)        8.66     (16.3%)    6.1% ( -25% -   55%) 0.468
                       AndStopWords        7.81     (18.5%)        8.29     (13.3%)    6.2% ( -21% -   46%) 0.391
                          And3Terms       72.63     (19.4%)       77.74     (13.9%)    7.0% ( -22% -   50%) 0.352
                          OrHighMed       76.89     (23.2%)       83.35     (18.4%)    8.4% ( -26% -   65%) 0.370
                         OrHighHigh       21.09     (24.9%)       23.01     (19.8%)    9.1% ( -28% -   71%) 0.366
                         AndHighMed       58.17     (22.6%)       63.81     (18.0%)    9.7% ( -25% -   64%) 0.288
                        AndHighHigh       21.72     (25.2%)       24.07     (20.8%)   10.8% ( -28% -   75%) 0.295
   ```
   
   
   ### Findings
   Initially, I was playing around with `findNextGEQ` and `AdvanceBenchmark`, try to figure out if there is any space for optimization, and finnaly found I can increase the step size and manually expand the loop. In my machine, expand the loop from 1 to 4 will produce different resut (4 is best)
   ```
   AdvanceBenchmark.vectorUtilSearch  thrpt   15  752.037 ± 33.398  ops/ms  (no expand, current implementation)
   AdvanceBenchmark.vectorUtilSearch  thrpt   15  625.892 ± 20.849  ops/ms  (expand 2, proposed implementation by this PR)
   AdvanceBenchmark.vectorUtilSearch  thrpt   15  893.295 ± 17.879  ops/ms  (expand 3)
   AdvanceBenchmark.vectorUtilSearch  thrpt   15  955.528 ± 20.036  ops/ms  (expand 4)
   ```
   so I modify the code and ran luceneutil, but the result is not good as `AdvanceBenchmark` showed. At first, I just run the expand-3/4, because only 3/4 have better performance than the current implementation. This might indicate the `AdvanceBenchmark` have some gap with real word search path.
   
   To be honest, the result is not ***THAT*** reliable to me, because the `p-value` is still far from 0, but on the other hand, this modification actually paid more cost when the target is close, because we need to check two vectors now, instead of one,  so the high `p-value` might be acceptable? Please let me know if I got anything wrong. :)
   
   <!--
   If this is your first contribution to Lucene, please make sure you have reviewed the contribution guide.
   https://github.com/apache/lucene/blob/main/CONTRIBUTING.md
   -->
   


-- 
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: issues-unsubscribe@lucene.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org


Re: [PR] Speed up findNextGEQ by aggresive stepping [lucene]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #14735:
URL: https://github.com/apache/lucene/pull/14735#issuecomment-2922768134

   This PR does not have an entry in lucene/CHANGES.txt. Consider adding one. If the PR doesn't need a changelog entry, then add the skip-changelog-check label to it and you will stop receiving this reminder on future updates to the PR.


-- 
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: issues-unsubscribe@lucene.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org


Re: [PR] Speed up findNextGEQ by aggresive stepping [lucene]

Posted by "jpountz (via GitHub)" <gi...@apache.org>.
jpountz commented on PR #14735:
URL: https://github.com/apache/lucene/pull/14735#issuecomment-2944502036

   You are reading correctly, the high p-values suggest that the speedups are not statistically significant.


-- 
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: issues-unsubscribe@lucene.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org


Re: [PR] Speed up findNextGEQ by aggresive stepping [lucene]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #14735:
URL: https://github.com/apache/lucene/pull/14735#issuecomment-2942649543

   This PR does not have an entry in lucene/CHANGES.txt. Consider adding one. If the PR doesn't need a changelog entry, then add the skip-changelog label to it and you will stop receiving this reminder on future updates to the PR.


-- 
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: issues-unsubscribe@lucene.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org


Re: [PR] Speed up findNextGEQ by aggresive stepping [lucene]

Posted by "HUSTERGS (via GitHub)" <gi...@apache.org>.
HUSTERGS closed pull request #14735: Speed up findNextGEQ by aggresive stepping
URL: https://github.com/apache/lucene/pull/14735


-- 
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: issues-unsubscribe@lucene.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org


Re: [PR] Speed up findNextGEQ by aggresive stepping [lucene]

Posted by "HUSTERGS (via GitHub)" <gi...@apache.org>.
HUSTERGS commented on PR #14735:
URL: https://github.com/apache/lucene/pull/14735#issuecomment-2922761475

   I added a single block pre-check, so if the target locate at the first block, we will not pay the double cost. This change seems quite useful, because it reduces the cost of common cases. And the worse case is also mitigated. The `AdvanceBenchmark` shows a better result (the test result was worse than the original implemetation without this check)
   ```
   AdvanceBenchmark.vectorUtilSearch  thrpt   15  752.037 ± 33.398  ops/ms  (no expand, current implementation)
   AdvanceBenchmark.vectorUtilSearch  thrpt   15  625.892 ± 20.849  ops/ms  (expand 2, previous proposed implementation)
   AdvanceBenchmark.vectorUtilSearch  thrpt   15  802.733 ± 25.096  ops/ms  (expand 2, currently proposed implementation by this PR)
   AdvanceBenchmark.vectorUtilSearch  thrpt   15  893.295 ± 17.879  ops/ms  (expand 3)
   AdvanceBenchmark.vectorUtilSearch  thrpt   15  955.528 ± 20.036  ops/ms  (expand 4)
   ```
   the result from luceneutil also confirmed that, `taskCountPerCat` set to 5 and concurrent search disabled:
   ```
                               TaskQPS baseline      StdDevQPS my_modified_version      StdDev                Pct diff p-value
                    CountAndHighMed       93.29      (3.5%)       90.14      (4.3%)   -3.4% ( -10% -    4%) 0.086
                     CountOrHighMed       97.01      (2.4%)       94.42      (4.3%)   -2.7% (  -9% -    4%) 0.125
                FilteredAndHighHigh       13.18      (2.2%)       12.94      (1.6%)   -1.8% (  -5% -    2%) 0.062
                     FilteredOrMany        5.10      (1.9%)        5.01      (2.8%)   -1.7% (  -6% -    3%) 0.164
                            Prefix3       98.88      (2.1%)       97.33      (4.5%)   -1.6% (  -7% -    5%) 0.371
                    FilteredPrefix3       92.03      (2.0%)       90.85      (3.9%)   -1.3% (  -7% -    4%) 0.408
                   FilteredOr3Terms       59.68      (1.9%)       59.00      (2.6%)   -1.1% (  -5% -    3%) 0.318
                       SloppyPhrase        1.54      (4.2%)        1.52      (3.3%)   -1.1% (  -8% -    6%) 0.579
                    AndHighOrMedMed       17.85      (2.0%)       17.66      (1.6%)   -1.0% (  -4% -    2%) 0.263
               FilteredAndStopWords       10.36      (2.1%)       10.25      (1.6%)   -1.0% (  -4% -    2%) 0.288
                 CombinedAndHighMed       24.68      (3.8%)       24.44      (2.9%)   -1.0% (  -7% -    5%) 0.554
                CombinedAndHighHigh        6.15      (2.7%)        6.10      (1.9%)   -0.9% (  -5% -    3%) 0.457
                 FilteredOrHighHigh       18.16      (1.8%)       18.02      (1.7%)   -0.8% (  -4% -    2%) 0.379
                  FilteredOrHighMed       54.23      (2.9%)       53.82      (2.6%)   -0.8% (  -6% -    4%) 0.582
                        CountOrMany        6.85      (1.7%)        6.80      (3.0%)   -0.7% (  -5% -    4%) 0.589
                      TermMonthSort     2508.14      (3.7%)     2494.67      (3.7%)   -0.5% (  -7% -    7%) 0.770
                           PKLookup      185.70      (8.8%)      185.00      (8.7%)   -0.4% ( -16% -   18%) 0.932
                      TermTitleSort       71.42      (3.2%)       71.20      (3.3%)   -0.3% (  -6% -    6%) 0.851
                         TermDTSort      179.37      (4.6%)      178.92      (2.1%)   -0.3% (  -6% -    6%) 0.887
                  TermDayOfYearSort      375.84      (1.6%)      375.20      (0.7%)   -0.2% (  -2% -    2%) 0.786
                         OrHighRare      123.25      (4.9%)      123.10      (2.1%)   -0.1% (  -6% -    7%) 0.948
         FilteredOr2Terms2StopWords       69.66      (5.5%)       69.60      (5.6%)   -0.1% ( -10% -   11%) 0.977
                           Wildcard       57.13      (3.1%)       57.12      (3.1%)   -0.0% (  -6% -    6%) 0.988
                        CountPhrase        3.25      (4.4%)        3.25      (2.8%)   -0.0% (  -6% -    7%) 0.994
                       FilteredTerm       88.15      (3.3%)       88.15      (4.2%)    0.0% (  -7% -    7%) 0.999
                    CountOrHighHigh       63.31      (2.4%)       63.34      (2.9%)    0.0% (  -5% -    5%) 0.976
                FilteredOrStopWords       11.01      (3.3%)       11.03      (2.0%)    0.2% (  -4% -    5%) 0.900
                     FilteredPhrase       12.75      (2.4%)       12.78      (2.6%)    0.2% (  -4% -    5%) 0.880
                       CombinedTerm       13.47      (3.7%)       13.50      (3.9%)    0.2% (  -7% -    8%) 0.918
                   IntervalsOrdered        2.95      (3.3%)        2.96      (3.5%)    0.3% (  -6% -    7%) 0.871
                            Respell       43.81      (1.9%)       43.97      (2.1%)    0.4% (  -3% -    4%) 0.703
                   CountAndHighHigh       60.80      (2.5%)       61.04      (2.8%)    0.4% (  -4% -    5%) 0.763
                           SpanNear        3.10      (2.3%)        3.12      (1.9%)    0.6% (  -3% -    4%) 0.552
                             IntNRQ       48.14      (1.8%)       48.46      (2.4%)    0.7% (  -3% -    4%) 0.522
                CountFilteredIntNRQ       22.06      (1.2%)       22.21      (1.5%)    0.7% (  -2% -    3%) 0.306
                          CountTerm     7031.70      (2.8%)     7085.76      (5.2%)    0.8% (  -7% -    9%) 0.715
            CountFilteredOrHighHigh       25.07      (1.1%)       25.27      (1.4%)    0.8% (  -1% -    3%) 0.194
                             IntSet      391.92      (4.6%)      395.19      (5.4%)    0.8% (  -8% -   11%) 0.739
                CountFilteredOrMany        6.01      (1.8%)        6.06      (2.2%)    0.9% (  -3% -    4%) 0.394
                     FilteredIntNRQ       47.96      (2.1%)       48.37      (2.3%)    0.9% (  -3% -    5%) 0.443
             CountFilteredOrHighMed       29.55      (0.8%)       29.81      (1.7%)    0.9% (  -1% -    3%) 0.196
                             Phrase        9.76      (2.7%)        9.87      (2.5%)    1.1% (  -4% -    6%) 0.414
                             Fuzzy2       45.67      (3.3%)       46.25      (4.1%)    1.3% (  -5% -    8%) 0.495
                CountFilteredPhrase       11.67      (3.4%)       11.82      (3.9%)    1.3% (  -5% -    8%) 0.483
                             Fuzzy1       50.95      (4.0%)       51.97      (3.5%)    2.0% (  -5% -    9%) 0.286
                  CombinedOrHighMed       24.10      (9.1%)       24.73      (4.2%)    2.6% (  -9% -   17%) 0.464
                 CombinedOrHighHigh        5.99      (9.2%)        6.18      (2.6%)    3.1% (  -7% -   16%) 0.355
                 FilteredAndHighMed       38.19      (8.4%)       39.39      (2.1%)    3.1% (  -6% -   14%) 0.306
                   AndMedOrHighHigh       19.76      (7.8%)       20.66      (2.3%)    4.6% (  -5% -   15%) 0.112
                             OrMany        5.44      (8.2%)        5.70      (4.3%)    4.7% (  -7% -   18%) 0.149
        FilteredAnd2Terms2StopWords       66.23     (12.4%)       69.62      (5.8%)    5.1% ( -11% -   26%) 0.290
                    DismaxOrHighMed       63.25     (11.6%)       66.58      (3.5%)    5.3% (  -8% -   22%) 0.219
                         DismaxTerm      593.96      (8.5%)      625.85      (6.5%)    5.4% (  -8% -   22%) 0.157
                And2Terms2StopWords       73.30     (12.9%)       77.34      (8.0%)    5.5% ( -13% -   30%) 0.305
                   DismaxOrHighHigh       43.52     (12.1%)       46.09      (3.1%)    5.9% (  -8% -   23%) 0.180
                            TermB1M      526.21     (13.7%)      561.74     (12.2%)    6.8% ( -16% -   37%) 0.298
                            Term10K      527.47     (13.8%)      563.17     (12.3%)    6.8% ( -16% -   38%) 0.300
                  FilteredAnd3Terms       80.07     (15.7%)       85.52      (2.0%)    6.8% (  -9% -   29%) 0.224
                          TermB1M1P      529.07     (13.9%)      565.30     (12.8%)    6.8% ( -17% -   38%) 0.305
                       AndStopWords        8.52     (14.5%)        9.10      (2.9%)    6.9% (  -9% -   28%) 0.190
                 Or2Terms2StopWords       71.07     (14.9%)       76.05      (7.5%)    7.0% ( -13% -   34%) 0.235
                             Term1M      526.93     (13.9%)      565.31     (11.8%)    7.3% ( -16% -   38%) 0.258
                            Term100      525.57     (13.3%)      563.91     (12.0%)    7.3% ( -15% -   37%) 0.249
                          And3Terms       78.11     (15.0%)       83.90      (1.8%)    7.4% (  -8% -   28%) 0.167
                               Term      526.25     (13.5%)      566.72     (12.1%)    7.7% ( -15% -   38%) 0.230
                           Or3Terms       72.68     (16.4%)       78.71      (1.6%)    8.3% (  -8% -   31%) 0.155
                        OrStopWords        8.89     (19.6%)        9.76      (3.1%)    9.7% ( -10% -   40%) 0.165
                         AndHighMed       61.59     (18.7%)       67.79      (2.1%)   10.1% (  -9% -   38%) 0.131
                          OrHighMed       80.86     (19.6%)       89.47      (2.8%)   10.6% (  -9% -   41%) 0.129
                         OrHighHigh       22.38     (21.7%)       24.98      (1.6%)   11.6% (  -9% -   44%) 0.131
                        AndHighHigh       23.37     (21.6%)       26.10      (1.7%)   11.7% (  -9% -   44%) 0.128
   ```
   


-- 
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: issues-unsubscribe@lucene.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org


Re: [PR] Speed up findNextGEQ by aggresive stepping [lucene]

Posted by "HUSTERGS (via GitHub)" <gi...@apache.org>.
HUSTERGS commented on PR #14735:
URL: https://github.com/apache/lucene/pull/14735#issuecomment-2926357056

   @jpountz  Thank you for your reply! I've tried run a full round (20 iteration) of luceneutil, and the final result seems not as same good as I showed before. So I think this method actually did not deliver an expecting performance gain, close the pr for now.
   task=5 concurrentsearch=0
   ```
    TaskQPS baseline      StdDevQPS my_modified_version      StdDev                Pct diff p-value
                         OrHighHigh       24.36      (9.9%)       22.96     (17.4%)   -5.7% ( -30% -   23%) 0.201
                          OrHighMed       86.83      (9.6%)       82.50     (16.0%)   -5.0% ( -27% -   22%) 0.233
                        OrStopWords        9.17     (11.5%)        8.78     (15.5%)   -4.2% ( -27% -   25%) 0.335
                           Or3Terms       75.63      (9.5%)       72.58     (13.0%)   -4.0% ( -24% -   20%) 0.262
                    DismaxOrHighMed       65.88      (6.8%)       63.88      (9.7%)   -3.0% ( -18% -   14%) 0.252
                 Or2Terms2StopWords       72.94     (10.7%)       70.79     (11.8%)   -3.0% ( -22% -   21%) 0.405
                   DismaxOrHighHigh       45.22      (6.8%)       43.98     (10.3%)   -2.7% ( -18% -   15%) 0.323
                    CountAndHighMed       92.46      (3.7%)       91.10      (3.7%)   -1.5% (  -8% -    6%) 0.206
                  FilteredAnd3Terms       82.63     (10.5%)       81.90     (12.0%)   -0.9% ( -21% -   24%) 0.803
                             OrMany        5.46      (8.6%)        5.41      (9.0%)   -0.9% ( -16% -   18%) 0.756
                     CountOrHighMed       95.52      (3.3%)       94.74      (3.3%)   -0.8% (  -7% -    6%) 0.437
                   AndMedOrHighHigh       20.33      (5.2%)       20.18      (6.2%)   -0.8% ( -11% -   11%) 0.666
                        CountPhrase        3.29      (3.4%)        3.26      (4.9%)   -0.7% (  -8% -    7%) 0.606
                             IntSet      388.62      (5.9%)      385.99      (5.7%)   -0.7% ( -11% -   11%) 0.713
                            Prefix3      100.45      (3.6%)       99.79      (4.2%)   -0.6% (  -8% -    7%) 0.600
                         AndHighMed       64.37     (12.7%)       63.98     (14.8%)   -0.6% ( -24% -   30%) 0.889
                        AndHighHigh       24.54     (14.8%)       24.39     (16.6%)   -0.6% ( -27% -   36%) 0.906
                   IntervalsOrdered        2.96      (2.2%)        2.94      (3.4%)   -0.6% (  -6% -    5%) 0.528
                           Wildcard       58.96      (4.5%)       58.64      (4.2%)   -0.5% (  -8% -    8%) 0.692
                            Term10K      560.22     (10.0%)      557.76     (10.7%)   -0.4% ( -19% -   22%) 0.893
                       SloppyPhrase        1.55      (3.0%)        1.54      (3.0%)   -0.4% (  -6% -    5%) 0.651
                            TermB1M      559.77     (10.0%)      557.52     (10.7%)   -0.4% ( -19% -   22%) 0.902
                   FilteredOr3Terms       59.42      (2.3%)       59.18      (2.7%)   -0.4% (  -5% -    4%) 0.615
                     FilteredOrMany        5.06      (1.8%)        5.04      (2.5%)   -0.4% (  -4% -    4%) 0.577
                             Fuzzy1       51.63      (3.7%)       51.48      (4.3%)   -0.3% (  -7% -    7%) 0.811
                CountFilteredPhrase       11.75      (3.5%)       11.72      (3.7%)   -0.2% (  -7% -    7%) 0.840
                 FilteredOrHighHigh       18.13      (1.7%)       18.10      (1.8%)   -0.2% (  -3% -    3%) 0.716
                FilteredOrStopWords       11.01      (2.3%)       11.00      (2.5%)   -0.2% (  -4% -    4%) 0.820
                          And3Terms       78.75     (11.1%)       78.62     (12.3%)   -0.2% ( -21% -   26%) 0.965
                               Term      558.82      (9.9%)      557.99     (10.9%)   -0.1% ( -19% -   22%) 0.964
                  FilteredOrHighMed       54.08      (2.8%)       54.01      (2.9%)   -0.1% (  -5% -    5%) 0.892
                             Phrase        9.87      (1.8%)        9.86      (2.8%)   -0.1% (  -4% -    4%) 0.904
                    CountOrHighHigh       63.21      (1.9%)       63.18      (1.6%)   -0.0% (  -3% -    3%) 0.945
                          TermB1M1P      558.91     (10.0%)      558.77     (10.8%)   -0.0% ( -18% -   23%) 0.994
                CountFilteredOrMany        6.02      (1.7%)        6.02      (1.5%)   -0.0% (  -3% -    3%) 0.984
                CombinedAndHighHigh        6.23      (2.9%)        6.23      (3.4%)    0.0% (  -6% -    6%) 0.999
                            Respell       44.48      (2.2%)       44.49      (3.1%)    0.0% (  -5% -    5%) 0.982
                            Term100      557.27      (9.7%)      557.41     (10.7%)    0.0% ( -18% -   22%) 0.994
                  TermDayOfYearSort      376.47      (2.0%)      376.72      (2.2%)    0.1% (  -3% -    4%) 0.919
                 FilteredAndHighMed       38.04      (6.8%)       38.07      (7.3%)    0.1% ( -13% -   15%) 0.971
                   CountAndHighHigh       60.99      (2.0%)       61.04      (1.6%)    0.1% (  -3% -    3%) 0.880
                         DismaxTerm      611.12      (7.6%)      611.68      (7.9%)    0.1% ( -14% -   16%) 0.970
                    FilteredPrefix3       93.18      (3.3%)       93.27      (4.0%)    0.1% (  -7% -    7%) 0.934
                    AndHighOrMedMed       17.98      (2.4%)       18.01      (3.4%)    0.1% (  -5% -    6%) 0.901
                             Term1M      559.22      (9.9%)      560.00     (10.8%)    0.1% ( -18% -   23%) 0.966
                     FilteredPhrase       12.85      (2.2%)       12.87      (2.2%)    0.2% (  -4% -    4%) 0.826
                             Fuzzy2       45.98      (3.8%)       46.09      (4.5%)    0.3% (  -7% -    8%) 0.850
            CountFilteredOrHighHigh       25.12      (0.8%)       25.19      (1.5%)    0.3% (  -1% -    2%) 0.426
                  CombinedOrHighMed       25.14      (4.0%)       25.22      (4.2%)    0.3% (  -7% -    8%) 0.806
                 CombinedOrHighHigh        6.27      (3.0%)        6.29      (2.6%)    0.3% (  -5% -    6%) 0.715
                         TermDTSort      180.37      (3.3%)      181.00      (4.1%)    0.3% (  -6% -    8%) 0.767
                        CountOrMany        6.75      (2.2%)        6.78      (2.0%)    0.4% (  -3% -    4%) 0.534
             CountFilteredOrHighMed       29.51      (0.8%)       29.64      (1.6%)    0.4% (  -1% -    2%) 0.271
         FilteredOr2Terms2StopWords       69.27      (5.4%)       69.59      (5.6%)    0.5% ( -10% -   12%) 0.790
                       AndStopWords        8.45     (12.0%)        8.49     (12.4%)    0.5% ( -21% -   28%) 0.890
        FilteredAnd2Terms2StopWords       66.43      (9.3%)       66.79     (10.5%)    0.5% ( -17% -   22%) 0.865
                CountFilteredIntNRQ       22.02      (1.4%)       22.17      (2.3%)    0.7% (  -2% -    4%) 0.257
                       FilteredTerm       88.21      (3.1%)       88.85      (3.0%)    0.7% (  -5% -    6%) 0.449
                      TermMonthSort     2446.56      (3.7%)     2464.51      (5.0%)    0.7% (  -7% -    9%) 0.598
                 CombinedAndHighMed       24.86      (4.4%)       25.05      (5.0%)    0.8% (  -8% -   10%) 0.600
                             IntNRQ       47.98      (2.6%)       48.36      (2.5%)    0.8% (  -4% -    5%) 0.323
                     FilteredIntNRQ       47.75      (2.6%)       48.14      (2.7%)    0.8% (  -4% -    6%) 0.341
                And2Terms2StopWords       72.89     (11.1%)       73.53     (12.3%)    0.9% ( -20% -   27%) 0.814
                      TermTitleSort       71.44      (3.1%)       72.15      (4.2%)    1.0% (  -6% -    8%) 0.395
                          CountTerm     6952.95      (4.5%)     7023.72      (6.1%)    1.0% (  -9% -   12%) 0.550
                FilteredAndHighHigh       12.73      (5.7%)       12.86      (4.7%)    1.0% (  -8% -   12%) 0.533
               FilteredAndStopWords       10.07      (5.1%)       10.19      (4.3%)    1.2% (  -7% -   11%) 0.439
                           SpanNear        2.95      (4.8%)        2.99      (5.3%)    1.2% (  -8% -   11%) 0.437
                         OrHighRare      120.43      (5.4%)      122.06      (5.7%)    1.4% (  -9% -   13%) 0.440
                       CombinedTerm       13.60      (2.8%)       13.79      (4.3%)    1.4% (  -5% -    8%) 0.223
                           PKLookup      181.00      (7.4%)      183.55      (8.2%)    1.4% ( -13% -   18%) 0.568
   ```


-- 
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: issues-unsubscribe@lucene.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org


Re: [PR] Speed up findNextGEQ by aggresive stepping [lucene]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #14735:
URL: https://github.com/apache/lucene/pull/14735#issuecomment-2942651109

   This PR does not have an entry in lucene/CHANGES.txt. Consider adding one. If the PR doesn't need a changelog entry, then add the skip-changelog label to it and you will stop receiving this reminder on future updates to the PR.


-- 
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: issues-unsubscribe@lucene.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org


Re: [PR] Speed up findNextGEQ by aggresive stepping [lucene]

Posted by "jpountz (via GitHub)" <gi...@apache.org>.
jpountz commented on PR #14735:
URL: https://github.com/apache/lucene/pull/14735#issuecomment-2944372773

   I ran benchmarks locally and get similar results as yours. This suggests that this change is neutral in terms of performance.


-- 
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: issues-unsubscribe@lucene.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org


Re: [PR] Speed up findNextGEQ by aggresive stepping [lucene]

Posted by "HUSTERGS (via GitHub)" <gi...@apache.org>.
HUSTERGS commented on PR #14735:
URL: https://github.com/apache/lucene/pull/14735#issuecomment-2942655550

   Apologies if reopening this PR caused any inconvenience.
   
   For what it's worth, I came up with a branchless way to avoid the double IntVector check. What I'm curious about is that if the calculation about `start` is inside of the inner `if` clause, the overall performance actually degraded, I guess it might helps with CPU pipeline if it is outside the `if` . Although the total memory access time is now the same with current implementation, the overall performance seems get a little bit better?
   
   I run another round of luceneutil with 20 iteration, the result is as follows. The p-value is still relatively high after 20 iterations   :(
   ```
   TaskQPS baseline      StdDevQPS my_modified_version      StdDev                Pct diff p-value
                    CountAndHighMed       90.83      (2.7%)       90.24      (2.5%)   -0.6% (  -5% -    4%) 0.431
                    FilteredPrefix3       90.30      (2.9%)       89.79      (2.9%)   -0.6% (  -6% -    5%) 0.539
                            Prefix3       96.59      (3.1%)       96.08      (2.9%)   -0.5% (  -6% -    5%) 0.580
                    CountOrHighHigh       62.87      (1.9%)       62.62      (1.6%)   -0.4% (  -3% -    3%) 0.471
                        CountOrMany        6.77      (2.1%)        6.74      (1.7%)   -0.3% (  -4% -    3%) 0.587
                      TermTitleSort       71.58      (3.0%)       71.35      (2.7%)   -0.3% (  -5% -    5%) 0.722
             CountFilteredOrHighMed       29.60      (2.4%)       29.52      (2.1%)   -0.3% (  -4% -    4%) 0.719
                        CountPhrase        3.28      (2.7%)        3.27      (4.0%)   -0.2% (  -6% -    6%) 0.847
            CountFilteredOrHighHigh       25.16      (2.3%)       25.12      (1.9%)   -0.2% (  -4% -    4%) 0.784
                CountFilteredOrMany        6.02      (1.8%)        6.01      (1.4%)   -0.1% (  -3% -    3%) 0.787
                     CountOrHighMed       94.23      (1.9%)       94.12      (1.7%)   -0.1% (  -3% -    3%) 0.846
                CombinedAndHighHigh        6.22      (3.0%)        6.23      (3.0%)    0.1% (  -5% -    6%) 0.954
                 CombinedOrHighHigh        6.24      (3.0%)        6.24      (2.9%)    0.1% (  -5% -    6%) 0.881
                     FilteredOrMany        5.00      (1.6%)        5.01      (2.2%)    0.2% (  -3% -    4%) 0.784
                    AndHighOrMedMed       17.77      (3.0%)       17.81      (3.1%)    0.2% (  -5% -    6%) 0.816
                  FilteredAnd3Terms      127.44      (1.9%)      127.77      (1.9%)    0.3% (  -3% -    4%) 0.656
                       CombinedTerm       13.38      (3.6%)       13.42      (3.6%)    0.3% (  -6% -    7%) 0.796
                CountFilteredIntNRQ       22.22      (2.8%)       22.28      (2.1%)    0.3% (  -4% -    5%) 0.698
                             Phrase        9.77      (2.7%)        9.80      (2.9%)    0.3% (  -5% -    6%) 0.726
                            Respell       44.26      (1.7%)       44.42      (2.2%)    0.4% (  -3% -    4%) 0.543
                   AndMedOrHighHigh       20.40      (2.2%)       20.49      (2.2%)    0.4% (  -3% -    4%) 0.529
                         AndHighMed       67.03      (1.6%)       67.34      (1.7%)    0.5% (  -2% -    3%) 0.376
                         OrHighHigh       25.03      (3.1%)       25.15      (2.5%)    0.5% (  -5% -    6%) 0.605
                   IntervalsOrdered        3.00      (1.6%)        3.01      (2.9%)    0.5% (  -3% -    5%) 0.519
                        AndHighHigh       26.52      (3.6%)       26.65      (3.3%)    0.5% (  -6% -    7%) 0.666
                 FilteredOrHighHigh       17.62      (1.7%)       17.70      (2.1%)    0.5% (  -3% -    4%) 0.421
                             IntSet      391.61      (5.2%)      393.68      (4.1%)    0.5% (  -8% -   10%) 0.723
                  TermDayOfYearSort      373.91      (1.8%)      376.33      (1.1%)    0.6% (  -2% -    3%) 0.175
                   CountAndHighHigh       60.43      (2.0%)       60.82      (1.6%)    0.6% (  -2% -    4%) 0.263
                         TermDTSort      179.99      (3.0%)      181.17      (3.1%)    0.7% (  -5% -    6%) 0.500
                           Wildcard       56.61      (3.4%)       57.01      (2.9%)    0.7% (  -5% -    7%) 0.480
                    DismaxOrHighMed       64.55      (2.0%)       65.05      (2.3%)    0.8% (  -3% -    5%) 0.257
               FilteredAndStopWords       10.20      (4.1%)       10.28      (3.1%)    0.8% (  -6% -    8%) 0.500
                  CombinedOrHighMed       24.74      (4.3%)       24.93      (3.8%)    0.8% (  -7% -    9%) 0.542
                 CombinedAndHighMed       24.54      (4.1%)       24.75      (4.0%)    0.9% (  -7% -    9%) 0.506
                FilteredAndHighHigh       13.04      (4.6%)       13.15      (3.5%)    0.9% (  -6% -    9%) 0.498
                FilteredOrStopWords       10.71      (2.5%)       10.81      (2.5%)    0.9% (  -3% -    6%) 0.239
                           Or3Terms       75.92      (6.1%)       76.67      (5.0%)    1.0% (  -9% -   12%) 0.575
                   DismaxOrHighHigh       45.47      (2.7%)       45.93      (2.6%)    1.0% (  -4% -    6%) 0.224
                          And3Terms       84.47      (5.2%)       85.33      (4.2%)    1.0% (  -7% -   10%) 0.498
                           SpanNear        3.09      (4.0%)        3.12      (3.8%)    1.0% (  -6% -    9%) 0.411
                 FilteredAndHighMed       40.91      (4.1%)       41.33      (3.2%)    1.0% (  -6% -    8%) 0.376
                     FilteredPhrase       12.64      (2.1%)       12.77      (2.2%)    1.0% (  -3% -    5%) 0.132
                     FilteredIntNRQ       47.83      (2.3%)       48.34      (2.1%)    1.1% (  -3% -    5%) 0.132
                          OrHighMed       87.14      (2.4%)       88.06      (2.1%)    1.1% (  -3% -    5%) 0.140
                             IntNRQ       48.10      (2.3%)       48.64      (2.1%)    1.1% (  -3% -    5%) 0.105
                       AndStopWords        9.02      (9.0%)        9.12      (7.0%)    1.1% ( -13% -   18%) 0.655
                   FilteredOr3Terms       57.64      (2.4%)       58.30      (2.3%)    1.1% (  -3% -    5%) 0.124
                  FilteredOrHighMed       52.41      (2.5%)       53.05      (2.7%)    1.2% (  -3% -    6%) 0.140
                CountFilteredPhrase       11.63      (3.1%)       11.79      (3.6%)    1.3% (  -5% -    8%) 0.207
                          CountTerm     6450.51      (4.4%)     6539.66      (4.9%)    1.4% (  -7% -   11%) 0.348
                            Term100      558.66      (3.8%)      566.48      (3.8%)    1.4% (  -5% -    9%) 0.243
                            Term10K      557.70      (3.7%)      565.55      (3.8%)    1.4% (  -5% -    9%) 0.236
                        OrStopWords        9.69     (10.4%)        9.83      (8.3%)    1.5% ( -15% -   22%) 0.625
                             OrMany        5.41      (6.7%)        5.49      (6.7%)    1.5% ( -11% -   15%) 0.486
                          TermB1M1P      557.08      (3.9%)      565.84      (3.8%)    1.6% (  -5% -    9%) 0.195
                            TermB1M      557.51      (4.0%)      566.48      (4.1%)    1.6% (  -6% -   10%) 0.209
                         OrHighRare      118.38      (5.7%)      120.39      (5.9%)    1.7% (  -9% -   14%) 0.353
                               Term      557.50      (3.6%)      567.31      (4.0%)    1.8% (  -5% -    9%) 0.145
                             Fuzzy1       50.97      (3.5%)       51.88      (3.9%)    1.8% (  -5% -    9%) 0.132
                             Fuzzy2       45.27      (3.4%)       46.09      (4.1%)    1.8% (  -5% -    9%) 0.127
                         DismaxTerm      604.34      (3.4%)      615.37      (3.8%)    1.8% (  -5% -    9%) 0.112
                             Term1M      556.69      (3.9%)      566.88      (3.9%)    1.8% (  -5% -   10%) 0.141
                       FilteredTerm       85.24      (3.1%)       86.88      (3.3%)    1.9% (  -4% -    8%) 0.055
                      TermMonthSort     2361.35      (3.8%)     2409.08      (4.8%)    2.0% (  -6% -   11%) 0.139
                       SloppyPhrase        1.47      (5.9%)        1.50      (3.8%)    2.3% (  -6% -   12%) 0.138
         FilteredOr2Terms2StopWords       67.14      (5.1%)       69.09      (5.5%)    2.9% (  -7% -   14%) 0.082
        FilteredAnd2Terms2StopWords       72.35      (6.9%)       74.70      (6.8%)    3.2% (  -9% -   18%) 0.134
                 Or2Terms2StopWords       73.04      (8.4%)       75.51      (7.7%)    3.4% ( -11% -   21%) 0.184
                           PKLookup      181.84      (6.7%)      188.05      (8.1%)    3.4% ( -10% -   19%) 0.146
                And2Terms2StopWords       74.34      (8.5%)       77.05      (8.2%)    3.6% ( -12% -   22%) 0.168
   
   CPU merged search profile for my_modified_version:
   JFR aggregation command: /home/gesong.samuel/.sdkman/candidates/java/current/bin/java -server -Xms2g -Xmx2g --add-modules jdk.incubator.vector -XX:+HeapDumpOnOutOfMemoryError -XX:+UseParallelGC -cp /data00/home/gesong.samuel/lucene_candidate/build-tools/build-infra/build/classes/java/main -Dtests.profile.mode=cpu -Dtests.profile.stacksize=1 -Dtests.profile.count=30 org.apache.lucene.gradle.ProfileResults /data00/home/gesong.samuel/logs/bench-search-baseline_vs_patch-my_modified_version-12.jfr /data00/home/gesong.samuel/logs/bench-search-baseline_vs_patch-my_modified_version-6.jfr /data00/home/gesong.samuel/logs/bench-search-baseline_vs_patch-my_modified_version-3.jfr /data00/home/gesong.samuel/logs/bench-search-baseline_vs_patch-my_modified_version-13.jfr /data00/home/gesong.samuel/logs/bench-search-baseline_vs_patch-my_modified_version-11.jfr /data00/home/gesong.samuel/logs/bench-search-baseline_vs_patch-my_modified_version-7.jfr /data00/home/gesong.samuel/logs/bench-search-basel
 ine_vs_patch-my_modified_version-17.jfr /data00/home/gesong.samuel/logs/bench-search-baseline_vs_patch-my_modified_version-9.jfr /data00/home/gesong.samuel/logs/bench-search-baseline_vs_patch-my_modified_version-18.jfr /data00/home/gesong.samuel/logs/bench-search-baseline_vs_patch-my_modified_version-15.jfr /data00/home/gesong.samuel/logs/bench-search-baseline_vs_patch-my_modified_version-16.jfr /data00/home/gesong.samuel/logs/bench-search-baseline_vs_patch-my_modified_version-8.jfr /data00/home/gesong.samuel/logs/bench-search-baseline_vs_patch-my_modified_version-14.jfr /data00/home/gesong.samuel/logs/bench-search-baseline_vs_patch-my_modified_version-1.jfr /data00/home/gesong.samuel/logs/bench-search-baseline_vs_patch-my_modified_version-19.jfr /data00/home/gesong.samuel/logs/bench-search-baseline_vs_patch-my_modified_version-10.jfr /data00/home/gesong.samuel/logs/bench-search-baseline_vs_patch-my_modified_version-2.jfr /data00/home/gesong.samuel/logs/bench-search-baseline_vs_patc
 h-my_modified_version-5.jfr /data00/home/gesong.samuel/logs/bench-search-baseline_vs_patch-my_modified_version-4.jfr /data00/home/gesong.samuel/logs/bench-search-baseline_vs_patch-my_modified_version-0.jfr
   Took 21.37 seconds
   WARNING: Using incubator modules: jdk.incubator.vector
   PROFILE SUMMARY from 6331976 events (total: 6M)
     tests.profile.mode=cpu
     tests.profile.count=30
     tests.profile.stacksize=1
     tests.profile.linenumbers=false
   PERCENT       CPU SAMPLES   STACK
   10.35%        655545        jdk.incubator.vector.Int512Vector$Int512Mask#trueCount() [Inlined code]
   5.03%         318374        org.apache.lucene.codecs.lucene103.Lucene103PostingsReader$BlockPostingsEnum#nextPosition() [Inlined code]
   4.13%         261683        org.apache.lucene.store.MemorySegmentIndexInput#readByte() [Inlined code]
   3.20%         202422        org.apache.lucene.search.similarities.BM25Similarity$BM25Scorer#score() [Inlined code]
   2.40%         152033        jdk.internal.foreign.MemorySessionImpl#checkValidStateRaw() [Inlined code]
   2.39%         151128        org.apache.lucene.sandbox.search.MultiNormsLeafSimScorer$MultiFieldNormValues#advanceExact() [Inlined code]
   2.22%         140677        jdk.incubator.vector.IntVector#intoArray() [Inlined code]
   2.21%         140030        perf.RandomQuery$1$1#nextDoc() [Inlined code]
   2.20%         139152        org.apache.lucene.codecs.lucene103.Lucene103PostingsReader#sumOverRange() [Inlined code]
   2.06%         130241        org.apache.lucene.search.ScorerUtil#filterCompetitiveHits() [Inlined code]
   1.72%         108865        org.apache.lucene.codecs.lucene90.Lucene90NormsProducer$3#longValue() [Inlined code]
   1.38%         87623         org.apache.lucene.search.PhraseScorer$1#matches() [JIT compiled code]
   1.28%         81057         org.apache.lucene.codecs.lucene103.Lucene103PostingsReader$BlockPostingsEnum#advance() [Inlined code]
   1.23%         78078         org.apache.lucene.codecs.lucene103.Lucene103PostingsReader$BlockPostingsEnum#freq() [Inlined code]
   1.23%         77585         org.apache.lucene.codecs.lucene103.Lucene103PostingsReader$BlockPostingsEnum#refillFullBlock() [JIT compiled code]
   1.19%         75624         org.apache.lucene.queries.intervals.OrderedIntervalsSource$OrderedIntervalIterator#nextInterval() [JIT compiled code]
   1.08%         68212         org.apache.lucene.search.DisiPriorityQueueN#downHeap() [Inlined code]
   1.07%         67493         org.apache.lucene.internal.vectorization.PostingDecodingUtil#splitInts() [JIT compiled code]
   0.99%         62769         org.apache.lucene.codecs.lucene103.ForUtil#expand8() [JIT compiled code]
   0.98%         62174         org.apache.lucene.util.PriorityQueue#add() [Inlined code]
   0.95%         60469         org.apache.lucene.util.PriorityQueue#upHeap() [Inlined code]
   0.90%         56682         org.apache.lucene.search.SloppyPhraseMatcher#maxFreq() [Inlined code]
   0.89%         56061         org.apache.lucene.search.ConjunctionDISI#doNext() [Inlined code]
   0.88%         55846         org.apache.lucene.codecs.lucene103.Lucene103PostingsReader$BlockPostingsEnum#advance() [JIT compiled code]
   0.85%         53565         org.apache.lucene.search.MaxScoreBulkScorer#scoreInnerWindowWithFilter() [JIT compiled code]
   0.82%         51888         org.apache.lucene.search.TermScorer#nextDocsAndScores() [Inlined code]
   0.82%         51639         org.apache.lucene.codecs.lucene103.Lucene103PostingsReader$BlockPostingsEnum#accumulatePendingPositions() [JIT compiled code]
   0.81%         51117         org.apache.lucene.search.SloppyPhraseMatcher#nextMatch() [JIT compiled code]
   0.78%         49592         org.apache.lucene.util.FixedBitSet#nextSetBitInRange() [Inlined code]
   0.73%         46031         org.apache.lucene.search.ExactPhraseMatcher#advancePosition() [Inlined code]
   
   
   CPU merged search profile for baseline:
   JFR aggregation command: /home/gesong.samuel/.sdkman/candidates/java/current/bin/java -server -Xms2g -Xmx2g --add-modules jdk.incubator.vector -XX:+HeapDumpOnOutOfMemoryError -XX:+UseParallelGC -cp /data00/home/gesong.samuel/lucene_baseline/build-tools/build-infra/build/classes/java/main -Dtests.profile.mode=cpu -Dtests.profile.stacksize=1 -Dtests.profile.count=30 org.apache.lucene.gradle.ProfileResults /data00/home/gesong.samuel/logs/bench-search-baseline_vs_patch-baseline-16.jfr /data00/home/gesong.samuel/logs/bench-search-baseline_vs_patch-baseline-17.jfr /data00/home/gesong.samuel/logs/bench-search-baseline_vs_patch-baseline-9.jfr /data00/home/gesong.samuel/logs/bench-search-baseline_vs_patch-baseline-14.jfr /data00/home/gesong.samuel/logs/bench-search-baseline_vs_patch-baseline-13.jfr /data00/home/gesong.samuel/logs/bench-search-baseline_vs_patch-baseline-6.jfr /data00/home/gesong.samuel/logs/bench-search-baseline_vs_patch-baseline-0.jfr /data00/home/gesong.samuel/logs/bench-
 search-baseline_vs_patch-baseline-2.jfr /data00/home/gesong.samuel/logs/bench-search-baseline_vs_patch-baseline-7.jfr /data00/home/gesong.samuel/logs/bench-search-baseline_vs_patch-baseline-3.jfr /data00/home/gesong.samuel/logs/bench-search-baseline_vs_patch-baseline-11.jfr /data00/home/gesong.samuel/logs/bench-search-baseline_vs_patch-baseline-1.jfr /data00/home/gesong.samuel/logs/bench-search-baseline_vs_patch-baseline-4.jfr /data00/home/gesong.samuel/logs/bench-search-baseline_vs_patch-baseline-12.jfr /data00/home/gesong.samuel/logs/bench-search-baseline_vs_patch-baseline-5.jfr /data00/home/gesong.samuel/logs/bench-search-baseline_vs_patch-baseline-15.jfr /data00/home/gesong.samuel/logs/bench-search-baseline_vs_patch-baseline-18.jfr /data00/home/gesong.samuel/logs/bench-search-baseline_vs_patch-baseline-8.jfr /data00/home/gesong.samuel/logs/bench-search-baseline_vs_patch-baseline-19.jfr /data00/home/gesong.samuel/logs/bench-search-baseline_vs_patch-baseline-10.jfr
   Took 20.73 seconds
   WARNING: Using incubator modules: jdk.incubator.vector
   PROFILE SUMMARY from 6372866 events (total: 6M)
     tests.profile.mode=cpu
     tests.profile.count=30
     tests.profile.stacksize=1
     tests.profile.linenumbers=false
   PERCENT       CPU SAMPLES   STACK
   10.86%        692132        jdk.incubator.vector.Int512Vector$Int512Mask#trueCount() [Inlined code]
   5.07%         323070        org.apache.lucene.codecs.lucene103.Lucene103PostingsReader$BlockPostingsEnum#nextPosition() [Inlined code]
   4.39%         279580        org.apache.lucene.store.MemorySegmentIndexInput#readByte() [Inlined code]
   3.14%         199838        org.apache.lucene.search.similarities.BM25Similarity$BM25Scorer#score() [Inlined code]
   2.40%         153045        org.apache.lucene.sandbox.search.MultiNormsLeafSimScorer$MultiFieldNormValues#advanceExact() [Inlined code]
   2.35%         149991        jdk.internal.foreign.MemorySessionImpl#checkValidStateRaw() [Inlined code]
   2.29%         145718        perf.RandomQuery$1$1#nextDoc() [Inlined code]
   2.26%         143935        jdk.incubator.vector.IntVector#intoArray() [Inlined code]
   2.19%         139634        org.apache.lucene.codecs.lucene103.Lucene103PostingsReader#sumOverRange() [Inlined code]
   1.97%         125374        org.apache.lucene.search.ScorerUtil#filterCompetitiveHits() [Inlined code]
   1.65%         105165        org.apache.lucene.codecs.lucene90.Lucene90NormsProducer$3#longValue() [Inlined code]
   1.34%         85677         org.apache.lucene.search.PhraseScorer$1#matches() [JIT compiled code]
   1.29%         81991         org.apache.lucene.codecs.lucene103.Lucene103PostingsReader$BlockPostingsEnum#freq() [Inlined code]
   1.20%         76168         org.apache.lucene.codecs.lucene103.Lucene103PostingsReader$BlockPostingsEnum#refillFullBlock() [JIT compiled code]
   1.19%         75955         org.apache.lucene.queries.intervals.OrderedIntervalsSource$OrderedIntervalIterator#nextInterval() [JIT compiled code]
   1.11%         70842         org.apache.lucene.codecs.lucene103.Lucene103PostingsReader$BlockPostingsEnum#advance() [Inlined code]
   1.00%         63821         org.apache.lucene.internal.vectorization.PostingDecodingUtil#splitInts() [JIT compiled code]
   0.96%         61418         org.apache.lucene.search.DisiPriorityQueueN#downHeap() [Inlined code]
   0.95%         60790         org.apache.lucene.codecs.lucene103.ForUtil#expand8() [JIT compiled code]
   0.91%         57910         org.apache.lucene.util.PriorityQueue#upHeap() [Inlined code]
   0.90%         57656         org.apache.lucene.util.PriorityQueue#add() [Inlined code]
   0.89%         56542         org.apache.lucene.codecs.lucene103.Lucene103PostingsReader$BlockPostingsEnum#advance() [JIT compiled code]
   0.88%         56218         org.apache.lucene.search.SloppyPhraseMatcher#nextMatch() [JIT compiled code]
   0.88%         56032         org.apache.lucene.search.ConjunctionDISI#doNext() [Inlined code]
   0.84%         53435         org.apache.lucene.search.SloppyPhraseMatcher#maxFreq() [Inlined code]
   0.80%         51269         org.apache.lucene.search.TermScorer#nextDocsAndScores() [Inlined code]
   0.78%         49990         org.apache.lucene.search.ExactPhraseMatcher#advancePosition() [Inlined code]
   0.78%         49632         org.apache.lucene.codecs.lucene103.Lucene103PostingsReader$BlockPostingsEnum#accumulatePendingPositions() [JIT compiled code]
   0.75%         47506         org.apache.lucene.util.FixedBitSet#nextSetBitInRange() [Inlined code]
   0.74%         47444         org.apache.lucene.search.MaxScoreBulkScorer#scoreInnerWindowWithFilter() [JIT compiled code]
   ```


-- 
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: issues-unsubscribe@lucene.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org


Re: [PR] Speed up findNextGEQ by aggresive stepping [lucene]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #14735:
URL: https://github.com/apache/lucene/pull/14735#issuecomment-2922741719

   This PR does not have an entry in lucene/CHANGES.txt. Consider adding one. If the PR doesn't need a changelog entry, then add the skip-changelog-check label to it and you will stop receiving this reminder on future updates to the PR.


-- 
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: issues-unsubscribe@lucene.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org


Re: [PR] Speed up findNextGEQ by aggresive stepping [lucene]

Posted by "HUSTERGS (via GitHub)" <gi...@apache.org>.
HUSTERGS commented on PR #14735:
URL: https://github.com/apache/lucene/pull/14735#issuecomment-2944528692

   > You are reading correctly, the high p-values suggest that the speedups are not statistically significant.
   
   Got it!


-- 
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: issues-unsubscribe@lucene.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org


Re: [PR] Speed up findNextGEQ by aggresive stepping [lucene]

Posted by "HUSTERGS (via GitHub)" <gi...@apache.org>.
HUSTERGS commented on PR #14735:
URL: https://github.com/apache/lucene/pull/14735#issuecomment-2942382073

   For what it's worth, I managed to reduce the double vector check of previous version, basic idea is using the middle value comparison result to produce a mask, so we can check only one vector when the target is hit. (the code seems not updated since the PR is closed)
   ```java
   @Override
     public int findNextGEQ(int[] buffer, int target, int from, int to) {
       if (ENABLE_FIND_NEXT_GEQ_VECTOR_OPTO && from + INT_SPECIES.length() < to) {
         // This effectively implements the V1 intersection algorithm from
         // D. Lemire, L. Boytsov, N. Kurz SIMD Compression and the Intersection of Sorted Integers
         // with T = INT_SPECIES.length(), ie. T=8 with AVX2 and T=16 with AVX-512
         // https://arxiv.org/pdf/1401.6399
         if (buffer[from + INT_SPECIES.length()] >= target) {
           IntVector vector = IntVector.fromArray(INT_SPECIES, buffer, from);
           VectorMask<Integer> mask = vector.compare(VectorOperators.LT, target);
           return from + mask.trueCount();
         }
         from += INT_SPECIES.length() + 1;
         for (; from + FIND_NEXT_GEQ_STEP < to; from += FIND_NEXT_GEQ_STEP + 1) {
           // these code is left intended outside of the belowing `if`, it seems help the CPU pipeline
           int midDiff = buffer[from + INT_SPECIES.length() - 1] - target;
           int startMask = midDiff >> 31;
           int start = from + (startMask & INT_SPECIES.length());
           if (buffer[from + FIND_NEXT_GEQ_STEP] >= target) {
             IntVector vector = IntVector.fromArray(INT_SPECIES, buffer, start);
             VectorMask<Integer> mask = vector.compare(VectorOperators.LT, target);
             return start + mask.trueCount();
           }
         }
       }
       for (int i = from; i < to; ++i) {
         if (buffer[i] >= target) {
           return i;
         }
       }
       return to;
     }
   ```
   And I run another round of 20 iterations of luceneutil, the final results are as follows:
   ```
   TaskQPS baseline      StdDevQPS my_modified_version      StdDev                Pct diff p-value
                    CountAndHighMed       90.83      (2.7%)       90.24      (2.5%)   -0.6% (  -5% -    4%) 0.431
                    FilteredPrefix3       90.30      (2.9%)       89.79      (2.9%)   -0.6% (  -6% -    5%) 0.539
                            Prefix3       96.59      (3.1%)       96.08      (2.9%)   -0.5% (  -6% -    5%) 0.580
                    CountOrHighHigh       62.87      (1.9%)       62.62      (1.6%)   -0.4% (  -3% -    3%) 0.471
                        CountOrMany        6.77      (2.1%)        6.74      (1.7%)   -0.3% (  -4% -    3%) 0.587
                      TermTitleSort       71.58      (3.0%)       71.35      (2.7%)   -0.3% (  -5% -    5%) 0.722
             CountFilteredOrHighMed       29.60      (2.4%)       29.52      (2.1%)   -0.3% (  -4% -    4%) 0.719
                        CountPhrase        3.28      (2.7%)        3.27      (4.0%)   -0.2% (  -6% -    6%) 0.847
            CountFilteredOrHighHigh       25.16      (2.3%)       25.12      (1.9%)   -0.2% (  -4% -    4%) 0.784
                CountFilteredOrMany        6.02      (1.8%)        6.01      (1.4%)   -0.1% (  -3% -    3%) 0.787
                     CountOrHighMed       94.23      (1.9%)       94.12      (1.7%)   -0.1% (  -3% -    3%) 0.846
                CombinedAndHighHigh        6.22      (3.0%)        6.23      (3.0%)    0.1% (  -5% -    6%) 0.954
                 CombinedOrHighHigh        6.24      (3.0%)        6.24      (2.9%)    0.1% (  -5% -    6%) 0.881
                     FilteredOrMany        5.00      (1.6%)        5.01      (2.2%)    0.2% (  -3% -    4%) 0.784
                    AndHighOrMedMed       17.77      (3.0%)       17.81      (3.1%)    0.2% (  -5% -    6%) 0.816
                  FilteredAnd3Terms      127.44      (1.9%)      127.77      (1.9%)    0.3% (  -3% -    4%) 0.656
                       CombinedTerm       13.38      (3.6%)       13.42      (3.6%)    0.3% (  -6% -    7%) 0.796
                CountFilteredIntNRQ       22.22      (2.8%)       22.28      (2.1%)    0.3% (  -4% -    5%) 0.698
                             Phrase        9.77      (2.7%)        9.80      (2.9%)    0.3% (  -5% -    6%) 0.726
                            Respell       44.26      (1.7%)       44.42      (2.2%)    0.4% (  -3% -    4%) 0.543
                   AndMedOrHighHigh       20.40      (2.2%)       20.49      (2.2%)    0.4% (  -3% -    4%) 0.529
                         AndHighMed       67.03      (1.6%)       67.34      (1.7%)    0.5% (  -2% -    3%) 0.376
                         OrHighHigh       25.03      (3.1%)       25.15      (2.5%)    0.5% (  -5% -    6%) 0.605
                   IntervalsOrdered        3.00      (1.6%)        3.01      (2.9%)    0.5% (  -3% -    5%) 0.519
                        AndHighHigh       26.52      (3.6%)       26.65      (3.3%)    0.5% (  -6% -    7%) 0.666
                 FilteredOrHighHigh       17.62      (1.7%)       17.70      (2.1%)    0.5% (  -3% -    4%) 0.421
                             IntSet      391.61      (5.2%)      393.68      (4.1%)    0.5% (  -8% -   10%) 0.723
                  TermDayOfYearSort      373.91      (1.8%)      376.33      (1.1%)    0.6% (  -2% -    3%) 0.175
                   CountAndHighHigh       60.43      (2.0%)       60.82      (1.6%)    0.6% (  -2% -    4%) 0.263
                         TermDTSort      179.99      (3.0%)      181.17      (3.1%)    0.7% (  -5% -    6%) 0.500
                           Wildcard       56.61      (3.4%)       57.01      (2.9%)    0.7% (  -5% -    7%) 0.480
                    DismaxOrHighMed       64.55      (2.0%)       65.05      (2.3%)    0.8% (  -3% -    5%) 0.257
               FilteredAndStopWords       10.20      (4.1%)       10.28      (3.1%)    0.8% (  -6% -    8%) 0.500
                  CombinedOrHighMed       24.74      (4.3%)       24.93      (3.8%)    0.8% (  -7% -    9%) 0.542
                 CombinedAndHighMed       24.54      (4.1%)       24.75      (4.0%)    0.9% (  -7% -    9%) 0.506
                FilteredAndHighHigh       13.04      (4.6%)       13.15      (3.5%)    0.9% (  -6% -    9%) 0.498
                FilteredOrStopWords       10.71      (2.5%)       10.81      (2.5%)    0.9% (  -3% -    6%) 0.239
                           Or3Terms       75.92      (6.1%)       76.67      (5.0%)    1.0% (  -9% -   12%) 0.575
                   DismaxOrHighHigh       45.47      (2.7%)       45.93      (2.6%)    1.0% (  -4% -    6%) 0.224
                          And3Terms       84.47      (5.2%)       85.33      (4.2%)    1.0% (  -7% -   10%) 0.498
                           SpanNear        3.09      (4.0%)        3.12      (3.8%)    1.0% (  -6% -    9%) 0.411
                 FilteredAndHighMed       40.91      (4.1%)       41.33      (3.2%)    1.0% (  -6% -    8%) 0.376
                     FilteredPhrase       12.64      (2.1%)       12.77      (2.2%)    1.0% (  -3% -    5%) 0.132
                     FilteredIntNRQ       47.83      (2.3%)       48.34      (2.1%)    1.1% (  -3% -    5%) 0.132
                          OrHighMed       87.14      (2.4%)       88.06      (2.1%)    1.1% (  -3% -    5%) 0.140
                             IntNRQ       48.10      (2.3%)       48.64      (2.1%)    1.1% (  -3% -    5%) 0.105
                       AndStopWords        9.02      (9.0%)        9.12      (7.0%)    1.1% ( -13% -   18%) 0.655
                   FilteredOr3Terms       57.64      (2.4%)       58.30      (2.3%)    1.1% (  -3% -    5%) 0.124
                  FilteredOrHighMed       52.41      (2.5%)       53.05      (2.7%)    1.2% (  -3% -    6%) 0.140
                CountFilteredPhrase       11.63      (3.1%)       11.79      (3.6%)    1.3% (  -5% -    8%) 0.207
                          CountTerm     6450.51      (4.4%)     6539.66      (4.9%)    1.4% (  -7% -   11%) 0.348
                            Term100      558.66      (3.8%)      566.48      (3.8%)    1.4% (  -5% -    9%) 0.243
                            Term10K      557.70      (3.7%)      565.55      (3.8%)    1.4% (  -5% -    9%) 0.236
                        OrStopWords        9.69     (10.4%)        9.83      (8.3%)    1.5% ( -15% -   22%) 0.625
                             OrMany        5.41      (6.7%)        5.49      (6.7%)    1.5% ( -11% -   15%) 0.486
                          TermB1M1P      557.08      (3.9%)      565.84      (3.8%)    1.6% (  -5% -    9%) 0.195
                            TermB1M      557.51      (4.0%)      566.48      (4.1%)    1.6% (  -6% -   10%) 0.209
                         OrHighRare      118.38      (5.7%)      120.39      (5.9%)    1.7% (  -9% -   14%) 0.353
                               Term      557.50      (3.6%)      567.31      (4.0%)    1.8% (  -5% -    9%) 0.145
                             Fuzzy1       50.97      (3.5%)       51.88      (3.9%)    1.8% (  -5% -    9%) 0.132
                             Fuzzy2       45.27      (3.4%)       46.09      (4.1%)    1.8% (  -5% -    9%) 0.127
                         DismaxTerm      604.34      (3.4%)      615.37      (3.8%)    1.8% (  -5% -    9%) 0.112
                             Term1M      556.69      (3.9%)      566.88      (3.9%)    1.8% (  -5% -   10%) 0.141
                       FilteredTerm       85.24      (3.1%)       86.88      (3.3%)    1.9% (  -4% -    8%) 0.055
                      TermMonthSort     2361.35      (3.8%)     2409.08      (4.8%)    2.0% (  -6% -   11%) 0.139
                       SloppyPhrase        1.47      (5.9%)        1.50      (3.8%)    2.3% (  -6% -   12%) 0.138
         FilteredOr2Terms2StopWords       67.14      (5.1%)       69.09      (5.5%)    2.9% (  -7% -   14%) 0.082
        FilteredAnd2Terms2StopWords       72.35      (6.9%)       74.70      (6.8%)    3.2% (  -9% -   18%) 0.134
                 Or2Terms2StopWords       73.04      (8.4%)       75.51      (7.7%)    3.4% ( -11% -   21%) 0.184
                           PKLookup      181.84      (6.7%)      188.05      (8.1%)    3.4% ( -10% -   19%) 0.146
                And2Terms2StopWords       74.34      (8.5%)       77.05      (8.2%)    3.6% ( -12% -   22%) 0.168
   
   CPU merged search profile for my_modified_version:
   JFR aggregation command: /home/gesong.samuel/.sdkman/candidates/java/current/bin/java -server -Xms2g -Xmx2g --add-modules jdk.incubator.vector -XX:+HeapDumpOnOutOfMemoryError -XX:+UseParallelGC -cp /data00/home/gesong.samuel/lucene_candidate/build-tools/build-infra/build/classes/java/main -Dtests.profile.mode=cpu -Dtests.profile.stacksize=1 -Dtests.profile.count=30 org.apache.lucene.gradle.ProfileResults /data00/home/gesong.samuel/logs/bench-search-baseline_vs_patch-my_modified_version-12.jfr /data00/home/gesong.samuel/logs/bench-search-baseline_vs_patch-my_modified_version-6.jfr /data00/home/gesong.samuel/logs/bench-search-baseline_vs_patch-my_modified_version-3.jfr /data00/home/gesong.samuel/logs/bench-search-baseline_vs_patch-my_modified_version-13.jfr /data00/home/gesong.samuel/logs/bench-search-baseline_vs_patch-my_modified_version-11.jfr /data00/home/gesong.samuel/logs/bench-search-baseline_vs_patch-my_modified_version-7.jfr /data00/home/gesong.samuel/logs/bench-search-basel
 ine_vs_patch-my_modified_version-17.jfr /data00/home/gesong.samuel/logs/bench-search-baseline_vs_patch-my_modified_version-9.jfr /data00/home/gesong.samuel/logs/bench-search-baseline_vs_patch-my_modified_version-18.jfr /data00/home/gesong.samuel/logs/bench-search-baseline_vs_patch-my_modified_version-15.jfr /data00/home/gesong.samuel/logs/bench-search-baseline_vs_patch-my_modified_version-16.jfr /data00/home/gesong.samuel/logs/bench-search-baseline_vs_patch-my_modified_version-8.jfr /data00/home/gesong.samuel/logs/bench-search-baseline_vs_patch-my_modified_version-14.jfr /data00/home/gesong.samuel/logs/bench-search-baseline_vs_patch-my_modified_version-1.jfr /data00/home/gesong.samuel/logs/bench-search-baseline_vs_patch-my_modified_version-19.jfr /data00/home/gesong.samuel/logs/bench-search-baseline_vs_patch-my_modified_version-10.jfr /data00/home/gesong.samuel/logs/bench-search-baseline_vs_patch-my_modified_version-2.jfr /data00/home/gesong.samuel/logs/bench-search-baseline_vs_patc
 h-my_modified_version-5.jfr /data00/home/gesong.samuel/logs/bench-search-baseline_vs_patch-my_modified_version-4.jfr /data00/home/gesong.samuel/logs/bench-search-baseline_vs_patch-my_modified_version-0.jfr
   Took 21.37 seconds
   WARNING: Using incubator modules: jdk.incubator.vector
   PROFILE SUMMARY from 6331976 events (total: 6M)
     tests.profile.mode=cpu
     tests.profile.count=30
     tests.profile.stacksize=1
     tests.profile.linenumbers=false
   PERCENT       CPU SAMPLES   STACK
   10.35%        655545        jdk.incubator.vector.Int512Vector$Int512Mask#trueCount() [Inlined code]
   5.03%         318374        org.apache.lucene.codecs.lucene103.Lucene103PostingsReader$BlockPostingsEnum#nextPosition() [Inlined code]
   4.13%         261683        org.apache.lucene.store.MemorySegmentIndexInput#readByte() [Inlined code]
   3.20%         202422        org.apache.lucene.search.similarities.BM25Similarity$BM25Scorer#score() [Inlined code]
   2.40%         152033        jdk.internal.foreign.MemorySessionImpl#checkValidStateRaw() [Inlined code]
   2.39%         151128        org.apache.lucene.sandbox.search.MultiNormsLeafSimScorer$MultiFieldNormValues#advanceExact() [Inlined code]
   2.22%         140677        jdk.incubator.vector.IntVector#intoArray() [Inlined code]
   2.21%         140030        perf.RandomQuery$1$1#nextDoc() [Inlined code]
   2.20%         139152        org.apache.lucene.codecs.lucene103.Lucene103PostingsReader#sumOverRange() [Inlined code]
   2.06%         130241        org.apache.lucene.search.ScorerUtil#filterCompetitiveHits() [Inlined code]
   1.72%         108865        org.apache.lucene.codecs.lucene90.Lucene90NormsProducer$3#longValue() [Inlined code]
   1.38%         87623         org.apache.lucene.search.PhraseScorer$1#matches() [JIT compiled code]
   1.28%         81057         org.apache.lucene.codecs.lucene103.Lucene103PostingsReader$BlockPostingsEnum#advance() [Inlined code]
   1.23%         78078         org.apache.lucene.codecs.lucene103.Lucene103PostingsReader$BlockPostingsEnum#freq() [Inlined code]
   1.23%         77585         org.apache.lucene.codecs.lucene103.Lucene103PostingsReader$BlockPostingsEnum#refillFullBlock() [JIT compiled code]
   1.19%         75624         org.apache.lucene.queries.intervals.OrderedIntervalsSource$OrderedIntervalIterator#nextInterval() [JIT compiled code]
   1.08%         68212         org.apache.lucene.search.DisiPriorityQueueN#downHeap() [Inlined code]
   1.07%         67493         org.apache.lucene.internal.vectorization.PostingDecodingUtil#splitInts() [JIT compiled code]
   0.99%         62769         org.apache.lucene.codecs.lucene103.ForUtil#expand8() [JIT compiled code]
   0.98%         62174         org.apache.lucene.util.PriorityQueue#add() [Inlined code]
   0.95%         60469         org.apache.lucene.util.PriorityQueue#upHeap() [Inlined code]
   0.90%         56682         org.apache.lucene.search.SloppyPhraseMatcher#maxFreq() [Inlined code]
   0.89%         56061         org.apache.lucene.search.ConjunctionDISI#doNext() [Inlined code]
   0.88%         55846         org.apache.lucene.codecs.lucene103.Lucene103PostingsReader$BlockPostingsEnum#advance() [JIT compiled code]
   0.85%         53565         org.apache.lucene.search.MaxScoreBulkScorer#scoreInnerWindowWithFilter() [JIT compiled code]
   0.82%         51888         org.apache.lucene.search.TermScorer#nextDocsAndScores() [Inlined code]
   0.82%         51639         org.apache.lucene.codecs.lucene103.Lucene103PostingsReader$BlockPostingsEnum#accumulatePendingPositions() [JIT compiled code]
   0.81%         51117         org.apache.lucene.search.SloppyPhraseMatcher#nextMatch() [JIT compiled code]
   0.78%         49592         org.apache.lucene.util.FixedBitSet#nextSetBitInRange() [Inlined code]
   0.73%         46031         org.apache.lucene.search.ExactPhraseMatcher#advancePosition() [Inlined code]
   
   
   CPU merged search profile for baseline:
   JFR aggregation command: /home/gesong.samuel/.sdkman/candidates/java/current/bin/java -server -Xms2g -Xmx2g --add-modules jdk.incubator.vector -XX:+HeapDumpOnOutOfMemoryError -XX:+UseParallelGC -cp /data00/home/gesong.samuel/lucene_baseline/build-tools/build-infra/build/classes/java/main -Dtests.profile.mode=cpu -Dtests.profile.stacksize=1 -Dtests.profile.count=30 org.apache.lucene.gradle.ProfileResults /data00/home/gesong.samuel/logs/bench-search-baseline_vs_patch-baseline-16.jfr /data00/home/gesong.samuel/logs/bench-search-baseline_vs_patch-baseline-17.jfr /data00/home/gesong.samuel/logs/bench-search-baseline_vs_patch-baseline-9.jfr /data00/home/gesong.samuel/logs/bench-search-baseline_vs_patch-baseline-14.jfr /data00/home/gesong.samuel/logs/bench-search-baseline_vs_patch-baseline-13.jfr /data00/home/gesong.samuel/logs/bench-search-baseline_vs_patch-baseline-6.jfr /data00/home/gesong.samuel/logs/bench-search-baseline_vs_patch-baseline-0.jfr /data00/home/gesong.samuel/logs/bench-
 search-baseline_vs_patch-baseline-2.jfr /data00/home/gesong.samuel/logs/bench-search-baseline_vs_patch-baseline-7.jfr /data00/home/gesong.samuel/logs/bench-search-baseline_vs_patch-baseline-3.jfr /data00/home/gesong.samuel/logs/bench-search-baseline_vs_patch-baseline-11.jfr /data00/home/gesong.samuel/logs/bench-search-baseline_vs_patch-baseline-1.jfr /data00/home/gesong.samuel/logs/bench-search-baseline_vs_patch-baseline-4.jfr /data00/home/gesong.samuel/logs/bench-search-baseline_vs_patch-baseline-12.jfr /data00/home/gesong.samuel/logs/bench-search-baseline_vs_patch-baseline-5.jfr /data00/home/gesong.samuel/logs/bench-search-baseline_vs_patch-baseline-15.jfr /data00/home/gesong.samuel/logs/bench-search-baseline_vs_patch-baseline-18.jfr /data00/home/gesong.samuel/logs/bench-search-baseline_vs_patch-baseline-8.jfr /data00/home/gesong.samuel/logs/bench-search-baseline_vs_patch-baseline-19.jfr /data00/home/gesong.samuel/logs/bench-search-baseline_vs_patch-baseline-10.jfr
   Took 20.73 seconds
   WARNING: Using incubator modules: jdk.incubator.vector
   PROFILE SUMMARY from 6372866 events (total: 6M)
     tests.profile.mode=cpu
     tests.profile.count=30
     tests.profile.stacksize=1
     tests.profile.linenumbers=false
   PERCENT       CPU SAMPLES   STACK
   10.86%        692132        jdk.incubator.vector.Int512Vector$Int512Mask#trueCount() [Inlined code]
   5.07%         323070        org.apache.lucene.codecs.lucene103.Lucene103PostingsReader$BlockPostingsEnum#nextPosition() [Inlined code]
   4.39%         279580        org.apache.lucene.store.MemorySegmentIndexInput#readByte() [Inlined code]
   3.14%         199838        org.apache.lucene.search.similarities.BM25Similarity$BM25Scorer#score() [Inlined code]
   2.40%         153045        org.apache.lucene.sandbox.search.MultiNormsLeafSimScorer$MultiFieldNormValues#advanceExact() [Inlined code]
   2.35%         149991        jdk.internal.foreign.MemorySessionImpl#checkValidStateRaw() [Inlined code]
   2.29%         145718        perf.RandomQuery$1$1#nextDoc() [Inlined code]
   2.26%         143935        jdk.incubator.vector.IntVector#intoArray() [Inlined code]
   2.19%         139634        org.apache.lucene.codecs.lucene103.Lucene103PostingsReader#sumOverRange() [Inlined code]
   1.97%         125374        org.apache.lucene.search.ScorerUtil#filterCompetitiveHits() [Inlined code]
   1.65%         105165        org.apache.lucene.codecs.lucene90.Lucene90NormsProducer$3#longValue() [Inlined code]
   1.34%         85677         org.apache.lucene.search.PhraseScorer$1#matches() [JIT compiled code]
   1.29%         81991         org.apache.lucene.codecs.lucene103.Lucene103PostingsReader$BlockPostingsEnum#freq() [Inlined code]
   1.20%         76168         org.apache.lucene.codecs.lucene103.Lucene103PostingsReader$BlockPostingsEnum#refillFullBlock() [JIT compiled code]
   1.19%         75955         org.apache.lucene.queries.intervals.OrderedIntervalsSource$OrderedIntervalIterator#nextInterval() [JIT compiled code]
   1.11%         70842         org.apache.lucene.codecs.lucene103.Lucene103PostingsReader$BlockPostingsEnum#advance() [Inlined code]
   1.00%         63821         org.apache.lucene.internal.vectorization.PostingDecodingUtil#splitInts() [JIT compiled code]
   0.96%         61418         org.apache.lucene.search.DisiPriorityQueueN#downHeap() [Inlined code]
   0.95%         60790         org.apache.lucene.codecs.lucene103.ForUtil#expand8() [JIT compiled code]
   0.91%         57910         org.apache.lucene.util.PriorityQueue#upHeap() [Inlined code]
   0.90%         57656         org.apache.lucene.util.PriorityQueue#add() [Inlined code]
   0.89%         56542         org.apache.lucene.codecs.lucene103.Lucene103PostingsReader$BlockPostingsEnum#advance() [JIT compiled code]
   0.88%         56218         org.apache.lucene.search.SloppyPhraseMatcher#nextMatch() [JIT compiled code]
   0.88%         56032         org.apache.lucene.search.ConjunctionDISI#doNext() [Inlined code]
   0.84%         53435         org.apache.lucene.search.SloppyPhraseMatcher#maxFreq() [Inlined code]
   0.80%         51269         org.apache.lucene.search.TermScorer#nextDocsAndScores() [Inlined code]
   0.78%         49990         org.apache.lucene.search.ExactPhraseMatcher#advancePosition() [Inlined code]
   0.78%         49632         org.apache.lucene.codecs.lucene103.Lucene103PostingsReader$BlockPostingsEnum#accumulatePendingPositions() [JIT compiled code]
   0.75%         47506         org.apache.lucene.util.FixedBitSet#nextSetBitInRange() [Inlined code]
   0.74%         47444         org.apache.lucene.search.MaxScoreBulkScorer#scoreInnerWindowWithFilter() [JIT compiled code]
   ```
   The p-value is still relatively high, but overall, it looks better than before?


-- 
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: issues-unsubscribe@lucene.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org


Re: [PR] Speed up findNextGEQ by aggresive stepping [lucene]

Posted by "jpountz (via GitHub)" <gi...@apache.org>.
jpountz commented on PR #14735:
URL: https://github.com/apache/lucene/pull/14735#issuecomment-2924481149

   Thank you for looking into this, I remember trying this sort of things out but results were a bit mixed. Your idea of doing a single block at first before moving to more aggressive stepping is interesting.
   
   > I modify the code and ran luceneutil, but the result is not good as AdvanceBenchmark showed
   
   I had the same problem when working on this optimization, let's not trust AdvanceBenchmark too much, it's hard to re-create similar situation as what actually happens on real data.
   
   While your luceneutil benchmarks report some speedups, none of them have a low p-value (the last column), suggesting that you only ran a few iterations. Could you run 20 iterations to help distinguish signal from noise?


-- 
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: issues-unsubscribe@lucene.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org


Re: [PR] Speed up findNextGEQ by aggresive stepping [lucene]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #14735:
URL: https://github.com/apache/lucene/pull/14735#issuecomment-2922136905

   This PR does not have an entry in lucene/CHANGES.txt. Consider adding one. If the PR doesn't need a changelog entry, then add the skip-changelog-check label to it and you will stop receiving this reminder on future updates to the PR.


-- 
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: issues-unsubscribe@lucene.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org


Re: [PR] Speed up findNextGEQ by aggresive stepping [lucene]

Posted by "HUSTERGS (via GitHub)" <gi...@apache.org>.
HUSTERGS closed pull request #14735: Speed up findNextGEQ by aggresive stepping
URL: https://github.com/apache/lucene/pull/14735


-- 
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: issues-unsubscribe@lucene.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org


Re: [PR] Speed up findNextGEQ by aggresive stepping [lucene]

Posted by "HUSTERGS (via GitHub)" <gi...@apache.org>.
HUSTERGS commented on PR #14735:
URL: https://github.com/apache/lucene/pull/14735#issuecomment-2944491596

   > I ran benchmarks locally and get similar results as yours. This suggests that this change is neutral in terms of performance.
   
   @jpountz Thanks for you reply!  I noticed that the last few lines in the luceneutil results seem to indicate a minor performance gain, but perhaps the relatively large diffs and high `p-values` mean the change might not be stable performance-wise?  I might be misinterpreting—please correct me if I’m wrong.


-- 
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: issues-unsubscribe@lucene.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org