Identity pallet benchmark
Compare changes
+ 26
− 12
@@ -14,21 +14,35 @@ The cross compiled binary is generated here: `target/armv7-unknown-linux-gnueab
@@ -14,21 +14,35 @@ The cross compiled binary is generated here: `target/armv7-unknown-linux-gnueab
is: `duniter benchmark pallet --chain=CURRENCY-dev --steps=50 --repeat=20 --pallet=pallet_universal_dividend --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=.`
5. If it worked, use the generated file content to create or update the `WeightInfo` trait and the `()` dummy implementation. Then use the `WeightInfo` tarit in the real code of the pallet. See 79e0fd4bf3b0579279fc957da5e2fdfc6d8a17fa for a
Note 2: If the reference machine does not support wasmtime, you should replace `--wasm-execution=compiled`
@@ -39,7 +53,7 @@ by `--wasm-execution=interpreted-i-know-what-i-do`.
@@ -39,7 +53,7 @@ by `--wasm-execution=interpreted-i-know-what-i-do`.
./duniter benchmark overhead --chain=gdev --execution=wasm --wasm-execution=interpreted-i-know-what-i-do --weight-path=. --warmup=10 --repeat=100
3. Copy the generated file `block_weights.rs` in the codebase in folder `runtime/common/src/weights/`.
@@ -52,7 +66,7 @@ by `--wasm-execution=interpreted-i-know-what-i-do`.
@@ -52,7 +66,7 @@ by `--wasm-execution=interpreted-i-know-what-i-do`.
./duniter benchmark storage -d=/mnt/ssd1/duniter-v2s/t1 --chain=gdev --mul=2 --weight-path=. --state-version=1
4. Copy the generated file `paritydb_weights.rs` in the codebase in folder `runtime/common/src/weights/`.