arup-chauhan opened a new pull request, #4616:
URL: https://github.com/apache/solr/pull/4616
This PR adds benchmark coverage for multithreaded search as a baseline
measurement for SOLR-17841.
Scope is intentionally limited to a single benchmark file. No production
code is changed. The goal is to establish reproducible, comparable numbers
before any fix is attempted.
## Changes
Modified `ExitableDirectoryReaderSearch.java` in `solr/benchmark`:
- Added `@Param({"false", "true"}) boolean multiThreaded` to `BenchState`.
JMH will now cycle through both normal and multithreaded mode for every
benchmark automatically.
- Updated `createInitialParams()` to accept `BenchState` and conditionally
set `multiThreaded=true` via `CommonParams.MULTI_THREADED`.
- Added a new `@Benchmark` method `testRangeQuery` querying `id:[0 TO
250000]`, a numeric range covering half of the 500k indexed documents,
targeting the specific query type reported as ~5x slower under multithreaded
search.
## Validation
- `./gradlew :solr:benchmark:compileJava`
- `./gradlew tidy`
- `./gradlew check -x test`
--
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]