diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml new file mode 100644 index 000000000000..f07326e7f18f --- /dev/null +++ b/.github/workflows/benchmark.yml @@ -0,0 +1,35 @@ +name: Benchmarks + +on: + push: + branches: + - master + pull_request: + types: [opened, synchronize, reopened, ready_for_review, labeled] + merge_group: + +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + +jobs: + preflight: + uses: ./.github/workflows/reusable-preflight.yml + + benchmark: + runs-on: parity-weights + needs: [preflight] + timeout-minutes: 60 + container: + image: ${{ needs.preflight.outputs.IMAGE }} + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: script + run: | + cargo run --profile=production --bin=polkadot --features=runtime-benchmarks -- benchmark pallet --steps=50 \ + --repeat=20 --extrinsic=* --wasm-execution=compiled --heap-pages=4096 \ + --json-file=bench.json \ + --pallet=pallet_balances --chain=westend-dev --header=./polkadot/file_header.txt \ + --output=./polkadot/runtime/westend/src/weights/ + cat ./polkadot/runtime/westend/src/weights/pallet_balances.rs diff --git a/.github/workflows/build-misc.yml b/.github/workflows/tmp/build-misc.yml similarity index 100% rename from .github/workflows/build-misc.yml rename to .github/workflows/tmp/build-misc.yml diff --git a/.github/workflows/build-publish-eth-rpc.yml b/.github/workflows/tmp/build-publish-eth-rpc.yml similarity index 100% rename from .github/workflows/build-publish-eth-rpc.yml rename to .github/workflows/tmp/build-publish-eth-rpc.yml diff --git a/.github/workflows/build-publish-images.yml b/.github/workflows/tmp/build-publish-images.yml similarity index 100% rename from .github/workflows/build-publish-images.yml rename to .github/workflows/tmp/build-publish-images.yml diff --git a/.github/workflows/check-cargo-check-runtimes.yml b/.github/workflows/tmp/check-cargo-check-runtimes.yml similarity index 100% rename from .github/workflows/check-cargo-check-runtimes.yml rename to .github/workflows/tmp/check-cargo-check-runtimes.yml diff --git a/.github/workflows/check-frame-omni-bencher.yml b/.github/workflows/tmp/check-frame-omni-bencher.yml similarity index 100% rename from .github/workflows/check-frame-omni-bencher.yml rename to .github/workflows/tmp/check-frame-omni-bencher.yml diff --git a/.github/workflows/check-getting-started.yml b/.github/workflows/tmp/check-getting-started.yml similarity index 100% rename from .github/workflows/check-getting-started.yml rename to .github/workflows/tmp/check-getting-started.yml diff --git a/.github/workflows/check-labels.yml b/.github/workflows/tmp/check-labels.yml similarity index 100% rename from .github/workflows/check-labels.yml rename to .github/workflows/tmp/check-labels.yml diff --git a/.github/workflows/check-licenses.yml b/.github/workflows/tmp/check-licenses.yml similarity index 100% rename from .github/workflows/check-licenses.yml rename to .github/workflows/tmp/check-licenses.yml diff --git a/.github/workflows/check-links.yml b/.github/workflows/tmp/check-links.yml similarity index 100% rename from .github/workflows/check-links.yml rename to .github/workflows/tmp/check-links.yml diff --git a/.github/workflows/check-prdoc.yml b/.github/workflows/tmp/check-prdoc.yml similarity index 100% rename from .github/workflows/check-prdoc.yml rename to .github/workflows/tmp/check-prdoc.yml diff --git a/.github/workflows/check-runtime-migration.yml b/.github/workflows/tmp/check-runtime-migration.yml similarity index 100% rename from .github/workflows/check-runtime-migration.yml rename to .github/workflows/tmp/check-runtime-migration.yml diff --git a/.github/workflows/check-semver.yml b/.github/workflows/tmp/check-semver.yml similarity index 100% rename from .github/workflows/check-semver.yml rename to .github/workflows/tmp/check-semver.yml diff --git a/.github/workflows/checks-quick.yml b/.github/workflows/tmp/checks-quick.yml similarity index 100% rename from .github/workflows/checks-quick.yml rename to .github/workflows/tmp/checks-quick.yml diff --git a/.github/workflows/checks.yml b/.github/workflows/tmp/checks.yml similarity index 100% rename from .github/workflows/checks.yml rename to .github/workflows/tmp/checks.yml diff --git a/.github/workflows/cmd-tests.yml b/.github/workflows/tmp/cmd-tests.yml similarity index 100% rename from .github/workflows/cmd-tests.yml rename to .github/workflows/tmp/cmd-tests.yml diff --git a/.github/workflows/cmd.yml b/.github/workflows/tmp/cmd.yml similarity index 100% rename from .github/workflows/cmd.yml rename to .github/workflows/tmp/cmd.yml diff --git a/.github/workflows/command-backport.yml b/.github/workflows/tmp/command-backport.yml similarity index 100% rename from .github/workflows/command-backport.yml rename to .github/workflows/tmp/command-backport.yml diff --git a/.github/workflows/command-inform.yml b/.github/workflows/tmp/command-inform.yml similarity index 100% rename from .github/workflows/command-inform.yml rename to .github/workflows/tmp/command-inform.yml diff --git a/.github/workflows/command-prdoc.yml b/.github/workflows/tmp/command-prdoc.yml similarity index 100% rename from .github/workflows/command-prdoc.yml rename to .github/workflows/tmp/command-prdoc.yml diff --git a/.github/workflows/docs.yml b/.github/workflows/tmp/docs.yml similarity index 100% rename from .github/workflows/docs.yml rename to .github/workflows/tmp/docs.yml diff --git a/.github/workflows/fork-sync-action.yml b/.github/workflows/tmp/fork-sync-action.yml similarity index 100% rename from .github/workflows/fork-sync-action.yml rename to .github/workflows/tmp/fork-sync-action.yml diff --git a/.github/workflows/gitspiegel-trigger.yml b/.github/workflows/tmp/gitspiegel-trigger.yml similarity index 100% rename from .github/workflows/gitspiegel-trigger.yml rename to .github/workflows/tmp/gitspiegel-trigger.yml diff --git a/.github/workflows/issues-auto-add-parachain.yml b/.github/workflows/tmp/issues-auto-add-parachain.yml similarity index 100% rename from .github/workflows/issues-auto-add-parachain.yml rename to .github/workflows/tmp/issues-auto-add-parachain.yml diff --git a/.github/workflows/issues-auto-label.yml b/.github/workflows/tmp/issues-auto-label.yml similarity index 100% rename from .github/workflows/issues-auto-label.yml rename to .github/workflows/tmp/issues-auto-label.yml diff --git a/.github/workflows/misc-notify-burnin-label.yml b/.github/workflows/tmp/misc-notify-burnin-label.yml similarity index 100% rename from .github/workflows/misc-notify-burnin-label.yml rename to .github/workflows/tmp/misc-notify-burnin-label.yml diff --git a/.github/workflows/misc-review-bot-merge-queue.yml b/.github/workflows/tmp/misc-review-bot-merge-queue.yml similarity index 100% rename from .github/workflows/misc-review-bot-merge-queue.yml rename to .github/workflows/tmp/misc-review-bot-merge-queue.yml diff --git a/.github/workflows/misc-sync-templates.yml b/.github/workflows/tmp/misc-sync-templates.yml similarity index 100% rename from .github/workflows/misc-sync-templates.yml rename to .github/workflows/tmp/misc-sync-templates.yml diff --git a/.github/workflows/misc-update-wishlist-leaderboard.yml b/.github/workflows/tmp/misc-update-wishlist-leaderboard.yml similarity index 100% rename from .github/workflows/misc-update-wishlist-leaderboard.yml rename to .github/workflows/tmp/misc-update-wishlist-leaderboard.yml diff --git a/.github/workflows/publish-check-crates.yml b/.github/workflows/tmp/publish-check-crates.yml similarity index 100% rename from .github/workflows/publish-check-crates.yml rename to .github/workflows/tmp/publish-check-crates.yml diff --git a/.github/workflows/publish-claim-crates.yml b/.github/workflows/tmp/publish-claim-crates.yml similarity index 100% rename from .github/workflows/publish-claim-crates.yml rename to .github/workflows/tmp/publish-claim-crates.yml diff --git a/.github/workflows/release-10_rc-automation.yml b/.github/workflows/tmp/release-10_rc-automation.yml similarity index 100% rename from .github/workflows/release-10_rc-automation.yml rename to .github/workflows/tmp/release-10_rc-automation.yml diff --git a/.github/workflows/release-30_publish_release_draft.yml b/.github/workflows/tmp/release-30_publish_release_draft.yml similarity index 100% rename from .github/workflows/release-30_publish_release_draft.yml rename to .github/workflows/tmp/release-30_publish_release_draft.yml diff --git a/.github/workflows/release-50_publish-docker.yml b/.github/workflows/tmp/release-50_publish-docker.yml similarity index 100% rename from .github/workflows/release-50_publish-docker.yml rename to .github/workflows/tmp/release-50_publish-docker.yml diff --git a/.github/workflows/release-99_notif-published.yml b/.github/workflows/tmp/release-99_notif-published.yml similarity index 100% rename from .github/workflows/release-99_notif-published.yml rename to .github/workflows/tmp/release-99_notif-published.yml diff --git a/.github/workflows/release-branchoff-stable.yml b/.github/workflows/tmp/release-branchoff-stable.yml similarity index 100% rename from .github/workflows/release-branchoff-stable.yml rename to .github/workflows/tmp/release-branchoff-stable.yml diff --git a/.github/workflows/release-build-rc.yml b/.github/workflows/tmp/release-build-rc.yml similarity index 100% rename from .github/workflows/release-build-rc.yml rename to .github/workflows/tmp/release-build-rc.yml diff --git a/.github/workflows/release-check-runtimes.yml b/.github/workflows/tmp/release-check-runtimes.yml similarity index 100% rename from .github/workflows/release-check-runtimes.yml rename to .github/workflows/tmp/release-check-runtimes.yml diff --git a/.github/workflows/release-clobber-stable.yml b/.github/workflows/tmp/release-clobber-stable.yml similarity index 100% rename from .github/workflows/release-clobber-stable.yml rename to .github/workflows/tmp/release-clobber-stable.yml diff --git a/.github/workflows/release-reusable-s3-upload.yml b/.github/workflows/tmp/release-reusable-s3-upload.yml similarity index 100% rename from .github/workflows/release-reusable-s3-upload.yml rename to .github/workflows/tmp/release-reusable-s3-upload.yml diff --git a/.github/workflows/release-srtool.yml b/.github/workflows/tmp/release-srtool.yml similarity index 100% rename from .github/workflows/release-srtool.yml rename to .github/workflows/tmp/release-srtool.yml diff --git a/.github/workflows/subsystem-benchmarks.yml b/.github/workflows/tmp/subsystem-benchmarks.yml similarity index 100% rename from .github/workflows/subsystem-benchmarks.yml rename to .github/workflows/tmp/subsystem-benchmarks.yml diff --git a/.github/workflows/tests-linux-stable-coverage.yml b/.github/workflows/tmp/tests-linux-stable-coverage.yml similarity index 100% rename from .github/workflows/tests-linux-stable-coverage.yml rename to .github/workflows/tmp/tests-linux-stable-coverage.yml diff --git a/.github/workflows/tests-linux-stable.yml b/.github/workflows/tmp/tests-linux-stable.yml similarity index 100% rename from .github/workflows/tests-linux-stable.yml rename to .github/workflows/tmp/tests-linux-stable.yml diff --git a/.github/workflows/tests-misc.yml b/.github/workflows/tmp/tests-misc.yml similarity index 100% rename from .github/workflows/tests-misc.yml rename to .github/workflows/tmp/tests-misc.yml diff --git a/.github/workflows/tests.yml b/.github/workflows/tmp/tests.yml similarity index 100% rename from .github/workflows/tests.yml rename to .github/workflows/tmp/tests.yml diff --git a/polkadot/runtime/westend/src/weights/pallet_balances.rs b/polkadot/runtime/westend/src/weights/pallet_balances.rs index 5e91f31920ca..29cbcd13f796 100644 --- a/polkadot/runtime/westend/src/weights/pallet_balances.rs +++ b/polkadot/runtime/westend/src/weights/pallet_balances.rs @@ -17,9 +17,9 @@ //! Autogenerated weights for `pallet_balances` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2024-05-06, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2024-11-07, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` -//! HOSTNAME: `runner-unxyhko3-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz` +//! HOSTNAME: `704e6b335cfe`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("westend-dev")`, DB CACHE: 1024 // Executed Command: @@ -31,7 +31,7 @@ // --extrinsic=* // --wasm-execution=compiled // --heap-pages=4096 -// --json-file=/builds/parity/mirrors/polkadot-sdk/.git/.artifacts/bench.json +// --json-file=bench.json // --pallet=pallet_balances // --chain=westend-dev // --header=./polkadot/file_header.txt @@ -54,8 +54,8 @@ impl pallet_balances::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `3593` - // Minimum execution time: 43_248_000 picoseconds. - Weight::from_parts(43_872_000, 0) + // Minimum execution time: 50_740_000 picoseconds. + Weight::from_parts(52_104_000, 0) .saturating_add(Weight::from_parts(0, 3593)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -66,8 +66,8 @@ impl pallet_balances::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `3593` - // Minimum execution time: 33_990_000 picoseconds. - Weight::from_parts(34_693_000, 0) + // Minimum execution time: 39_206_000 picoseconds. + Weight::from_parts(41_321_000, 0) .saturating_add(Weight::from_parts(0, 3593)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -78,8 +78,8 @@ impl pallet_balances::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `174` // Estimated: `3593` - // Minimum execution time: 12_681_000 picoseconds. - Weight::from_parts(13_183_000, 0) + // Minimum execution time: 15_753_000 picoseconds. + Weight::from_parts(16_232_000, 0) .saturating_add(Weight::from_parts(0, 3593)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -90,8 +90,8 @@ impl pallet_balances::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `174` // Estimated: `3593` - // Minimum execution time: 17_474_000 picoseconds. - Weight::from_parts(18_063_000, 0) + // Minimum execution time: 23_191_000 picoseconds. + Weight::from_parts(23_752_000, 0) .saturating_add(Weight::from_parts(0, 3593)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -102,8 +102,8 @@ impl pallet_balances::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `103` // Estimated: `6196` - // Minimum execution time: 45_699_000 picoseconds. - Weight::from_parts(46_099_000, 0) + // Minimum execution time: 52_266_000 picoseconds. + Weight::from_parts(53_260_000, 0) .saturating_add(Weight::from_parts(0, 6196)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -114,8 +114,8 @@ impl pallet_balances::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `3593` - // Minimum execution time: 42_453_000 picoseconds. - Weight::from_parts(43_133_000, 0) + // Minimum execution time: 49_704_000 picoseconds. + Weight::from_parts(51_015_000, 0) .saturating_add(Weight::from_parts(0, 3593)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -126,8 +126,8 @@ impl pallet_balances::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `174` // Estimated: `3593` - // Minimum execution time: 15_066_000 picoseconds. - Weight::from_parts(15_605_000, 0) + // Minimum execution time: 18_640_000 picoseconds. + Weight::from_parts(18_994_000, 0) .saturating_add(Weight::from_parts(0, 3593)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -139,11 +139,11 @@ impl pallet_balances::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0 + u * (136 ±0)` // Estimated: `990 + u * (2603 ±0)` - // Minimum execution time: 14_180_000 picoseconds. - Weight::from_parts(14_598_000, 0) + // Minimum execution time: 17_524_000 picoseconds. + Weight::from_parts(17_657_000, 0) .saturating_add(Weight::from_parts(0, 990)) - // Standard Error: 13_221 - .saturating_add(Weight::from_parts(13_422_901, 0).saturating_mul(u.into())) + // Standard Error: 14_114 + .saturating_add(Weight::from_parts(15_336_960, 0).saturating_mul(u.into())) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(u.into()))) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(u.into()))) .saturating_add(Weight::from_parts(0, 2603).saturating_mul(u.into())) @@ -152,24 +152,25 @@ impl pallet_balances::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 5_130_000 picoseconds. - Weight::from_parts(5_257_000, 0) + // Minimum execution time: 6_628_000 picoseconds. + Weight::from_parts(6_855_000, 0) .saturating_add(Weight::from_parts(0, 0)) } fn burn_allow_death() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 27_328_000 picoseconds. - Weight::from_parts(27_785_000, 0) + // Minimum execution time: 31_394_000 picoseconds. + Weight::from_parts(32_226_000, 0) .saturating_add(Weight::from_parts(0, 0)) } fn burn_keep_alive() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 17_797_000 picoseconds. - Weight::from_parts(18_103_000, 0) + // Minimum execution time: 21_193_000 picoseconds. + Weight::from_parts(22_218_000, 0) .saturating_add(Weight::from_parts(0, 0)) } } +