Repository navigation
Benchmarks: 30,000-note reference corpora and the index's timings - #1289
Merged
Merged
Conversation
vmillet-dev
force-pushed
the
bench/reference-corpora
branch
5 times, most recently
from
November 3, 2026 04:58
420f892 to
fa2a2b7
Compare
Realistic and stress libraries of 30,000 notes with their HTTP side, built on disk; groups index_build, index_query and index_refresh.
vmillet-dev
force-pushed
the
bench/reference-corpora
branch
from
November 3, 2026 04:59
fa2a2b7 to
af6bccf
Compare
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #1154
Phase 1 (§ 6.1, § 6.3). Benches only: not in CI, like today's.
benches/reference.rsgenerates the two reference libraries on disk (never in memory), as § 6.1 describes:{{fields}}), 5 000 Notes (~4 kB: headings, lists, tables, code blocks, amermaidone in twenty), 3 000 lists of 20 items, 1 500 Calcul sheets of 30 lines, 500 Dessins (~20 kB scene); 4 spaces, 300 folders on three levels, 600 tags, 2 000 attachments; HTTP: 40 collections, 250 folders, 2 000 requests, 30 environments, 20 000 history entries, 500 cookies;A Dessin carries its scene alone: its pictures are not what the index reads. The attachments go through
attach_image, the service function.benches/index.rs, groupsindex_build,index_query(unfiltered, search matching nothing, search folding accents, space + tag + pinned,list_tags) andindex_refresh(update_note, a batch of 100), on both corpora.architecture.md→ « The baseline » → « The index on the reference corpora ». Run once on the development machine while it was in use:etape(most notes match)list_tagsupdate_noteNotesViewofArcentries and previews for drawn cards alone is the planned answer), the realistic build (1.87 s), andlist_tagson the realistic corpus (7.6 ms). The search itself is inside its budget on both.Local:
cargo clippy --workspace --lib --bins --tests --benches --all-features -D warnings,cargo bench -p engine --bench index(above).🤖 Generated with Claude Code