mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 12:51:02 +00:00
Fixup benches after dir re-org (#1300)
* Fixup after dir re-org * Update scripts/benchmarks-ci.sh Co-authored-by: Chevdor <chevdor@users.noreply.github.com> * Update scripts/benchmarks-ci.sh Co-authored-by: Chevdor <chevdor@users.noreply.github.com> * Update scripts/benchmarks-ci.sh Co-authored-by: Chevdor <chevdor@users.noreply.github.com> * fix typo Co-authored-by: Chevdor <chevdor@users.noreply.github.com>
This commit is contained in:
@@ -211,9 +211,9 @@ benchmarks:
|
|||||||
<<: *collect-artifacts
|
<<: *collect-artifacts
|
||||||
<<: *benchmarks-refs
|
<<: *benchmarks-refs
|
||||||
script:
|
script:
|
||||||
- ./scripts/benchmarks-ci.sh statemine > ./artifacts/bench-statemine.log
|
- ./scripts/benchmarks-ci.sh assets statemine > ./artifacts/bench-statemine.log
|
||||||
- ./scripts/benchmarks-ci.sh statemint > ./artifacts/bench-statemint.log
|
- ./scripts/benchmarks-ci.sh assets statemint > ./artifacts/bench-statemint.log
|
||||||
- ./scripts/benchmarks-ci.sh westmint > ./artifacts/bench-westmint.log
|
- ./scripts/benchmarks-ci.sh assets westmint > ./artifacts/bench-westmint.log
|
||||||
- git status
|
- git status
|
||||||
- export BRANCHNAME="weights-${CI_COMMIT_BRANCH}"
|
- export BRANCHNAME="weights-${CI_COMMIT_BRANCH}"
|
||||||
# Set git config
|
# Set git config
|
||||||
|
|||||||
@@ -2,10 +2,11 @@
|
|||||||
|
|
||||||
steps=50
|
steps=50
|
||||||
repeat=20
|
repeat=20
|
||||||
chainName=$1
|
category=$1
|
||||||
|
runtimeName=$2
|
||||||
|
|
||||||
benhcmarkOutput=./parachains/runtimes/$chainName/src/weights
|
benchmarkOutput=./parachains/runtimes/$category/$runtimeName/src/weights
|
||||||
benhcmarkChainName="$chainName-dev"
|
benchmarkRuntimeName="$runtimeName-dev"
|
||||||
|
|
||||||
pallets=(
|
pallets=(
|
||||||
pallet_assets
|
pallet_assets
|
||||||
@@ -24,7 +25,7 @@ pallets=(
|
|||||||
for p in ${pallets[@]}
|
for p in ${pallets[@]}
|
||||||
do
|
do
|
||||||
./artifacts/polkadot-parachain benchmark pallet \
|
./artifacts/polkadot-parachain benchmark pallet \
|
||||||
--chain=$benhcmarkChainName \
|
--chain=$benchmarkRuntimeName \
|
||||||
--execution=wasm \
|
--execution=wasm \
|
||||||
--wasm-execution=compiled \
|
--wasm-execution=compiled \
|
||||||
--pallet=$p \
|
--pallet=$p \
|
||||||
@@ -33,5 +34,5 @@ do
|
|||||||
--repeat=$repeat \
|
--repeat=$repeat \
|
||||||
--json \
|
--json \
|
||||||
--header=./file_header.txt \
|
--header=./file_header.txt \
|
||||||
--output=$benhcmarkOutput
|
--output=$benchmarkOutput
|
||||||
done
|
done
|
||||||
|
|||||||
@@ -3,9 +3,9 @@
|
|||||||
steps=50
|
steps=50
|
||||||
repeat=20
|
repeat=20
|
||||||
|
|
||||||
statemineOutput=./parachains/runtimes/statemine/src/weights
|
statemineOutput=./parachains/runtimes/assets/statemine/src/weights
|
||||||
statemintOutput=./parachains/runtimes/statemint/src/weights
|
statemintOutput=./parachains/runtimes/assets/statemint/src/weights
|
||||||
westmintOutput=./parachains/runtimes/westmint/src/weights
|
westmintOutput=./parachains/runtimes/assets/westmint/src/weights
|
||||||
|
|
||||||
statemineChain=statemine-dev
|
statemineChain=statemine-dev
|
||||||
statemintChain=statemint-dev
|
statemintChain=statemint-dev
|
||||||
|
|||||||
Reference in New Issue
Block a user