Files
pezkuwi-sdk/bizinikiwi/pezframe/staking-async/runtimes/teyrchain/bench_all.sh
T
pezkuwichain 1c0e57d984 feat: Rebrand Polkadot/Substrate references to PezkuwiChain
This commit systematically rebrands various references from Parity Technologies'
Polkadot/Substrate ecosystem to PezkuwiChain within the kurdistan-sdk.

Key changes include:
- Updated external repository URLs (zombienet-sdk, parity-db, parity-scale-codec, wasm-instrument) to point to pezkuwichain forks.
- Modified internal documentation and code comments to reflect PezkuwiChain naming and structure.
- Replaced direct references to  with  or specific paths within the  for XCM, Pezkuwi, and other modules.
- Cleaned up deprecated  issue and PR references in various  and  files, particularly in  and  modules.
- Adjusted image and logo URLs in documentation to point to PezkuwiChain assets.
- Removed or rephrased comments related to external Polkadot/Substrate PRs and issues.

This is a significant step towards fully customizing the SDK for the PezkuwiChain ecosystem.
2025-12-14 00:04:10 +03:00

55 lines
2.2 KiB
Bash
Executable File

# run this, then copy all files to `bizinikiwi/frame/election-provider-multi-block/src/weights/`
source ~/.zshrc
STEPS=2
REPEAT=2
# if any of the command line arguments are equal to `--log=X`, set X to the below log levels
LOG="runtime::multiblock-election=info,runtime::staking-async=info,pezkuwi_sdk_frame::benchmark=info"
if [[ "${NO_COMPILE}" == "1" ]]; then
echo "Skipping compilation because 'NO_COMPILE' was set"
else
cargo build --release -p frame-omni-bencher
FORCE_WASM_BUILD=$RANDOM WASMTIME_BACKTRACE_DETAILS=1 RUST_LOG=${LOG} cargo build --release -p pallet-staking-async-teyrchain-runtime --features runtime-benchmarks
fi
WASM_BLOB_PATH=../../../../../target/release/wbuild/pallet-staking-async-teyrchain-runtime/pallet_staking_async_teyrchain_runtime.compact.wasm
echo "WASM_BLOB_PATH: $WASM_BLOB_PATH"
echo "Last modified date of WASM_BLOB:"
stat -f "%Sm" $WASM_BLOB_PATH
run_benchmark() {
local pallet_name="$1"
local genesis_preset="$2"
local output_file="./${pallet_name}_${genesis_preset}.rs"
echo "Running benchmark for pallet '$pallet_name' with preset '$genesis_preset'..."
echo "Outputting to '$output_file'"
WASMTIME_BACKTRACE_DETAILS=1 RUST_LOG=${LOG} \
../../../../../target/release/frame-omni-bencher v1 benchmark pallet \
--pallet "$pallet_name" \
--extrinsic "*" \
--runtime "$WASM_BLOB_PATH" \
--steps "$STEPS" \
--repeat "$REPEAT" \
--genesis-builder-preset "$genesis_preset" \
--template "../../../../../bizinikiwi/frame/election-provider-multi-block/src/template.hbs" \
--heap-pages 65000 \
--output "$output_file"
}
# run_benchmark "pallet_staking_async" "fake-hez"
run_benchmark "pallet_election_provider_multi_block" "fake-hez"
run_benchmark "pallet_election_provider_multi_block_signed" "fake-hez"
run_benchmark "pallet_election_provider_multi_block_unsigned" "fake-hez"
run_benchmark "pallet_election_provider_multi_block_verifier" "fake-hez"
# run_benchmark "pallet_staking_async" "fake-ksm"
run_benchmark "pallet_election_provider_multi_block" "fake-ksm"
run_benchmark "pallet_election_provider_multi_block_signed" "fake-ksm"
run_benchmark "pallet_election_provider_multi_block_unsigned" "fake-ksm"
run_benchmark "pallet_election_provider_multi_block_verifier" "fake-ksm"