Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Create block production benchmark #9978

Closed
bkchr opened this issue Oct 8, 2021 · 0 comments · Fixed by #10104
Closed

Create block production benchmark #9978

bkchr opened this issue Oct 8, 2021 · 0 comments · Fixed by #10104
Assignees
Labels
I5-tests Tests need fixing, improving or augmenting. Z2-medium Can be fixed by a coder with good Rust knowledge but little knowledge of the codebase.

Comments

@bkchr
Copy link
Member

bkchr commented Oct 8, 2021

We should write a benchmark for block production. It should use the substrate runtime in /bin/node/runtime. #9958 gives some insights on how to do this. However, for this benchmark we should directly use the BlockBuilder interface and push transactions until the runtime returns InvalidTransaction::ExhaustsResources. As transactions we could probably just use a balance transfer.

After the benchmark works, it would be nice to get some insight on where we spent the time. I assume that we get the InvalidTransaction::ExhaustsResources after more than 1.5 seconds (1.5 seconds is the maximum weight of the runtime, so we should be able to apply all transactions in this time, roughly).

@bkchr bkchr added I5-tests Tests need fixing, improving or augmenting. Z2-medium Can be fixed by a coder with good Rust knowledge but little knowledge of the codebase. labels Oct 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
I5-tests Tests need fixing, improving or augmenting. Z2-medium Can be fixed by a coder with good Rust knowledge but little knowledge of the codebase.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants