rajat315315 commented on issue #16426:
URL: https://github.com/apache/lucene/issues/16426#issuecomment-5102483301

   I executed a full permutation matrix using Lucene's JMH suite 
(`PostingVsDocValuesFacetBenchmark.java`) across **1 Million**, **10 Million**, 
**100 Million**, and **1 Billion** documents at $1\%$ and $10\%$ match 
densities, and category counts $K = 5$ and $K = 10$.
   
   ### Throughput Matrix (Ops / Second & Speedup Ratio)
   
   | Index Size ($N$) | Match Density | Matching Docs | Categories ($K$) | 
Traditional DocValues | Single-Pass Posting-Based | **Throughput Gain / 
Speedup** |
   | :---: | :---: | :---: | :---: | :---: | :---: | :---: |
   | **1 Billion** | **10%** | **100,000,000** | **5** | 2.508 ops/s | **11.085 
ops/s** | 🚀 **+341.9% (4.42x FASTER)** |
   | **1 Billion** | **10%** | **100,000,000** | **10** | 2.434 ops/s | **5.561 
ops/s** | 🚀 **+128.5% (2.28x FASTER)** |
   | **1 Billion** | **1%** | **10,000,000** | **5** | 3.783 ops/s | **11.141 
ops/s** | 🚀 **+194.5% (2.94x FASTER)** |
   | **1 Billion** | **1%** | **10,000,000** | **10** | 3.778 ops/s | **5.453 
ops/s** | 🚀 **+44.3% (1.44x FASTER)** |
   | **100 Million** | **10%** | **10,000,000** | **5** | 22.596 ops/s | 
**111.297 ops/s** | 🚀 **+392.5% (4.93x FASTER)** |
   | **100 Million** | **10%** | **10,000,000** | **10** | 23.696 ops/s | 
**55.912 ops/s** | 🚀 **+135.9% (2.36x FASTER)** |
   | **100 Million** | **1%** | **1,000,000** | **5** | 36.262 ops/s | **75.740 
ops/s** | 🚀 **+108.8% (2.08x FASTER)** |
   | **100 Million** | **1%** | **1,000,000** | **10** | 37.857 ops/s | 
**54.634 ops/s** | 🚀 **+44.3% (1.44x FASTER)** |
   | **10 Million** | **10%** | **1,000,000** | **5** | 250.516 ops/s | 
**1,241.972 ops/s** | 🚀 **+395.7% (4.96x FASTER)** |
   | **10 Million** | **10%** | **1,000,000** | **10** | 251.795 ops/s | 
**617.005 ops/s** | 🚀 **+145.0% (2.45x FASTER)** |
   | **10 Million** | **1%** | **100,000** | **5** | 406.054 ops/s | 
**1,274.608 ops/s** | 🚀 **+213.9% (3.14x FASTER)** |
   | **10 Million** | **1%** | **100,000** | **10** | 391.367 ops/s | **580.738 
ops/s** | 🚀 **+48.4% (1.48x FASTER)** |
   | **1 Million** | **10%** | **100,000** | **5** | 2,524.309 ops/s | 
**16,441.163 ops/s** | 🚀 **+551.3% (6.51x FASTER)** |
   | **1 Million** | **10%** | **100,000** | **10** | 2,672.635 ops/s | 
**8,091.425 ops/s** | 🚀 **+202.7% (3.02x FASTER)** |
   | **1 Million** | **1%** | **10,000** | **5** | 8,338.912 ops/s | 
**14,392.758 ops/s** | 🚀 **+72.6% (1.73x FASTER)** |
   | **1 Million** | **1%** | **10,000** | **10** | 8,711.087 ops/s | 8,174.646 
ops/s | -6.1% (DocValues optimal for low matches, $K=10$) |
   
   
   
   Also, attaching the micro-benchmark JMH file if any contributor wishes to 
analyse further.
   
   
[PostingVsDocValuesFacetBenchmark.java](https://github.com/user-attachments/files/30456473/PostingVsDocValuesFacetBenchmark.java)


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