vsop-479 commented on PR #14813:
URL: https://github.com/apache/lucene/pull/14813#issuecomment-2990790159

   I added a new benchmark (`FirstPassGroupingBenchmark`) to simulate 
`FirstPassGroupingCollector` 's implementation.
   It seems use heap can gain a better performance:
   ```
   Benchmark                                       Mode  Cnt  Score   Error   
Units
   FirstPassGroupingBenchmark.getTopNWithHeap     thrpt   15  0.010 ± 0.002  
ops/us
   FirstPassGroupingBenchmark.getTopNWithTreeMap  thrpt   15  0.005 ± 0.001  
ops/us
   ```


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