Optimize initialization of networking protocol benchmarks (#6636)
# Description
These changes should enhance the quality of benchmark results by
excluding worker initialization time from the measurements and reducing
the overall duration of the benchmarks.
### Integration
It should not affect any downstream projects.
### Review Notes
- Workers initialize once per benchmark to avoid side effects.
- The listen address is assigned when a worker starts.
- Benchmarks are divided into two groups by size to create better charts
for comparison.
---------
Co-authored-by:
GitHub Action <action@github.com>
Showing
- prdoc/pr_6636.prdoc 9 additions, 0 deletionsprdoc/pr_6636.prdoc
- substrate/client/network/benches/notifications_protocol.rs 178 additions, 208 deletionssubstrate/client/network/benches/notifications_protocol.rs
- substrate/client/network/benches/request_response_protocol.rs 166 additions, 152 deletions...trate/client/network/benches/request_response_protocol.rs
Please register or sign in to comment