1
1
//! Autogenerated weights for orml_tokens
2
2
//!
3
- //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 3 .0.0
4
- //! DATE: 2021-05-04 , STEPS: [50, ], REPEAT: 20, LOW RANGE: [] , HIGH RANGE: []
3
+ //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4 .0.0-dev
4
+ //! DATE: 2021-09-14 , STEPS: `50`, REPEAT: 20, LOW RANGE: `[]` , HIGH RANGE: `[]`
5
5
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 128
6
6
7
7
// Executed Command:
8
- // /Users/xiliangchen/projects/acala /target/release/acala
8
+ // /Users/ermal/Acala /target/release/acala
9
9
// benchmark
10
10
// --chain=dev
11
11
// --steps=50
15
15
// --execution=wasm
16
16
// --wasm-execution=compiled
17
17
// --heap-pages=4096
18
+ // --template=../templates/orml-weight-template.hbs
18
19
// --output=./tokens/src/weights.rs
19
- // --template
20
- // ../templates/orml-weight-template.hbs
21
20
22
21
23
22
#![ cfg_attr( rustfmt, rustfmt_skip) ]
@@ -35,33 +34,43 @@ pub trait WeightInfo {
35
34
fn transfer_keep_alive ( ) -> Weight ;
36
35
fn force_transfer ( ) -> Weight ;
37
36
fn set_balance ( ) -> Weight ;
37
+ fn sweep_dust ( c : u32 , ) -> Weight ;
38
38
}
39
39
40
40
/// Default weights.
41
41
impl WeightInfo for ( ) {
42
42
fn transfer ( ) -> Weight {
43
- ( 60_000_000 as Weight )
43
+ ( 69_000_000 as Weight )
44
44
. saturating_add ( RocksDbWeight :: get ( ) . reads ( 5 as Weight ) )
45
45
. saturating_add ( RocksDbWeight :: get ( ) . writes ( 4 as Weight ) )
46
46
}
47
47
fn transfer_all ( ) -> Weight {
48
- ( 62_000_000 as Weight )
48
+ ( 69_000_000 as Weight )
49
49
. saturating_add ( RocksDbWeight :: get ( ) . reads ( 5 as Weight ) )
50
50
. saturating_add ( RocksDbWeight :: get ( ) . writes ( 4 as Weight ) )
51
51
}
52
52
fn transfer_keep_alive ( ) -> Weight {
53
- ( 60_000_000 as Weight )
54
- . saturating_add ( RocksDbWeight :: get ( ) . reads ( 5 as Weight ) )
55
- . saturating_add ( RocksDbWeight :: get ( ) . writes ( 4 as Weight ) )
53
+ ( 38_000_000 as Weight )
54
+ . saturating_add ( RocksDbWeight :: get ( ) . reads ( 3 as Weight ) )
55
+ . saturating_add ( RocksDbWeight :: get ( ) . writes ( 3 as Weight ) )
56
56
}
57
57
fn force_transfer ( ) -> Weight {
58
- ( 60_000_000 as Weight )
59
- . saturating_add ( RocksDbWeight :: get ( ) . reads ( 5 as Weight ) )
60
- . saturating_add ( RocksDbWeight :: get ( ) . writes ( 4 as Weight ) )
58
+ ( 45_000_000 as Weight )
59
+ . saturating_add ( RocksDbWeight :: get ( ) . reads ( 4 as Weight ) )
60
+ . saturating_add ( RocksDbWeight :: get ( ) . writes ( 3 as Weight ) )
61
61
}
62
62
fn set_balance ( ) -> Weight {
63
- ( 60_000_000 as Weight )
64
- . saturating_add ( RocksDbWeight :: get ( ) . reads ( 5 as Weight ) )
65
- . saturating_add ( RocksDbWeight :: get ( ) . writes ( 4 as Weight ) )
63
+ ( 34_000_000 as Weight )
64
+ . saturating_add ( RocksDbWeight :: get ( ) . reads ( 3 as Weight ) )
65
+ . saturating_add ( RocksDbWeight :: get ( ) . writes ( 3 as Weight ) )
66
+ }
67
+ fn sweep_dust ( c : u32 , ) -> Weight {
68
+ ( 3_100_000 as Weight )
69
+ // Standard Error: 597_000
70
+ . saturating_add ( ( 27_100_000 as Weight ) . saturating_mul ( c as Weight ) )
71
+ . saturating_add ( RocksDbWeight :: get ( ) . reads ( 1 as Weight ) )
72
+ . saturating_add ( RocksDbWeight :: get ( ) . reads ( ( 2 as Weight ) . saturating_mul ( c as Weight ) ) )
73
+ . saturating_add ( RocksDbWeight :: get ( ) . writes ( 1 as Weight ) )
74
+ . saturating_add ( RocksDbWeight :: get ( ) . writes ( ( 2 as Weight ) . saturating_mul ( c as Weight ) ) )
66
75
}
67
76
}
0 commit comments