Add litep2p network protocol benches (#6455)
# Description Add support to run networking protocol benchmarks with litep2p backend. Now we can compare the work of both libp2p and litep2p backends for notifications and request-response protocols. Next step: extract worker initialization from the benchmark loop. ### Example run on local machine <img width="916" alt="image" src="https://github.com/user-attachments/assets/6bb9f90a-76a4-417e-b9d3-db27aa8a356f"> ## Integration Does not affect downstream projects. ## Review Notes https://github.com/paritytech/polkadot-sdk/blob/d4d95025 /substrate/client/network/src/litep2p/service.rs#L510-L520 This method should be implemented to run request benchmarks. --------- Co-authored-by:GitHub Action <action@github.com>
Showing
- prdoc/pr_6455.prdoc 8 additions, 0 deletionsprdoc/pr_6455.prdoc
- substrate/client/network/benches/notifications_protocol.rs 86 additions, 28 deletionssubstrate/client/network/benches/notifications_protocol.rs
- substrate/client/network/benches/request_response_protocol.rs 70 additions, 45 deletions...trate/client/network/benches/request_response_protocol.rs
Please register or sign in to comment