neoremind commented on pull request #91:
URL: https://github.com/apache/lucene/pull/91#issuecomment-824172567


   > For instance I'd expect users who index integers (4 bytes) between 0 and 
2^24 to notice speedups that are closer to the one that you computed for 
bytesPerDim=3 than for bytesPerDim=4.
   
   @jpountz I add a new benchmark test case `testBenchmarkWithLeadingZeroBytes` 
in `TestBKDDisableSortDocId`. Your assumption is correct.
   
   Result is shown as below (do not make stable reorder as default).
   ```
   bytesPerDim=4, leadingZeroByteNum=[1,2,3]
    -------------------------------------------------
   | bytesPerDim | isDocIdIncremental | avg time(us) |
    -------------------------------------------------
   |      4      |         N          |   1476874.0  |  <- leadingZeroByteNum = 
1
   |      4      |         Y          |   1363280.3  | <- leadingZeroByteNum = 1
   |      4      |         N          |   1601885.9  | <- leadingZeroByteNum = 2
   |      4      |         Y          |    930728.1  | <- <- leadingZeroByteNum 
= 2
   |      4      |         N          |   1210586.8  | <- leadingZeroByteNum = 3
   |      4      |         Y          |    367141.6  | <- <- leadingZeroByteNum 
= 3
    -------------------------------------------------
   ```


-- 
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.

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



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

Reply via email to