Constant Weight Signature in Benchmarking CLI (#7233)

* Don't remove unused components

* add more metadata to generated file

* unused code

* proposed format

* Revert "proposed format"

This reverts commit ce522c3480157ab6670bcbd9b17e1398168cabf4.

* Update weight signatures and unused components in benchmarks

* Keep timestamp constant time

* remove component from as_derivative
This commit is contained in:
Shawn Tabrizi authored and GitHub committed 2020-10-17 12:35:15 +00:00
1 parent 158fdecc0b
commit 13be04e0a7
16 files changed
+47 -69

No files matched your search

+1 -1
View File
@@ -203,7 +203,7 @@ benchmarks_instance! {
}: _(RawOrigin::Signed(caller), reason, awesome_person)
retract_tip {
let r in 0 .. MAX_BYTES;
let r = MAX_BYTES;
let (caller, reason, awesome_person) = setup_awesome::<T, _>(r);
Treasury::<T, _>::report_awesome(
RawOrigin::Signed(caller.clone()).into(),
@@ -44,7 +44,6 @@ impl crate::WeightInfo for () {
.saturating_add(DbWeight::get().reads(2 as Weight))
.saturating_add(DbWeight::get().writes(2 as Weight))
}
// WARNING! Some components were not used: ["r"]
fn retract_tip() -> Weight {
(82970000 as Weight)
.saturating_add(DbWeight::get().reads(1 as Weight))