Skip to content
This repository was archived by the owner on Sep 25, 2026. It is now read-only.

Improve ranked phrase pruning and support benchmark regex queries - #201

Merged
ppodolsky merged 2 commits into
mainfrom
benchmark-and-optimize-hermes
Sep 24, 2026
Merged

ppodolsky merged 2 commits into
mainfrom
benchmark-and-optimize-hermes

Conversation

@ppodolsky

Copy link
Copy Markdown
Contributor

Ranked RGB phrase queries can discover competitive scores too late to prune expensive position checks. Add a bounded pilot that proves a score floor from real matches, tighter exact-phrase frequency bounds, and selective conjunction seeks. Stable-ID ties, exhaustive counts, cancellation, eligibility filtering and existing index formats are preserved.

Also support the benchmark's 13 regex expressions and 12 rejected punctuation/escaped-literal expressions. RegexQuery and explicit regex syntax share wildcard's bounded dictionary matching and existing constant-score union scorer. The real HTTP capability probe now accepts 826/826 expressions on the unchanged four-document fixture, with all 801 previously accepted responses unchanged. Full-corpus analyzer, sloppy-phrase and expansion-limit parity remains separate work.

Same-index Cascade Lake measurements improve RGB low-frequency phrase top-10 from 8,706 to 22,205 QPS (+155%) and medium-frequency phrase top-100 from 8,112 to 11,685 QPS (+44%). Ordinary conjunction top-10 improves 3.1% but still trails Luxir. The evidence includes regressions, ARM controls, memory, CPU costs and exact result audits. These timings precede the query-syntax additions and cover 15/826 queries; no throughput claim is made for the newly supported families.

Includes reproducible evidence, a post-ready comparison table, and removal of infrastructure identifiers from public docs and bundled evidence. No schema change or rebuild is required for the query improvements.

Validation: search harness passes all five stages, 2,054 tests (25 ignored), strict Clippy and feature checks. All eight focused regex/wildcard tests pass with async-only native features. WASM release build and 41 JavaScript tests pass. Documentation links, archive/member checksums, unchanged benchmark analysis after evidence sanitization, and 826 HTTP capability responses are verified. Full lifecycle/RPC checks were not repeated because those paths are unchanged.

Add bounded phrase score-floor sampling and selective conjunction seeks while preserving exact rankings and existing index formats. Same-index Cascade Lake measurements improve RGB low-phrase top-10 from 8,706 to 22,205 QPS and medium-phrase top-100 from 8,112 to 11,685 QPS; retain measured regressions and ARM controls.

Include validation and reproducible evidence, update the post comparison table, and remove infrastructure identifiers from public documentation and evidence.
Share bounded term-pattern execution with wildcard filters, expose RegexQuery and explicit regex syntax, and preserve punctuation/escaped operators through field analysis. The real HTTP capability probe accepts all 826 expressions, up from 801, with all previously accepted responses unchanged.

Validate 2,054 search-stack tests, async-only regex/wildcard regressions and 41 WASM tests. Full-corpus analyzer, sloppy-phrase and expansion-limit parity remains separate work; existing performance tables still cover 15 queries.
@ppodolsky
ppodolsky merged commit 548cd2c into main Sep 24, 2026
10 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant