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

Companion for substrate#8665 (Bounded Treasury) #2932

Merged
5 commits merged into from
Apr 26, 2021

Conversation

shawntabrizi
Copy link
Member

@shawntabrizi shawntabrizi added A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. D5-nicetohaveaudit ⚠️ PR contains trivial changes to logic that should be properly reviewed. labels Apr 26, 2021
@ghost
Copy link

ghost commented Apr 26, 2021

Waiting for commit status.

@shawntabrizi
Copy link
Member Author

/benchmark runtime kusama pallet_treasury

@parity-benchapp
Copy link

parity-benchapp bot commented Apr 26, 2021

Finished benchmark for branch: shawntabrizi-bounded-treasury

Benchmark: Benchmark Runtime Kusama Pallet

cargo run --release --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=pallet_treasury --extrinsic="*" --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/

Results

Pallet: "pallet_treasury", Extrinsic: "propose_spend", Lowest values: [], Highest values: [], Steps: [50], Repeat: 20
Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 41.28
µs

Reads = 1
Writes = 2
Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 41.28
µs

Reads = 1
Writes = 2
Pallet: "pallet_treasury", Extrinsic: "reject_proposal", Lowest values: [], Highest values: [], Steps: [50], Repeat: 20
Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 51.9
µs

Reads = 2
Writes = 2
Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 51.9
µs

Reads = 2
Writes = 2
Pallet: "pallet_treasury", Extrinsic: "approve_proposal", Lowest values: [], Highest values: [], Steps: [50], Repeat: 20
Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 12.03
+ p 0.031
µs

Reads = 2 + (0 * p)
Writes = 1 + (0 * p)
Min Squares Analysis

-- Extrinsic Time --

Data points distribution:
p mean µs sigma µs %
0 10.12 0.069 0.6%
1 10.94 0.048 0.4%
2 11.09 0.04 0.3%
3 11.53 0.058 0.5%
4 11.65 0.03 0.2%
5 11.63 0.034 0.2%
6 12.03 0.047 0.3%
7 11.71 0.049 0.4%
8 11.87 0.055 0.4%
9 12.2 0.073 0.5%
10 11.96 0.063 0.5%
11 12.58 0.061 0.4%
12 12.15 0.039 0.3%
13 12.49 0.025 0.2%
14 12.06 0.032 0.2%
15 12.03 0.075 0.6%
16 12.55 0.064 0.5%
17 12.23 0.042 0.3%
18 12.69 0.058 0.4%
19 12.64 0.029 0.2%
20 12.15 0.051 0.4%
21 12.76 0.055 0.4%
22 12.69 0.034 0.2%
23 12.71 0.057 0.4%
24 12.44 0.055 0.4%
25 12.92 0.088 0.6%
26 12.74 0.067 0.5%
27 13.01 0.082 0.6%
28 13.08 0.054 0.4%
29 13.16 0.071 0.5%
30 13.28 0.062 0.4%
31 13.31 0.07 0.5%
32 13.3 0.063 0.4%
33 13.3 0.114 0.8%
34 13.36 0.032 0.2%
35 13.28 0.063 0.4%
36 13.16 0.056 0.4%
37 13.54 0.042 0.3%
38 13.05 0.058 0.4%
39 13.75 0.079 0.5%
40 13.58 0.026 0.1%
41 13.75 0.096 0.6%
42 13.72 0.062 0.4%
43 14.04 0.052 0.3%
44 13.88 0.054 0.3%
45 13.85 0.073 0.5%
46 13.73 0.073 0.5%
47 13.79 0.034 0.2%
48 13.89 0.084 0.6%
49 13.84 0.093 0.6%
50 14.28 0.086 0.6%
51 14.27 0.116 0.8%
52 13.97 0.095 0.6%
53 14.01 0.04 0.2%
54 14 0.076 0.5%
55 14.31 0.069 0.4%
56 13.81 0.041 0.2%
57 14.03 0.039 0.2%
58 13.9 0.067 0.4%
59 14.34 0.066 0.4%
60 13.84 0.124 0.8%
61 13.84 0.086 0.6%
62 14.11 0.06 0.4%
63 14.37 0.063 0.4%
64 14.14 0.064 0.4%
65 14.26 0.103 0.7%
66 14.48 0.059 0.4%
67 14.23 0.063 0.4%
68 14.14 0.101 0.7%
69 14.19 0.08 0.5%
70 14.26 0.081 0.5%
71 14.59 0.077 0.5%
72 14.73 0.053 0.3%
73 14.2 0.069 0.4%
74 14.45 0.041 0.2%
75 14.24 0.066 0.4%
76 14.29 0.035 0.2%
77 14.22 0.083 0.5%
78 14.09 0.082 0.5%
79 14.41 0.114 0.7%
80 14.72 0.082 0.5%
81 14.73 0.081 0.5%
82 14.73 0.1 0.6%
83 14.38 0.055 0.3%
84 14.59 0.058 0.3%
85 14.19 0.066 0.4%
86 15.07 0.067 0.4%
87 14.29 0.064 0.4%
88 14.72 0.048 0.3%
89 14.34 0.054 0.3%
90 14.45 0.106 0.7%
91 14.5 0.067 0.4%
92 14.28 0.035 0.2%
93 14.37 0.058 0.4%
94 14.38 0.078 0.5%
95 14.31 0.057 0.3%
96 14.99 0.05 0.3%
97 14.49 0.039 0.2%
98 14.92 0.068 0.4%
99 14.65 0.103 0.7%

Quality and confidence:
param error
p 0

Model:
Time ~= 11.93
+ p 0.033
µs

Reads = 2 + (0 * p)
Writes = 1 + (0 * p)
Pallet: "pallet_treasury", Extrinsic: "on_initialize_proposals", Lowest values: [], Highest values: [], Steps: [50], Repeat: 20
Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 76.03
+ p 61.93
µs

Reads = 3 + (3 * p)
Writes = 3 + (3 * p)
Min Squares Analysis

-- Extrinsic Time --

Data points distribution:
p mean µs sigma µs %
0 92.67 0.256 0.2%
2 216.4 0.226 0.1%
4 335.8 0.356 0.1%
6 452.7 0.583 0.1%
8 575.3 0.613 0.1%
10 698.7 0.904 0.1%
12 818.7 1.248 0.1%
14 940.8 0.965 0.1%
16 1071 8.786 0.8%
18 1186 1.542 0.1%
20 1315 1.332 0.1%
22 1433 1.33 0.0%
24 1556 1.191 0.0%
26 1680 3.024 0.1%
28 1799 1.56 0.0%
30 1916 2.211 0.1%
32 2052 5.249 0.2%
34 2171 2.68 0.1%
36 2311 8.992 0.3%
38 2428 3.704 0.1%
40 2553 3.704 0.1%
42 2669 3.277 0.1%
44 2801 3.993 0.1%
46 2917 11.33 0.3%
48 3048 6.278 0.2%
50 3162 12.07 0.3%
52 3283 4.098 0.1%
54 3415 9.557 0.2%
56 3528 4.351 0.1%
58 3661 6.701 0.1%
60 3775 12.17 0.3%
62 3900 2.219 0.0%
64 4016 13.89 0.3%
66 4148 12.17 0.2%
68 4272 4.349 0.1%
70 4382 6.888 0.1%
72 4541 8.862 0.1%
74 4660 8.626 0.1%
76 4775 6.26 0.1%
78 4918 5.657 0.1%
80 5037 5.771 0.1%
82 5151 9.783 0.1%
84 5285 5.386 0.1%
86 5413 10.94 0.2%
88 5537 8.608 0.1%
90 5652 6.787 0.1%
92 5928 15.91 0.2%
94 6043 13.37 0.2%
96 6083 48.89 0.8%
98 6149 8.555 0.1%
100 6276 10.2 0.1%

Quality and confidence:
param error
p 0.048

Model:
Time ~= 64.19
+ p 62.26
µs

Reads = 3 + (3 * p)
Writes = 3 + (3 * p)

…n=kusama-dev --steps=50 --repeat=20 --pallet=pallet_treasury --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/
@ghost
Copy link

ghost commented Apr 26, 2021

Merge aborted: Head SHA changed from 2e0574a to ce215f1

