Skip to content

Incremental benchmark.#5367

Open
crocodile-dentist wants to merge 6 commits into
mainfrom
mw/incremental-benchmark
Open

Incremental benchmark.#5367
crocodile-dentist wants to merge 6 commits into
mainfrom
mw/incremental-benchmark

Conversation

@crocodile-dentist
Copy link
Copy Markdown
Contributor

@crocodile-dentist crocodile-dentist commented May 13, 2026

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

  • Commit sequence makes sense and have useful messages, see ref.
  • New tests are added and existing tests are updated.
  • Self-reviewed the PR.

Maintenance

  • Linked an issue or added the PR to the current sprint of ouroboros-network project.
  • Added labels.
  • Updated changelog files.
  • The documentation has been properly updated, see ref.

@crocodile-dentist crocodile-dentist force-pushed the mw/incremental-benchmark branch from de5f8bb to 2402dbd Compare May 13, 2026 10:13
@crocodile-dentist crocodile-dentist requested a review from a team as a code owner May 13, 2026 11:13
@crocodile-dentist crocodile-dentist force-pushed the mw/incremental-benchmark branch 3 times, most recently from 8c1ad8b to f5c2ab0 Compare May 13, 2026 14:07
@crocodile-dentist crocodile-dentist force-pushed the mw/incremental-benchmark branch from f5c2ab0 to ea03ed7 Compare May 14, 2026 12:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

Incremental decoding experiment

1 participant