This commit is contained in:
4meta5
2023-12-18 19:32:55 -05:00
parent 9c8f4f4b57
commit fcb7015025
@@ -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