Added options to benchmark orders vs certs #106
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Reasoning:
The image above roughly shows the execution flow for a FastX transfer request.
Current benchmark measures B-C-D and F-G-H and returns the sum.
From #93, we determined that measuring one or the other might be important.
Solution
This PR provides the option to measure B-C-D and F-G-H separately, or both via CLI selector.
Will enhance this in future to optionally measure end-to-end (B-H and B-L)
Example (outputs are compacted):
Run for OrdersAndCerts: default benchmark of Certs and Orders (B-C-D and F-G-H)
Run for OrdersOnly benchmark (B-C-D)
Run for CertsOnly benchmark (F-G-H)
timeOrders: 463116
+timeCerts: 1149791
=1612907
is greater thantimeOrdersAndCerts: 1548267
as expected