Incremental benchmark.#5367
Open
crocodile-dentist wants to merge 6 commits into
Open
Conversation
de5f8bb to
2402dbd
Compare
8c1ad8b to
f5c2ab0
Compare
f5c2ab0 to
ea03ed7
Compare
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
This PR introduces a benchmark for comparing incremental and non-incremental CBOR block decoder performance. One mechanism of how to reduce block processing time is to decode it while it is streamed across the network, in between SDU arrival times. Tests on one machine indicate that for roughly full Praos blocks a few milliseconds may be saved, with more material savings for future larger blocks, esp. for Leios.
resolves #5280
Actual performance in a real system may vary, but in a benchmark setting the results for incrementally decoding a full Praos block are minor, on the order of several ms. More impressive gains materialize for much larger blocks, ie. several MB in size, where time saved appears to be on the order of several hundred ms.
Checklist
Quality
Maintenance
ouroboros-networkproject.