Add subsystem benchmarks for `availability-distribution` and...
Add subsystem benchmarks for `availability-distribution` and `biftield-distribution` (availability write) (#2970)
Introduce a new test objective : `DataAvailabilityWrite`.
The new benchmark measures the network and cpu usage of
`availability-distribution`, `biftield-distribution` and
`availability-store` subsystems from the perspective of a validator node
during the process when candidates are made available.
Additionally I refactored the networking emulation to support bandwidth
acounting and limits of incoming and outgoing requests.
Screenshot of succesful run
<img width="1293" alt="Screenshot 2024-01-17 at 19 17 44"
src="https://github.com/paritytech/polkadot-sdk/assets/54316454/fde11280-e25b-4dc3-9dc9-d4b9752f9b7a">
---------
Signed-off-by:
Andrei Sandu <andrei-mihail@parity.io>
Showing
- Cargo.lock 12 additions, 4 deletionsCargo.lock
- Cargo.toml 1 addition, 0 deletionsCargo.toml
- polkadot/node/subsystem-bench/Cargo.toml 14 additions, 4 deletionspolkadot/node/subsystem-bench/Cargo.toml
- polkadot/node/subsystem-bench/README.md 27 additions, 29 deletionspolkadot/node/subsystem-bench/README.md
- polkadot/node/subsystem-bench/examples/availability_read.yaml 12 additions, 24 deletions...adot/node/subsystem-bench/examples/availability_read.yaml
- polkadot/node/subsystem-bench/examples/availability_write.yaml 15 additions, 0 deletions...dot/node/subsystem-bench/examples/availability_write.yaml
- polkadot/node/subsystem-bench/src/availability/av_store_helpers.rs 57 additions, 0 deletions...node/subsystem-bench/src/availability/av_store_helpers.rs
- polkadot/node/subsystem-bench/src/availability/mod.rs 389 additions, 70 deletionspolkadot/node/subsystem-bench/src/availability/mod.rs
- polkadot/node/subsystem-bench/src/cli.rs 3 additions, 1 deletionpolkadot/node/subsystem-bench/src/cli.rs
- polkadot/node/subsystem-bench/src/core/configuration.rs 47 additions, 45 deletionspolkadot/node/subsystem-bench/src/core/configuration.rs
- polkadot/node/subsystem-bench/src/core/display.rs 3 additions, 2 deletionspolkadot/node/subsystem-bench/src/core/display.rs
- polkadot/node/subsystem-bench/src/core/environment.rs 109 additions, 58 deletionspolkadot/node/subsystem-bench/src/core/environment.rs
- polkadot/node/subsystem-bench/src/core/keyring.rs 22 additions, 14 deletionspolkadot/node/subsystem-bench/src/core/keyring.rs
- polkadot/node/subsystem-bench/src/core/mock/av_store.rs 81 additions, 1 deletionpolkadot/node/subsystem-bench/src/core/mock/av_store.rs
- polkadot/node/subsystem-bench/src/core/mock/chain_api.rs 92 additions, 0 deletionspolkadot/node/subsystem-bench/src/core/mock/chain_api.rs
- polkadot/node/subsystem-bench/src/core/mock/dummy.rs 1 addition, 0 deletionspolkadot/node/subsystem-bench/src/core/mock/dummy.rs
- polkadot/node/subsystem-bench/src/core/mock/mod.rs 3 additions, 0 deletionspolkadot/node/subsystem-bench/src/core/mock/mod.rs
- polkadot/node/subsystem-bench/src/core/mock/network_bridge.rs 118 additions, 261 deletions...adot/node/subsystem-bench/src/core/mock/network_bridge.rs
- polkadot/node/subsystem-bench/src/core/mock/runtime_api.rs 91 additions, 8 deletionspolkadot/node/subsystem-bench/src/core/mock/runtime_api.rs
- polkadot/node/subsystem-bench/src/core/network.rs 767 additions, 227 deletionspolkadot/node/subsystem-bench/src/core/network.rs
Please register or sign in to comment