Repository navigation
bench: measure list-shaped reads (instances/load_some) - #16
Merged
Merged
Conversation
…ces_sparse) The suite only covered single-entity operations, so the range-paging change in 0.12.0 (#14) was invisible to it. Add three cases: - load_page_50: cold load_some(1, 50) - instances_all: cold instances() with every id present - instances_sparse: cold instances() after deleting every other id Measured on a local replica with the Basilisk 0.15.0 template, v0.11.0 vs v0.12.0 (instructions, db=500 entity pairs): instances_all 700.6M -> 488.3M (-30%) instances_sparse 416.7M -> 246.1M (-41%) load_page_50 66.9M -> 47.4M (-29%) load 1.18M -> 1.04M (-12%) Remaining cost is ~0.95M instructions per hydrated entity (JSON decode + Entity construction), which is the next target. Co-authored-by: Cursor <cursoragent@cursor.com>
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.
Follow-up to #14 / #15. The benchmark suite only covered single-entity operations, so the range-paging change was invisible to it. Adds
load_page_50,instances_allandinstances_sparse(every other id deleted) totest_benchmark.pyand the orchestrator.Measured locally (same Basilisk 0.15.0 template, ic-python-db v0.11.0 vs v0.12.0), instructions:
instances_allinstances_sparse(50 % deleted)load_page_50loadDeleted ids now cost nothing (sparse ≈ half of dense). The remaining ~0.95 M instructions per hydrated entity are JSON decode +
Entityconstruction, i.e. the next optimisation target.Made with Cursor