epugh commented on PR #4812: URL: https://github.com/apache/solr/pull/4812#issuecomment-5482509837
> Measured it directly against the real `SpellingQueryConverter.convert()` path (not the full solr-benchmark JMH harness -- just a tight timing loop calling the actual production code): > > * `documemt` (1 word): ~5.3us per analysis pass > * `the quick reb fox jumped over the lazy brown dogs` (10 words): ~20.7us per pass > * `field:value AND another_field:(term1 term2) OR +required -prohibited term` (10 words, boolean/field syntax): ~33.4us per pass > > Going from 1 pass to 3 (the worst case -- shard requests hit the peek, the real suggestion pass, and the originalTerms echo) adds up to ~67us in the worst case measured. Against a typical query's millisecond-scale round-trip (index search, scoring, network), that's noise. > > I don't think the full solr-benchmark harness is needed to answer this specific question, but happy to add a proper benchmark class if you'd like this tracked over time rather than a one-off measurement. thansk! -- 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]
