🧪 Benchmarking a Server for Substrate/Polkadot
Automatic Installation
source <(curl -s https://raw.githubusercontent.com/validexisinfra/polkadot/main/install-benchmark.sh)Manual Installation
Installing Rust and Dependencies
sudo apt update && sudo apt install -y build-essential clang cmake pkg-config libssl-dev git curl unzip protobuf-compiler libclang-dev llvm-dev && curl https://sh.rustup.rs -sSf | sh -s -- -y && source $HOME/.cargo/env && rustup update stable && rustup target add wasm32-unknown-unknown && rustup component add rust-src
curl https://sh.rustup.rs -sSf | sh -s -- -y
source $HOME/.cargo/env
rustup update stable
rustup target add wasm32-unknown-unknown
rustup component add rust-srcInstall the benchmarking tool
cargo install frame-omni-bencherClone Polkadot SDK
Run build with the feature flag included
Locate the generated .wasm
.wasmDownload the frame-weight template
Run the benchmarking tool to measure extrinsic weights
Result
Run hardware benchmark
Previous🔧 Installing a Polkadot Node Using KagomeNext📘 Monitoring Polkadot Nodes with Prometheus and Alertmanager
Last updated