forked from scylladb/seastar
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests/perf: support multiple iterations in a single test run
At the moment, the PERF_TEST body is expected to perform a single iteration of the tested operation. However, if the operation is very cheap then it may be more desirable to perform multiple iterations in a single run of the test. This would allow to reduce any overhead and also makes it possible for the user to choose whether they want to measure the latency or throughput. This patch adds that option. If the PERF_TEST returns a size_t or future<size_t> that value is interpreted as the number of iterations run in a one call to PERF_TEST body and the final results are adjusted accordingly. Message-Id: <[email protected]>
- Loading branch information
Showing
1 changed file
with
37 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters