-
Notifications
You must be signed in to change notification settings - Fork 660
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Added rnd read capabilities to bbolt bench #711
Conversation
Hi, @ambaxter. Thanks for the pull request. Please ensure your commit is signed so the developer certificate of origin (DCO) check passes, i.e:
@ahrtr, there will be conflicts with the migration to cobra-style of the |
Done |
This looks like a useful enhancement. Since it doesn't break existing user experience, so it's accepted to add it in 1.4.0. For rnd read, we should exclude the time of collecting & shuffle all the keys. Obviously you did not sign the commit correctly. Please read https://github.com/etcd-io/bbolt/pull/711/checks?check_run_id=23409172937 |
Ok, I'll update my PR after this one gets merged. |
db54f1d
to
1c80f06
Compare
My apologies. I did reset my local git config and force pushed it with the commit ending in 'Signed-off-by: Adam Baxter adam.m.baxter@gmail.com'. The DCO action is still failing with the old commit message, however. |
@ambaxter You need to fix (and reset) your author configuration. It doesn't match the DCO.
Emphasis on Author. |
Done. I'm sorry! This is probably the first big project I've committed to. |
Can you compare the benchmark result of rnd and seq reads? Probably the |
I tested 100,000 and 1,000,000 with varying batch sizes. You're correct. Collecting the keys just before reading in general has a performance benefit. |
The Robustness tests are currently failing with OOM. |
Should be fixed now. |
/ok-to-test |
@ambaxter, can you please squash your commits? Thanks. |
Done |
@ahrtr PTAL |
Signed-off-by: Adam Baxter <adam.m.baxter@gmail.com>
I'm not sure why the ARM64 test failed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Thanks.
Please also consider adding a test to cover the new rnd read, to avoid error something like #711 (comment). You can do it in a followup PR or as the second commit in this PR. |
@ahrtr Sure. Like https://github.com/etcd-io/bbolt/blob/main/cmd/bbolt/main_test.go#L483 ? |
Yes, you can add a couple of more items into the list. Lines 486 to 489 in 6716581
|
@fuweid do you have bandwidth to take a look at this PR, so that we can merge it? thx |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
I was doing some testing and noticed that the benchmark functionality didn't have random access capabilities. This PR adds those options.