mirror of
https://github.com/pezkuwichain/pezkuwi-runtime-templates.git
synced 2026-06-13 21:01:02 +00:00
fmt
This commit is contained in:
@@ -22,7 +22,7 @@ Production runtimes should never set `WeightInfo = ()` in production because thi
|
|||||||
```
|
```
|
||||||
cargo build --features runtime-benchmarks
|
cargo build --features runtime-benchmarks
|
||||||
```
|
```
|
||||||
|
[start=2]
|
||||||
. Run the benchmarking command and write its output to the runtime. Here is the command via bash script:
|
. Run the benchmarking command and write its output to the runtime. Here is the command via bash script:
|
||||||
```
|
```
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
@@ -44,7 +44,7 @@ for pallet_name in $pallets; do
|
|||||||
--output ./runtime/src/weights/$pallet_name.rs
|
--output ./runtime/src/weights/$pallet_name.rs
|
||||||
done
|
done
|
||||||
```
|
```
|
||||||
|
[start=3]
|
||||||
. Automate the benchmarking pipeline. The first step may be automated by enforcing the command in the CI. The second step may be automated by integrating a benchmarking github bot. For an example, see https://github.com/paritytech/command-bot[Parity's Command Bot].
|
. Automate the benchmarking pipeline. The first step may be automated by enforcing the command in the CI. The second step may be automated by integrating a benchmarking github bot. For an example, see https://github.com/paritytech/command-bot[Parity's Command Bot].
|
||||||
|
|
||||||
== More Reading
|
== More Reading
|
||||||
|
|||||||
Reference in New Issue
Block a user