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

Cleanup database benchmarks #2653

Merged
merged 4 commits into from
Jan 23, 2024
Merged

Conversation

dhrubabasu
Copy link
Contributor

Why this should be merged

The naming structure for database benchmarks was a bit convoluted. This PR simplifies it.

How this works

They are now standardized to look like this:
pebble_1024_pairs_32_keys_32_values_BatchWrite

How this was tested

manually

@dhrubabasu dhrubabasu added testing This primarily focuses on testing cleanup Code quality improvement labels Jan 23, 2024
@dhrubabasu dhrubabasu added this to the v1.10.19 milestone Jan 23, 2024
@dhrubabasu dhrubabasu self-assigned this Jan 23, 2024
require.NotEmpty(b, keys)
count := len(keys)

b.Run(fmt.Sprintf("%s_%d_pairs_%d_keys_%d_values_db.get", name, count, len(keys[0]), len(values[0])), func(b *testing.B) {
Copy link
Contributor Author

@dhrubabasu dhrubabasu Jan 23, 2024

Choose a reason for hiding this comment

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

This inner b.Run is useless since there aren't any other sub-tests

@StephenButtolph StephenButtolph added this pull request to the merge queue Jan 23, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 23, 2024
@StephenButtolph StephenButtolph added this pull request to the merge queue Jan 23, 2024
Merged via the queue into master with commit 13bb7e4 Jan 23, 2024
17 checks passed
@StephenButtolph StephenButtolph deleted the cleanup-database-benchmarks branch January 23, 2024 21:35
chand1012 pushed a commit to multisig-labs/avalanchego that referenced this pull request Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cleanup Code quality improvement testing This primarily focuses on testing
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants