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

Refactor body of periodic and delete performance test cases of splinter_test to utilize shared functions carved out in #334 #355

Open
gapisback opened this issue Mar 13, 2022 · 2 comments
Assignees

Comments

@gapisback
Copy link
Collaborator

Issue #334 introduces refactoring of body splinter_test function into sub-functions. Apply those to chunks of test_splinter_periodic() and test_splinter_delete(), so that we can reduce code duplication.

@gapisback
Copy link
Collaborator Author

gapisback commented Apr 3, 2022

HI, @ajhconway - Qs about refactoring test_splinter_periodic() - not urgent; take your time.

I was working on refactoring test_splinter_periodic() to use previously refactored / modularized functions, and see that this function seems to reduce to the following sequence of perf-execution workloads:

  1. splinter_perf_inserts()
  2. 10 repeat_round iterations to call (a newly refactored) splinter_do_perf_inserts(); i.e. just run the n-insert threads again. But, nothing seems to be obviously changing across each iteration of the insert workload in this loop (from /main):
1440 platform_status
1441 test_splinter_periodic(trunk_config    *cfg,
[...]
1581    for (uint64 repeat_round = 0; repeat_round < 10; repeat_round++) {
1582       platform_default_log("Beginning repeat round %lu\n", repeat_round);
1583       platform_error_log("Beginning repeat round %lu\n", repeat_round);
  1. splinter_perf_lookups()
  2. splinter_perf_range_lookups()

Other than step (2), the work load executed is identical to what's happening with --perf option; i.e. test_splinter_perf().

Unless I am making some obvious mistakes, missing to see some "subtle conditions" in the periodic perf function, there does not seem to be anything new being added with --periodic option.

Do you recall what's diff or special about this --periodic variation of --perf option? Am I missing something with this refactoring?

@ajhconway
Copy link
Contributor

The idea behind test_splinter_periodic was to do a bunch of overwrites in order to test the performance. I don't recall exactly why. Perhaps @rtjohnso remembers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants