git.delta.rocks / unique-network / refs/commits / 23942aa9dbcc

difftreelog

feat benchmark structure

Yaroslav Bolyukin2022-04-07parent: #a588a2c.patch.diff
in: master

9 files changed

modifiedMakefilediffbeforeafterboth
57bench-nonfungible:57bench-nonfungible:
58 make _bench PALLET=nonfungible58 make _bench PALLET=nonfungible
59
60.PHONY: bench-structure
61bench-structure:
62 make _bench PALLET=structure
5963
60.PHONY: bench64.PHONY: bench
61bench: bench-evm-migration bench-unique bench-fungible bench-refungible bench-nonfungible65bench: bench-evm-migration bench-unique bench-structure bench-fungible bench-refungible bench-nonfungible
6266
modifiedpallets/structure/Cargo.tomldiffbeforeafterboth
6[dependencies]6[dependencies]
7frame-support = { default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.17' }7frame-support = { default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.17' }
8frame-system = { default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.17' }8frame-system = { default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.17' }
9frame-benchmarking = { default-features = false, optional = true, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.17' }
9sp-std = { default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.17' }10sp-std = { default-features = false, git = 'https://github.com/paritytech/substrate.git', branch = 'polkadot-v0.9.17' }
10pallet-common = { path = "../common", default-features = false }11pallet-common = { path = "../common", default-features = false }
11parity-scale-codec = { version = "2.0.0", default-features = false, features = [12parity-scale-codec = { version = "2.0.0", default-features = false, features = [
21std = [22std = [
22 "frame-support/std",23 "frame-support/std",
23 "frame-system/std",24 "frame-system/std",
25 "frame-benchmarking/std",
24 "sp-std/std",26 "sp-std/std",
25 "pallet-common/std",27 "pallet-common/std",
26 "scale-info/std",28 "scale-info/std",
27 "parity-scale-codec/std",29 "parity-scale-codec/std",
28 "up-data-structs/std",30 "up-data-structs/std",
29]31]
32runtime-benchmarks = ['frame-benchmarking', 'pallet-common/runtime-benchmarks']
3033
addedpallets/structure/src/benchmarking.rsdiffbeforeafterboth

no changes

addedpallets/structure/src/weights.rsdiffbeforeafterboth

no changes

modifiedruntime/common/src/runtime_apis.rsdiffbeforeafterboth
378378
379 list_benchmark!(list, extra, pallet_evm_migration, EvmMigration);379 list_benchmark!(list, extra, pallet_evm_migration, EvmMigration);
380 list_benchmark!(list, extra, pallet_unique, Unique);380 list_benchmark!(list, extra, pallet_unique, Unique);
381 list_benchmark!(list, extra, pallet_structure, Structure);
381 list_benchmark!(list, extra, pallet_inflation, Inflation);382 list_benchmark!(list, extra, pallet_inflation, Inflation);
382 list_benchmark!(list, extra, pallet_fungible, Fungible);383 list_benchmark!(list, extra, pallet_fungible, Fungible);
383 list_benchmark!(list, extra, pallet_refungible, Refungible);384 list_benchmark!(list, extra, pallet_refungible, Refungible);
415416
416 add_benchmark!(params, batches, pallet_evm_migration, EvmMigration);417 add_benchmark!(params, batches, pallet_evm_migration, EvmMigration);
417 add_benchmark!(params, batches, pallet_unique, Unique);418 add_benchmark!(params, batches, pallet_unique, Unique);
419 add_benchmark!(params, batches, pallet_structure, Structure);
418 add_benchmark!(params, batches, pallet_inflation, Inflation);420 add_benchmark!(params, batches, pallet_inflation, Inflation);
419 add_benchmark!(params, batches, pallet_fungible, Fungible);421 add_benchmark!(params, batches, pallet_fungible, Fungible);
420 add_benchmark!(params, batches, pallet_refungible, Refungible);422 add_benchmark!(params, batches, pallet_refungible, Refungible);
modifiedruntime/opal/Cargo.tomldiffbeforeafterboth
29 'pallet-balances/runtime-benchmarks',29 'pallet-balances/runtime-benchmarks',
30 'pallet-timestamp/runtime-benchmarks',30 'pallet-timestamp/runtime-benchmarks',
31 'pallet-common/runtime-benchmarks',31 'pallet-common/runtime-benchmarks',
32 'pallet-structure/runtime-benchmarks',
32 'pallet-fungible/runtime-benchmarks',33 'pallet-fungible/runtime-benchmarks',
33 'pallet-refungible/runtime-benchmarks',34 'pallet-refungible/runtime-benchmarks',
34 'pallet-nonfungible/runtime-benchmarks',35 'pallet-nonfungible/runtime-benchmarks',
84 'serde',85 'serde',
85 'pallet-inflation/std',86 'pallet-inflation/std',
86 'pallet-common/std',87 'pallet-common/std',
88 'pallet-structure/std',
87 'pallet-fungible/std',89 'pallet-fungible/std',
88 'pallet-refungible/std',90 'pallet-refungible/std',
89 'pallet-nonfungible/std',91 'pallet-nonfungible/std',
modifiedruntime/opal/src/lib.rsdiffbeforeafterboth
886impl pallet_structure::Config for Runtime {886impl pallet_structure::Config for Runtime {
887 type Event = Event;887 type Event = Event;
888 type Call = Call;888 type Call = Call;
889 type WeightInfo = pallet_structure::weights::SubstrateWeight<Self>;
889}890}
890891
891impl pallet_fungible::Config for Runtime {892impl pallet_fungible::Config for Runtime {
modifiedruntime/quartz/Cargo.tomldiffbeforeafterboth
29 'pallet-balances/runtime-benchmarks',29 'pallet-balances/runtime-benchmarks',
30 'pallet-timestamp/runtime-benchmarks',30 'pallet-timestamp/runtime-benchmarks',
31 'pallet-common/runtime-benchmarks',31 'pallet-common/runtime-benchmarks',
32 'pallet-structure/runtime-benchmarks',
32 'pallet-fungible/runtime-benchmarks',33 'pallet-fungible/runtime-benchmarks',
33 'pallet-refungible/runtime-benchmarks',34 'pallet-refungible/runtime-benchmarks',
34 'pallet-nonfungible/runtime-benchmarks',35 'pallet-nonfungible/runtime-benchmarks',
modifiedruntime/unique/Cargo.tomldiffbeforeafterboth
29 'pallet-balances/runtime-benchmarks',29 'pallet-balances/runtime-benchmarks',
30 'pallet-timestamp/runtime-benchmarks',30 'pallet-timestamp/runtime-benchmarks',
31 'pallet-common/runtime-benchmarks',31 'pallet-common/runtime-benchmarks',
32 'pallet-structure/runtime-benchmarks',
32 'pallet-fungible/runtime-benchmarks',33 'pallet-fungible/runtime-benchmarks',
33 'pallet-refungible/runtime-benchmarks',34 'pallet-refungible/runtime-benchmarks',
34 'pallet-nonfungible/runtime-benchmarks',35 'pallet-nonfungible/runtime-benchmarks',