@shawntabrizi
Copy link
Member Author

/benchmark runtime polkadot pallet_treasury

@parity-benchapp
Copy link

parity-benchapp bot commented Apr 26, 2021

Finished benchmark for branch: shawntabrizi-bounded-treasury

Benchmark: Benchmark Runtime Polkadot Pallet

cargo run --release --features=runtime-benchmarks -- benchmark --chain=polkadot-dev --steps=50 --repeat=20 --pallet=pallet_treasury --extrinsic="*" --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/polkadot/src/weights/

Results

Pallet: "pallet_treasury", Extrinsic: "propose_spend", Lowest values: [], Highest values: [], Steps: [50], Repeat: 20
Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 41.41
µs

Reads = 1
Writes = 2
Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 41.41
µs

Reads = 1
Writes = 2
Pallet: "pallet_treasury", Extrinsic: "reject_proposal", Lowest values: [], Highest values: [], Steps: [50], Repeat: 20
Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 51.74
µs

Reads = 2
Writes = 2
Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 51.74
µs

Reads = 2
Writes = 2
Pallet: "pallet_treasury", Extrinsic: "approve_proposal", Lowest values: [], Highest values: [], Steps: [50], Repeat: 20
Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 11.82
+ p 0.032
µs

Reads = 2 + (0 * p)
Writes = 1 + (0 * p)
Min Squares Analysis

-- Extrinsic Time --

Data points distribution:
p mean µs sigma µs %
0 9.971 0.03 0.3%
1 10.74 0.039 0.3%
2 10.77 0.041 0.3%
3 11.33 0.037 0.3%
4 11.42 0.073 0.6%
5 11.55 0.048 0.4%
6 11.89 0.042 0.3%
7 11.47 0.055 0.4%
8 11.53 0.069 0.5%
9 12.11 0.048 0.3%
10 11.79 0.049 0.4%
11 12.2 0.061 0.5%
12 11.89 0.042 0.3%
13 12.22 0.051 0.4%
14 11.88 0.025 0.2%
15 11.84 0.044 0.3%
16 12.32 0.056 0.4%
17 12.11 0.056 0.4%
18 12.51 0.021 0.1%
19 12.42 0.048 0.3%
20 12.09 0.05 0.4%
21 12.62 0.038 0.3%
22 12.63 0.045 0.3%
23 12.48 0.058 0.4%
24 12.35 0.104 0.8%
25 12.65 0.072 0.5%
26 12.81 0.068 0.5%
27 12.88 0.064 0.4%
28 13.1 0.082 0.6%
29 12.95 0.064 0.4%
30 12.88 0.087 0.6%
31 13.15 0.054 0.4%
32 13.04 0.087 0.6%
33 13.06 0.105 0.8%
34 13.02 0.06 0.4%
35 13.03 0.104 0.7%
36 12.86 0.054 0.4%
37 13.24 0.041 0.3%
38 12.82 0.06 0.4%
39 13.21 0.062 0.4%
40 13.47 0.056 0.4%
41 13.53 0.079 0.5%
42 13.54 0.083 0.6%
43 13.91 0.052 0.3%
44 13.53 0.07 0.5%
45 13.57 0.034 0.2%
46 13.57 0.072 0.5%
47 13.67 0.068 0.4%
48 13.58 0.032 0.2%
49 13.74 0.063 0.4%
50 14.08 0.029 0.2%
51 14.3 0.071 0.4%
52 13.62 0.048 0.3%
53 13.8 0.039 0.2%
54 13.83 0.061 0.4%
55 13.99 0.116 0.8%
56 13.77 0.022 0.1%
57 13.76 0.049 0.3%
58 13.72 0.035 0.2%
59 14.02 0.037 0.2%
60 13.7 0.063 0.4%
61 13.75 0.053 0.3%
62 13.79 0.045 0.3%
63 13.97 0.038 0.2%
64 13.97 0.057 0.4%
65 14 0.044 0.3%
66 14.3 0.057 0.3%
67 13.9 0.075 0.5%
68 13.97 0.055 0.3%
69 13.94 0.07 0.5%
70 14.02 0.095 0.6%
71 14.36 0.054 0.3%
72 14.34 0.067 0.4%
73 14.03 0.093 0.6%
74 14.48 0.051 0.3%
75 13.98 0.053 0.3%
76 14 0.057 0.4%
77 14 0.049 0.3%
78 14.05 0.058 0.4%
79 14.07 0.065 0.4%
80 14.54 0.061 0.4%
81 14.54 0.067 0.4%
82 14.53 0.056 0.3%
83 14.21 0.085 0.5%
84 14.41 0.035 0.2%
85 14.17 0.04 0.2%
86 14.94 0.077 0.5%
87 14.1 0.046 0.3%
88 14.53 0.074 0.5%
89 14.22 0.089 0.6%
90 14.46 0.071 0.4%
91 14.32 0.055 0.3%
92 14.32 0.039 0.2%
93 14.34 0.035 0.2%
94 14.22 0.048 0.3%
95 14.18 0.049 0.3%
96 14.92 0.076 0.5%
97 14.39 0.061 0.4%
98 14.87 0.085 0.5%
99 14.48 0.04 0.2%

