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

fix(bench): bring in benchmark fixes from main #1863

Merged
merged 6 commits into from
Feb 23, 2023
Merged

Conversation

joshua-goldstein
Copy link
Contributor

Cherry pick of #1699 and #1741.

@CLAassistant
Copy link

CLAassistant commented Feb 13, 2023

CLA assistant check
All committers have signed the CLA.

@joshua-goldstein joshua-goldstein changed the base branch from main to release/v4.0 February 13, 2023 18:18
Add benchmark tool for picktable benchmarking.

(cherry picked from commit ca80206)
Note that the file ID can be 32 bit only, while the benchmarks were using 63-bit number for the same.

(cherry picked from commit 292a4be)
@coveralls
Copy link

coveralls commented Feb 18, 2023

Coverage Status

Coverage: 41.229% (-20.01%) from 61.239% when pulling 885b73d on joshua/bench into 328c10d on release/v4.0.

Copy link
Contributor

@mangalaman93 mangalaman93 left a comment

Choose a reason for hiding this comment

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

mostly looks good, a few nits.

badger/cmd/pick_table_bench.go Show resolved Hide resolved
if err != nil {
return y.Wrapf(err, "unable to open DB")
}
defer db.Close()
Copy link
Contributor

Choose a reason for hiding this comment

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

let's log the warning here in case close fails

Copy link
Contributor Author

Choose a reason for hiding this comment

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

replaced with

defer func() {
y.Check(db.Close())
}()

badger/cmd/pick_table_bench.go Show resolved Hide resolved
@mangalaman93 mangalaman93 merged commit 4a3b224 into release/v4.0 Feb 23, 2023
@mangalaman93 mangalaman93 deleted the joshua/bench branch February 23, 2023 18:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants