-
Notifications
You must be signed in to change notification settings - Fork 312
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
feat(test): add bench type multi set/get #1373
Conversation
6d43e4a
to
7ddb15c
Compare
src/test/bench_test/benchmark.cpp
Outdated
// generate value for random to keep in peace with write | ||
for (int j = 0; j < 100; j++) { | ||
sortkeys.insert(generate_string(FLAGS_sortkey_size)); | ||
value = generate_string(FLAGS_value_size); |
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.
why overwrite value
repetitive?
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.
Cos generate_string
should be ordered make data.
Be like generate_kv_pair
for read_random
.
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.
Invoke generate_string
is enough, not need to assign, and add some comments.
PS: A better way is to separate the generator function of keys and values.
b2856ff
to
eab4faf
Compare
src/test/bench_test/benchmark.cpp
Outdated
// generate value for random to keep in peace with write | ||
for (int j = 0; j < 100; j++) { | ||
sortkeys.insert(generate_string(FLAGS_sortkey_size)); | ||
value = generate_string(FLAGS_value_size); |
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.
Invoke generate_string
is enough, not need to assign, and add some comments.
PS: A better way is to separate the generator function of keys and values.
e98868c
to
f3a377f
Compare
f3a377f
to
56e1984
Compare
Co-authored-by: Yingchun Lai <acelyc1112009@gmail.com>
Co-authored-by: Yingchun Lai <acelyc1112009@gmail.com>
Co-authored-by: Yingchun Lai <acelyc1112009@gmail.com>
Co-authored-by: Yingchun Lai <acelyc1112009@gmail.com>
Co-authored-by: Yingchun Lai <acelyc1112009@gmail.com>
Co-authored-by: Yingchun Lai <acelyc1112009@gmail.com>
Co-authored-by: Yingchun Lai <acelyc1112009@gmail.com>
Co-authored-by: Yingchun Lai <acelyc1112009@gmail.com>
Co-authored-by: Yingchun Lai <acelyc1112009@gmail.com>
Co-authored-by: Yingchun Lai <acelyc1112009@gmail.com>
Co-authored-by: Yingchun Lai <acelyc1112009@gmail.com>
Co-authored-by: Yingchun Lai <acelyc1112009@gmail.com>
Co-authored-by: Yingchun Lai <acelyc1112009@gmail.com>
Issue: #1372