Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Merged
Changes from 1 commit
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
6e0ca26
add new trait
shawntabrizi May 17, 2022
9f0d290
implement DispatchableWithStorageLayer
shawntabrizi May 17, 2022
57fe674
at least one transactional
shawntabrizi May 17, 2022
28d35bd
all dispatch is at least transactional
shawntabrizi May 17, 2022
eaa330d
storage_layer api
shawntabrizi May 17, 2022
213e537
add test
shawntabrizi May 17, 2022
b8d32b9
storage layer tests
shawntabrizi May 17, 2022
a03c13f
deprecate transactional tag
shawntabrizi May 17, 2022
5dc88cd
i guess no reason to deprecate
shawntabrizi May 17, 2022
2856ecd
remove transactional from batch_all
shawntabrizi May 17, 2022
b0f7241
update tests
shawntabrizi May 17, 2022
0f26a7d
Merge remote-tracking branch 'origin/master' into shawntabrizi-dispat…
shawntabrizi May 17, 2022
f9f65db
extend trait
shawntabrizi May 19, 2022
738c021
Merge branch 'master' of https://github.com/paritytech/substrate into…
May 19, 2022
d1fd82f
cargo run --quiet --profile=production --features runtime-benchmarks …
May 19, 2022
5afa7e7
cargo run --quiet --profile=production --features runtime-benchmarks …
May 19, 2022
1a447b1
cargo run --quiet --profile=production --features runtime-benchmarks …
May 20, 2022
1e657bf
fix copy paste name
shawntabrizi May 20, 2022
5793a59
Merge branch 'master' of https://github.com/paritytech/substrate into…
May 20, 2022
09b4274
cargo run --quiet --profile=production --features runtime-benchmarks …
May 20, 2022
03c19ec
Create run_all_benchmarks.sh
shawntabrizi May 21, 2022
0e7e939
uncomment build
shawntabrizi May 21, 2022
fe1a750
update number of steps and repeats
shawntabrizi May 21, 2022
2068319
add skip build
shawntabrizi May 21, 2022
71b45db
Update run_all_benchmarks.sh
shawntabrizi May 21, 2022
c357618
Update run_all_benchmarks.sh
shawntabrizi May 21, 2022
85e7a28
new benchmarks
shawntabrizi May 21, 2022
d2aa0ed
Merge remote-tracking branch 'origin/master' into shawntabrizi-dispat…
shawntabrizi May 23, 2022
e0abb8f
Update frame/support/src/traits/dispatch.rs
shawntabrizi May 23, 2022
a87f4bc
Update frame/support/src/traits/dispatch.rs
shawntabrizi May 23, 2022
3633d3c
Update frame/support/test/tests/storage_layers.rs
shawntabrizi May 23, 2022
82b3576
Update frame/support/test/tests/storage_layers.rs
shawntabrizi May 23, 2022
db8dbe3
weights
shawntabrizi May 24, 2022
630f149
Update dispatch.rs
shawntabrizi May 24, 2022
3035fc8
Merge branch 'master' into shawntabrizi-dispatchable-with-storage-layer
shawntabrizi May 25, 2022
993383a
doc link
shawntabrizi May 26, 2022
d7530da
decl_macro support
shawntabrizi May 26, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
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
  • Loading branch information
Parity Bot committed May 20, 2022
commit 09b4274f3b13faf28a74ab0acdff7c89442e3777
42 changes: 20 additions & 22 deletions frame/utility/src/weights.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,24 +18,22 @@
//! Autogenerated weights for pallet_utility
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2022-01-31, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2022-05-20, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024

// Executed Command:
// ./target/production/substrate
// target/production/substrate
// benchmark
// pallet
// --chain=dev
// --steps=50
// --repeat=20
// --pallet=pallet_utility
// --extrinsic=*
// --execution=wasm
// --wasm-execution=compiled
// --heap-pages=4096
// --output=./frame/utility/src/weights.rs
// --template=.maintain/frame-weight-template.hbs
// --header=HEADER-APACHE2
// --raw
// --template=./.maintain/frame-weight-template.hbs

#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
Expand All @@ -57,49 +55,49 @@ pub trait WeightInfo {
pub struct SubstrateWeight<T>(PhantomData<T>);
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
fn batch(c: u32, ) -> Weight {
(18_598_000 as Weight)
(17_064_000 as Weight)
// Standard Error: 1_000
.saturating_add((2_374_000 as Weight).saturating_mul(c as Weight))
.saturating_add((2_668_000 as Weight).saturating_mul(c as Weight))
}
fn as_derivative() -> Weight {
(1_650_000 as Weight)
(4_185_000 as Weight)
}
fn batch_all(c: u32, ) -> Weight {
(13_988_000 as Weight)
(17_533_000 as Weight)
// Standard Error: 1_000
.saturating_add((2_481_000 as Weight).saturating_mul(c as Weight))
.saturating_add((2_741_000 as Weight).saturating_mul(c as Weight))
}
fn dispatch_as() -> Weight {
(8_463_000 as Weight)
(11_722_000 as Weight)
}
fn force_batch(c: u32, ) -> Weight {
(13_988_000 as Weight)
(15_586_000 as Weight)
// Standard Error: 1_000
.saturating_add((2_481_000 as Weight).saturating_mul(c as Weight))
.saturating_add((2_678_000 as Weight).saturating_mul(c as Weight))
}
}

// For backwards compatibility and tests
impl WeightInfo for () {
fn batch(c: u32, ) -> Weight {
(18_598_000 as Weight)
(17_064_000 as Weight)
// Standard Error: 1_000
.saturating_add((2_374_000 as Weight).saturating_mul(c as Weight))
.saturating_add((2_668_000 as Weight).saturating_mul(c as Weight))
}
fn as_derivative() -> Weight {
(1_650_000 as Weight)
(4_185_000 as Weight)
}
fn batch_all(c: u32, ) -> Weight {
(13_988_000 as Weight)
(17_533_000 as Weight)
// Standard Error: 1_000
.saturating_add((2_481_000 as Weight).saturating_mul(c as Weight))
.saturating_add((2_741_000 as Weight).saturating_mul(c as Weight))
}
fn dispatch_as() -> Weight {
(8_463_000 as Weight)
(11_722_000 as Weight)
}
fn force_batch(c: u32, ) -> Weight {
(13_988_000 as Weight)
(15_586_000 as Weight)
// Standard Error: 1_000
.saturating_add((2_481_000 as Weight).saturating_mul(c as Weight))
.saturating_add((2_678_000 as Weight).saturating_mul(c as Weight))
}
}