uchiha-asha commented on PR #17029:
URL: https://github.com/apache/lucene/pull/17029#issuecomment-6946263547

   Thanks @romseygeek. I reran the same JMH benchmarks again after choosing 
`DefaultBulkScorer` up front for plain iterators with `cost() < maxDoc / 128`.  
The upfront check had a lower mean time than this PR on five of the six 
workloads, though several differences were within run-to-run variation.
   
   Times are µs/op, lower is better. JDK 25.0.5, 2 GB heap, 3 forks × 5 
measured iterations on a shared VM.
   
   Workload | Baseline | This PR | Upfront cost()
   -- | -- | -- | --
   Term, 1 in 1,000, read a doc value per hit | 280.6 ± 58.4 | 76.9 ± 49.3 | 
69.5 ± 21.6
   Term, 1 in 10,000, same collector | 46.9 ± 6.4 | 10.3 ± 6.9 | 9.6 ± 3.7
   Term, 1 in 256, count | 151.6 ± 82.8 | 89.4 ± 11.3 | 73.6 ± 14.3
   Point range, 1 in 1,000, read a doc value per hit | 368.0 ± 135.8 | 85.7 ± 
12.2 | 120.7 ± 52.6
   64 adjacent hits, then 1 every 4,096 docs, count | 65.0 ± 6.4 | 9.6 ± 1.0 | 
6.4 ± 0.9
   Term, 1 in 50, read a doc value per hit | 1,975 ± 181 | 2,545 ± 1,289 | 
1,957 ± 344
   
   I also ran luceneutil’s `SearchPerfTest`. On wikimedium10m, neither version 
showed a clear improvement over baseline on `countOnly.tasks` or the additional 
prefix and filtered-disjunction counts.
   
   Because of the simpler implementation, I plan to switch this PR to the 
upfront `cost()` check. Let me know what you think.
   
   
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to