fix: Complete snowbridge pezpallet rebrand and critical bug fixes
- snowbridge-pezpallet-* → pezsnowbridge-pezpallet-* (201 refs) - pallet/ directories → pezpallet/ (4 locations) - Fixed pezpallet.rs self-include recursion bug - Fixed sc-chain-spec hardcoded crate name in derive macro - Reverted .pezpallet_by_name() to .pallet_by_name() (subxt API) - Added BizinikiwiConfig type alias for zombienet tests - Deleted obsolete session state files Verified: pezsnowbridge-pezpallet-*, pezpallet-staking, pezpallet-staking-async, pezframe-benchmarking-cli all pass cargo check
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
# PezkuwiChain Omni Benchmarking CLI
|
||||
|
||||
The PezkuwiChain Omni benchmarker allows to benchmark the extrinsics of any PezkuwiChain runtime. It is
|
||||
meant to replace the current manual integration of the `benchmark pallet` into every teyrchain node.
|
||||
meant to replace the current manual integration of the `benchmark pezpallet` into every teyrchain node.
|
||||
This reduces duplicate code and makes maintenance for builders easier. The CLI is currently only
|
||||
able to benchmark extrinsics. In the future it is planned to extend this to some other areas.
|
||||
|
||||
@@ -43,12 +43,12 @@ runtime:
|
||||
cargo build -p zagros-runtime --profile production --features runtime-benchmarks
|
||||
```
|
||||
|
||||
Now as an example, we benchmark the `balances` pallet:
|
||||
Now as an example, we benchmark the `balances` pezpallet:
|
||||
|
||||
```sh
|
||||
frame-omni-bencher v1 benchmark pallet \
|
||||
frame-omni-bencher v1 benchmark pezpallet \
|
||||
--runtime target/release/wbuild/zagros-runtime/zagros-runtime.compact.compressed.wasm \
|
||||
--pallet "pallet_balances" --extrinsic ""
|
||||
--pezpallet "pallet_balances" --extrinsic ""
|
||||
```
|
||||
|
||||
The `--steps`, `--repeat`, `--heap-pages` and `--wasm-execution` arguments have sane defaults and do
|
||||
@@ -60,18 +60,18 @@ To render Rust weight files from benchmark results, pass an output path. Optiona
|
||||
custom header and a Handlebars template (defaults are provided):
|
||||
|
||||
```sh
|
||||
frame-omni-bencher v1 benchmark pallet \
|
||||
frame-omni-bencher v1 benchmark pezpallet \
|
||||
--runtime target/release/wbuild/zagros-runtime/zagros-runtime.compact.compressed.wasm \
|
||||
--pallet "pallet_balances" --extrinsic "*" \
|
||||
--pezpallet "pallet_balances" --extrinsic "*" \
|
||||
--output ./weights/ \
|
||||
--header ./HEADER.rs \
|
||||
--template ./template.hbs
|
||||
```
|
||||
|
||||
This uses the same flags as the node-integrated benchmarking CLI. The output can be a directory or a
|
||||
file path; when a directory is given, a file name is generated per pallet/instance.
|
||||
file path; when a directory is given, a file name is generated per pezpallet/instance.
|
||||
|
||||
## Backwards Compatibility
|
||||
|
||||
The exposed pallet sub-command is identical as the node-integrated CLI. The only difference is that
|
||||
The exposed pezpallet sub-command is identical as the node-integrated CLI. The only difference is that
|
||||
it needs to be prefixed with a `v1` to ensure drop-in compatibility.
|
||||
|
||||
Reference in New Issue
Block a user