gf2121 commented on PR #12006:
URL: https://github.com/apache/lucene/pull/12006#issuecomment-1345303453

   Here is the JMH result:
   ```
   Benchmark                                      Mode  Cnt  Score   Error   
Units
   ReadInts24Benchmark.compareUnsigned4          thrpt   10  0.224 ± 0.003  
ops/us
   ReadInts24Benchmark.numericUtilDecode         thrpt   10  0.224 ± 0.006  
ops/us
   ReadInts24Benchmark.numericUtilDecodeOneSide  thrpt   10  0.995 ± 0.006  
ops/us
   ```
   
   * compareUnsigned4 is using `Integer.compareUnsigned((int) 
BitUtil.VH_BE_INT.get(a, aOffset), (int) BitUtil.VH_BE_INT.get(b, bOffset));`
   
   * numericUtilDecode is using 
`Integer.compare(NumericUtils.sortableBytesToInt(a, aOffset), 
NumericUtils.sortableBytesToInt(b, bOffset));`
   
   * numericUtilDecodeOneSide is using `aValue > 
NumericUtils.sortableBytesToInt(b, bOffset)`


-- 
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-unsubscr...@lucene.apache.org

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