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

feat(test): add bench type multi set/get #1373

Merged
merged 17 commits into from
Mar 2, 2023

Conversation

GehaFearless
Copy link
Contributor

Issue: #1372

@GehaFearless GehaFearless force-pushed the liguohao_multi_bench branch 5 times, most recently from 6d43e4a to 7ddb15c Compare February 28, 2023 07:53
foreverneverer
foreverneverer previously approved these changes Feb 28, 2023
@GehaFearless GehaFearless changed the title refactor(test): add bench type multi set/get feature(test): add bench type multi set/get Feb 28, 2023
@GehaFearless GehaFearless changed the title feature(test): add bench type multi set/get refactor(test): add bench type multi set/get Feb 28, 2023
src/test/bench_test/statistics.cpp Outdated Show resolved Hide resolved
run.sh Outdated Show resolved Hide resolved
src/test/bench_test/benchmark.cpp Show resolved Hide resolved
src/test/bench_test/benchmark.cpp Show resolved Hide resolved
src/test/bench_test/benchmark.cpp Outdated Show resolved Hide resolved
// 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);
Copy link
Member

Choose a reason for hiding this comment

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

why overwrite value repetitive?

Copy link
Contributor Author

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.

Copy link
Member

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.

src/test/bench_test/benchmark.cpp Outdated Show resolved Hide resolved
src/test/bench_test/benchmark.cpp Outdated Show resolved Hide resolved
src/test/bench_test/benchmark.cpp Outdated Show resolved Hide resolved
@GehaFearless GehaFearless force-pushed the liguohao_multi_bench branch from b2856ff to eab4faf Compare March 1, 2023 07:41
@GehaFearless GehaFearless changed the title refactor(test): add bench type multi set/get feat(test): add bench type multi set/get Mar 1, 2023
src/test/bench_test/benchmark.cpp Outdated Show resolved Hide resolved
src/test/bench_test/config.cpp Outdated Show resolved Hide resolved
src/test/bench_test/benchmark.cpp Outdated Show resolved Hide resolved
// 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);
Copy link
Member

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.

src/test/bench_test/benchmark.cpp Outdated Show resolved Hide resolved
src/test/bench_test/benchmark.cpp Outdated Show resolved Hide resolved
src/test/bench_test/benchmark.cpp Outdated Show resolved Hide resolved
src/test/bench_test/benchmark.cpp Outdated Show resolved Hide resolved
@GehaFearless GehaFearless force-pushed the liguohao_multi_bench branch from e98868c to f3a377f Compare March 1, 2023 12:09
@GehaFearless GehaFearless force-pushed the liguohao_multi_bench branch from f3a377f to 56e1984 Compare March 1, 2023 13:26
src/test/bench_test/benchmark.cpp Outdated Show resolved Hide resolved
src/test/bench_test/benchmark.cpp Outdated Show resolved Hide resolved
src/test/bench_test/benchmark.cpp Outdated Show resolved Hide resolved
src/test/bench_test/benchmark.cpp Outdated Show resolved Hide resolved
src/test/bench_test/benchmark.cpp Outdated Show resolved Hide resolved
src/test/bench_test/benchmark.cpp Outdated Show resolved Hide resolved
src/test/bench_test/benchmark.cpp Outdated Show resolved Hide resolved
src/test/bench_test/benchmark.cpp Outdated Show resolved Hide resolved
src/test/bench_test/benchmark.cpp Outdated Show resolved Hide resolved
src/test/bench_test/benchmark.cpp Outdated Show resolved Hide resolved
GehaFearless and others added 6 commits March 2, 2023 14:09
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>
GehaFearless and others added 8 commits March 2, 2023 14:11
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>
@acelyc111 acelyc111 merged commit 5088b29 into apache:master Mar 2, 2023
@empiredan empiredan mentioned this pull request Aug 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants