taproot-assets icon indicating copy to clipboard operation
taproot-assets copied to clipboard

[Enhancement]: Load Tests: Replace arbitrary wait times with event streaming API

Open dstadulis opened this issue 1 year ago • 1 comments

Is your feature request related to a problem? Please describe. Current load test design was built out before PRs #853 #836 were merged. Given that many operations within the load tests are predicated on the receipt and issuance of transactions, the load tests can use these event notification to induce the subsequent steps in the load tests. Predicating on the event API will obviate needing to use arbitrary wait times (which would need to be constantly updated given new operation demands) which might prematurely kill a test before the full observations can be collected about it.

Describe the solution you'd like Predicate the load test actions based on the

  • asset received
  • Asset sent
  • etc events api functionality in #853 #836

Describe alternatives you've considered Leaving the wait times in the code

dstadulis avatar Apr 11 '24 22:04 dstadulis

I assume too that gating the steps on actual event completion will also result in more accurate time duration measurement of certain actions (between start and stop) rather than binary, low accuracy conclusions: "well we know at most this action took 5 seconds (say the allowed duration) or it took more than duration_amount because the test failed"

dstadulis avatar Apr 11 '24 22:04 dstadulis