Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Add Baseline FRAME Benchmarks #9691

Merged
merged 25 commits into from
Oct 30, 2021
Merged
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
84f49e4
create and add baseline
shawntabrizi Sep 4, 2021
8af0c26
fix import
shawntabrizi Sep 4, 2021
6874052
Merge branch 'master' into shawntabrizi-baseline-bench
shawntabrizi Sep 5, 2021
10497ec
try a different name
shawntabrizi Sep 5, 2021
86eb7a0
cargo run --quiet --release --features=runtime-benchmarks --manifest-…
Sep 5, 2021
7c11bcf
cargo run --quiet --release --features=runtime-benchmarks --manifest-…
Sep 5, 2021
862bff8
cargo run --quiet --release --features=runtime-benchmarks --manifest-…
Sep 5, 2021
8918244
increase repeats
shawntabrizi Sep 5, 2021
84b38e8
cargo run --quiet --release --features=runtime-benchmarks --manifest-…
Sep 5, 2021
8fb3705
Merge branch 'master' into shawntabrizi-baseline-bench
shawntabrizi Oct 29, 2021
0c4f3bb
Update baseline.rs
shawntabrizi Oct 29, 2021
97ede33
Update baseline.rs
shawntabrizi Oct 29, 2021
2795c87
Merge branch 'master' of https://github.com/paritytech/substrate into…
Oct 29, 2021
eb8eafc
cargo run --quiet --release --features=runtime-benchmarks --manifest-…
Oct 29, 2021
2cfb856
Merge branch 'shawntabrizi-baseline-bench' of https://github.com/pari…
shawntabrizi Oct 29, 2021
cbf081b
cargo run --quiet --release --features=runtime-benchmarks --manifest-…
Oct 29, 2021
0ff63fc
cargo run --quiet --release --features=runtime-benchmarks --manifest-…
Oct 29, 2021
3366f3c
cargo run --quiet --release --features=runtime-benchmarks --manifest-…
Oct 29, 2021
1d1d101
improve hash benchmark
shawntabrizi Oct 29, 2021
edfe6b3
Merge branch 'shawntabrizi-baseline-bench' of https://github.com/pari…
shawntabrizi Oct 29, 2021
995cec6
cargo run --quiet --release --features=runtime-benchmarks --manifest-…
Oct 29, 2021
6faad4d
cargo run --quiet --release --features=runtime-benchmarks --manifest-…
Oct 30, 2021
850cb03
cargo run --quiet --release --features=runtime-benchmarks --manifest-…
Oct 30, 2021
9369a10
Merge branch 'master' of https://github.com/paritytech/substrate into…
Oct 30, 2021
ba2decc
cargo run --quiet --release --features=runtime-benchmarks --manifest-…
Oct 30, 2021
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 --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
Parity Bot committed Oct 29, 2021

Verified

This commit was signed with the committer’s verified signature.
snyk-bot Snyk bot
commit cbf081b679d4ee1c4acb231ec709bfecce40d39c
32 changes: 16 additions & 16 deletions frame/benchmarking/src/weights.rs
Original file line number Diff line number Diff line change
@@ -58,69 +58,69 @@ pub trait WeightInfo {
pub struct SubstrateWeight<T>(PhantomData<T>);
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
fn addition(_i: u32, ) -> Weight {
(323_000 as Weight)
(325_000 as Weight)
}
fn subtraction(_i: u32, ) -> Weight {
(325_000 as Weight)
(330_000 as Weight)
}
fn multiplication(_i: u32, ) -> Weight {
(326_000 as Weight)
(333_000 as Weight)
}
fn division(_i: u32, ) -> Weight {
(328_000 as Weight)
}
fn hashing(i: u32, ) -> Weight {
(8_062_000 as Weight)
(14_098_000 as Weight)
// Standard Error: 0
.saturating_add((353_000 as Weight).saturating_mul(i as Weight))
.saturating_add((352_000 as Weight).saturating_mul(i as Weight))
}
// Storage: Skipped Metadata (r:0 w:0)
fn storage_read(i: u32, ) -> Weight {
(0 as Weight)
// Standard Error: 4_000
.saturating_add((2_845_000 as Weight).saturating_mul(i as Weight))
// Standard Error: 3_000
.saturating_add((2_853_000 as Weight).saturating_mul(i as Weight))
.saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(i as Weight)))
}
// Storage: Skipped Metadata (r:0 w:0)
fn storage_write(i: u32, ) -> Weight {
(0 as Weight)
// Standard Error: 0
.saturating_add((663_000 as Weight).saturating_mul(i as Weight))
.saturating_add((664_000 as Weight).saturating_mul(i as Weight))
.saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(i as Weight)))
}
}

// For backwards compatibility and tests
impl WeightInfo for () {
fn addition(_i: u32, ) -> Weight {
(323_000 as Weight)
(325_000 as Weight)
}
fn subtraction(_i: u32, ) -> Weight {
(325_000 as Weight)
(330_000 as Weight)
}
fn multiplication(_i: u32, ) -> Weight {
(326_000 as Weight)
(333_000 as Weight)
}
fn division(_i: u32, ) -> Weight {
(328_000 as Weight)
}
fn hashing(i: u32, ) -> Weight {
(8_062_000 as Weight)
(14_098_000 as Weight)
// Standard Error: 0
.saturating_add((353_000 as Weight).saturating_mul(i as Weight))
.saturating_add((352_000 as Weight).saturating_mul(i as Weight))
}
// Storage: Skipped Metadata (r:0 w:0)
fn storage_read(i: u32, ) -> Weight {
(0 as Weight)
// Standard Error: 4_000
.saturating_add((2_845_000 as Weight).saturating_mul(i as Weight))
// Standard Error: 3_000
.saturating_add((2_853_000 as Weight).saturating_mul(i as Weight))
.saturating_add(RocksDbWeight::get().reads((1 as Weight).saturating_mul(i as Weight)))
}
// Storage: Skipped Metadata (r:0 w:0)
fn storage_write(i: u32, ) -> Weight {
(0 as Weight)
// Standard Error: 0
.saturating_add((663_000 as Weight).saturating_mul(i as Weight))
.saturating_add((664_000 as Weight).saturating_mul(i as Weight))
.saturating_add(RocksDbWeight::get().writes((1 as Weight).saturating_mul(i as Weight)))
}
}