9d052b7e09
Make BlockNumberProvider::set_block_number available in tests / std ( #3974 )
...
This function is currently only exposed to runtime-benchmarks, where it
should be available in all tests.
Also made it available in `std` because this is how `set_block_number`
works in FRAME System, however, not sure if it is needed in the latest
std/no_std paradigm.
---------
Co-authored-by: Bastian Köcher <git@kchr.de >
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
2024-04-04 16:20:09 +00:00
Shawn Tabrizi
6bbc2292e4
Improve Weight Template and API ( #13355 )
...
* improve weights template and api
* follow template
2023-02-12 15:01:06 +00:00
Shawn Tabrizi
700a732170
fix up template ( #13205 )
2023-01-29 17:23:15 +01:00
1b27ae9549
Add Proof Size to Weight Output ( #11637 )
...
* initial impl
* add template test
* linear fit proof size
* always record proof when tracking storage
* calculate worst case pov
* remove duplicate worst case
* cargo run --quiet --profile=production --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark pallet --chain=dev --steps=50 --repeat=20 --pallet=pallet_assets --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/assets/src/weights.rs --template=./.maintain/frame-weight-template.hbs
* more comment output
* add cli for worst case map size
* update name
* clap does not support underscores
* rename
* expose worst case map values
* improve some comments
* cargo run --quiet --profile=production --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark pallet --chain=dev --steps=50 --repeat=20 --pallet=pallet_assets --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/assets/src/weights.rs --template=./.maintain/frame-weight-template.hbs
* update template
* cargo run --quiet --profile=production --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark pallet --chain=dev --steps=50 --repeat=20 --pallet=pallet_assets --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/assets/src/weights.rs --template=./.maintain/frame-weight-template.hbs
* fix fmt
* more fmt
* more fmt
* Dont panic when there is no proof
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Fix test features
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Whitelist :extrinsic_index
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Use whitelist when recording proof
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Add logs
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Add PoV testing pallet
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Deploy PoV testing pallet
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Storage benches reside in the PoV pallet
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Linear regress PoV per component
Splits the PoV calculation into "measured" and "estimated".
The measured part is reported by the Proof recorder and linear
regressed over all components at once.
The estimated part is calculated as worst-case by using the max
PoV size per storage access and calculating one linear regress per
component. This gives each component a (possibly) independent PoV.
For now the measured size will always be lower than the PoV on
Polkadot since it is measured on an empty snapshot. The measured
part is therefor only used as diagnostic for debugging.
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Put PoV into the weight templates
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* fmt
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Extra alanysis choise for PoV
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Add+Fix tests
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Make benches faster
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Cleanup
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Use same template comments
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* ".git/.scripts/bench-bot.sh" pallet dev pallet_balances
* ".git/.scripts/bench-bot.sh" pallet dev pallet_democracy
* Update referenda mock BlockWeights
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Take measured value size into account
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* clippy
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* ".git/.scripts/bench-bot.sh" pallet dev pallet_scheduler
* WIP
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* proof_size: None
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* WIP
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* WIP
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* WIP
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* ugly, but works
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* WIP
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* WIP
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* WIP
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* wup
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* WIP
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* WIP
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* WIP
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* WIP
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Add pov_mode attribute to the benchmarks! macro
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Use pov_mode attribute in PoV benchmarking
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Update tests
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Scheduler, Whitelist: Add pov_mode attr
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Update PoV weights
* Add CLI arg: default-pov-mode
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Fix tests
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* fmt
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* fix
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Revert "Update PoV weights"
This reverts commit 2f3ac2387396470b118122a6ff8fa4ee12216f4b.
* Revert "WIP"
This reverts commit c34b538cd2bc45da4544e887180184e30957904a.
* Revert first approach
This reverts commit range 8ddaa2fffe5930f225a30bee314d0b7c94c344dd^..4c84f8748e5395852a9e0e25b0404953fee1a59e
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Clippy
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Add extra benchmarks
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* ".git/.scripts/commands/bench/bench.sh" pallet dev pallet_alliance
* ".git/.scripts/commands/bench/bench.sh" pallet dev pallet_whitelist
* ".git/.scripts/commands/bench/bench.sh" pallet dev pallet_scheduler
* fmt
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Clippy
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Clippy 🤦
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Add reference benchmarks
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Fix doc comments
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Undo logging
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Add 'Ignored' pov_mode
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Allow multiple attributes per benchmark
Turns out that the current benchmarking syntax does not support
multiple attributes per bench 🤦 . Changing it to support that
since otherwise the `pov_mode` would conflict with the others.
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Validate pov_mode syntax
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Ignore PoV for all contract benchmarks
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Test
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* test
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Bump macro recursion limit
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* fmt
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Update contract weights
They dont have a PoV component anymore.
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* fix test ffs
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* pov_mode is unsupported in V2 syntax
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Fix pallet ui tests
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* update pallet ui
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Fix pallet ui tests
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Update weights
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Co-authored-by: Parity Bot <admin@parity.io >
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Co-authored-by: command-bot <>
Co-authored-by: Your Name <you@example.com >
2023-01-26 22:35:39 +00:00
Shawn Tabrizi
e1f38d95ec
Add with_weight extrinsic ( #12848 )
...
* add with weight extrinsic
* improve test
2022-12-05 21:29:29 +00:00
Shawn Tabrizi
78cddd7631
New Weights for All Pallets ( #12325 )
...
* new weights for everything
* fix
* fmt
* new batch
* fmt
* new batch
* Update run_all_benchmarks.sh
* add headers
* update weights
* Update lib.rs
* block and extrinsic weight
2022-11-08 18:50:28 +00:00
Shawn Tabrizi and parity-processbot
6ec86b215a
Companion for #12457 (Bounded Multisig) ( #1793 )
...
* u16 -> u32
* update lockfile for {"polkadot", "substrate"}
Co-authored-by: parity-processbot <>
2022-10-25 19:49:33 +00:00
Shawn Tabrizi and parity-processbot
d40b31791d
Companion for #12457 (Bounded Multisig) ( #6172 )
...
* u16 -> u32
* update lockfile for {"substrate"}
Co-authored-by: parity-processbot <>
2022-10-25 19:22:29 +00:00
Shawn Tabrizi and parity-processbot
e475638827
Make Multisig Pallet Bounded ( #12457 )
...
* Bounded multisig
* just use u32
Co-authored-by: parity-processbot <>
2022-10-25 18:34:20 +00:00
Shawn Tabrizi
932e1a334b
use headers on templates ( #12546 )
2022-10-21 21:46:25 +00:00
Shawn Tabrizi and parity-processbot
b38c4165a4
Dont use benchmark range on constant functions ( #12456 )
...
* dont use benchmark range on constant function
* update weights
* fix
* new weights
* Update frame/examples/basic/src/benchmarking.rs
Co-authored-by: parity-processbot <>
2022-10-12 16:32:10 +00:00
Shawn Tabrizi and parity-processbot
bccffcad12
Manual Para Lock ( #5451 )
...
* remove para lock check for now
* fmt
* manual para lock
* expose schedule_code_upgrade and set_current_head
* extrinsics and benchmarks
* use zero
* add weights
* fix variable name
* add and fix comments
* fix weights
* add back default lock
Co-authored-by: parity-processbot <>
2022-10-11 19:22:38 +00:00
Shawn Tabrizi
023aa03fea
Avoid Unstable Sort ( #12455 )
...
* dont use unstable sort
* remove comment
* add clippy rule
2022-10-11 18:41:43 +00:00
Shawn Tabrizi and parity-processbot
bb2a1a0220
Companion for #12283 (Anon -> Pure Proxy) ( #1667 )
...
* anon -> pure
* fn pure -> fn create_pure
* update lockfile for {"polkadot", "substrate"}
Co-authored-by: parity-processbot <>
2022-09-22 19:10:13 +00:00
Shawn Tabrizi and parity-processbot
2b07b39911
Companion for #12283 (Anon -> Pure Proxy) ( #6038 )
...
* anon -> pure
* fn pure -> fn create_pure
* update lockfile for {"substrate"}
Co-authored-by: parity-processbot <>
2022-09-22 15:13:43 +00:00
Shawn Tabrizi and joe petrowski
34bfd2ad00
Rename anonymous to pure proxy ( #12283 )
...
* rename anon to pure proxy
* remove old weight comments
* fix merge
* Update frame/proxy/src/lib.rs
Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
* fn pure -> fn create_pure
Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
2022-09-22 14:15:31 +00:00
Shawn Tabrizi
dd1f1c4d7b
fix sp-weight std ( #12265 )
2022-09-14 15:43:19 +00:00
23a81ee1e3
Remove RefTimeWeight ( #12157 )
...
* update api
* update
* remove unused
* remove `one` api
* fix unused
* fmt
* add saturating accrue
* remove `Weight::new()`
* use some macros
* div makes no sense
* Update weight_v2.rs
* missed some
* more patch
* fixes
* more fixes
* more fix
* more fix
* remove RefTimeWeight
* Update frame/contracts/src/storage.rs
Co-authored-by: Alexander Theißen <alex.theissen@me.com >
* not needed
* Fixes
Co-authored-by: Alexander Theißen <alex.theissen@me.com >
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
2022-09-02 18:19:49 +00:00
2c1e88522c
Companion for Weight v1.5 Follow Up ( #1584 )
...
* fixes
* oopsie
* [ci] Apply cargo-fmt
* fixes
* [ci] Apply cargo-fmt
* fixes
* fix cumulus template
* fix merge
* update lockfile for {"polkadot", "substrate"}
Co-authored-by: paritytech-ci <paritytech-ci@parity.io >
Co-authored-by: parity-processbot <>
2022-09-01 19:25:05 +00:00
Shawn Tabrizi and parity-processbot
e28bf2e476
Companion for Weight v1.5 Follow Up ( #5949 )
...
* updates
* remove new
* fix up some stuff
* fix cargo files
* fix
* fix template
* update lockfile for {"substrate"}
* Update block_weights.rs
* remove unused
* remove unused
Co-authored-by: parity-processbot <>
2022-09-01 19:00:51 +00:00
Shawn Tabrizi
1df4561676
Weight v1.5 Follow Ups ( #12155 )
...
* update api
* update
* remove unused
* remove `one` api
* fix unused
* fmt
* add saturating accrue
* remove `Weight::new()`
* use some macros
* div makes no sense
* Update weight_v2.rs
* missed some
* more patch
* fixes
* more fixes
* more fix
* more fix
* Update frame/support/src/weights/weight_v2.rs
* not needed
* fix weight file
2022-09-01 17:48:03 +00:00
Shawn Tabrizi and parity-processbot
48d4f1c57d
Companion for Weight v1.5 ( #1581 )
...
* cargo test -p cumulus-primitives-utility
* cargo test -p cumulus-pallet-xcmp-queue
* cargo test -p cumulus-pallet-xcm
* cargo test -p cumulus-pallet-dmp-queue
* cargo test -p pallet-template
* cargo test -p cumulus-test-runtime
* fix weights
* fix more weights
* cargo test -p parachains-common
* cargo test -p parachain-template-runtime
* fix weights import
* cargo test -p collectives-polkadot-runtime
* cargo test -p contracts-rococo-runtime
* more
* unused
* fixes
* Update benchmarking.rs
* Update lib.rs
* Update lib.rs
* fix
* fix bug in conversion
* update lockfile for {"polkadot", "substrate"}
Co-authored-by: parity-processbot <>
2022-08-31 12:24:42 +00:00
Shawn Tabrizi and parity-processbot
28e94d97dd
Companion for Weight v1.5 ( #5943 )
...
* fix to latest substrate pr
* update weights
* cargo build -p polkadot-runtime-parachains
* fix xcm-builder
* fix import
* fix a bunch
* fix a bunch of weight stuff
* kusama compile
* unused
* builds
* maybe fix
* cargo test -p polkadot-runtime-parachains
* xcm simulator example
* fix tests
* xcm sim fuzz
* fix runtime tests
* remove unused
* fix integration tests
* scalar div
* update lockfile for {"substrate"}
Co-authored-by: parity-processbot <>
2022-08-31 11:59:39 +00:00
Shawn Tabrizi
30951822ba
Weight v1.5: Opaque Struct ( #12138 )
...
* initial idea
* update frame_support
* update a bunch more
* add ord
* adjust RuntimeDbWeight
* frame_system builds
* re-export
* frame_support tests pass
* frame_executive compile
* frame_executive builds
* frame_system tests passing
* pallet-utility tests pass
* fix a bunch of pallets
* more
* phragmen
* state-trie-migration
* scheduler and referenda
* pallet-election-provider-multi-phase
* aura
* staking
* more
* babe
* balances
* bunch more
* sudo
* transaction-payment
* asset-tx-payment
* last pallets
* fix alliance merge
* fix node template runtime
* fix pallet-contracts cc @athei
* fix node runtime
* fix compile on runtime-benchmarks feature
* comment
* fix frame-support-test
* fix more tests
* weight regex
* frame system works
* fix a bunch
* more
* more
* more
* more
* more
* more fixes
* update templates
* fix contracts benchmarks
* Update lib.rs
* Update lib.rs
* fix ui
* make scalar saturating mul const
* more const functions
* scalar div
* refactor using constant functions
* move impl
* fix overhead template
* use compactas
* Update lib.rs
2022-08-31 11:26:13 +00:00
Shawn Tabrizi and Oliver Tale-Yazdi
5595c96d03
use generated preimage weight ( #5904 )
...
* use generated preimage weight
* cargo update -p sp-io
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
2022-08-28 12:58:01 +00:00
Shawn Tabrizi
b4caec7f31
make weightinfo pub ( #12074 )
2022-08-19 19:08:31 +02:00
Shawn Tabrizi and Bastian Köcher
1f0a1cc0e5
Governance 2 (Part 1, Non-Controversial Changes) ( #5892 )
...
* initial stuff
* make copy data from kusama
* Update runtime/kusama/src/governance/old.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Update runtime/kusama/src/governance/mod.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2022-08-16 20:33:09 +00:00
Shawn Tabrizi
2fd028156e
Fix Origins Used in Runtime Benchmarks ( #12037 )
...
* fix identity benchmark origin
* fix benchmarking macro
* bounties
* democracy
* scheduler
* tips and treasury
* unused
* dunno, this is causing issues
2022-08-16 10:36:34 +00:00
Shawn Tabrizi and Gavin Wood
6b0203c8c4
Further Improve Gov V2 Stuff ( #12028 )
...
* refactor and improve successful origin
* use appropriate origin for creating referendum
* fmt
* add setup tally feature for benchmarks
* feedback updates
* fmt
* Update frame/referenda/src/benchmarking.rs
Co-authored-by: Gavin Wood <gavin@parity.io >
* feedback on `setup` trait
* fix
Co-authored-by: Gavin Wood <gavin@parity.io >
2022-08-14 18:36:19 +00:00
Shawn Tabrizi
e5ed764d39
Add Benchmarking Instance to Pallets ( #12026 )
...
* benchmark instance
* add benchmark instance to conviction voting
* instance on bags list
* fmt
2022-08-13 16:07:10 +01:00
Shawn Tabrizi
2950340edc
Fix Gov V2 Benchmarks ( #12022 )
...
* better benchmark log
* Update lib.rs
* fix gov2 benchmarks
* saturating math + fmt
* add comment
2022-08-13 12:05:39 +00:00
Shawn Tabrizi
187735908f
better benchmark log ( #12016 )
...
* better benchmark log
* Update lib.rs
2022-08-12 15:34:00 +00:00
Shawn Tabrizi and parity-processbot
a6c95cbb13
add decode with depth limit to opaque types ( #11947 )
...
Co-authored-by: parity-processbot <>
2022-08-11 14:39:56 +00:00
Shawn Tabrizi
043b1697c7
Use #[pallet::unbounded] tag in FRAME System ( #11946 )
...
* use unbounded in system
* update ui tests
2022-08-10 13:58:52 +00:00
Shawn Tabrizi
e7e2018203
nit improvements to pallet template ( #11968 )
2022-08-03 13:35:47 +02:00
Shawn Tabrizi and Oliver Tale-Yazdi
8dbbf5dd5a
Use Saturating Math in XCM ( #5845 )
...
* saturating xcm
* Even more saturating
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
2022-08-01 10:55:51 +00:00
Shawn Tabrizi and parity-processbot
72522429a7
Make New Storage Layer Truly Default ( #11918 )
...
* with storage layer truly default
* fmt
Co-authored-by: parity-processbot <>
2022-07-26 17:49:11 +00:00
Shawn Tabrizi
5c477eb024
Un-deprecate Transactional Macro ( #11807 )
...
* un-deprecate transactional macro
* add transactional back to nomination pools
2022-07-09 13:39:26 +00:00
Shawn Tabrizi and joepetrowski
5ed97fd59a
Lower all Assets / NFT deposits by 10x ( #1332 )
...
* lower all deposits by 10x
* undo rococo stuff
* Apply suggestions from code review
* update asset deposits
* align statemint deposit ratios
Co-authored-by: joepetrowski <joe@parity.io >
2022-06-14 17:13:11 +00:00
Shawn Tabrizi
946c45a7dd
MEL for Ranked Collective ( #11602 )
2022-06-06 14:47:37 +00:00
8e7adaf283
Storage Layer for All FRAME Extrinsics ( #11431 )
...
* add new trait
* implement DispatchableWithStorageLayer
* at least one transactional
* all dispatch is at least transactional
* storage_layer api
* add test
* storage layer tests
* deprecate transactional tag
* i guess no reason to deprecate
* remove transactional from batch_all
* update tests
* extend trait
* cargo run --quiet --profile=production --features runtime-benchmarks --manifest-path bin/node/cli/Cargo.toml -- benchmark pallet --chain=dev --steps=50 --repeat=20 --pallet=pallet_balances --extrinsic=* --execution=wasm --wasm-execution=compiled --output=./frame/balances/src/weights.rs --template=./.maintain/frame-weight-template.hbs
* cargo run --quiet --profile=production --features runtime-benchmarks --manifest-path bin/node/cli/Cargo.toml -- benchmark pallet --chain=dev --steps=50 --repeat=20 --pallet=pallet_balances --extrinsic=* --execution=wasm --wasm-execution=compiled --output=./frame/balances/src/weights.rs --template=./.maintain/frame-weight-template.hbs
* cargo run --quiet --profile=production --features runtime-benchmarks --manifest-path bin/node/cli/Cargo.toml -- benchmark pallet --chain=dev --steps=50 --repeat=20 --pallet=pallet_staking --extrinsic=* --execution=wasm --wasm-execution=compiled --output=./frame/staking/src/weights.rs --template=./.maintain/frame-weight-template.hbs
* fix copy paste name
* cargo run --quiet --profile=production --features runtime-benchmarks --manifest-path bin/node/cli/Cargo.toml -- benchmark pallet --chain=dev --steps=50 --repeat=20 --pallet=pallet_utility --extrinsic=* --execution=wasm --wasm-execution=compiled --output=./frame/utility/src/weights.rs --template=./.maintain/frame-weight-template.hbs
* Create run_all_benchmarks.sh
* uncomment build
* update number of steps and repeats
* add skip build
* Update run_all_benchmarks.sh
* Update run_all_benchmarks.sh
* new benchmarks
* Update frame/support/src/traits/dispatch.rs
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* Update frame/support/src/traits/dispatch.rs
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* Update frame/support/test/tests/storage_layers.rs
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* Update frame/support/test/tests/storage_layers.rs
* weights
* Update dispatch.rs
* doc link
* decl_macro support
Co-authored-by: Parity Bot <admin@parity.io >
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
2022-05-26 19:28:32 +00:00
d9f33dc7e9
Create Script to Run All Benchmarks ( #11493 )
...
* Create run_all_benchmarks.sh
* Update run_all_benchmarks.sh
* Update run_all_benchmarks.sh
* Review fixes
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Update scripts/run_all_benchmarks.sh
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* typo
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* add default for $1
* Typo
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Update run_all_benchmarks.sh
* new weights on benchmarking machine
* prefer `--chain=dev`
* fix compile
* fix command
* fmt
* dont use square brackets
* Extend doc
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Remove +nightly
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Add error file an run execute everything optimistically
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2022-05-23 16:56:42 +00:00
Shawn Tabrizi and Oliver Tale-Yazdi
c980c39026
Fix State Trie Migration Benchmarks ( #11502 )
...
* enable signed migrations in benchmarks
* T instead of Test
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Remove 'mut'
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
2022-05-23 10:10:23 +00:00
Shawn Tabrizi
9d88e462f0
Fix Cumulus Compile (into_account_truncating) ( #1277 )
...
* fix cumulus compile
* Update Cargo.lock
2022-05-19 19:38:57 +00:00
Shawn Tabrizi and parity-processbot
b61c7515d7
Rename BagsList to VoterList and Add Score ( #5463 )
...
* add migration for simple pallet rename
* fmt
* also add score migration
* add try-runtime feature to bags list
* add pre_upgrade to pallet rename
* update lockfile for {"substrate"}
Co-authored-by: parity-processbot <>
2022-05-19 14:33:24 -04:00
Shawn Tabrizi and Kian Paimani
927019a734
Add Score to Bags List ( #11357 )
...
* Add Score to Bags List
* fix ordering
* make compile
* in progress migration
* make migration compile
* remove old check
* remove runtime specific migration
* fix warning
* Apply suggestions from code review
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* improve migration
* fix
* fix merge
* fmt
* Update migrations.rs
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
2022-05-19 16:40:31 +00:00
Shawn Tabrizi
6ceca1d373
Companion for Substrate #10719 (Into Account Truncating) ( #1262 )
...
* into account truncating
* more truncating
* Update Cargo.lock
2022-05-17 22:29:38 +00:00
27f08fec3a
Explicitly note that existing AccountIdConversion is truncating and add fallible try_into... ( #10719 )
...
* note truncating, add fallible try_into
* fmt
* migrate all to `truncating`
* typo
* uno mas
* Update primitives/runtime/src/traits.rs
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* check the bytes before and after are sensible
* fmt
* Update lib.rs
* Update primitives/runtime/src/traits.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2022-05-17 21:12:02 +00:00
Shawn Tabrizi
101debbffa
remove deprecated ( #11432 )
2022-05-17 09:50:03 +00:00
Shawn Tabrizi and parity-processbot
fd13ef94ba
Companion for Polkadot #5536 (Remove Duplicate Traits) ( #1264 )
...
* change deps
* update lockfile for {"polkadot"}
Co-authored-by: parity-processbot <>
2022-05-17 07:12:13 +00:00
Shawn Tabrizi
2956a97aae
Remove Duplicate Traits ( #5536 )
...
* remove duplicate traits
* fmt
2022-05-17 06:37:21 +00:00
Shawn Tabrizi and parity-processbot
d14687b2ae
Companion to #11389 (Uniques Rename) ( #1256 )
...
* rename
* weight rename
* update lockfile for {"substrate"}
* cargo update -p xcm
Co-authored-by: parity-processbot <>
2022-05-16 17:53:14 +00:00
Shawn Tabrizi
432cae1a2b
Migrate some Pallets to Named Events ( #5423 )
...
* auctions
* claims
* registrar
* Update purchase.rs
* crowdloan
* slots
* comma
2022-05-13 16:49:19 +00:00
Shawn Tabrizi
479dc63af4
Only read storage after origin check ( #11391 )
...
* only read storage after origin check
* fmt
2022-05-11 11:27:26 +00:00
Shawn Tabrizi and parity-processbot
46e20f3cc2
Companion for Force Batch ( #1236 )
...
* add force-batch weights
* update lockfile for {"polkadot"}
Co-authored-by: parity-processbot <>
2022-05-05 15:15:43 +00:00
Shawn Tabrizi
a4bb42d85c
Backfill missing TOML features ( #11351 )
...
* only check std
* add default-features=false
* Revert "add default-features=false"
This reverts commit bc9453757a1df670f418a2d57ee4ce203425ab1b.
* missing features only to non-optional
2022-05-05 11:43:52 +00:00
Shawn Tabrizi
7d5202341b
Basic TOML Lint ( #11348 )
...
* basic lint
* lint ordering
2022-05-04 13:38:54 +00:00
Shawn Tabrizi and Bastian Köcher
e8c688e301
Update docs ( #11313 )
...
* Update docs
* Update primitives/runtime/src/traits.rs
* Update primitives/runtime/src/traits.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2022-05-04 00:54:08 +00:00
Shawn Tabrizi
dde3a74102
bump sp-io and parity-db
2022-05-04 02:00:17 +02:00
Shawn Tabrizi and Keith Yeung
6d6f1e173b
Update Pallet Bags List to use ListError ( #11342 )
...
* extract list error changes from kiz-revamp-sorted-list-providers-2-approval-stake
* some fixes
* weight -> score
* Update tests.rs
* Update tests.rs
* more fixes
* remove score updated event
* Update frame/bags-list/src/lib.rs
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
2022-05-03 23:13:58 +01:00
Shawn Tabrizi
e1e4894154
add missing features to node-template-runtime ( #11326 )
2022-04-30 23:49:57 +02:00
3f56e1ff55
Add XCM Benchmarks to Kusama ( #4442 )
...
* add xcm benchmarks to kusama
* Create temp
* cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=pallet_xcm_benchmarks::generic --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --template=./xcm/pallet-xcm-benchmarks/template.hbs --output=./runtime/kusama/src/weights/xcm/pallet_xcm_benchmarks_generic.rs
* cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=pallet_xcm_benchmarks::fungible --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --template=./xcm/pallet-xcm-benchmarks/template.hbs --output=./runtime/kusama/src/weights/xcm/pallet_xcm_benchmarks_fungible.rs
* add weights to kusama runtime
* Fixes
* Fixes
* Fixes
* Fixes
* cargo run --quiet --profile=production --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=pallet_xcm_benchmarks::fungible --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --template=./xcm/pallet-xcm-benchmarks/template.hbs --output=./runtime/kusama/src/weights/xcm/pallet_xcm_benchmarks_fungible.rs
* cargo run --quiet --profile=production --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=pallet_xcm_benchmarks::generic --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --template=./xcm/pallet-xcm-benchmarks/template.hbs --output=./runtime/kusama/src/weights/xcm/pallet_xcm_benchmarks_generic.rs
* use new benchmark
* Fix license year
* update substrate deps
* Add Configuration::ActiveConfig storage key to the whitelist
* Update Cargo.lock
Co-authored-by: Parity Bot <admin@parity.io >
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
2022-04-14 10:50:06 +02:00
Shawn Tabrizi
4d837bac88
Custom Slots Migration for Fund Index Change ( #5227 )
...
* new migration
* use new migration in runtime
2022-04-07 10:51:37 -04:00
Shawn Tabrizi and parity-processbot
9fd79f9dd8
Companion for #10808 (Transactional Layer Limit) ( #5232 )
...
* use unchecked for backwards compat
* update lockfile for {"substrate"}
Co-authored-by: parity-processbot <>
2022-04-02 18:05:03 +00:00
Shawn Tabrizi and Alexander Theißen
96ee61179a
Add Limit to Tranasctional Layers ( #10808 )
...
* introduce hard limit to transactional
* add single layer transactional
* remove single_transactional
* Update mod.rs
* add tests
* maybe fix contracts cc @athei
* fmt
* fix contract logic
* Update frame/contracts/src/exec.rs
Co-authored-by: Alexander Theißen <alex.theissen@me.com >
* Update exec.rs
* add unchecked and custom errors
* Update lib.rs
* Apply suggestions from code review
Co-authored-by: Alexander Theißen <alex.theissen@me.com >
* Replace storage access by atomics
Co-authored-by: Alexander Theißen <alex.theissen@me.com >
2022-04-02 17:12:54 +00:00
Shawn Tabrizi and Kian Paimani
37b8bc4886
Migrate Slot Depositors in Crowdloan Migration ( #5173 )
...
* Also migrate lease depositors
* bump spec version
* Update runtime/common/src/crowdloan/migration.rs
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
2022-03-30 18:41:08 +00:00
Shawn Tabrizi
4c8bd4383c
remove misleading sentence ( #11125 )
2022-03-27 06:43:47 +00:00
Shawn Tabrizi and parity-processbot
cbd6570c56
Companion for Update Bounty Deposit ( #11014 ) ( #5183 )
...
* update bounty deposit config
* fix
* update lockfile for {"substrate"}
Co-authored-by: parity-processbot <>
2022-03-25 11:09:32 -04:00
Shawn Tabrizi and Dan Shields
a95dbedee6
Improve Bounties and Child Bounties Deposit Logic ( #11014 )
...
* basic idea
* make tests better
* update bounties pallet to also have similar logic
* new test verifies logic for bounty pallet
* add test for new child logic
* better name
* make `node` compile with bounties changes
* * formatting
* use uniform notion of parent and child, no "master" or "general" entity
* README updated to match comments
* Revert "* formatting"
This reverts commit 1ab729e7c23b5db24a8e229d487bbc2ed81d38c3.
* update bounties logic to use bounds
* fix child
* bounties test for max
* update tests
* check min bound
* update node
* remove stale comment
* Update frame/bounties/src/lib.rs
Co-authored-by: Dan Shields <nukemandan@protonmail.com >
2022-03-25 13:42:54 +00:00
Shawn Tabrizi
5c9f23af13
Fix generate_storage_alias! ( #11102 )
...
* add test
* fix issues
* make order intuitive
2022-03-23 22:10:13 +00:00
Shawn Tabrizi
4d3f6a202e
Remove Superfluous Test in Crowdloan Migration ( #5158 )
...
* remove stupid check
* here too
2022-03-18 15:06:45 +00:00
Shawn Tabrizi
dd6fdf0f14
Fix Benchmark Regressions in Polkadot Parachain Auction System ( #5139 )
...
* integration tests use offset
* fix slots
* fix auctions
* add auctions benchmark
* fix crowdloan
2022-03-17 15:56:50 +00:00
Shawn Tabrizi and Parity Bot
a69330f081
Add Child Bounties to Polkadot and Kusama ( #4863 )
...
* add to kusama
* polkadot too
* cargo run --quiet --profile=production --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=pallet_child_bounties --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/
* cargo run --quiet --profile=production --features=runtime-benchmarks -- benchmark --chain=polkadot-dev --steps=50 --repeat=20 --pallet=pallet_child_bounties --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/polkadot/src/weights/
* Update Cargo.lock
* Update runtime/kusama/src/lib.rs
* Update runtime/polkadot/src/lib.rs
* import
Co-authored-by: Parity Bot <admin@parity.io >
2022-03-16 13:41:16 +00:00
Shawn Tabrizi and Oliver Tale-Yazdi
64f6664691
Feedback from @XLC for Referenda Pallet ( #10991 )
...
* feedback from @xlc
* english
* fmt
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
2022-03-08 12:48:30 +00:00
Shawn Tabrizi and Gav Wood
ba8c882a7a
Tidy Democracy ( #10867 )
...
* add test
* Assorted refactorings
* complete test
* saturating math
* final check
* use `default`
Co-authored-by: Gav Wood <gavin@parity.io >
2022-02-16 15:57:54 +00:00
Shawn Tabrizi
eeca2bb61a
Fix Runtime Benchmarks Feature Flag in Parachain Template ( #991 )
...
* Update Cargo.toml
* add checks to ci
2022-02-16 13:33:08 +01:00
Shawn Tabrizi and Zeke Mostov
d5f5127354
Allow two Parachains to swap ( #4772 )
...
* add support for parachain to parachain swap
* enable swaps on kusama
* sanity test in paras_registrar
* express more errors
* finish up tests
* fmt
* make fields pub
* refactor integration tests to use real accounts
* Update Crowdloan Account to FundIndex (#4824 )
* update fund account to use index
* fix integration tests
* Update runtime/common/src/crowdloan.rs
* finish parachain swap test
* format
* fix warning
* fix spacing
* fix formatting
* write migrations
* add migration
* fixes
* more fixes to migration
* Update runtime/common/src/crowdloan/mod.rs
Co-authored-by: Zeke Mostov <z.mostov@gmail.com >
* Update runtime/common/src/paras_registrar.rs
* Update migration.rs
* extract swap function
Co-authored-by: Zeke Mostov <z.mostov@gmail.com >
2022-02-12 17:16:22 +00:00
Shawn Tabrizi
8d783038c8
Allow SetBalance to handle error when trying to kill acount with reference counter. ( #10826 )
...
* bug found
* fix logic
* a little simpler
* add test
2022-02-10 11:08:05 +00:00
Shawn Tabrizi
bd261d57c4
--dev implies --tmp ( #10828 )
2022-02-09 08:37:43 +00:00
f6f82d876b
Add Storage Info to Various Pallets ( #10810 )
...
* atomic swap
* bounties
* bounties fmt
* gilt
* indices
* nicks
* randomness-collective-flip
* recovery
* reuse maxapprovals
* Update tests.rs
* Update frame/randomness-collective-flip/src/lib.rs
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* use the correct bound
* complete recovery
* use `bounded_vec` macro
* Update tests.rs
* transaction payment
* uniques
* mmr
* example offchain worker
* beefy-mmr
* Update frame/recovery/src/lib.rs
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Use BoundedVec instead of a type-parameterized BoundedString
* cargo fmt
* Update frame/atomic-swap/src/lib.rs
* use config const
* Update lib.rs
* update mel_bound
* fmt
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
2022-02-08 14:10:35 +00:00
Shawn Tabrizi and Bastian Köcher
21d0cf0eea
Introduce ModuleError struct ( #10776 )
...
* better partial eq impl
* introduce module error
* fmt
* import module error
* Apply suggestions from code review
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* fixes
* fmt
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2022-02-03 13:02:45 +00:00
Shawn Tabrizi
4d7d1eaaf8
dont increase the allocated size of vec ( #10701 )
2022-01-20 18:17:16 +00:00
d511cc8cfb
Improve BoundedVec API (extracted from #10195 ) ( #10656 )
...
* Gav wrote this code in pull #10195 . Extracting to simplify that PR.
* fix potential panics
* prevent panics in slide
* update doc
* fmt
* Update frame/support/src/storage/bounded_vec.rs
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
Co-authored-by: Gav Wood <gavin@parity.io >
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
2022-01-17 10:28:11 +01:00
Shawn Tabrizi and emostov
e9860b9c1e
Use free balance rather than total balance for elections phragmen ( #10646 )
...
* use free balance rather than total balance
* Docs
Co-authored-by: emostov <32168567+emostov@users.noreply.github.com >
2022-01-14 01:43:00 +00:00
Shawn Tabrizi
6b36411f22
Fix Clippy ( #10596 )
...
* fix clippy
* fmt
2022-01-05 23:08:36 +00:00
Shawn Tabrizi and Bastian Köcher
ea50ecac4a
Fix Places where AccountId Uses Default ( #10556 )
...
* fix places where accountid is default
* Update frame/system/src/lib.rs
* fmt
* add simple test
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2021-12-28 23:42:58 +00:00
Shawn Tabrizi
a94accb57e
Do not allow death on Crowdloan contribute + Introduce contribute_all ( #4233 )
...
* Add contirbute all, do not allow death on contribute
* fmt
* Revert "fmt"
This reverts commit c4746e336ac105b1318d8ec6f4cebf504f5d2fba.
* fmt
2021-12-13 11:18:44 +01:00
Shawn Tabrizi
a425f3fa9a
trivial fix ( #4441 )
2021-12-03 00:00:22 +01:00
Shawn Tabrizi and Parity Bot
bf5808eb7f
XCM Benchmarks for Generic Instructions ( #3940 )
...
* initial stuff
* quick fixes
* move to individual tests
* dont need these
* Update benchmarking.rs
* add to westend
* make benchmarks execute
* fix compile
* add post_execute
* ClaimAsset benchmark working
* subscribe and unsubscribe benchmarks
* benchmark for initiate reserve withdraw
* cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=pallet_xcm_benchmarks::generic --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --template=./xcm/pallet-xcm-benchmarks/template.hbs --output=./runtime/westend/src/weights/xcm/pallet_xcm_benchmarks_generic.rs
* fix spell check
* cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=pallet_xcm_benchmarks::generic --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --template=./xcm/pallet-xcm-benchmarks/template.hbs --output=./runtime/westend/src/weights/xcm/pallet_xcm_benchmarks_generic.rs
* update worst case for query_holding
* cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=pallet_xcm_benchmarks::generic --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --template=./xcm/pallet-xcm-benchmarks/template.hbs --output=./runtime/westend/src/weights/xcm/pallet_xcm_benchmarks_generic.rs
* move verification logic below
* introduce worst case holding to initiate reserve withdraw
* cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=pallet_xcm_benchmarks::generic --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --template=./xcm/pallet-xcm-benchmarks/template.hbs --output=./runtime/westend/src/weights/xcm/pallet_xcm_benchmarks_generic.rs
* feedback
* cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=pallet_xcm_benchmarks::generic --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --template=./xcm/pallet-xcm-benchmarks/template.hbs --output=./runtime/westend/src/weights/xcm/pallet_xcm_benchmarks_generic.rs
* Revert "cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=pallet_xcm_benchmarks::generic --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --template=./xcm/pallet-xcm-benchmarks/template.hbs --output=./runtime/westend/src/weights/xcm/pallet_xcm_benchmarks_generic.rs"
This reverts commit 277903944be620dc57d83b9bcf3b462d2fb73ab5.
* fix benchmark template
* cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=pallet_xcm_benchmarks::generic --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --template=./xcm/pallet-xcm-benchmarks/template.hbs --output=./runtime/westend/src/weights/xcm/pallet_xcm_benchmarks_generic.rs
* use response::version
* cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=pallet_xcm_benchmarks::generic --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --template=./xcm/pallet-xcm-benchmarks/template.hbs --output=./runtime/westend/src/weights/xcm/pallet_xcm_benchmarks_generic.rs
* refactor worst case holding
* cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=pallet_xcm_benchmarks::generic --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --template=./xcm/pallet-xcm-benchmarks/template.hbs --output=./runtime/westend/src/weights/xcm/pallet_xcm_benchmarks_generic.rs
* fmt
* one more todo needs to be labeled
* change option to result with benchmark error
* fmt and fix import
Co-authored-by: Parity Bot <admin@parity.io >
2021-12-01 23:52:18 +00:00
Shawn Tabrizi and Bastian Köcher
a3798775d8
Companion for #10379 (EnsureOneOf) ( #810 )
...
* new ensure one of
* Update Cargo.lock
* Update SUbstrate & Polkadot
Co-authored-by: Bastian Köcher <info@kchr.de >
2021-12-01 23:06:50 +00:00
Shawn Tabrizi and Bastian Köcher
3771b90ff1
Companion for 10379 (EnsureOneOf) ( #4405 )
...
* new ensure one of
* fmt
* Update lib.rs
* Update substrate
Co-authored-by: Bastian Köcher <info@kchr.de >
2021-12-01 23:32:37 +01:00
Shawn Tabrizi
a33b7c2e36
REAL fix for min-square for --steps=1 --repeats=1 ( #10323 ) ( #10369 )
...
* Revert "frame-benchmarking: Fix `min-square` for `--steps=1` (#10323 )"
This reverts commit 2d0e858b81 .
* actual fix
2021-11-25 11:24:45 +01:00
Shawn Tabrizi and Parity Bot
6c6788d87a
Fix Weight Handlebar Template ( #10302 )
...
* fix template
* cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_identity --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/identity/src/weights.rs --template=./.maintain/frame-weight-template.hbs
Co-authored-by: Parity Bot <admin@parity.io >
2021-11-18 04:14:16 +00:00
Shawn Tabrizi
59e90a77f0
Tweaks to XCM for Benchmarking ( #4283 )
...
* tweaks to xcm stuff for benchmarking
* Update xcm/xcm-executor/src/lib.rs
2021-11-15 21:38:11 +00:00
Shawn Tabrizi
b6786e69bf
Update Cargo.lock ( #763 )
2021-11-15 21:00:53 +00:00
Shawn Tabrizi
eec45a7232
Companion for dispatch_as ( #715 )
...
* dispatch as companion
* oops, forgot to save file
* Update Cargo.lock
2021-11-04 16:44:18 +00:00
Shawn Tabrizi and Parity Bot
2d556c4429
Add Baseline FRAME Benchmarks ( #9691 )
...
* create and add baseline
* fix import
* try a different name
* cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=frame_benchmarking --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/benchmarking/src/weights.rs --template=./.maintain/frame-weight-template.hbs
* cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=frame_benchmarking --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/benchmarking/src/weights.rs --template=./.maintain/frame-weight-template.hbs
* cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=frame_benchmarking --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/benchmarking/src/weights.rs --template=./.maintain/frame-weight-template.hbs
* increase repeats
* cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=frame_benchmarking --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/benchmarking/src/weights.rs --template=./.maintain/frame-weight-template.hbs
* Update baseline.rs
* Update baseline.rs
* cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=frame_benchmarking --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/benchmarking/src/weights.rs --template=./.maintain/frame-weight-template.hbs
* cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=frame_benchmarking --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/benchmarking/src/weights.rs --template=./.maintain/frame-weight-template.hbs
* cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=frame_benchmarking --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/benchmarking/src/weights.rs --template=./.maintain/frame-weight-template.hbs
* cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=frame_benchmarking --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/benchmarking/src/weights.rs --template=./.maintain/frame-weight-template.hbs
* improve hash benchmark
* cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=frame_benchmarking --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/benchmarking/src/weights.rs --template=./.maintain/frame-weight-template.hbs
* cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=frame_benchmarking --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/benchmarking/src/weights.rs --template=./.maintain/frame-weight-template.hbs
* cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=frame_benchmarking --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/benchmarking/src/weights.rs --template=./.maintain/frame-weight-template.hbs
* cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=frame_benchmarking --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/benchmarking/src/weights.rs --template=./.maintain/frame-weight-template.hbs
Co-authored-by: Parity Bot <admin@parity.io >
2021-10-30 13:02:09 +00:00
Shawn Tabrizi and Parity Bot
1031a57d8b
Fix XCM Teleport Benchmark ( #4146 )
...
* fix xcm benchmark
* fix overflow
* cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=pallet_xcm_benchmarks::fungible --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --template=./xcm/pallet-xcm-benchmarks/template.hbs --output=./runtime/westend/src/weights/xcm/pallet_xcm_benchmarks_fungible.rs
* fix spelling
* fmt
* cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=pallet_xcm_benchmarks::fungible --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --template=./xcm/pallet-xcm-benchmarks/template.hbs --output=./runtime/westend/src/weights/xcm/pallet_xcm_benchmarks_fungible.rs
Co-authored-by: Parity Bot <admin@parity.io >
2021-10-27 15:13:39 +02:00
Shawn Tabrizi
56e9f5fedc
use WEIGHT_PER_SECOND ( #4077 )
2021-10-14 10:18:53 +02:00
Shawn Tabrizi
622ffbd808
Fix XCM Weights on Westend ( #4066 )
...
* found issue
* fix up
* remove printlns
2021-10-12 15:18:32 +00:00