rajat315315 commented on PR #16361:
URL: https://github.com/apache/lucene/pull/16361#issuecomment-4892484229
### Performance Benchmarks
We created and ran a JMH micro-benchmark `CompiledAutomatonBenchmark` with
120 transitions on state 0.
- **Baseline (Linear scan)**: `9,754.440 ± 2570.275 ops/ms`
- **Optimized (Binary search)**: `23,885.308 ± 7100.359 ops/ms`
- **Improvement**: **~2.45x throughput improvement (~145% speedup)**.
### Testing
- Ran the unit test suite `TestCompiledAutomaton` to verify correctness:
```bash
./gradlew :lucene:core:test --tests
"org.apache.lucene.util.automaton.TestCompiledAutomaton"
--
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]