diff --git a/cumulus/.gitlab-ci.yml b/cumulus/.gitlab-ci.yml index 60e07f918d176da6e0a4a94e4eed9d2e946020b2..9b5b5df4f09ac779f5223afe81c26b68561ce332 100644 --- a/cumulus/.gitlab-ci.yml +++ b/cumulus/.gitlab-ci.yml @@ -211,9 +211,9 @@ benchmarks: <<: *collect-artifacts <<: *benchmarks-refs script: - - ./scripts/benchmarks-ci.sh statemine > ./artifacts/bench-statemine.log - - ./scripts/benchmarks-ci.sh statemint > ./artifacts/bench-statemint.log - - ./scripts/benchmarks-ci.sh westmint > ./artifacts/bench-westmint.log + - ./scripts/benchmarks-ci.sh assets statemine > ./artifacts/bench-statemine.log + - ./scripts/benchmarks-ci.sh assets statemint > ./artifacts/bench-statemint.log + - ./scripts/benchmarks-ci.sh assets westmint > ./artifacts/bench-westmint.log - git status - export BRANCHNAME="weights-${CI_COMMIT_BRANCH}" # Set git config diff --git a/cumulus/scripts/benchmarks-ci.sh b/cumulus/scripts/benchmarks-ci.sh index e74842868eef1e1299f60c63bba1e6feacacdf90..8b6afbebd171a9522319262e3f3e30b28ea06e70 100755 --- a/cumulus/scripts/benchmarks-ci.sh +++ b/cumulus/scripts/benchmarks-ci.sh @@ -2,10 +2,11 @@ steps=50 repeat=20 -chainName=$1 +category=$1 +runtimeName=$2 -benhcmarkOutput=./parachains/runtimes/$chainName/src/weights -benhcmarkChainName="$chainName-dev" +benchmarkOutput=./parachains/runtimes/$category/$runtimeName/src/weights +benchmarkRuntimeName="$runtimeName-dev" pallets=( pallet_assets @@ -24,7 +25,7 @@ pallets=( for p in ${pallets[@]} do ./artifacts/polkadot-parachain benchmark pallet \ - --chain=$benhcmarkChainName \ + --chain=$benchmarkRuntimeName \ --execution=wasm \ --wasm-execution=compiled \ --pallet=$p \ @@ -33,5 +34,5 @@ do --repeat=$repeat \ --json \ --header=./file_header.txt \ - --output=$benhcmarkOutput + --output=$benchmarkOutput done diff --git a/cumulus/scripts/benchmarks.sh b/cumulus/scripts/benchmarks.sh index eddd1e9215a9c2502d9721e333f5bd428fe9d016..a83b8cbcbb6fa5e3bef2173132ba8989bdaef823 100755 --- a/cumulus/scripts/benchmarks.sh +++ b/cumulus/scripts/benchmarks.sh @@ -3,9 +3,9 @@ steps=50 repeat=20 -statemineOutput=./parachains/runtimes/statemine/src/weights -statemintOutput=./parachains/runtimes/statemint/src/weights -westmintOutput=./parachains/runtimes/westmint/src/weights +statemineOutput=./parachains/runtimes/assets/statemine/src/weights +statemintOutput=./parachains/runtimes/assets/statemint/src/weights +westmintOutput=./parachains/runtimes/assets/westmint/src/weights statemineChain=statemine-dev statemintChain=statemint-dev