[ 
https://issues.apache.org/jira/browse/LUCENE-3648?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13169515#comment-13169515
 ] 

Michael McCandless commented on LUCENE-3648:
--------------------------------------------

Hmm w/ current patch here I get mixed results (though, I'm only doing 4 JVM 
iterations... could be if I did 10 the results improve):

No deletes:

{noformat}

                Task    QPS base StdDev base   QPS patchStdDev patch      Pct 
diff
            PKLookup      160.82       11.26      153.11        4.65  -13% -    
5%
          AndHighMed       47.23        2.46       45.37        2.32  -13% -    
6%
         AndHighHigh       19.51        0.90       18.82        0.90  -12% -    
5%
              Phrase        6.93        0.34        6.70        0.42  -13% -    
7%
              Fuzzy2       33.42        0.49       32.82        1.10   -6% -    
3%
             Respell       63.56        1.34       62.52        2.32   -7% -    
4%
        SloppyPhrase        9.63        0.32        9.52        0.40   -8% -    
6%
      TermBGroup1M1P       69.10        0.77       68.95        1.50   -3% -    
3%
        TermBGroup1M       25.17        0.46       25.21        0.35   -3% -    
3%
              Fuzzy1       83.56        1.30       83.70        2.21   -3% -    
4%
            Wildcard       54.04        1.87       54.17        2.59   -7% -    
8%
         TermGroup1M        9.80        0.19        9.87        0.06   -1% -    
3%
             Prefix3       21.36        0.63       21.53        0.74   -5% -    
7%
              IntNRQ        6.25        0.45        6.43        0.64  -13% -   
21%
                Term       87.43        1.16       90.09        3.98   -2% -    
9%
            SpanNear       19.63        1.21       20.28        0.54   -5% -   
13%
           OrHighMed       14.33        0.19       15.44        0.31    4% -   
11%
          OrHighHigh        6.75        0.10        7.30        0.15    4% -   
11%
{noformat}

Deletes:
{noformat}
                Task    QPS base StdDev base   QPS patchStdDev patch      Pct 
diff
                Term       80.96        2.07       76.64        2.99  -11% -    
0%
             Prefix3       38.28        1.20       36.64        1.61  -11% -    
3%
            Wildcard       51.50        1.19       49.71        1.71   -8% -    
2%
         AndHighHigh       14.04        0.86       13.56        0.45  -12% -    
6%
          AndHighMed       44.42        2.45       42.90        1.57  -11% -    
5%
      TermBGroup1M1P       39.19        0.92       38.26        0.96   -6% -    
2%
              Phrase        8.32        0.34        8.16        0.13   -7% -    
3%
          OrHighHigh        7.82        0.42        7.69        0.20   -9% -    
6%
              IntNRQ        5.76        0.43        5.71        0.33  -13% -   
13%
            SpanNear        1.60        0.04        1.59        0.03   -4% -    
3%
           OrHighMed        5.82        0.41        5.79        0.12   -9% -    
9%
        SloppyPhrase        3.28        0.05        3.26        0.07   -4% -    
3%
         TermGroup1M       26.76        0.40       26.91        0.45   -2% -    
3%
            PKLookup      155.58        9.40      157.09        5.50   -8% -   
11%
        TermBGroup1M       42.88        1.04       43.30        1.19   -4% -    
6%
              Fuzzy1       77.96        4.29       78.94        3.16   -7% -   
11%
              Fuzzy2       45.14        2.58       46.23        1.62   -6% -   
12%
             Respell       70.96        4.78       73.57        3.78   -7% -   
16%
{noformat}

Java is 1.6.0_21, running java -Xms2g -Xmx2g -server, 10M docs multi-segment 
(15 segments).
                
> Speed up SegementDocsEnum by making it more friendly for JIT optimizations
> --------------------------------------------------------------------------
>
>                 Key: LUCENE-3648
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3648
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: core/codecs, core/search
>    Affects Versions: 4.0
>            Reporter: Simon Willnauer
>            Assignee: Simon Willnauer
>             Fix For: 4.0
>
>         Attachments: LUCENE-3648.patch
>
>
> Since we moved the bulk reading into the codec ie. make all  bulk reading 
> codec private in LUCENE-3584 we have seen some performance 
> [regression|http://people.apache.org/~mikemccand/lucenebench/Term.html] on 
> different CPUs. I tried to optimize the implementation to make it more 
> eligible for runtime optimizations, tried to make loops JIT friendly by 
> moving out branches where I can, minimize member access in all loops, use 
> final members where possible and specialize the two common cases With & 
> Without LiveDocs.
> I will attache a patch and my benchmark results in a minute.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to