Repository navigation
Conversation
FrancescAlted
left a comment
Member
There was a problem hiding this comment.
This looks pretty good. I think the results would read better if you can make the datasets larger (~10x). Also, showing the space consumed by every kind of summary would be nice.
Bonus points: if you can use a real-world dataset like NYC or Chicago taxis or any other, that would be the cherry on the cake (but I know that this won't be easy).
Member
|
Ping? |
This branch has not been deployed
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.
Summary
Closes #652.
examples/ctable/real_world.pyshows CTable on real data, but nothing isolates what a SUMMARY index actually buys on awhere()query. This adds a self-contained benchmark,bench/ctable/summary_index_perf.py, that runs the same selective range query three ways on a synthetic 3M-row CTable (no external dataset, runs right after install):It prints build time, rows scanned, matches, query time (best of 3), and speedup. "Rows scanned" is computed with the rule a SUMMARY index itself uses — a segment is scanned only when its [min, max] intersects the predicate — from the segment sizes of the stored column and the generated data, and the script comments say so. All three variants are asserted to return identical results.
Sample output (this machine):
The header comments explain the trade-off (finer granularity skips more on clustered data but stores more metadata and builds slower) and note that the data is deliberately clustered, the favourable case for segment skipping.
Verification
Ran the script end-to-end against blosc2 4.15.0: it completes in a few seconds and the three variants agree on the match count (299,999). Each variant starts from
create_summary_index=Falseso the only difference is the explicit index under test.