Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

db: tweak to BenchmarkIteratorScanNextPrefix and performance commentary #2269

Merged
merged 1 commit into from
Jan 24, 2023

Conversation

sumeerbhola
Copy link
Collaborator

BenchmarkIteratorScanNextPrefix now exercises value blocks. Also, the benchmark now does an iterator step per benchmark iteration instead of a full scan -- this makes the benchmark faster and allows us to compare performance metrics across benchmark parameters (since the metrics do not vary based on the total number of different key prefixes in the LSM).

There is a tiny tweak to the field ordering in LazyFetcher and additional code comments about performance and future optimization.

Informs #1170

BenchmarkIteratorScanNextPrefix now exercises value blocks. Also, the
benchmark now does an iterator step per benchmark iteration instead of a
full scan -- this makes the benchmark faster and allows us to compare
performance metrics across benchmark parameters (since the metrics do not
vary based on the total number of different key prefixes in the LSM).

There is a tiny tweak to the field ordering in LazyFetcher and additional
code comments about performance and future optimization.

Informs cockroachdb#1170
@sumeerbhola sumeerbhola requested review from jbowens and a team January 24, 2023 19:00
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Collaborator

@jbowens jbowens left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewed 5 of 5 files at r1, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @sumeerbhola)

Copy link
Collaborator Author

@sumeerbhola sumeerbhola left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TFTR!

Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @sumeerbhola)

@sumeerbhola sumeerbhola merged commit 4199154 into cockroachdb:master Jan 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants