kjac commented on issue #1151:
URL: https://github.com/apache/lucenenet/issues/1151#issuecomment-2750946704

   Hi all 👋 
   
   It's not entirely the same thing I'm experiencing... though I do see some 
performance improvements when using `SimpleFSDirectory` over `MMapDirectory` 
(via `FSDirectory.Open`).
   
   What I've been discussing with @Shazwazza has to do with query execution 
time when ramping up the number of concurrent users.
   
   My test bench runs `IndexSearcher.Search()` and only returns the `TotalHits` 
of the `TopDocs` result. I'm using K6 to test concurrency. 
   
   #### Using `MMapDirectory`
   
   - 1 concurrent users = 3.5ms per search
   - 10 concurrent users = 8.0ms per search
   - 50 concurrent users = 36.8ms per search
   - 100 concurrent users = 73.4ms per search
   
   #### Using `SimpleFSDirectory`
   
   - 1 concurrent users = 3.4ms per search
   - 10 concurrent users = 7.0ms per search
   - 50 concurrent users = 29.9ms per search
   - 100 concurrent users = 60.6ms per search
   
   It's not a terribly scientific test setup since it just runs on my laptop. 
That being said, the numbers do remain relatively consistent across multiple 
iterations, with `SimpleFSDirectory` being around 15-18% faster than 
`MMapDirectory`.
   
   I'm on Win11 64 bit, and it's a .NET 9.0 runtime.


-- 
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: dev-unsubscr...@lucenenet.apache.org

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

Reply via email to