Quality and confidence:
param error
p 0

Model:
Time ~= 11.7
+ p 0.033
µs

Reads = 2 + (0 * p)
Writes = 1 + (0 * p)
Pallet: "pallet_treasury", Extrinsic: "on_initialize_proposals", Lowest values: [], Highest values: [], Steps: [50], Repeat: 20
Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 49.57
+ p 62.59
µs

Reads = 2 + (3 * p)
Writes = 2 + (3 * p)
Min Squares Analysis

-- Extrinsic Time --

Data points distribution:
p mean µs sigma µs %
0 61.33 0.283 0.4%
2 186.7 0.322 0.1%
4 306.4 0.643 0.2%
6 426.8 0.779 0.1%
8 552 1.456 0.2%
10 677.7 0.93 0.1%
12 796.6 1.09 0.1%
14 923.6 0.884 0.0%
16 1049 1.44 0.1%
18 1179 1.153 0.0%
20 1300 1.117 0.0%
22 1423 1.796 0.1%
24 1545 1.622 0.1%
26 1670 1.994 0.1%
28 1792 2.655 0.1%
30 1917 1.981 0.1%
32 2045 2.27 0.1%
34 2171 3.126 0.1%
36 2300 2.158 0.0%
38 2423 1.878 0.0%
40 2546 10.53 0.4%
42 2673 3.634 0.1%
44 2795 6.635 0.2%
46 2919 2.776 0.0%
48 3048 8.763 0.2%
50 3172 5.844 0.1%
52 3283 2.416 0.0%
54 3428 6.936 0.2%
56 3546 7.057 0.1%
58 3676 12.53 0.3%
60 3866 7.451 0.1%
62 4001 4.447 0.1%
64 4130 2.511 0.0%
66 4238 17.47 0.4%
68 4305 10.71 0.2%
70 4417 7.343 0.1%
72 4554 8.039 0.1%
74 4679 5.191 0.1%
76 4805 8.367 0.1%
78 4931 6.532 0.1%
80 5061 13.72 0.2%
82 5173 8.889 0.1%
84 5299 10.43 0.1%
86 5430 7.174 0.1%
88 5554 13.71 0.2%
90 5699 4.643 0.0%
92 5817 6.386 0.1%
94 5948 8.436 0.1%
96 6062 5.604 0.0%
98 6216 11.4 0.1%
100 6319 8.833 0.1%

Quality and confidence:
param error
p 0.031

Model:
Time ~= 46.88
+ p 62.73
µs

Reads = 2 + (3 * p)
Writes = 2 + (3 * p)

…n=polkadot-dev --steps=50 --repeat=20 --pallet=pallet_treasury --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/polkadot/src/weights/
@shawntabrizi
Copy link
Member Author

bot merge

@ghost
Copy link

ghost commented Apr 26, 2021

Waiting for commit status.

@ghost ghost merged commit 97f905f into master Apr 26, 2021
@ghost ghost deleted the shawntabrizi-bounded-treasury branch April 26, 2021 16:09
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. D5-nicetohaveaudit ⚠️ PR contains trivial changes to logic that should be properly reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants