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

pallet-staking: Add extrinsic force_apply_min_commission #10786

Merged
merged 28 commits into from
Feb 10, 2022

Conversation

emostov
Copy link
Contributor

@emostov emostov commented Feb 3, 2022

This PR adds the extrinsic force_apply_min_commission. The extrinsic can only be called be called by anyone against any validator with a commission below MinCommission.

polkadot companion: paritytech/polkadot#4881

This PR also improves the docs for try_mutate_exists to specify that the closure will only be called with Some if the value exists

@github-actions github-actions bot added the A0-please_review Pull request needs code review. label Feb 3, 2022
@emostov emostov added B7-runtimenoteworthy 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. and removed E6-transactionversion labels Feb 3, 2022
@emostov
Copy link
Contributor Author

emostov commented Feb 3, 2022

/benchmark runtime pallet pallet_staking

@parity-benchapp
Copy link

parity-benchapp bot commented Feb 3, 2022

Benchmark Runtime Pallet for branch "zeke-force-min-stake" with command cargo run --quiet --profile=production --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_staking --extrinsic="*" --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/staking/src/weights.rs --template=./.maintain/frame-weight-template.hbs

Toolchain: stable-x86_64-unknown-linux-gnu (default)
rustc 1.57.0 (f1edd0429 2021-11-29)

Results
Pallet: "pallet_staking", Extrinsic: "bond", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Staking Bonded (r:1 w:1)
Storage: Staking Ledger (r:1 w:1)
Storage: Staking CurrentEra (r:1 w:0)
Storage: Staking HistoryDepth (r:1 w:0)
Storage: Balances Locks (r:1 w:1)
Storage: Staking Payee (r:0 w:1)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    37.59
              µs

Reads = 5
Writes = 4

Min Squares Analysis
========
-- Extrinsic Time --

Model:
Time ~=    37.59
              µs

Reads = 5
Writes = 4

Pallet: "pallet_staking", Extrinsic: "bond_extra", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Staking Bonded (r:1 w:0)
Storage: Staking Ledger (r:1 w:1)
Storage: Balances Locks (r:1 w:1)
Storage: BagsList ListNodes (r:3 w:3)
Storage: BagsList ListBags (r:2 w:2)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    65.49
              µs

Reads = 8
Writes = 7

Min Squares Analysis
========
-- Extrinsic Time --

Model:
Time ~=    65.49
              µs

Reads = 8
Writes = 7

Pallet: "pallet_staking", Extrinsic: "unbond", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Staking Ledger (r:1 w:1)
Storage: Staking Nominators (r:1 w:0)
Storage: Staking MinNominatorBond (r:1 w:0)
Storage: Staking CurrentEra (r:1 w:0)
Storage: Balances Locks (r:1 w:1)
Storage: System Account (r:1 w:1)
Storage: BagsList ListNodes (r:3 w:3)
Storage: Staking Bonded (r:1 w:0)
Storage: BagsList ListBags (r:2 w:2)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    71.99
              µs

Reads = 12
Writes = 8

Min Squares Analysis
========
-- Extrinsic Time --

Model:
Time ~=    71.99
              µs

Reads = 12
Writes = 8

Pallet: "pallet_staking", Extrinsic: "withdraw_unbonded_update", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Staking Ledger (r:1 w:1)
Storage: Staking CurrentEra (r:1 w:0)
Storage: Balances Locks (r:1 w:1)
Storage: System Account (r:1 w:1)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    30.52
    + s    0.052
              µs

Reads = 4 + (0 * s)
Writes = 3 + (0 * s)

Min Squares Analysis
========
-- Extrinsic Time --

Data points distribution:
    s   mean µs  sigma µs       %
    0     29.44     0.188    0.6%
    2     29.87     0.159    0.5%
    4     29.98      0.16    0.5%
    6     30.66     0.315    1.0%
    8     31.11     0.181    0.5%
   10     30.45     0.188    0.6%
   12      30.3     0.101    0.3%
   14     30.79      0.15    0.4%
   16     31.45     0.226    0.7%
   18     31.16     0.404    1.2%
   20     31.62     0.231    0.7%
   22     31.86     0.424    1.3%
   24     32.24     0.204    0.6%
   26     31.84     0.203    0.6%
   28     31.98     0.182    0.5%
   30     32.18     0.135    0.4%
   32     32.23     0.227    0.7%
   34      32.8     0.157    0.4%
   36     33.28     0.236    0.7%
   38     32.96     0.123    0.3%
   40     32.75     0.182    0.5%
   42     32.97      0.13    0.3%
   44     33.01      0.09    0.2%
   46     33.11     0.135    0.4%
   48     33.37     0.202    0.6%
   50     33.04     0.141    0.4%
   52     33.41     0.134    0.4%
   54     33.72     0.069    0.2%
   56     33.89     0.101    0.2%
   58     33.62     0.207    0.6%
   60     34.04     0.109    0.3%
   62     33.87     0.133    0.3%
   64     34.08     0.202    0.5%
   66     34.31     0.183    0.5%
   68     33.94     0.153    0.4%
   70     33.81     0.181    0.5%
   72     34.34      0.17    0.4%
   74     34.38      0.26    0.7%
   76     34.55      0.14    0.4%
   78      34.8     0.158    0.4%
   80     34.86     0.157    0.4%
   82     34.95      0.27    0.7%
   84      34.6     0.127    0.3%
   86     34.76     0.196    0.5%
   88     35.09     0.234    0.6%
   90     35.36       0.2    0.5%
   92     35.15     0.138    0.3%
   94     35.35     0.238    0.6%
   96     34.87     0.196    0.5%
   98     35.43     0.147    0.4%
  100     35.29     0.153    0.4%

Quality and confidence:
param     error
s             0

Model:
Time ~=     30.4
    + s    0.054
              µs

Reads = 4 + (0 * s)
Writes = 3 + (0 * s)

Pallet: "pallet_staking", Extrinsic: "withdraw_unbonded_kill", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Staking Ledger (r:1 w:1)
Storage: Staking CurrentEra (r:1 w:0)
Storage: Staking Bonded (r:1 w:1)
Storage: Staking SlashingSpans (r:1 w:0)
Storage: Staking Validators (r:1 w:0)
Storage: Staking Nominators (r:1 w:1)
Storage: Staking CounterForNominators (r:1 w:1)
Storage: BagsList ListNodes (r:2 w:2)
Storage: BagsList ListBags (r:1 w:1)
Storage: BagsList CounterForListNodes (r:1 w:1)
Storage: System Account (r:1 w:1)
Storage: Balances Locks (r:1 w:1)
Storage: Staking Payee (r:0 w:1)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    59.26
    + s        0
              µs

Reads = 13 + (0 * s)
Writes = 11 + (0 * s)

Min Squares Analysis
========
-- Extrinsic Time --

Data points distribution:
    s   mean µs  sigma µs       %
    0     59.57     0.288    0.4%
    2     59.65     0.153    0.2%
    4     59.36     0.274    0.4%
    6     59.19     0.329    0.5%
    8     58.89     0.311    0.5%
   10     59.24     0.146    0.2%
   12     59.54     0.372    0.6%
   14     58.79     0.206    0.3%
   16     58.97     0.305    0.5%
   18     58.77     0.329    0.5%
   20     59.27     0.817    1.3%
   22     59.31     0.495    0.8%
   24     59.83      0.76    1.2%
   26     58.97     0.276    0.4%
   28     59.24     0.246    0.4%
   30     59.13     0.149    0.2%
   32     58.87     0.318    0.5%
   34     59.13     0.145    0.2%
   36     59.03     0.294    0.4%
   38     59.42     0.308    0.5%
   40     59.05     0.165    0.2%
   42     59.17     0.132    0.2%
   44     59.47     0.141    0.2%
   46     59.39     0.498    0.8%
   48     59.17     0.258    0.4%
   50     59.33     0.242    0.4%
   52     59.27     0.268    0.4%
   54     59.13     0.193    0.3%
   56     59.31     0.198    0.3%
   58     59.24     0.216    0.3%
   60     59.56     0.431    0.7%
   62     59.36     0.357    0.6%
   64     58.94     0.227    0.3%
   66     58.88     0.226    0.3%
   68      59.1     0.218    0.3%
   70     59.24     0.194    0.3%
   72     58.92     0.125    0.2%
   74        59     0.274    0.4%
   76     59.11     0.357    0.6%
   78     58.93     0.272    0.4%
   80     58.71     0.233    0.3%
   82     59.31     0.252    0.4%
   84     59.02     0.227    0.3%
   86     59.06     0.359    0.6%
   88      59.3     0.329    0.5%
   90      59.1     0.133    0.2%
   92     58.57     0.173    0.2%
   94     59.26     0.255    0.4%
   96     58.41     0.275    0.4%
   98     59.48     0.152    0.2%
  100     58.83     0.172    0.2%

Quality and confidence:
param     error
s             0

Model:
Time ~=     59.3
    + s        0
              µs

Reads = 13 + (0 * s)
Writes = 11 + (0 * s)

Pallet: "pallet_staking", Extrinsic: "validate", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Staking Ledger (r:1 w:0)
Storage: Staking MinValidatorBond (r:1 w:0)
Storage: Staking MinCommission (r:1 w:0)
Storage: Staking Validators (r:1 w:1)
Storage: Staking MaxValidatorsCount (r:1 w:0)
Storage: Staking Nominators (r:1 w:1)
Storage: Staking CounterForNominators (r:1 w:1)
Storage: BagsList ListNodes (r:2 w:2)
Storage: BagsList ListBags (r:1 w:1)
Storage: BagsList CounterForListNodes (r:1 w:1)
Storage: Staking CounterForValidators (r:1 w:1)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    45.84
              µs

Reads = 12
Writes = 8

Min Squares Analysis
========
-- Extrinsic Time --

Model:
Time ~=    45.84
              µs

Reads = 12
Writes = 8

Pallet: "pallet_staking", Extrinsic: "kick", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Staking Ledger (r:1 w:0)
Storage: Staking Nominators (r:1 w:1)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    19.88
    + k    8.125
              µs

Reads = 1 + (1 * k)
Writes = 0 + (1 * k)

Min Squares Analysis
========
-- Extrinsic Time --

Data points distribution:
    k   mean µs  sigma µs       %
    1     30.91     0.143    0.4%
    3     50.29     0.157    0.3%
    5     63.93     2.031    3.1%
    7     76.27     0.335    0.4%
    9     94.64     2.416    2.5%
   11     107.7     0.529    0.4%
   13     129.2     0.564    0.4%
   15     144.3     0.417    0.2%
   17     155.1     0.542    0.3%
   19     180.7     1.844    1.0%
   21     197.5     0.394    0.1%
   23     201.3     0.537    0.2%
   25     220.4     1.069    0.4%
   27     239.6     3.259    1.3%
   29     264.5     1.358    0.5%
   31     266.9     1.048    0.3%
   33     288.3     1.257    0.4%
   35     299.3     1.984    0.6%
   37     333.1     1.455    0.4%
   39       340     7.484    2.2%
   41     359.4      0.84    0.2%
   43     364.5     1.057    0.2%
   45     381.1     1.305    0.3%
   47       403      3.39    0.8%
   49       408     1.528    0.3%
   51     425.5     0.894    0.2%
   53     453.5     5.236    1.1%
   55       460     1.832    0.3%
   57     474.1     1.213    0.2%
   59       492     1.548    0.3%
   61     513.9     6.187    1.2%
   63     529.1      2.61    0.4%
   65     546.1     8.831    1.6%
   67     583.7     1.424    0.2%
   69     604.6     2.389    0.3%
   71     610.8      1.78    0.2%
   73     605.3     1.576    0.2%
   75     648.8      2.45    0.3%
   77     639.3      2.36    0.3%
   79     656.6     1.176    0.1%
   81     684.6     5.791    0.8%
   83     688.6     2.911    0.4%
   85       699     1.727    0.2%
   87     754.8     4.363    0.5%
   89       735     2.921    0.3%
   91     748.1      3.58    0.4%
   93     769.2     4.827    0.6%
   95       788     2.912    0.3%
   97     801.8     8.022    1.0%
   99       847     2.604    0.3%
  101     835.1     6.604    0.7%
  103     857.3     12.87    1.5%
  105     879.1     10.59    1.2%
  107     894.8     15.56    1.7%
  109     900.1     2.845    0.3%
  111     949.8     7.715    0.8%
  113     939.1     3.067    0.3%
  115     955.8     5.097    0.5%
  117     978.8     3.081    0.3%
  119     987.8     3.911    0.3%
  121      1041     15.24    1.4%
  123      1017     3.902    0.3%
  125      1052        10    0.9%
  127      1058     11.83    1.1%

Quality and confidence:
param     error
k         0.012

Model:
Time ~=    18.82
    + k     8.18
              µs

Reads = 1 + (1 * k)
Writes = 0 + (1 * k)

Pallet: "pallet_staking", Extrinsic: "nominate", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Staking Ledger (r:1 w:0)
Storage: Staking MinNominatorBond (r:1 w:0)
Storage: Staking Nominators (r:1 w:1)
Storage: Staking MaxNominatorsCount (r:1 w:0)
Storage: Staking Validators (r:2 w:0)
Storage: Staking CurrentEra (r:1 w:0)
Storage: Staking Bonded (r:1 w:0)
Storage: BagsList ListNodes (r:2 w:2)
Storage: BagsList ListBags (r:1 w:1)
Storage: BagsList CounterForListNodes (r:1 w:1)
Storage: Staking CounterForNominators (r:1 w:1)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    51.43
    + n    3.425
              µs

Reads = 12 + (1 * n)
Writes = 6 + (0 * n)

Min Squares Analysis
========
-- Extrinsic Time --

Data points distribution:
    n   mean µs  sigma µs       %
    1     53.69     0.199    0.3%
    2     59.08     0.225    0.3%
    3      62.1     0.212    0.3%
    4     64.84     0.178    0.2%
    5     68.98     0.291    0.4%
    6     71.68     0.237    0.3%
    7     74.86     0.222    0.2%
    8     79.16     0.285    0.3%
    9     81.59     0.434    0.5%
   10     86.59     0.407    0.4%
   11     88.96     0.411    0.4%
   12     91.58     0.465    0.5%
   13     95.97     0.285    0.2%
   14     98.91     0.364    0.3%
   15     102.6     0.312    0.3%
   16     106.9     0.186    0.1%

Quality and confidence:
param     error
n         0.011

Model:
Time ~=    51.33
    + n    3.429
              µs

Reads = 12 + (1 * n)
Writes = 6 + (0 * n)

Pallet: "pallet_staking", Extrinsic: "chill", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Staking Ledger (r:1 w:0)
Storage: Staking Validators (r:1 w:0)
Storage: Staking Nominators (r:1 w:1)
Storage: Staking CounterForNominators (r:1 w:1)
Storage: BagsList ListNodes (r:2 w:2)
Storage: BagsList ListBags (r:1 w:1)
Storage: BagsList CounterForListNodes (r:1 w:1)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=     45.1
              µs

Reads = 8
Writes = 6

Min Squares Analysis
========
-- Extrinsic Time --

Model:
Time ~=     45.1
              µs

Reads = 8
Writes = 6

Pallet: "pallet_staking", Extrinsic: "set_payee", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Staking Ledger (r:1 w:0)
Storage: Staking Payee (r:0 w:1)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    7.825
              µs

Reads = 1
Writes = 1

Min Squares Analysis
========
-- Extrinsic Time --

Model:
Time ~=    7.825
              µs

Reads = 1
Writes = 1

Pallet: "pallet_staking", Extrinsic: "set_controller", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Staking Bonded (r:1 w:1)
Storage: Staking Ledger (r:2 w:2)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    15.96
              µs

Reads = 3
Writes = 3

Min Squares Analysis
========
-- Extrinsic Time --

Model:
Time ~=    15.96
              µs

Reads = 3
Writes = 3

Pallet: "pallet_staking", Extrinsic: "set_validator_count", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Staking ValidatorCount (r:0 w:1)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    1.159
              µs

Reads = 0
Writes = 1

Min Squares Analysis
========
-- Extrinsic Time --

Model:
Time ~=    1.159
              µs

Reads = 0
Writes = 1

Pallet: "pallet_staking", Extrinsic: "force_no_eras", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Staking ForceEra (r:0 w:1)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    1.116
              µs

Reads = 0
Writes = 1

Min Squares Analysis
========
-- Extrinsic Time --

Model:
Time ~=    1.116
              µs

Reads = 0
Writes = 1

Pallet: "pallet_staking", Extrinsic: "force_new_era", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Staking ForceEra (r:0 w:1)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    1.136
              µs

Reads = 0
Writes = 1

Min Squares Analysis
========
-- Extrinsic Time --

Model:
Time ~=    1.136
              µs

Reads = 0
Writes = 1

Pallet: "pallet_staking", Extrinsic: "force_new_era_always", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Staking ForceEra (r:0 w:1)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    1.144
              µs

Reads = 0
Writes = 1

Min Squares Analysis
========
-- Extrinsic Time --

Model:
Time ~=    1.144
              µs

Reads = 0
Writes = 1

Pallet: "pallet_staking", Extrinsic: "set_invulnerables", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Staking Invulnerables (r:0 w:1)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    1.625
    + v    0.053
              µs

Reads = 0 + (0 * v)
Writes = 1 + (0 * v)

Min Squares Analysis
========
-- Extrinsic Time --

Data points distribution:
    v   mean µs  sigma µs       %
    0     1.224     0.027    2.2%
   20     2.553     0.013    0.5%
   40     3.669     0.014    0.3%
   60     4.807     0.039    0.8%
   80      5.94     0.038    0.6%
  100      7.02     0.039    0.5%
  120     8.042     0.023    0.2%
  140     9.155     0.045    0.4%
  160     10.27     0.074    0.7%
  180     11.32     0.028    0.2%
  200     12.41     0.039    0.3%
  220     13.41     0.051    0.3%
  240      14.5     0.047    0.3%
  260     15.56     0.038    0.2%
  280     16.74     0.038    0.2%
  300     18.94     0.054    0.2%
  320     18.84     0.026    0.1%
  340     19.92     0.027    0.1%
  360     21.03     0.064    0.3%
  380     22.28     0.041    0.1%
  400     23.21     0.152    0.6%
  420     23.88     0.039    0.1%
  440     25.52     0.057    0.2%
  460     26.35     0.186    0.7%
  480     27.72     0.016    0.0%
  500     28.79     0.042    0.1%
  520      29.9     0.059    0.1%
  540     30.96     0.044    0.1%
  560     32.13     0.033    0.1%
  580     32.57     0.062    0.1%
  600     33.61     0.045    0.1%
  620     35.58     0.048    0.1%
  640     36.34     0.329    0.9%
  660     36.99     0.196    0.5%
  680     37.92     0.035    0.0%
  700     39.06     0.058    0.1%
  720     40.02     0.056    0.1%
  740     41.13     0.047    0.1%
  760     42.37     0.084    0.1%
  780     43.25     0.051    0.1%
  800     44.43     0.043    0.0%
  820     56.13     0.047    0.0%
  840      46.5      0.11    0.2%
  860     47.57     0.077    0.1%
  880     48.89     0.065    0.1%
  900     49.83     0.044    0.0%
  920     50.91     0.037    0.0%
  940     52.05       0.1    0.1%
  960     53.18     0.064    0.1%
  980      54.2     0.085    0.1%
 1000     55.29     0.062    0.1%

Quality and confidence:
param     error
v             0

Model:
Time ~=     1.54
    + v    0.054
              µs

Reads = 0 + (0 * v)
Writes = 1 + (0 * v)

Pallet: "pallet_staking", Extrinsic: "force_unstake", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Staking Bonded (r:1 w:1)
Storage: Staking SlashingSpans (r:1 w:0)
Storage: Staking Validators (r:1 w:0)
Storage: Staking Nominators (r:1 w:1)
Storage: Staking CounterForNominators (r:1 w:1)
Storage: BagsList ListNodes (r:2 w:2)
Storage: BagsList ListBags (r:1 w:1)
Storage: BagsList CounterForListNodes (r:1 w:1)
Storage: System Account (r:1 w:1)
Storage: Balances Locks (r:1 w:1)
Storage: Staking Ledger (r:0 w:1)
Storage: Staking Payee (r:0 w:1)
Storage: Staking SpanSlash (r:0 w:2)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    57.66
    + s    0.794
              µs

Reads = 11 + (0 * s)
Writes = 12 + (1 * s)

Min Squares Analysis
========
-- Extrinsic Time --

Data points distribution:
    s   mean µs  sigma µs       %
    0     53.76      0.19    0.3%
    2     58.29     0.358    0.6%
    4     59.95     0.159    0.2%
    6     61.76     0.328    0.5%
    8     63.55     0.129    0.2%
   10     65.45     0.446    0.6%
   12     67.31     0.238    0.3%
   14     68.38     0.226    0.3%
   16     70.54     0.256    0.3%
   18     72.22     0.187    0.2%
   20     73.27      0.23    0.3%
   22     75.53     0.268    0.3%
   24     79.14     0.297    0.3%
   26     78.49     0.164    0.2%
   28     80.61     0.154    0.1%
   30     81.75     0.271    0.3%
   32     83.21     0.247    0.2%
   34     84.94     0.171    0.2%
   36     86.85     0.683    0.7%
   38     88.28     0.391    0.4%
   40      89.4     0.442    0.4%
   42     91.58     0.203    0.2%
   44     92.37     0.281    0.3%
   46     94.26     0.209    0.2%
   48     95.11     0.222    0.2%
   50     96.55     0.806    0.8%
   52     99.01     0.191    0.1%
   54     101.6     0.244    0.2%
   56     102.7     0.221    0.2%
   58     103.3     0.258    0.2%
   60     105.4     0.327    0.3%
   62     106.5     0.251    0.2%
   64     107.7     0.231    0.2%
   66     110.4     0.194    0.1%
   68     112.1     0.294    0.2%
   70     112.3      0.32    0.2%
   72     114.9     0.353    0.3%
   74     119.5      0.29    0.2%
   76     120.9     0.517    0.4%
   78     119.8     0.255    0.2%
   80     121.1     0.383    0.3%
   82     123.1      0.85    0.6%
   84     124.5     0.168    0.1%
   86     126.5     0.457    0.3%
   88     126.1     0.627    0.4%
   90     128.8     0.531    0.4%
   92       131      0.24    0.1%
   94     131.5     0.193    0.1%
   96       132     0.773    0.5%
   98     134.4     1.082    0.8%
  100     135.2      1.02    0.7%

Quality and confidence:
param     error
s         0.001

Model:
Time ~=    57.52
    + s    0.796
              µs

Reads = 11 + (0 * s)
Writes = 12 + (1 * s)

Pallet: "pallet_staking", Extrinsic: "cancel_deferred_slash", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Staking UnappliedSlashes (r:1 w:1)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=     1064
    + s    4.994
              µs

Reads = 1 + (0 * s)
Writes = 1 + (0 * s)

Min Squares Analysis
========
-- Extrinsic Time --

Data points distribution:
    s   mean µs  sigma µs       %
    1     157.5     0.424    0.2%
   20     341.4     0.208    0.0%
   39     533.4     6.224    1.1%
   58     707.7     10.09    1.4%
   77     881.4      10.2    1.1%
   96      1057     15.73    1.4%
  115      1230     15.96    1.2%
  134      1381     12.32    0.8%
  153      1549     13.92    0.8%
  172      1712     17.65    1.0%
  191      1870     12.26    0.6%
  210      2012     15.45    0.7%
  229      2161     20.25    0.9%
  248      2307     10.18    0.4%
  267      2445      13.8    0.5%
  286      2583     16.56    0.6%
  305      2715     9.261    0.3%
  324      2841     8.672    0.3%
  343      2967     3.642    0.1%
  362      3081     13.03    0.4%
  381      3197     13.87    0.4%
  400      3345     20.16    0.6%
  419      3430     13.75    0.4%
  438      3542     11.02    0.3%
  457      3637     3.666    0.1%
  476      3742     10.55    0.2%
  495      3845     13.63    0.3%
  514      3933     11.15    0.2%
  533      4011     5.899    0.1%
  552      4115     12.87    0.3%
  571      4190     12.91    0.3%
  590      4262     16.67    0.3%
  609      4349     16.28    0.3%
  628      4413     20.12    0.4%
  647      4485     18.64    0.4%
  666      4542     13.62    0.2%
  685      4603     12.53    0.2%
  704      4659     13.42    0.2%
  723      4726     12.46    0.2%
  742      4781     9.414    0.1%
  761      4806     12.63    0.2%
  780      4860     11.43    0.2%
  799      4888     12.91    0.2%
  818      4930     12.63    0.2%
  837      4967     13.56    0.2%
  856      4989     13.12    0.2%
  875      5027     26.66    0.5%
  894      5030     13.64    0.2%
  913      5074      18.7    0.3%
  932      5069     16.15    0.3%
  951      5081     14.31    0.2%
  970      5083     13.28    0.2%
  989      5090     11.19    0.2%

Quality and confidence:
param     error
s         0.056

Model:
Time ~=    949.7
    + s     4.99
              µs

Reads = 1 + (0 * s)
Writes = 1 + (0 * s)

Pallet: "pallet_staking", Extrinsic: "payout_stakers_dead_controller", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Staking CurrentEra (r:1 w:0)
Storage: Staking HistoryDepth (r:1 w:0)
Storage: Staking ErasValidatorReward (r:1 w:0)
Storage: Staking Bonded (r:2 w:0)
Storage: Staking Ledger (r:1 w:1)
Storage: Staking ErasStakersClipped (r:1 w:0)
Storage: Staking ErasRewardPoints (r:1 w:0)
Storage: Staking ErasValidatorPrefs (r:1 w:0)
Storage: Staking Payee (r:2 w:0)
Storage: System Account (r:2 w:2)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    83.46
    + n     23.9
              µs

Reads = 10 + (3 * n)
Writes = 2 + (1 * n)

Min Squares Analysis
========
-- Extrinsic Time --

Data points distribution:
    n   mean µs  sigma µs       %
    1       145     0.333    0.2%
    6     221.8     0.597    0.2%
   11     340.7     2.445    0.7%
   16       465     0.674    0.1%
   21     578.6     1.159    0.2%
   26     691.2     1.642    0.2%
   31       840     3.866    0.4%
   36     941.1     9.395    0.9%
   41      1065     10.98    1.0%
   46      1178     11.87    1.0%
   51      1303     12.13    0.9%
   56      1424     11.15    0.7%
   61      1533     12.19    0.7%
   66      1684     4.663    0.2%
   71      1782     12.21    0.6%
   76      1872     10.61    0.5%
   81      2024     11.08    0.5%
   86      2147     11.32    0.5%
   91      2281     17.33    0.7%
   96      2379     18.66    0.7%
  101      2493     13.06    0.5%
  106      2650     23.16    0.8%
  111      2738      9.81    0.3%
  116      2818     11.44    0.4%
  121      2957     17.43    0.5%
  126      3072     9.103    0.2%
  131      3205     17.54    0.5%
  136      3295     24.81    0.7%
  141      3443     14.99    0.4%
  146      3573     13.09    0.3%
  151      3701      23.9    0.6%
  156      3808     15.16    0.3%
  161      3935     18.29    0.4%
  166      4065     18.06    0.4%
  171      4224     22.56    0.5%
  176      4374     30.04    0.6%
  181      4412     28.51    0.6%
  186      4591     14.59    0.3%
  191      4653     17.85    0.3%
  196      4721      13.6    0.2%
  201      4937     24.92    0.5%
  206      5022     14.79    0.2%
  211      5129     35.58    0.6%
  216      5233     13.72    0.2%
  221      5353      14.2    0.2%
  226      5475     13.58    0.2%
  231      5623     18.36    0.3%
  236      5749     31.22    0.5%
  241      5850     37.34    0.6%
  246      5974     21.69    0.3%
  251      6073      21.4    0.3%
  256      6174     23.03    0.3%

Quality and confidence:
param     error
n         0.017

Model:
Time ~=    83.85
    + n    23.92
              µs

Reads = 10 + (3 * n)
Writes = 2 + (1 * n)

Pallet: "pallet_staking", Extrinsic: "payout_stakers_alive_staked", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Staking CurrentEra (r:1 w:0)
Storage: Staking HistoryDepth (r:1 w:0)
Storage: Staking ErasValidatorReward (r:1 w:0)
Storage: Staking Bonded (r:2 w:0)
Storage: Staking Ledger (r:2 w:2)
Storage: Staking ErasStakersClipped (r:1 w:0)
Storage: Staking ErasRewardPoints (r:1 w:0)
Storage: Staking ErasValidatorPrefs (r:1 w:0)
Storage: Staking Payee (r:2 w:0)
Storage: System Account (r:2 w:2)
Storage: Balances Locks (r:2 w:2)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    107.3
    + n    33.21
              µs

Reads = 11 + (5 * n)
Writes = 3 + (3 * n)

Min Squares Analysis
========
-- Extrinsic Time --

Data points distribution:
    n   mean µs  sigma µs       %
    1     131.6     0.913    0.6%
    6     303.5     2.446    0.8%
   11     467.5     1.447    0.3%
   16     639.1     1.338    0.2%
   21     798.3     3.227    0.4%
   26     973.2     4.203    0.4%
   31      1134     6.306    0.5%
   36      1316     4.668    0.3%
   41      1496     14.42    0.9%
   46      1619     4.363    0.2%
   51      1789     16.22    0.9%
   56      1972     10.79    0.5%
   61      2149     16.34    0.7%
   66      2301     8.748    0.3%
   71      2451     9.969    0.4%
   76      2620     6.649    0.2%
   81      2804     18.33    0.6%
   86      2948     13.25    0.4%
   91      3145     15.49    0.4%
   96      3337     24.27    0.7%
  101      3456     18.12    0.5%
  106      3630     15.14    0.4%
  111      3822     6.938    0.1%
  116      3958      12.6    0.3%
  121      4147     8.073    0.1%
  126      4293     25.64    0.5%
  131      4472     26.86    0.6%
  136      4604     18.74    0.4%
  141      4819     13.28    0.2%
  146      4963     15.24    0.3%
  151      5096     29.07    0.5%
  156      5266     19.99    0.3%
  161      5461     29.33    0.5%
  166      5604     19.05    0.3%
  171      5761     20.85    0.3%
  176      5928     13.67    0.2%
  181      6080     19.09    0.3%
  186      6299     20.84    0.3%
  191      6471     25.81    0.3%
  196      6723     34.74    0.5%
  201      6750     17.01    0.2%
  206      7004     27.09    0.3%
  211      7083     15.38    0.2%
  216      7301     40.35    0.5%
  221      7509     37.69    0.5%
  226      7698     19.47    0.2%
  231      7769     36.57    0.4%
  236      7956     44.39    0.5%
  241      8141     28.08    0.3%
  246      8198     38.78    0.4%
  251      8496     40.93    0.4%
  256      8541     28.28    0.3%

Quality and confidence:
param     error
n         0.022

Model:
Time ~=      107
    + n    33.24
              µs

Reads = 11 + (5 * n)
Writes = 3 + (3 * n)

Pallet: "pallet_staking", Extrinsic: "rebond", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Staking Ledger (r:1 w:1)
Storage: Balances Locks (r:1 w:1)
Storage: System Account (r:1 w:1)
Storage: BagsList ListNodes (r:3 w:3)
Storage: Staking Bonded (r:1 w:0)
Storage: BagsList ListBags (r:2 w:2)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    66.12
    + l    0.011
              µs

Reads = 9 + (0 * l)
Writes = 8 + (0 * l)

Min Squares Analysis
========
-- Extrinsic Time --

Data points distribution:
    l   mean µs  sigma µs       %
    1     64.93     0.296    0.4%
    2     65.79     0.702    1.0%
    3     65.98     0.212    0.3%
    4     66.95     0.372    0.5%
    5      67.2      0.29    0.4%
    6     67.19     0.225    0.3%
    7     67.12     0.288    0.4%
    8     66.97     0.306    0.4%
    9     67.49     0.945    1.4%
   10     65.26     0.315    0.4%
   11     65.44      0.26    0.3%
   12     66.37     0.662    0.9%
   13     65.84     0.196    0.2%
   14     65.82     0.243    0.3%
   15     66.16     0.144    0.2%
   16     65.69     0.212    0.3%
   17     65.66     0.145    0.2%
   18     66.43     0.364    0.5%
   19     66.53       0.4    0.6%
   20     65.73     0.311    0.4%
   21     65.97     0.187    0.2%
   22     66.25     0.454    0.6%
   23     65.56     0.183    0.2%
   24     65.99     0.104    0.1%
   25     66.61     0.139    0.2%
   26     66.79     0.167    0.2%
   27     66.41     0.238    0.3%
   28     66.53     0.156    0.2%
   29     66.39     0.351    0.5%
   30     66.81     0.235    0.3%
   31     66.78     0.406    0.6%
   32     66.77     0.185    0.2%

Quality and confidence:
param     error
l         0.004

Model:
Time ~=    66.17
    + l    0.007
              µs

Reads = 9 + (0 * l)
Writes = 8 + (0 * l)

Pallet: "pallet_staking", Extrinsic: "set_history_depth", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Staking CurrentEra (r:1 w:0)
Storage: Staking HistoryDepth (r:1 w:1)
Storage: Staking ErasStakersClipped (r:0 w:2)
Storage: Staking ErasValidatorPrefs (r:0 w:2)
Storage: Staking ErasValidatorReward (r:0 w:1)
Storage: Staking ErasRewardPoints (r:0 w:1)
Storage: Staking ErasStakers (r:0 w:2)
Storage: Staking ErasTotalStake (r:0 w:1)
Storage: Staking ErasStartSessionIndex (r:0 w:1)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=        0
    + e    20.33
              µs

Reads = 2 + (0 * e)
Writes = 4 + (7 * e)

Min Squares Analysis
========
-- Extrinsic Time --

Data points distribution:
    e   mean µs  sigma µs       %
    1     23.79     0.154    0.6%
    2     38.53     0.178    0.4%
    3     50.93     0.423    0.8%
    4     67.34     0.294    0.4%
    5     81.63     0.216    0.2%
    6     92.85     0.227    0.2%
    7     104.8      0.26    0.2%
    8     119.9     0.751    0.6%
    9     132.9     0.568    0.4%
   10     150.3     0.443    0.2%
   11     161.6     0.571    0.3%
   12     177.6     0.693    0.3%
   13     193.5       0.6    0.3%
   14       207     0.566    0.2%
   15     219.5     0.407    0.1%
   16     235.5     0.347    0.1%
   17     252.7     0.498    0.1%
   18     268.6     0.818    0.3%
   19     284.2     1.067    0.3%
   20     297.3     0.576    0.1%
   21     316.6       0.8    0.2%
   22     335.1     0.855    0.2%
   23     350.3     1.417    0.4%
   24     367.1     1.403    0.3%
   25     389.1      8.16    2.0%
   26       404     0.946    0.2%
   27     421.6     1.235    0.2%
   28     435.8     4.352    0.9%
   29     453.9     1.076    0.2%
   30     467.3     2.158    0.4%
   31     492.2     0.691    0.1%
   32     505.1     2.301    0.4%
   33     524.7     1.045    0.1%
   34     543.6     1.692    0.3%
   35     557.8     3.159    0.5%
   36     583.5     1.188    0.2%
   37     587.5     5.691    0.9%
   38     611.9      2.55    0.4%
   39     643.8     10.18    1.5%
   40     641.5      2.22    0.3%
   41     664.3     2.249    0.3%
   42     678.7     3.616    0.5%
   43     704.2      5.76    0.8%
   44     727.9     3.301    0.4%
   45     741.1     3.613    0.4%
   46     783.3     14.12    1.8%
   47     800.6     8.471    1.0%
   48     808.1     7.262    0.8%
   49     822.8     1.315    0.1%
   50     845.5     9.352    1.1%
   51     863.3     10.47    1.2%
   52     891.7      9.33    1.0%
   53     914.9     6.921    0.7%
   54       941        10    1.0%
   55     951.3     5.341    0.5%
   56       983     3.667    0.3%
   57     991.6     3.035    0.3%
   58      1021     6.776    0.6%
   59      1038     3.778    0.3%
   60      1060     7.492    0.7%
   61      1101     11.39    1.0%
   62      1099     6.278    0.5%
   63      1129     8.841    0.7%
   64      1155     12.79    1.1%
   65      1154     10.46    0.9%
   66      1198      7.49    0.6%
   67      1220     12.82    1.0%
   68      1228       3.9    0.3%
   69      1236     6.061    0.4%
   70      1270     12.16    0.9%
   71      1304     3.945    0.3%
   72      1304     6.549    0.5%
   73      1342     2.758    0.2%
   74      1371     12.05    0.8%
   75      1409     6.735    0.4%
   76      1434     10.02    0.6%
   77      1454     11.21    0.7%
   78      1506     10.33    0.6%
   79      1488      9.88    0.6%
   80      1519     9.324    0.6%
   81      1564     13.37    0.8%
   82      1600     12.47    0.7%
   83      1615     11.19    0.6%
   84      1621     9.387    0.5%
   85      1684     14.85    0.8%
   86      1670     10.67    0.6%
   87      1703     10.49    0.6%
   88      1732     9.927    0.5%
   89      1761     11.53    0.6%
   90      1795      10.1    0.5%
   91      1838     6.365    0.3%
   92      1823     9.484    0.5%
   93      1860     7.584    0.4%
   94      1870     8.705    0.4%
   95      1920     11.95    0.6%
   96      1947     13.85    0.7%
   97      1994     10.13    0.5%
   98      2050     19.42    0.9%
   99      2055     17.26    0.8%
  100      2038     13.36    0.6%

Quality and confidence:
param     error
e         0.064

Model:
Time ~=        0
    + e    20.56
              µs

Reads = 2 + (0 * e)
Writes = 4 + (7 * e)

Pallet: "pallet_staking", Extrinsic: "reap_stash", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: System Account (r:1 w:1)
Storage: Staking Bonded (r:1 w:1)
Storage: Staking Ledger (r:1 w:1)
Storage: Staking SlashingSpans (r:1 w:1)
Storage: Staking Validators (r:1 w:0)
Storage: Staking Nominators (r:1 w:1)
Storage: Staking CounterForNominators (r:1 w:1)
Storage: BagsList ListNodes (r:2 w:2)
Storage: BagsList ListBags (r:1 w:1)
Storage: BagsList CounterForListNodes (r:1 w:1)
Storage: Balances Locks (r:1 w:1)
Storage: Staking Payee (r:0 w:1)
Storage: Staking SpanSlash (r:0 w:1)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    62.73
    + s    0.806
              µs

Reads = 12 + (0 * s)
Writes = 12 + (1 * s)

Min Squares Analysis
========
-- Extrinsic Time --

Data points distribution:
    s   mean µs  sigma µs       %
    1     63.47     0.166    0.2%
    2     64.23       0.2    0.3%
    3     65.75      0.31    0.4%
    4     66.14     0.233    0.3%
    5     66.22     0.179    0.2%
    6     66.76     0.277    0.4%
    7     68.18      0.21    0.3%
    8     68.88      0.23    0.3%
    9     69.79     0.146    0.2%
   10      70.7     0.202    0.2%
   11     70.87     0.273    0.3%
   12     72.45      0.14    0.1%
   13     72.98     0.416    0.5%
   14     73.82     0.253    0.3%
   15     74.72      0.18    0.2%
   16     76.04     0.165    0.2%
   17     76.66     0.204    0.2%
   18     76.75     0.559    0.7%
   19     78.48     0.739    0.9%
   20     78.83     0.198    0.2%
   21      79.4     0.223    0.2%
   22     80.31     0.329    0.4%
   23     81.85      0.32    0.3%
   24     82.29     0.243    0.2%
   25     83.06     0.313    0.3%
   26     83.35     0.345    0.4%
   27     84.29     0.363    0.4%
   28     84.85     0.387    0.4%
   29     85.68     0.168    0.1%
   30     87.49     0.356    0.4%
   31     87.55     0.413    0.4%
   32     88.44     0.466    0.5%
   33     89.01      0.35    0.3%
   34     90.34     0.329    0.3%
   35     91.74      0.21    0.2%
   36     91.34     0.447    0.4%
   37     93.83     0.627    0.6%
   38     93.96     0.267    0.2%
   39     93.87      0.32    0.3%
   40     95.79     0.271    0.2%
   41     96.03     0.441    0.4%
   42     97.71     0.434    0.4%
   43     98.09     0.447    0.4%
   44     98.61     0.748    0.7%
   45     99.46     0.273    0.2%
   46      99.7     0.601    0.6%
   47     100.5     0.496    0.4%
   48     100.1     0.629    0.6%
   49     102.3     0.361    0.3%
   50     102.5     0.268    0.2%
   51     104.3     0.596    0.5%
   52     104.2     0.675    0.6%
   53     106.8     1.045    0.9%
   54     107.3     0.274    0.2%
   55     107.5     0.504    0.4%
   56     108.1     0.245    0.2%
   57     108.6     0.178    0.1%
   58     109.5     0.273    0.2%
   59     110.7     0.245    0.2%
   60     111.5      0.39    0.3%
   61       112     0.355    0.3%
   62     112.4      0.46    0.4%
   63     113.8     0.146    0.1%
   64     113.1     0.116    0.1%
   65     114.1     0.274    0.2%
   66     115.6     0.235    0.2%
   67     116.2     0.469    0.4%
   68     118.4     0.163    0.1%
   69     118.8     0.297    0.2%
   70       119     0.204    0.1%
   71     119.1     0.213    0.1%
   72     120.5     0.246    0.2%
   73     121.9     0.384    0.3%
   74     123.2     0.296    0.2%
   75     124.6     1.021    0.8%
   76     126.4     0.709    0.5%
   77     124.7     0.357    0.2%
   78     125.3     0.711    0.5%
   79     126.4     0.309    0.2%
   80     127.7     0.506    0.3%
   81     128.3     0.197    0.1%
   82     127.9     0.337    0.2%
   83     129.3     0.323    0.2%
   84     130.2     0.729    0.5%
   85     130.6     0.358    0.2%
   86     131.9     0.614    0.4%
   87     133.1     0.326    0.2%
   88     132.3     0.382    0.2%
   89     134.2     1.045    0.7%
   90     134.5      0.42    0.3%
   91     138.5     0.602    0.4%
   92     138.9     0.848    0.6%
   93     139.3     0.728    0.5%
   94     139.9     0.457    0.3%
   95     138.7      1.12    0.8%
   96     139.4     0.363    0.2%
   97     140.6     0.167    0.1%
   98     141.4     0.234    0.1%
   99     143.3     1.304    0.9%
  100     138.8     0.511    0.3%

Quality and confidence:
param     error
s         0.001

Model:
Time ~=    62.75
    + s    0.807
              µs

Reads = 12 + (0 * s)
Writes = 12 + (1 * s)

Pallet: "pallet_staking", Extrinsic: "new_era", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Staking CounterForNominators (r:1 w:0)
Storage: Staking CounterForValidators (r:1 w:0)
Storage: Staking Validators (r:2 w:0)
Storage: Staking Bonded (r:101 w:0)
Storage: Staking Ledger (r:101 w:0)
Storage: Staking SlashingSpans (r:1 w:0)
Storage: BagsList ListBags (r:200 w:0)
Storage: BagsList ListNodes (r:100 w:0)
Storage: Staking Nominators (r:100 w:0)
Storage: Staking ValidatorCount (r:1 w:0)
Storage: Staking MinimumValidatorCount (r:1 w:0)
Storage: Staking CurrentEra (r:1 w:1)
Storage: Staking HistoryDepth (r:1 w:0)
Storage: Staking ErasStakersClipped (r:0 w:1)
Storage: Staking ErasValidatorPrefs (r:0 w:1)
Storage: Staking ErasStakers (r:0 w:1)
Storage: Staking ErasTotalStake (r:0 w:1)
Storage: Staking ErasStartSessionIndex (r:0 w:1)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=        0
    + v    206.7
    + n    31.68
              µs

Reads = 208 + (3 * v) + (4 * n)
Writes = 3 + (3 * v) + (0 * n)

Min Squares Analysis
========
-- Extrinsic Time --

Data points distribution:
    v     n   mean µs  sigma µs       %
    1   100      1987     12.65    0.6%
    2   100      2109        19    0.9%
    3   100      2224     14.83    0.6%
    4   100      2368     16.57    0.6%
    5   100      2582     7.865    0.3%
    6   100      2818     17.74    0.6%
    7   100      3033     17.82    0.5%
    8   100      3212     19.23    0.5%
    9   100      3491     16.84    0.4%
   10     1       660     2.627    0.3%
   10     2     676.8     3.256    0.4%
   10     3     749.9     7.763    1.0%
   10     4     771.5     3.477    0.4%
   10     5     807.5     2.788    0.3%
   10     6     835.9     11.55    1.3%
   10     7     858.6     13.22    1.5%
   10     8     872.8     5.575    0.6%
   10     9     913.8     13.03    1.4%
   10    10     962.9     9.395    0.9%
   10    11     997.5      5.08    0.5%
   10    12      1000     5.141    0.5%
   10    13      1052     8.537    0.8%
   10    14      1076     4.824    0.4%
   10    15      1116     6.769    0.6%
   10    16      1163     12.74    1.0%
   10    17      1177     15.54    1.3%
   10    18      1222     9.747    0.7%
   10    19      1237     7.918    0.6%
   10    20      1257     4.339    0.3%
   10    21      1294     11.67    0.9%
   10    22      1323     11.15    0.8%
   10    23      1350     13.47    0.9%
   10    24      1399     12.11    0.8%
   10    25      1431     10.42    0.7%
   10    26      1463     12.85    0.8%
   10    27      1474     6.084    0.4%
   10    28      1527     11.03    0.7%
   10    29      1583     11.38    0.7%
   10    30      1585     9.735    0.6%
   10    31      1629     17.66    1.0%
   10    32      1680     15.41    0.9%
   10    33      1679     13.34    0.7%
   10    34      1683     10.89    0.6%
   10    35      1755     15.42    0.8%
   10    36      1774     11.57    0.6%
   10    37      1807     17.38    0.9%
   10    38      1817     12.54    0.6%
   10    39      1832     13.18    0.7%
   10    40      1871     12.21    0.6%
   10    41      1957     15.28    0.7%
   10    42      1924     12.96    0.6%
   10    43      1995     17.13    0.8%
   10    44      2000     20.61    1.0%
   10    45      2065     12.49    0.6%
   10    46      2091     12.18    0.5%
   10    47      2108     16.61    0.7%
   10    48      2146     8.088    0.3%
   10    49      2150     8.757    0.4%
   10    50      2199     15.32    0.6%
   10    51      2192      12.1    0.5%
   10    52      2278     12.94    0.5%
   10    53      2347     18.35    0.7%
   10    54      2346     19.93    0.8%
   10    55      2399     17.25    0.7%
   10    56      2422     6.652    0.2%
   10    57      2438     9.546    0.3%
   10    58      2483     8.892    0.3%
   10    59      2511     15.85    0.6%
   10    60      2550     14.97    0.5%
   10    61      2555     11.82    0.4%
   10    62      2621     13.13    0.5%
   10    63      2716     9.997    0.3%
   10    64      2690     17.67    0.6%
   10    65      2743     7.311    0.2%
   10    66      2764     19.84    0.7%
   10    67      2806     5.384    0.1%
   10    68      2809     14.18    0.5%
   10    69      2828     13.26    0.4%
   10    70      2935     18.46    0.6%
   10    71      2850     7.855    0.2%
   10    72      2961      17.2    0.5%
   10    73      2987     17.31    0.5%
   10    74      2995     24.68    0.8%
   10    75      3062      18.7    0.6%
   10    76      3063     17.47    0.5%
   10    77      3098     9.798    0.3%
   10    78      3068     17.13    0.5%
   10    79      3112     15.79    0.5%
   10    80      3202     18.12    0.5%
   10    81      3259     10.51    0.3%
   10    82      3261     17.31    0.5%
   10    83      3288     12.73    0.3%
   10    84      3271     18.23    0.5%
   10    85      3342     40.63    1.2%
   10    86      3351     12.73    0.3%
   10    87      3375     21.02    0.6%
   10    88      3384     25.78    0.7%
   10    89      3440     14.86    0.4%
   10    90      3518     22.53    0.6%
   10    91      3459     21.46    0.6%
   10    92      3528     21.35    0.6%
   10    93      3580      10.9    0.3%
   10    94      3601     10.56    0.2%
   10    95      3626     22.02    0.6%
   10    96      3722     13.16    0.3%
   10    97      3727     13.41    0.3%
   10    98      3710     21.78    0.5%
   10    99      3775     17.81    0.4%
   10   100      3757     16.34    0.4%

Quality and confidence:
param     error
v         0.914
n         0.045

Model:
Time ~=        0
    + v    220.8
    + n    31.49
              µs

Reads = 208 + (3 * v) + (4 * n)
Writes = 3 + (3 * v) + (0 * n)

Pallet: "pallet_staking", Extrinsic: "get_npos_voters", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Staking CounterForNominators (r:1 w:0)
Storage: Staking CounterForValidators (r:1 w:0)
Storage: Staking Validators (r:501 w:0)
Storage: Staking Bonded (r:1500 w:0)
Storage: Staking Ledger (r:1500 w:0)
Storage: Staking SlashingSpans (r:21 w:0)
Storage: BagsList ListBags (r:200 w:0)
Storage: BagsList ListNodes (r:1000 w:0)
Storage: Staking Nominators (r:1000 w:0)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=        0
    + v    17.98
    + n    20.98
    + s    8.501
              µs

Reads = 204 + (3 * v) + (4 * n) + (1 * s)
Writes = 0 + (0 * v) + (0 * n) + (0 * s)

Min Squares Analysis
========
-- Extrinsic Time --

Data points distribution:
    v     n     s   mean µs  sigma µs       %
  500  1000    20     27730     137.4    0.4%
  510  1000    20     27870     128.5    0.4%
  520  1000    20     28200     234.7    0.8%
  530  1000    20     27850     94.44    0.3%
  540  1000    20     28290     119.4    0.4%
  550  1000    20     29460     68.69    0.2%
  560  1000    20     28960     110.7    0.3%
  570  1000    20     28820        92    0.3%
  580  1000    20     29390     150.5    0.5%
  590  1000    20     29760     123.2    0.4%
  600  1000    20     30020     146.5    0.4%
  610  1000    20     30410     162.4    0.5%
  620  1000    20     30110     196.9    0.6%
  630  1000    20     30520     229.7    0.7%
  640  1000    20     30270     175.4    0.5%
  650  1000    20     31000     131.4    0.4%
  660  1000    20     30910     102.9    0.3%
  670  1000    20     30920     112.4    0.3%
  680  1000    20     30860       101    0.3%
  690  1000    20     31410     233.7    0.7%
  700  1000    20     31930     83.96    0.2%
  710  1000    20     32110     196.2    0.6%
  720  1000    20     32310     81.11    0.2%
  730  1000    20     32340     219.5    0.6%
  740  1000    20     32470       230    0.7%
  750  1000    20     32640     191.7    0.5%
  760  1000    20     32270     137.2    0.4%
  770  1000    20     32670     161.4    0.4%
  780  1000    20     33000     159.6    0.4%
  790  1000    20     33260     124.8    0.3%
  800  1000    20     33190     240.4    0.7%
  810  1000    20     33510     186.8    0.5%
  820  1000    20     33570     206.7    0.6%
  830  1000    20     33280     125.1    0.3%
  840  1000    20     34090     224.4    0.6%
  850  1000    20     34300     182.3    0.5%
  860  1000    20     34240     189.5    0.5%
  870  1000    20     34420     116.5    0.3%
  880  1000    20     34560     313.6    0.9%
  890  1000    20     35750     231.1    0.6%
  900  1000    20     34660     108.6    0.3%
  910  1000    20     34890     228.1    0.6%
  920  1000    20     35400     152.8    0.4%
  930  1000    20     35240       213    0.6%
  940  1000    20     36050     88.04    0.2%
  950  1000    20     35900     106.8    0.2%
  960  1000    20     36480     231.8    0.6%
  970  1000    20     36310     281.5    0.7%
  980  1000    20     36440     234.7    0.6%
  990  1000    20     37780     313.6    0.8%
 1000   500    20     26690     140.8    0.5%
 1000   510    20     26750     165.8    0.6%
 1000   520    20     26680     154.1    0.5%
 1000   530    20     27480     78.13    0.2%
 1000   540    20     27860     186.8    0.6%
 1000   550    20     27500     156.8    0.5%
 1000   560    20     27720     86.32    0.3%
 1000   570    20     27650     109.2    0.3%
 1000   580    20     28040     125.7    0.4%
 1000   590    20     28410     236.8    0.8%
 1000   600    20     28350     157.8    0.5%
 1000   610    20     29060     129.2    0.4%
 1000   620    20     28760     136.3    0.4%
 1000   630    20     29020     118.4    0.4%
 1000   640    20     30110     93.56    0.3%
 1000   650    20     29490     163.8    0.5%
 1000   660    20     29180     126.9    0.4%
 1000   670    20     29840     168.1    0.5%
 1000   680    20     30160     121.5    0.4%
 1000   690    20     30430     141.2    0.4%
 1000   700    20     30510       264    0.8%
 1000   710    20     30430     227.8    0.7%
 1000   720    20     31000     166.8    0.5%
 1000   730    20     31070     211.7    0.6%
 1000   740    20     31470     179.4    0.5%
 1000   750    20     31970     116.2    0.3%
 1000   760    20     31330     215.7    0.6%
 1000   770    20     32360     185.4    0.5%
 1000   780    20     32540     134.1    0.4%
 1000   790    20     32490     232.4    0.7%
 1000   800    20     32950     169.5    0.5%
 1000   810    20     32970       248    0.7%
 1000   820    20     33980       115    0.3%
 1000   830    20     33960     123.3    0.3%
 1000   840    20     33890     158.7    0.4%
 1000   850    20     33510       169    0.5%
 1000   860    20     34530     148.3    0.4%
 1000   870    20     34100     146.5    0.4%
 1000   880    20     34000     188.9    0.5%
 1000   890    20     34620     171.8    0.4%
 1000   900    20     35130     150.3    0.4%
 1000   910    20     34760     172.2    0.4%
 1000   920    20     36000     121.5    0.3%
 1000   930    20     36190     220.8    0.6%
 1000   940    20     35350     111.4    0.3%
 1000   950    20     35740     194.3    0.5%
 1000   960    20     36250     218.2    0.6%
 1000   970    20     35920     355.8    0.9%
 1000   980    20     35840       192    0.5%
 1000   990    20     37480     194.3    0.5%
 1000  1000     1     36870       244    0.6%
 1000  1000     2     37090     114.3    0.3%
 1000  1000     3     36110     164.2    0.4%
 1000  1000     4     37110     185.4    0.4%
 1000  1000     5     36980     106.3    0.2%
 1000  1000     6     37410     176.3    0.4%
 1000  1000     7     37790     128.7    0.3%
 1000  1000     8     37740     186.8    0.4%
 1000  1000     9     35960     164.6    0.4%
 1000  1000    10     37260     73.44    0.1%
 1000  1000    11     36560     78.68    0.2%
 1000  1000    12     37200     165.7    0.4%
 1000  1000    13     37420       128    0.3%
 1000  1000    14     37280     209.7    0.5%
 1000  1000    15     37640     165.5    0.4%
 1000  1000    16     37140     180.7    0.4%
 1000  1000    17     38660       167    0.4%
 1000  1000    18     36950     117.9    0.3%
 1000  1000    19     37290     158.5    0.4%
 1000  1000    20     36840     128.7    0.3%

Quality and confidence:
param     error
v         0.098
n         0.098
s         3.348

Model:
Time ~=        0
    + v    18.34
    + n    21.22
    + s        0
              µs

Reads = 204 + (3 * v) + (4 * n) + (1 * s)
Writes = 0 + (0 * v) + (0 * n) + (0 * s)

Pallet: "pallet_staking", Extrinsic: "get_npos_targets", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Staking Validators (r:501 w:0)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=        0
    + v    7.782
              µs

Reads = 1 + (1 * v)
Writes = 0 + (0 * v)

Min Squares Analysis
========
-- Extrinsic Time --

Data points distribution:
    v   mean µs  sigma µs       %
  500      3688     18.84    0.5%
  510      3803      28.3    0.7%
  520      3980     24.74    0.6%
  530      4091     40.68    0.9%
  540      4044     31.08    0.7%
  550      4082     38.61    0.9%
  560      4178     34.05    0.8%
  570      4190     15.57    0.3%
  580      4363     41.04    0.9%
  590      4450     43.19    0.9%
  600      4524     27.78    0.6%
  610      4545     26.68    0.5%
  620      4689     40.37    0.8%
  630      4797     24.37    0.5%
  640      4831     70.61    1.4%
  650      5088     33.77    0.6%
  660      4824     23.02    0.4%
  670      5028     32.31    0.6%
  680      5228     32.84    0.6%
  690      5258     39.41    0.7%
  700      5482     51.77    0.9%
  710      5267     28.65    0.5%
  720      5519      63.1    1.1%
  730      5613     26.92    0.4%
  740      5594      23.7    0.4%
  750      5571     18.38    0.3%
  760      5844     46.87    0.8%
  770      5907     36.61    0.6%
  780      5972     58.69    0.9%
  790      5891     79.04    1.3%
  800      6042      83.2    1.3%
  810      6118     30.93    0.5%
  820      6112     30.47    0.4%
  830      6177     51.59    0.8%
  840      6311     35.53    0.5%
  850      6619     37.75    0.5%
  860      6567     42.33    0.6%
  870      6614     54.79    0.8%
  880      6615     57.94    0.8%
  890      6642     36.46    0.5%
  900      6845     109.9    1.6%
  910      6820      80.6    1.1%
  920      7060     48.49    0.6%
  930      7118     48.04    0.6%
  940      7223     29.74    0.4%
  950      7274     120.3    1.6%
  960      7413      56.5    0.7%
  970      7536     70.59    0.9%
  980      7379     42.06    0.5%
  990      7522     74.25    0.9%
 1000      7739      37.1    0.4%

Quality and confidence:
param     error
v         0.029

Model:
Time ~=        0
    + v    7.785
              µs

Reads = 1 + (1 * v)
Writes = 0 + (0 * v)

Pallet: "pallet_staking", Extrinsic: "set_staking_configs", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Staking MinCommission (r:0 w:1)
Storage: Staking MinValidatorBond (r:0 w:1)
Storage: Staking MaxValidatorsCount (r:0 w:1)
Storage: Staking ChillThreshold (r:0 w:1)
Storage: Staking MaxNominatorsCount (r:0 w:1)
Storage: Staking MinNominatorBond (r:0 w:1)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    3.421
              µs

Reads = 0
Writes = 6

Min Squares Analysis
========
-- Extrinsic Time --

Model:
Time ~=    3.421
              µs

Reads = 0
Writes = 6

Pallet: "pallet_staking", Extrinsic: "chill_other", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Staking Ledger (r:1 w:0)
Storage: Staking Nominators (r:1 w:1)
Storage: Staking ChillThreshold (r:1 w:0)
Storage: Staking MaxNominatorsCount (r:1 w:0)
Storage: Staking CounterForNominators (r:1 w:1)
Storage: Staking MinNominatorBond (r:1 w:0)
Storage: Staking Validators (r:1 w:0)
Storage: BagsList ListNodes (r:2 w:2)
Storage: BagsList ListBags (r:1 w:1)
Storage: BagsList CounterForListNodes (r:1 w:1)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    55.52
              µs

Reads = 11
Writes = 6

Min Squares Analysis
========
-- Extrinsic Time --

Model:
Time ~=    55.52
              µs

Reads = 11
Writes = 6

Pallet: "pallet_staking", Extrinsic: "force_apply_min_commission", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Staking MinCommission (r:1 w:0)
Storage: Staking Validators (r:2 w:1)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=        0
    + i    8.002
              µs

Reads = 2 + (1 * i)
Writes = 0 + (1 * i)

Min Squares Analysis
========
-- Extrinsic Time --

Data points distribution:
    i   mean µs  sigma µs       %
    1     14.31      0.17    1.1%
   20       131      1.02    0.7%
   39     267.8     1.728    0.6%
   58     394.2     4.139    1.0%
   77     541.1     2.994    0.5%
   96     694.7     1.679    0.2%
  115     822.6      11.7    1.4%
  134     982.7     5.545    0.5%
  153      1100     9.511    0.8%
  172      1270     14.93    1.1%
  191      1383     4.755    0.3%
  210      1477     14.78    1.0%
  229      1660     19.38    1.1%
  248      1779     12.35    0.6%
  267      1938     10.24    0.5%
  286      2091     14.84    0.7%
  305      2209     17.44    0.7%
  324      2414     20.85    0.8%
  343      2546     13.23    0.5%
  362      2674     19.51    0.7%
  381      2801     14.28    0.5%
  400      2985      28.4    0.9%
  419      3168     27.97    0.8%
  438      3240     24.07    0.7%
  457      3549     19.06    0.5%
  476      3580      24.3    0.6%
  495      3851     32.07    0.8%
  514      3996     20.95    0.5%
  533      4174     31.49    0.7%
  552      4351     31.57    0.7%
  571      4437     34.13    0.7%
  590      4545     13.54    0.2%
  609      4739     37.05    0.7%
  628      4945     29.98    0.6%
  647      5039     46.43    0.9%
  666      5007     14.41    0.2%
  685      5207     34.59    0.6%
  704      5326     40.85    0.7%
  723      5660     41.31    0.7%
  742      5789     39.71    0.6%
  761      5952     33.95    0.5%
  780      6151     27.98    0.4%
  799      6406     17.12    0.2%
  818      6384     69.44    1.0%
  837      6445     22.81    0.3%
  856      6840     58.77    0.8%
  875      7080     49.87    0.7%
  894      7052     24.79    0.3%
  913      7234     56.08    0.7%
  932      7478     65.65    0.8%
  951      7587     54.14    0.7%
  970      7772     61.66    0.7%
  989      7904     40.84    0.5%

Quality and confidence:
param     error
i         0.013

Model:
Time ~=        0
    + i     8.05
              µs

Reads = 2 + (1 * i)
Writes = 0 + (1 * i)


…--manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_staking --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/staking/src/weights.rs --template=./.maintain/frame-weight-template.hbs
Copy link
Member

@ggwpez ggwpez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like it! But please wait for another approval.

frame/staking/src/pallet/mod.rs Outdated Show resolved Hide resolved
@ggwpez ggwpez self-requested a review February 3, 2022 10:06
@shawntabrizi
Copy link
Member

Generally these kinds of unbounded loops are an anti-pattern for the runtime.

I get that it is a root function and all, but I don't see why this has to be this way.

You could just as easily make a function which updates just a single validator, and let it be called by anyone. Then someone can write a batch script, or ping old validators one by one to update them.

@kianenigma
Copy link
Contributor

Generally these kinds of unbounded loops are an anti-pattern for the runtime.

I get that it is a root function and all, but I don't see why this has to be this way.

You could just as easily make a function which updates just a single validator, and let it be called by anyone. Then someone can write a batch script, or ping old validators one by one to update them.

fwiw we generally assume that we can absolutely iterate over all validators all over the staking system, which is why I recommended this PR this way for the sake of simplicity.

But I see your point: Let's not build more on top of a bad assumption. Batching a transaction that sets a single validators is also easy enough.

@emostov
Copy link
Contributor Author

emostov commented Feb 3, 2022

Generally these kinds of unbounded loops are an anti-pattern for the runtime.
I get that it is a root function and all, but I don't see why this has to be this way.
You could just as easily make a function which updates just a single validator, and let it be called by anyone. Then someone can write a batch script, or ping old validators one by one to update them.

fwiw we generally assume that we can absolutely iterate over all validators all over the staking system, which is why I recommended this PR this way for the sake of simplicity.

But I see your point: Let's not build more on top of a bad assumption. Batching a transaction that sets a single validators is also easy enough.

In the scenario the community wants to set the min commission and force apply it in the same batch call, setting single validators is sub optimal. Once the call is crafted and proposed, validators who previously had higher commissions can reduce their commission to below the min, effectively circumventing the force apply. You could specify every validator knowing it would be a no-op if their commission was high enough, but I am not sure that approach would scale if the number of validators becomes very large.

My plan is to change this so the number of iterations is bounded by the weight input param.

@emostov
Copy link
Contributor Author

emostov commented Feb 3, 2022

/benchmark runtime pallet pallet_staking

@parity-benchapp
Copy link

parity-benchapp bot commented Feb 3, 2022

Benchmark Runtime Pallet for branch "zeke-force-min-stake" with command cargo run --quiet --profile=production --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_staking --extrinsic="*" --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/staking/src/weights.rs --template=./.maintain/frame-weight-template.hbs

Toolchain: stable-x86_64-unknown-linux-gnu (default)
rustc 1.57.0 (f1edd0429 2021-11-29)

Results
Pallet: "pallet_staking", Extrinsic: "bond", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Staking Bonded (r:1 w:1)
Storage: Staking Ledger (r:1 w:1)
Storage: Staking CurrentEra (r:1 w:0)
Storage: Staking HistoryDepth (r:1 w:0)
Storage: Balances Locks (r:1 w:1)
Storage: Staking Payee (r:0 w:1)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    37.18
              µs

Reads = 5
Writes = 4

Min Squares Analysis
========
-- Extrinsic Time --

Model:
Time ~=    37.18
              µs

Reads = 5
Writes = 4

Pallet: "pallet_staking", Extrinsic: "bond_extra", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Staking Bonded (r:1 w:0)
Storage: Staking Ledger (r:1 w:1)
Storage: Balances Locks (r:1 w:1)
Storage: BagsList ListNodes (r:3 w:3)
Storage: BagsList ListBags (r:2 w:2)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    64.67
              µs

Reads = 8
Writes = 7

Min Squares Analysis
========
-- Extrinsic Time --

Model:
Time ~=    64.67
              µs

Reads = 8
Writes = 7

Pallet: "pallet_staking", Extrinsic: "unbond", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Staking Ledger (r:1 w:1)
Storage: Staking Nominators (r:1 w:0)
Storage: Staking MinNominatorBond (r:1 w:0)
Storage: Staking CurrentEra (r:1 w:0)
Storage: Balances Locks (r:1 w:1)
Storage: System Account (r:1 w:1)
Storage: BagsList ListNodes (r:3 w:3)
Storage: Staking Bonded (r:1 w:0)
Storage: BagsList ListBags (r:2 w:2)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    70.36
              µs

Reads = 12
Writes = 8

Min Squares Analysis
========
-- Extrinsic Time --

Model:
Time ~=    70.36
              µs

Reads = 12
Writes = 8

Pallet: "pallet_staking", Extrinsic: "withdraw_unbonded_update", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Staking Ledger (r:1 w:1)
Storage: Staking CurrentEra (r:1 w:0)
Storage: Balances Locks (r:1 w:1)
Storage: System Account (r:1 w:1)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    30.64
    + s     0.05
              µs

Reads = 4 + (0 * s)
Writes = 3 + (0 * s)

Min Squares Analysis
========
-- Extrinsic Time --

Data points distribution:
    s   mean µs  sigma µs       %
    0     28.76      0.14    0.4%
    2     30.13     0.155    0.5%
    4      30.4     0.081    0.2%
    6      30.1     0.157    0.5%
    8     30.33     0.177    0.5%
   10     30.83     0.192    0.6%
   12     31.43     0.165    0.5%
   14     31.53     0.228    0.7%
   16     31.63     0.108    0.3%
   18     31.76     0.157    0.4%
   20     31.86     0.221    0.6%
   22     31.17     0.171    0.5%
   24     31.79     0.197    0.6%
   26     32.64     0.198    0.6%
   28     31.75     0.168    0.5%
   30     32.78     0.263    0.8%
   32     32.71     0.339    1.0%
   34     32.69      0.18    0.5%
   36     32.29     0.338    1.0%
   38     32.66     0.154    0.4%
   40      32.6     0.202    0.6%
   42     33.12     0.317    0.9%
   44     33.06     0.159    0.4%
   46     33.71     0.303    0.8%
   48     33.19      0.06    0.1%
   50     33.34     0.093    0.2%
   52     33.82     0.126    0.3%
   54     33.51     0.093    0.2%
   56     33.71     0.149    0.4%
   58     33.56     0.089    0.2%
   60     34.41     0.085    0.2%
   62     33.46     0.203    0.6%
   64     33.79     0.208    0.6%
   66     33.71     0.095    0.2%
   68     34.04     0.167    0.4%
   70     34.24     0.111    0.3%
   72     34.58     0.298    0.8%
   74     34.79     0.288    0.8%
   76     34.46      0.23    0.6%
   78     34.65     0.138    0.3%
   80     34.64     0.068    0.1%
   82     34.76     0.127    0.3%
   84     34.46     0.161    0.4%
   86     34.72     0.151    0.4%
   88     34.79     0.152    0.4%
   90     34.71     0.105    0.3%
   92     35.23     0.144    0.4%
   94      35.2     0.156    0.4%
   96     35.27     0.084    0.2%
   98     35.27     0.178    0.5%
  100     35.46     0.118    0.3%

Quality and confidence:
param     error
s             0

Model:
Time ~=    30.51
    + s    0.052
              µs

Reads = 4 + (0 * s)
Writes = 3 + (0 * s)

Pallet: "pallet_staking", Extrinsic: "withdraw_unbonded_kill", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Staking Ledger (r:1 w:1)
Storage: Staking CurrentEra (r:1 w:0)
Storage: Staking Bonded (r:1 w:1)
Storage: Staking SlashingSpans (r:1 w:0)
Storage: Staking Validators (r:1 w:0)
Storage: Staking Nominators (r:1 w:1)
Storage: Staking CounterForNominators (r:1 w:1)
Storage: BagsList ListNodes (r:2 w:2)
Storage: BagsList ListBags (r:1 w:1)
Storage: BagsList CounterForListNodes (r:1 w:1)
Storage: System Account (r:1 w:1)
Storage: Balances Locks (r:1 w:1)
Storage: Staking Payee (r:0 w:1)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    58.32
    + s        0
              µs

Reads = 13 + (0 * s)
Writes = 11 + (0 * s)

Min Squares Analysis
========
-- Extrinsic Time --

Data points distribution:
    s   mean µs  sigma µs       %
    0     58.29      0.11    0.1%
    2     58.31     0.219    0.3%
    4     58.46     0.332    0.5%
    6     58.62     0.316    0.5%
    8     58.44     0.192    0.3%
   10     58.34     0.248    0.4%
   12     58.35     0.233    0.3%
   14     58.16     0.226    0.3%
   16     58.04     0.266    0.4%
   18        58     0.284    0.4%
   20     58.12      0.26    0.4%
   22     58.51     0.226    0.3%
   24        58     0.302    0.5%
   26     58.48     0.401    0.6%
   28     58.02     0.266    0.4%
   30     58.46     0.376    0.6%
   32     58.28     0.251    0.4%
   34     58.32     0.346    0.5%
   36     58.14     0.265    0.4%
   38     58.11     0.268    0.4%
   40     59.12     0.259    0.4%
   42     58.39       0.2    0.3%
   44     57.96      0.31    0.5%
   46     57.94     0.373    0.6%
   48     58.88     0.657    1.1%
   50     58.48     0.366    0.6%
   52     57.97     0.208    0.3%
   54     58.09     0.164    0.2%
   56     58.45     0.297    0.5%
   58     58.03     0.284    0.4%
   60      57.9     0.269    0.4%
   62     58.31     0.212    0.3%
   64     57.81     0.273    0.4%
   66     57.94     0.345    0.5%
   68     58.37     0.134    0.2%
   70     58.07     0.204    0.3%
   72     57.87     0.205    0.3%
   74     58.49     0.664    1.1%
   76     58.27     0.259    0.4%
   78        58     0.087    0.1%
   80     58.32     0.159    0.2%
   82     58.54     0.259    0.4%
   84      58.2     0.139    0.2%
   86     57.75     0.172    0.2%
   88     57.99     0.271    0.4%
   90      58.3     0.335    0.5%
   92     58.12     0.201    0.3%
   94     57.82     0.227    0.3%
   96     58.25     0.289    0.4%
   98     58.06     0.336    0.5%
  100     58.32     0.207    0.3%

Quality and confidence:
param     error
s             0

Model:
Time ~=    58.35
    + s        0
              µs

Reads = 13 + (0 * s)
Writes = 11 + (0 * s)

Pallet: "pallet_staking", Extrinsic: "validate", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Staking Ledger (r:1 w:0)
Storage: Staking MinValidatorBond (r:1 w:0)
Storage: Staking MinCommission (r:1 w:0)
Storage: Staking Validators (r:1 w:1)
Storage: Staking MaxValidatorsCount (r:1 w:0)
Storage: Staking Nominators (r:1 w:1)
Storage: Staking CounterForNominators (r:1 w:1)
Storage: BagsList ListNodes (r:2 w:2)
Storage: BagsList ListBags (r:1 w:1)
Storage: BagsList CounterForListNodes (r:1 w:1)
Storage: Staking CounterForValidators (r:1 w:1)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=     44.4
              µs

Reads = 12
Writes = 8

Min Squares Analysis
========
-- Extrinsic Time --

Model:
Time ~=     44.4
              µs

Reads = 12
Writes = 8

Pallet: "pallet_staking", Extrinsic: "kick", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Staking Ledger (r:1 w:0)
Storage: Staking Nominators (r:1 w:1)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    17.16
    + k    8.074
              µs

Reads = 1 + (1 * k)
Writes = 0 + (1 * k)

Min Squares Analysis
========
-- Extrinsic Time --

Data points distribution:
    k   mean µs  sigma µs       %
    1      30.9      0.17    0.5%
    3      50.1     0.152    0.3%
    5     64.78      0.18    0.2%
    7     78.73     0.215    0.2%
    9     90.01      0.25    0.2%
   11     106.8     0.568    0.5%
   13     123.8     0.442    0.3%
   15     137.4     0.311    0.2%
   17       157      0.77    0.4%
   19     178.2     0.301    0.1%
   21     185.3     0.358    0.1%
   23       200     0.749    0.3%
   25     216.4     0.674    0.3%
   27     233.1     1.402    0.6%
   29     254.8     4.989    1.9%
   31     263.4     0.905    0.3%
   33     277.3     1.068    0.3%
   35     292.7     0.827    0.2%
   37     311.3     2.362    0.7%
   39     324.6     1.276    0.3%
   41     340.1     3.994    1.1%
   43     363.1     6.893    1.8%
   45     372.6     3.208    0.8%
   47     397.4     5.579    1.4%
   49     405.3     1.896    0.4%
   51     416.8     1.802    0.4%
   53     436.9     1.239    0.2%
   55     452.6     1.139    0.2%
   57     467.8      1.69    0.3%
   59       481     0.954    0.1%
   61     504.3     8.744    1.7%
   63       527     10.76    2.0%
   65     549.9     8.868    1.6%
   67     561.1     8.912    1.5%
   69     567.3      6.05    1.0%
   71     604.3      2.09    0.3%
   73     627.4     1.224    0.1%
   75       614     2.064    0.3%
   77       627     0.924    0.1%
   79     638.1     1.464    0.2%
   81     684.3     1.305    0.1%
   83     694.5      1.72    0.2%
   85     721.7     3.933    0.5%
   87       716     14.21    1.9%
   89     723.1      2.29    0.3%
   91     738.7     1.328    0.1%
   93     754.8     2.191    0.2%
   95     811.4     1.307    0.1%
   97     818.9     2.819    0.3%
   99       839     1.923    0.2%
  101     819.8     3.049    0.3%
  103     872.8     3.298    0.3%
  105     888.1     2.047    0.2%
  107     902.4     1.633    0.1%
  109     932.4     12.57    1.3%
  111     911.5     3.146    0.3%
  113     928.3     10.64    1.1%
  115     943.8     6.109    0.6%
  117     954.6     2.606    0.2%
  119     983.5     9.619    0.9%
  121     984.5     4.613    0.4%
  123      1010     2.303    0.2%
  125      1032     5.436    0.5%
  127      1043     6.601    0.6%

Quality and confidence:
param     error
k         0.012

Model:
Time ~=     14.7
    + k    8.131
              µs

Reads = 1 + (1 * k)
Writes = 0 + (1 * k)

Pallet: "pallet_staking", Extrinsic: "nominate", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Staking Ledger (r:1 w:0)
Storage: Staking MinNominatorBond (r:1 w:0)
Storage: Staking Nominators (r:1 w:1)
Storage: Staking MaxNominatorsCount (r:1 w:0)
Storage: Staking Validators (r:2 w:0)
Storage: Staking CurrentEra (r:1 w:0)
Storage: Staking Bonded (r:1 w:0)
Storage: BagsList ListNodes (r:2 w:2)
Storage: BagsList ListBags (r:1 w:1)
Storage: BagsList CounterForListNodes (r:1 w:1)
Storage: Staking CounterForNominators (r:1 w:1)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    50.32
    + n    3.418
              µs

Reads = 12 + (1 * n)
Writes = 6 + (0 * n)

Min Squares Analysis
========
-- Extrinsic Time --

Data points distribution:
    n   mean µs  sigma µs       %
    1     53.12     0.279    0.5%
    2     57.29     0.286    0.4%
    3     60.56     0.177    0.2%
    4     64.16     0.222    0.3%
    5      67.6      0.18    0.2%
    6      71.2     0.261    0.3%
    7     73.97     0.177    0.2%
    8     77.72      0.27    0.3%
    9     82.14      0.51    0.6%
   10     84.64     0.362    0.4%
   11     87.66     0.252    0.2%
   12     91.06     0.327    0.3%
   13     94.27     0.205    0.2%
   14     96.94     0.223    0.2%
   15     101.5     0.728    0.7%
   16     107.8     0.408    0.3%

Quality and confidence:
param     error
n         0.015

Model:
Time ~=    50.11
    + n    3.456
              µs

Reads = 12 + (1 * n)
Writes = 6 + (0 * n)

Pallet: "pallet_staking", Extrinsic: "chill", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Staking Ledger (r:1 w:0)
Storage: Staking Validators (r:1 w:0)
Storage: Staking Nominators (r:1 w:1)
Storage: Staking CounterForNominators (r:1 w:1)
Storage: BagsList ListNodes (r:2 w:2)
Storage: BagsList ListBags (r:1 w:1)
Storage: BagsList CounterForListNodes (r:1 w:1)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    44.75
              µs

Reads = 8
Writes = 6

Min Squares Analysis
========
-- Extrinsic Time --

Model:
Time ~=    44.75
              µs

Reads = 8
Writes = 6

Pallet: "pallet_staking", Extrinsic: "set_payee", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Staking Ledger (r:1 w:0)
Storage: Staking Payee (r:0 w:1)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    7.991
              µs

Reads = 1
Writes = 1

Min Squares Analysis
========
-- Extrinsic Time --

Model:
Time ~=    7.991
              µs

Reads = 1
Writes = 1

Pallet: "pallet_staking", Extrinsic: "set_controller", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Staking Bonded (r:1 w:1)
Storage: Staking Ledger (r:2 w:2)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    15.88
              µs

Reads = 3
Writes = 3

Min Squares Analysis
========
-- Extrinsic Time --

Model:
Time ~=    15.88
              µs

Reads = 3
Writes = 3

Pallet: "pallet_staking", Extrinsic: "set_validator_count", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Staking ValidatorCount (r:0 w:1)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    1.154
              µs

Reads = 0
Writes = 1

Min Squares Analysis
========
-- Extrinsic Time --

Model:
Time ~=    1.154
              µs

Reads = 0
Writes = 1

Pallet: "pallet_staking", Extrinsic: "force_no_eras", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Staking ForceEra (r:0 w:1)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    1.202
              µs

Reads = 0
Writes = 1

Min Squares Analysis
========
-- Extrinsic Time --

Model:
Time ~=    1.202
              µs

Reads = 0
Writes = 1

Pallet: "pallet_staking", Extrinsic: "force_new_era", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Staking ForceEra (r:0 w:1)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    1.217
              µs

Reads = 0
Writes = 1

Min Squares Analysis
========
-- Extrinsic Time --

Model:
Time ~=    1.217
              µs

Reads = 0
Writes = 1

Pallet: "pallet_staking", Extrinsic: "force_new_era_always", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Staking ForceEra (r:0 w:1)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    1.232
              µs

Reads = 0
Writes = 1

Min Squares Analysis
========
-- Extrinsic Time --

Model:
Time ~=    1.232
              µs

Reads = 0
Writes = 1

Pallet: "pallet_staking", Extrinsic: "set_invulnerables", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Staking Invulnerables (r:0 w:1)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    1.734
    + v    0.051
              µs

Reads = 0 + (0 * v)
Writes = 1 + (0 * v)

Min Squares Analysis
========
-- Extrinsic Time --

Data points distribution:
    v   mean µs  sigma µs       %
    0     1.237     0.028    2.2%
   20     2.586     0.021    0.8%
   40     3.699      0.02    0.5%
   60     4.782     0.029    0.6%
   80     5.825     0.058    0.9%
  100     6.855     0.048    0.7%
  120     7.891     0.053    0.6%
  140     8.966     0.025    0.2%
  160     9.928     0.035    0.3%
  180     10.98     0.053    0.4%
  200     12.02     0.047    0.3%
  220     13.05     0.041    0.3%
  240     14.06     0.033    0.2%
  260     15.08      0.05    0.3%
  280     16.13     0.061    0.3%
  300     17.18     0.042    0.2%
  320     18.21     0.027    0.1%
  340     19.21     0.056    0.2%
  360     20.26      0.07    0.3%
  380     20.91     0.059    0.2%
  400     22.39      0.05    0.2%
  420     23.25     0.141    0.6%
  440     24.12     0.062    0.2%
  460     25.69     0.036    0.1%
  480     26.65     0.071    0.2%
  500     27.13      0.13    0.4%
  520     28.48     0.057    0.2%
  540     29.59     0.278    0.9%
  560     30.31     0.036    0.1%
  580     31.64     0.281    0.8%
  600     32.36     0.069    0.2%
  620     33.31     0.047    0.1%
  640     34.31     0.071    0.2%
  660     35.46     0.044    0.1%
  680     36.43     0.052    0.1%
  700     38.12     0.219    0.5%
  720     38.51      0.08    0.2%
  740     40.42     0.252    0.6%
  760      40.7     0.092    0.2%
  780     41.71     0.056    0.1%
  800     42.57      0.03    0.0%
  820     43.51     0.054    0.1%
  840     44.58     0.034    0.0%
  860     45.74     0.154    0.3%
  880     46.64     0.066    0.1%
  900      47.7     0.071    0.1%
  920     48.74     0.061    0.1%
  940     49.76     0.071    0.1%
  960     50.97     0.327    0.6%
  980     51.79     0.107    0.2%
 1000     52.93     0.069    0.1%

Quality and confidence:
param     error
v             0

Model:
Time ~=    1.734
    + v    0.051
              µs

Reads = 0 + (0 * v)
Writes = 1 + (0 * v)

Pallet: "pallet_staking", Extrinsic: "force_unstake", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Staking Bonded (r:1 w:1)
Storage: Staking SlashingSpans (r:1 w:0)
Storage: Staking Validators (r:1 w:0)
Storage: Staking Nominators (r:1 w:1)
Storage: Staking CounterForNominators (r:1 w:1)
Storage: BagsList ListNodes (r:2 w:2)
Storage: BagsList ListBags (r:1 w:1)
Storage: BagsList CounterForListNodes (r:1 w:1)
Storage: System Account (r:1 w:1)
Storage: Balances Locks (r:1 w:1)
Storage: Staking Ledger (r:0 w:1)
Storage: Staking Payee (r:0 w:1)
Storage: Staking SpanSlash (r:0 w:2)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    56.76
    + s    0.807
              µs

Reads = 11 + (0 * s)
Writes = 12 + (1 * s)

Min Squares Analysis
========
-- Extrinsic Time --

Data points distribution:
    s   mean µs  sigma µs       %
    0     52.16     0.264    0.5%
    2     57.26     0.255    0.4%
    4     58.78     0.155    0.2%
    6     60.91     0.303    0.4%
    8     62.91     0.103    0.1%
   10     64.33     0.173    0.2%
   12     66.07     0.445    0.6%
   14     67.66     0.233    0.3%
   16     69.54     0.203    0.2%
   18     71.49     0.198    0.2%
   20     72.88     0.265    0.3%
   22      75.3     0.283    0.3%
   24     76.64      0.41    0.5%
   26     77.85     0.256    0.3%
   28     79.38     0.271    0.3%
   30     82.95     0.763    0.9%
   32     83.15     0.279    0.3%
   34     84.49     0.306    0.3%
   36     86.68     0.398    0.4%
   38     87.74     0.423    0.4%
   40     89.76       0.1    0.1%
   42        91     0.242    0.2%
   44     91.79     0.257    0.2%
   46      94.8     0.542    0.5%
   48     95.66     0.333    0.3%
   50     97.53     0.328    0.3%
   52     98.55     0.255    0.2%
   54     101.1     0.214    0.2%
   56     102.6     0.404    0.3%
   58     103.6     0.141    0.1%
   60     105.2      0.38    0.3%
   62     106.4     0.312    0.2%
   64     107.9     0.249    0.2%
   66     110.2     0.248    0.2%
   68     111.8     0.271    0.2%
   70     112.4     0.403    0.3%
   72     114.9     0.213    0.1%
   74     117.5     0.226    0.1%
   76     118.5     0.295    0.2%
   78     120.4     0.218    0.1%
   80     121.3     0.229    0.1%
   82     122.2     0.322    0.2%
   84       124     0.817    0.6%
   86     127.2     0.237    0.1%
   88     127.5     0.319    0.2%
   90       129     0.246    0.1%
   92     130.1     1.422    1.0%
   94     130.7     0.874    0.6%
   96     132.1     1.141    0.8%
   98       135     0.996    0.7%
  100     133.2     0.681    0.5%

Quality and confidence:
param     error
s         0.001

Model:
Time ~=    56.72
    + s    0.804
              µs

Reads = 11 + (0 * s)
Writes = 12 + (1 * s)

Pallet: "pallet_staking", Extrinsic: "cancel_deferred_slash", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Staking UnappliedSlashes (r:1 w:1)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=     1037
    + s    5.009
              µs

Reads = 1 + (0 * s)
Writes = 1 + (0 * s)

Min Squares Analysis
========
-- Extrinsic Time --

Data points distribution:
    s   mean µs  sigma µs       %
    1     154.2     0.253    0.1%
   20     338.6     0.675    0.1%
   39     519.4     0.378    0.0%
   58     704.4     11.64    1.6%
   77     874.6     5.817    0.6%
   96      1053     12.25    1.1%
  115      1227     15.31    1.2%
  134      1389      16.4    1.1%
  153      1554     17.89    1.1%
  172      1719     11.29    0.6%
  191      1873     10.24    0.5%
  210      2011        16    0.7%
  229      2158     12.96    0.6%
  248      2292     16.67    0.7%
  267      2445     11.89    0.4%
  286      2577      15.4    0.5%
  305      2714     18.37    0.6%
  324      2832     14.43    0.5%
  343      2967     13.41    0.4%
  362      3081     16.68    0.5%
  381      3205     12.02    0.3%
  400      3317     3.275    0.0%
  419      3429     3.698    0.1%
  438      3539     6.655    0.1%
  457      3637     3.354    0.0%
  476      3738     3.979    0.1%
  495      3839     16.62    0.4%
  514      3927     4.206    0.1%
  533      4023     12.06    0.2%
  552      4099     15.21    0.3%
  571      4175     11.91    0.2%
  590      4268     13.99    0.3%
  609      4347        16    0.3%
  628      4431     15.99    0.3%
  647      4473     24.45    0.5%
  666      4534     10.07    0.2%
  685      4604     12.37    0.2%
  704      4651     18.77    0.4%
  723      4728     14.59    0.3%
  742      4768     12.52    0.2%
  761      4807     15.48    0.3%
  780      4857     11.24    0.2%
  799      4884     9.734    0.1%
  818      4931     20.83    0.4%
  837      4962     17.58    0.3%
  856      4975     15.01    0.3%
  875      5015     19.04    0.3%
  894      5067     19.87    0.3%
  913      5066     15.93    0.3%
  932      5082     10.19    0.2%
  951      5092     13.47    0.2%
  970      5100     15.98    0.3%
  989      5083     9.748    0.1%

Quality and confidence:
param     error
s         0.056

Model:
Time ~=    944.9
    + s    4.996
              µs

Reads = 1 + (0 * s)
Writes = 1 + (0 * s)

Pallet: "pallet_staking", Extrinsic: "payout_stakers_dead_controller", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Staking CurrentEra (r:1 w:0)
Storage: Staking HistoryDepth (r:1 w:0)
Storage: Staking ErasValidatorReward (r:1 w:0)
Storage: Staking Bonded (r:2 w:0)
Storage: Staking Ledger (r:1 w:1)
Storage: Staking ErasStakersClipped (r:1 w:0)
Storage: Staking ErasRewardPoints (r:1 w:0)
Storage: Staking ErasValidatorPrefs (r:1 w:0)
Storage: Staking Payee (r:2 w:0)
Storage: System Account (r:2 w:2)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    82.32
    + n    23.39
              µs

Reads = 10 + (3 * n)
Writes = 2 + (1 * n)

Min Squares Analysis
========
-- Extrinsic Time --

Data points distribution:
    n   mean µs  sigma µs       %
    1     143.6     0.499    0.3%
    6     218.7     1.515    0.6%
   11     342.9     8.037    2.3%
   16     455.8      1.65    0.3%
   21     575.2     1.182    0.2%
   26     727.1     13.56    1.8%
   31     809.6     6.991    0.8%
   36     919.4     3.305    0.3%
   41      1034     6.531    0.6%
   46      1159     9.421    0.8%
   51      1277     7.688    0.6%
   56      1376     10.31    0.7%
   61      1520     10.86    0.7%
   66      1618     12.22    0.7%
   71      1726     10.17    0.5%
   76      1863     13.71    0.7%
   81      1969     8.247    0.4%
   86      2109     10.77    0.5%
   91      2187      17.5    0.8%
   96      2327     14.89    0.6%
  101      2423     12.55    0.5%
  106      2541     10.18    0.4%
  111      2670     15.14    0.5%
  116      2801     8.469    0.3%
  121      2893     6.445    0.2%
  126      3055     23.36    0.7%
  131      3123     11.99    0.3%
  136      3230     7.601    0.2%
  141      3390     8.134    0.2%
  146      3490     9.246    0.2%
  151      3608     18.44    0.5%
  156      3744     10.81    0.2%
  161      3881     19.71    0.5%
  166      4025     16.29    0.4%
  171      4096     8.397    0.2%
  176      4171     10.84    0.2%
  181      4312     12.92    0.2%
  186      4443     11.73    0.2%
  191      4543     15.61    0.3%
  196      4653     25.83    0.5%
  201      4778     12.17    0.2%
  206      4873     19.76    0.4%
  211      5054     37.16    0.7%
  216      5150     22.06    0.4%
  221      5277      17.2    0.3%
  226      5366     16.06    0.2%
  231      5471     24.64    0.4%
  236      5631     22.52    0.4%
  241      5765     23.65    0.4%
  246      5830     20.37    0.3%
  251      5948     23.92    0.4%
  256      6110     24.83    0.4%

Quality and confidence:
param     error
n         0.014

Model:
Time ~=    79.95
    + n    23.43
              µs

Reads = 10 + (3 * n)
Writes = 2 + (1 * n)

Pallet: "pallet_staking", Extrinsic: "payout_stakers_alive_staked", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Staking CurrentEra (r:1 w:0)
Storage: Staking HistoryDepth (r:1 w:0)
Storage: Staking ErasValidatorReward (r:1 w:0)
Storage: Staking Bonded (r:2 w:0)
Storage: Staking Ledger (r:2 w:2)
Storage: Staking ErasStakersClipped (r:1 w:0)
Storage: Staking ErasRewardPoints (r:1 w:0)
Storage: Staking ErasValidatorPrefs (r:1 w:0)
Storage: Staking Payee (r:2 w:0)
Storage: System Account (r:2 w:2)
Storage: Balances Locks (r:2 w:2)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    111.3
    + n    32.84
              µs

Reads = 11 + (5 * n)
Writes = 3 + (3 * n)

Min Squares Analysis
========
-- Extrinsic Time --

Data points distribution:
    n   mean µs  sigma µs       %
    1     128.8     0.306    0.2%
    6     298.9      3.44    1.1%
   11     464.4     4.195    0.9%
   16     633.7     4.727    0.7%
   21     812.6     12.63    1.5%
   26     952.6     1.933    0.2%
   31      1135     7.694    0.6%
   36      1291     11.62    0.8%
   41      1454      11.1    0.7%
   46      1628     9.584    0.5%
   51      1787     10.31    0.5%
   56      1952     17.07    0.8%
   61      2124     17.26    0.8%
   66      2278     8.093    0.3%
   71      2447      6.03    0.2%
   76      2621     16.58    0.6%
   81      2756     13.95    0.5%
   86      2924     16.47    0.5%
   91      3108      11.1    0.3%
   96      3305     22.01    0.6%
  101      3431     13.63    0.3%
  106      3616     11.77    0.3%
  111      3781     22.99    0.6%
  116      3913     16.81    0.4%
  121      4158     23.57    0.5%
  126      4234     20.09    0.4%
  131      4441     21.21    0.4%
  136      4608     16.97    0.3%
  141      4748     26.14    0.5%
  146      4912     20.43    0.4%
  151      5043     16.16    0.3%
  156      5193     18.27    0.3%
  161      5370     9.081    0.1%
  166      5510     10.21    0.1%
  171      5775     16.09    0.2%
  176      5843     29.85    0.5%
  181      6126      21.2    0.3%
  186      6228     26.35    0.4%
  191      6421     15.61    0.2%
  196      6565     21.54    0.3%
  201      6788     27.17    0.4%
  206      6952     55.24    0.7%
  211      7088     46.58    0.6%
  216      7108     14.86    0.2%
  221      7339     12.21    0.1%
  226      7575     25.31    0.3%
  231      7686     15.42    0.2%
  236      7848     23.37    0.2%
  241      8043     29.55    0.3%
  246      8162     37.86    0.4%
  251      8328     38.38    0.4%
  256      8523     18.63    0.2%

Quality and confidence:
param     error
n         0.022

Model:
Time ~=    113.7
    + n    32.85
              µs

Reads = 11 + (5 * n)
Writes = 3 + (3 * n)

Pallet: "pallet_staking", Extrinsic: "rebond", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Staking Ledger (r:1 w:1)
Storage: Balances Locks (r:1 w:1)
Storage: System Account (r:1 w:1)
Storage: BagsList ListNodes (r:3 w:3)
Storage: Staking Bonded (r:1 w:0)
Storage: BagsList ListBags (r:2 w:2)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    64.12
    + l    0.043
              µs

Reads = 9 + (0 * l)
Writes = 8 + (0 * l)

Min Squares Analysis
========
-- Extrinsic Time --

Data points distribution:
    l   mean µs  sigma µs       %
    1     63.29     0.453    0.7%
    2     63.84     0.383    0.5%
    3     63.65     0.212    0.3%
    4     65.69     0.694    1.0%
    5     64.26     0.203    0.3%
    6      63.8     0.212    0.3%
    7     65.55     0.308    0.4%
    8     64.54     0.289    0.4%
    9      65.2     0.656    1.0%
   10     64.27     0.233    0.3%
   11     64.95     0.361    0.5%
   12     64.83     0.466    0.7%
   13     64.99     0.161    0.2%
   14      64.7     0.213    0.3%
   15        65     0.267    0.4%
   16      64.9     0.407    0.6%
   17     66.37     0.264    0.3%
   18     64.81     0.091    0.1%
   19     65.47     0.447    0.6%
   20     64.82     0.169    0.2%
   21     64.87     0.193    0.2%
   22     65.15     0.144    0.2%
   23     65.19     0.344    0.5%
   24     64.89     0.182    0.2%
   25     65.03     0.207    0.3%
   26     65.14     0.237    0.3%
   27     64.99     0.258    0.3%
   28     64.87     0.076    0.1%
   29      65.4     0.203    0.3%
   30     67.04     0.203    0.3%
   31     65.34     0.278    0.4%
   32      65.3     0.217    0.3%

Quality and confidence:
param     error
l         0.004

Model:
Time ~=    64.21
    + l    0.045
              µs

Reads = 9 + (0 * l)
Writes = 8 + (0 * l)

Pallet: "pallet_staking", Extrinsic: "set_history_depth", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Staking CurrentEra (r:1 w:0)
Storage: Staking HistoryDepth (r:1 w:1)
Storage: Staking ErasStakersClipped (r:0 w:2)
Storage: Staking ErasValidatorPrefs (r:0 w:2)
Storage: Staking ErasValidatorReward (r:0 w:1)
Storage: Staking ErasRewardPoints (r:0 w:1)
Storage: Staking ErasStakers (r:0 w:2)
Storage: Staking ErasTotalStake (r:0 w:1)
Storage: Staking ErasStartSessionIndex (r:0 w:1)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=        0
    + e    20.64
              µs

Reads = 2 + (0 * e)
Writes = 4 + (7 * e)

Min Squares Analysis
========
-- Extrinsic Time --

Data points distribution:
    e   mean µs  sigma µs       %
    1     23.55     0.174    0.7%
    2     38.65     0.229    0.5%
    3     51.29     0.166    0.3%
    4     66.43     0.214    0.3%
    5     80.39     0.347    0.4%
    6     94.39     1.182    1.2%
    7     108.9     0.856    0.7%
    8     120.9     0.243    0.2%
    9     135.7       0.8    0.5%
   10     154.5     0.443    0.2%
   11     165.6     0.651    0.3%
   12     180.4     0.303    0.1%
   13     197.4     0.873    0.4%
   14     209.6     0.489    0.2%
   15     222.8     1.163    0.5%
   16     238.7      0.76    0.3%
   17     256.2     1.004    0.3%
   18     272.2     0.772    0.2%
   19       286     0.321    0.1%
   20     304.1     0.737    0.2%
   21     321.1     0.684    0.2%
   22     336.8     0.818    0.2%
   23     354.9     0.774    0.2%
   24     371.7     0.991    0.2%
   25     392.2     10.14    2.5%
   26     405.4     1.006    0.2%
   27     421.3     1.888    0.4%
   28     444.4     3.802    0.8%
   29       462     1.361    0.2%
   30     473.7     1.156    0.2%
   31     493.5     1.747    0.3%
   32     513.5     1.945    0.3%
   33     530.2     2.371    0.4%
   34     556.8     2.102    0.3%
   35     580.2     9.811    1.6%
   36     588.7      3.81    0.6%
   37     601.6     11.09    1.8%
   38     634.3     13.77    2.1%
   39     656.6     13.47    2.0%
   40     680.4     9.967    1.4%
   41     673.9     4.595    0.6%
   42       700     10.52    1.5%
   43     736.2     4.124    0.5%
   44     754.1     13.87    1.8%
   45     756.6     2.881    0.3%
   46     779.4     14.17    1.8%
   47     802.8     7.079    0.8%
   48     826.4     12.69    1.5%
   49     861.5     13.71    1.5%
   50     864.7     11.66    1.3%
   51     888.2     6.183    0.6%
   52     913.2      9.78    1.0%
   53     926.9     10.01    1.0%
   54     941.3     6.238    0.6%
   55     970.6      8.36    0.8%
   56     998.1     3.504    0.3%
   57      1025     11.21    1.0%
   58      1041     10.53    1.0%
   59      1066     10.58    0.9%
   60      1090     7.565    0.6%
   61      1115     10.04    0.9%
   62      1133     9.999    0.8%
   63      1134     5.067    0.4%
   64      1174     8.102    0.6%
   65      1209     14.06    1.1%
   66      1218      7.99    0.6%
   67      1249     11.95    0.9%
   68      1258     2.461    0.1%
   69      1265     6.428    0.5%
   70      1315     15.32    1.1%
   71      1342     8.301    0.6%
   72      1336     8.811    0.6%
   73      1381     13.07    0.9%
   74      1394     8.694    0.6%
   75      1428      8.83    0.6%
   76      1435     6.678    0.4%
   77      1457     3.179    0.2%
   78      1501     13.53    0.9%
   79      1495      6.03    0.4%
   80      1543     4.405    0.2%
   81      1553     10.31    0.6%
   82      1616      16.4    1.0%
   83      1649     14.83    0.8%
   84      1661     17.28    1.0%
   85      1673     6.716    0.4%
   86      1687     5.675    0.3%
   87      1710      15.7    0.9%
   88      1745     13.93    0.7%
   89      1780     12.35    0.6%
   90      1821     9.623    0.5%
   91      1870     10.91    0.5%
   92      1869     13.92    0.7%
   93      1884     14.98    0.7%
   94      1927     9.687    0.5%
   95      1944     12.89    0.6%
   96      1981     15.68    0.7%
   97      1991     10.67    0.5%
   98      2016     7.114    0.3%
   99      2088     12.76    0.6%
  100      2074     6.963    0.3%

Quality and confidence:
param     error
e          0.06

Model:
Time ~=        0
    + e    20.81
              µs

Reads = 2 + (0 * e)
Writes = 4 + (7 * e)

Pallet: "pallet_staking", Extrinsic: "reap_stash", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: System Account (r:1 w:1)
Storage: Staking Bonded (r:1 w:1)
Storage: Staking Ledger (r:1 w:1)
Storage: Staking SlashingSpans (r:1 w:1)
Storage: Staking Validators (r:1 w:0)
Storage: Staking Nominators (r:1 w:1)
Storage: Staking CounterForNominators (r:1 w:1)
Storage: BagsList ListNodes (r:2 w:2)
Storage: BagsList ListBags (r:1 w:1)
Storage: BagsList CounterForListNodes (r:1 w:1)
Storage: Balances Locks (r:1 w:1)
Storage: Staking Payee (r:0 w:1)
Storage: Staking SpanSlash (r:0 w:1)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    62.41
    + s    0.804
              µs

Reads = 12 + (0 * s)
Writes = 12 + (1 * s)

Min Squares Analysis
========
-- Extrinsic Time --

Data points distribution:
    s   mean µs  sigma µs       %
    1     62.64     0.187    0.2%
    2     64.25     0.292    0.4%
    3     64.68     0.234    0.3%
    4     64.94     0.216    0.3%
    5     66.19     0.178    0.2%
    6      67.1     0.171    0.2%
    7     67.99     0.227    0.3%
    8     68.89     0.178    0.2%
    9     70.07     0.226    0.3%
   10     70.91       0.2    0.2%
   11     71.06     0.335    0.4%
   12     71.57       0.2    0.2%
   13      72.5     0.152    0.2%
   14     73.58     0.297    0.4%
   15     73.95      0.26    0.3%
   16      75.4     0.275    0.3%
   17     76.47     0.252    0.3%
   18     76.97     0.221    0.2%
   19     77.01     0.145    0.1%
   20      77.6     0.242    0.3%
   21     78.98      0.16    0.2%
   22     79.12     0.258    0.3%
   23     80.72     0.312    0.3%
   24     82.17     0.275    0.3%
   25      81.6     0.388    0.4%
   26     82.14     0.414    0.5%
   27     84.14     0.396    0.4%
   28     86.05     0.692    0.8%
   29     85.16     1.002    1.1%
   30      86.4     0.405    0.4%
   31      87.3     0.295    0.3%
   32     87.92     0.171    0.1%
   33     88.73     0.299    0.3%
   34     89.16      0.38    0.4%
   35     90.29     0.409    0.4%
   36     91.55      0.33    0.3%
   37     92.61      0.22    0.2%
   38      93.5     0.362    0.3%
   39     93.44     0.512    0.5%
   40     94.78     0.452    0.4%
   41     96.67     0.216    0.2%
   42     96.82     0.327    0.3%
   43     98.27     0.252    0.2%
   44     97.88     0.288    0.2%
   45     99.31     0.241    0.2%
   46     99.26     0.716    0.7%
   47     100.4     0.364    0.3%
   48     100.5     0.425    0.4%
   49     102.4     0.296    0.2%
   50     102.2     0.202    0.1%
   51     103.6     0.218    0.2%
   52     103.7     0.343    0.3%
   53       105     0.484    0.4%
   54     107.3      0.86    0.8%
   55     106.8     0.274    0.2%
   56     108.7     0.301    0.2%
   57     109.4     0.258    0.2%
   58     109.6     0.271    0.2%
   59     110.7     0.327    0.2%
   60     110.8     0.477    0.4%
   61     112.6     0.262    0.2%
   62     112.4      0.36    0.3%
   63     113.6     0.343    0.3%
   64       113     0.321    0.2%
   65     113.6     0.317    0.2%
   66       115     0.211    0.1%
   67     115.8     0.329    0.2%
   68       117     0.298    0.2%
   69     117.6     0.345    0.2%
   70     118.4     0.253    0.2%
   71     119.1     0.442    0.3%
   72     120.4     0.208    0.1%
   73     121.5     0.247    0.2%
   74     122.6      0.31    0.2%
   75     122.9     0.313    0.2%
   76     123.8     0.238    0.1%
   77     126.2     1.098    0.8%
   78     125.8     0.513    0.4%
   79     126.9     0.296    0.2%
   80     125.5     0.912    0.7%
   81     127.5      0.29    0.2%
   82     127.9     0.198    0.1%
   83     129.6     0.375    0.2%
   84     129.9     0.956    0.7%
   85     131.1     0.175    0.1%
   86     131.8     1.176    0.8%
   87     133.3     0.392    0.2%
   88     132.4     0.402    0.3%
   89     134.7     0.258    0.1%
   90     134.3     0.722    0.5%
   91     134.8     0.216    0.1%
   92     134.6     0.827    0.6%
   93       136     1.095    0.8%
   94     136.4     0.337    0.2%
   95     139.9     1.066    0.7%
   96     139.4     0.171    0.1%
   97     140.2     0.226    0.1%
   98     140.4     0.215    0.1%
   99     142.1     0.389    0.2%
  100     139.5     0.869    0.6%

Quality and confidence:
param     error
s             0

Model:
Time ~=    62.43
    + s    0.804
              µs

Reads = 12 + (0 * s)
Writes = 12 + (1 * s)

Pallet: "pallet_staking", Extrinsic: "new_era", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Staking CounterForNominators (r:1 w:0)
Storage: Staking CounterForValidators (r:1 w:0)
Storage: Staking Validators (r:2 w:0)
Storage: Staking Bonded (r:101 w:0)
Storage: Staking Ledger (r:101 w:0)
Storage: Staking SlashingSpans (r:1 w:0)
Storage: BagsList ListBags (r:200 w:0)
Storage: BagsList ListNodes (r:100 w:0)
Storage: Staking Nominators (r:100 w:0)
Storage: Staking ValidatorCount (r:1 w:0)
Storage: Staking MinimumValidatorCount (r:1 w:0)
Storage: Staking CurrentEra (r:1 w:1)
Storage: Staking HistoryDepth (r:1 w:0)
Storage: Staking ErasStakersClipped (r:0 w:1)
Storage: Staking ErasValidatorPrefs (r:0 w:1)
Storage: Staking ErasStakers (r:0 w:1)
Storage: Staking ErasTotalStake (r:0 w:1)
Storage: Staking ErasStartSessionIndex (r:0 w:1)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=        0
    + v    210.3
    + n    31.86
              µs

Reads = 208 + (3 * v) + (4 * n)
Writes = 3 + (3 * v) + (0 * n)

Min Squares Analysis
========
-- Extrinsic Time --

Data points distribution:
    v     n   mean µs  sigma µs       %
    1   100      1922      7.11    0.3%
    2   100      2110     14.88    0.7%
    3   100      2182     15.18    0.6%
    4   100      2374     12.82    0.5%
    5   100      2558     11.04    0.4%
    6   100      2758     15.31    0.5%
    7   100      2960     14.97    0.5%
    8   100      3233     24.18    0.7%
    9   100      3567     18.24    0.5%
   10     1     659.6     7.317    1.1%
   10     2     690.4     10.26    1.4%
   10     3     713.4     2.913    0.4%
   10     4     750.3     7.061    0.9%
   10     5     777.8     4.362    0.5%
   10     6     840.2     9.936    1.1%
   10     7     831.3      6.39    0.7%
   10     8     866.3     12.11    1.3%
   10     9     917.2     3.146    0.3%
   10    10     939.3     12.34    1.3%
   10    11     986.6     11.28    1.1%
   10    12      1008     14.37    1.4%
   10    13      1035     14.36    1.3%
   10    14      1079      10.8    1.0%
   10    15      1101     6.877    0.6%
   10    16      1133     8.852    0.7%
   10    17      1167     8.273    0.7%
   10    18      1206     10.56    0.8%
   10    19      1243     11.44    0.9%
   10    20      1266     14.16    1.1%
   10    21      1282      9.95    0.7%
   10    22      1301     11.19    0.8%
   10    23      1349     16.79    1.2%
   10    24      1403     11.41    0.8%
   10    25      1430     13.46    0.9%
   10    26      1464     9.828    0.6%
   10    27      1502     15.28    1.0%
   10    28      1554     13.47    0.8%
   10    29      1582     13.86    0.8%
   10    30      1598     9.367    0.5%
   10    31      1629      17.6    1.0%
   10    32      1667     10.24    0.6%
   10    33      1676     12.35    0.7%
   10    34      1695      11.1    0.6%
   10    35      1723      11.9    0.6%
   10    36      1781     14.24    0.7%
   10    37      1802     13.29    0.7%
   10    38      1842        16    0.8%
   10    39      1842     19.44    1.0%
   10    40      1877     11.65    0.6%
   10    41      1922     6.784    0.3%
   10    42      1968      13.1    0.6%
   10    43      1981     15.37    0.7%
   10    44      2023     17.72    0.8%
   10    45      2052     11.38    0.5%
   10    46      2098     20.28    0.9%
   10    47      2111     12.07    0.5%
   10    48      2132     13.48    0.6%
   10    49      2177     16.04    0.7%
   10    50      2244     15.51    0.6%
   10    51      2249     17.45    0.7%
   10    52      2319     11.92    0.5%
   10    53      2354     17.35    0.7%
   10    54      2325     14.37    0.6%
   10    55      2392     11.98    0.5%
   10    56      2391     8.537    0.3%
   10    57      2429     17.92    0.7%
   10    58      2509     13.03    0.5%
   10    59      2515     19.95    0.7%
   10    60      2535     22.01    0.8%
   10    61      2586     8.813    0.3%
   10    62      2620     17.33    0.6%
   10    63      2730      13.4    0.4%
   10    64      2708     17.63    0.6%
   10    65      2753     11.52    0.4%
   10    66      2755     14.53    0.5%
   10    67      2768     23.54    0.8%
   10    68      2831      14.2    0.5%
   10    69      2819     18.55    0.6%
   10    70      2904      14.1    0.4%
   10    71      2887     13.93    0.4%
   10    72      2974     10.24    0.3%
   10    73      2988     12.49    0.4%
   10    74      3012     18.23    0.6%
   10    75      3028     21.36    0.7%
   10    76      3072     23.79    0.7%
   10    77      3117     13.57    0.4%
   10    78      3096     25.09    0.8%
   10    79      3129     14.71    0.4%
   10    80      3190     15.28    0.4%
   10    81      3205     15.26    0.4%
   10    82      3266     14.52    0.4%
   10    83      3273     14.36    0.4%
   10    84      3279     13.34    0.4%
   10    85      3306     17.21    0.5%
   10    86      3382     22.53    0.6%
   10    87      3391     16.44    0.4%
   10    88      3398     17.14    0.5%
   10    89      3431     11.77    0.3%
   10    90      3476     10.85    0.3%
   10    91      3545     17.11    0.4%
   10    92      3580     15.44    0.4%
   10    93      3577     21.03    0.5%
   10    94      3612     16.71    0.4%
   10    95      3650     16.75    0.4%
   10    96      3667     16.59    0.4%
   10    97      3697     16.59    0.4%
   10    98      3785     16.59    0.4%
   10    99      3766     20.92    0.5%
   10   100      3761      23.2    0.6%

Quality and confidence:
param     error
v         0.896
n         0.045

Model:
Time ~=        0
    + v      227
    + n    31.66
              µs

Reads = 208 + (3 * v) + (4 * n)
Writes = 3 + (3 * v) + (0 * n)

Pallet: "pallet_staking", Extrinsic: "get_npos_voters", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Staking CounterForNominators (r:1 w:0)
Storage: Staking CounterForValidators (r:1 w:0)
Storage: Staking Validators (r:501 w:0)
Storage: Staking Bonded (r:1500 w:0)
Storage: Staking Ledger (r:1500 w:0)
Storage: Staking SlashingSpans (r:21 w:0)
Storage: BagsList ListBags (r:200 w:0)
Storage: BagsList ListNodes (r:1000 w:0)
Storage: Staking Nominators (r:1000 w:0)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=        0
    + v    19.12
    + n    21.87
    + s    53.27
              µs

Reads = 204 + (3 * v) + (4 * n) + (1 * s)
Writes = 0 + (0 * v) + (0 * n) + (0 * s)

Min Squares Analysis
========
-- Extrinsic Time --

Data points distribution:
    v     n     s   mean µs  sigma µs       %
  500  1000    20     27660     64.78    0.2%
  510  1000    20     28080     180.2    0.6%
  520  1000    20     28100     42.42    0.1%
  530  1000    20     28300     181.8    0.6%
  540  1000    20     28880      88.3    0.3%
  550  1000    20     28700     88.55    0.3%
  560  1000    20     28910     138.1    0.4%
  570  1000    20     29560     151.1    0.5%
  580  1000    20     29510     195.8    0.6%
  590  1000    20     29350     152.3    0.5%
  600  1000    20     29550     53.07    0.1%
  610  1000    20     29930     136.6    0.4%
  620  1000    20     30240       140    0.4%
  630  1000    20     30330     225.4    0.7%
  640  1000    20     30110       227    0.7%
  650  1000    20     30350     152.2    0.5%
  660  1000    20     31440     72.62    0.2%
  670  1000    20     31030     210.5    0.6%
  680  1000    20     30530     88.75    0.2%
  690  1000    20     31420       145    0.4%
  700  1000    20     31230     105.4    0.3%
  710  1000    20     31430     118.8    0.3%
  720  1000    20     31880     107.5    0.3%
  730  1000    20     32650     242.1    0.7%
  740  1000    20     32250     116.9    0.3%
  750  1000    20     32550     93.42    0.2%
  760  1000    20     32470     184.7    0.5%
  770  1000    20     33030       212    0.6%
  780  1000    20     33170       127    0.3%
  790  1000    20     33330     131.9    0.3%
  800  1000    20     33930       140    0.4%
  810  1000    20     33710     219.7    0.6%
  820  1000    20     33770     274.7    0.8%
  830  1000    20     33910     228.2    0.6%
  840  1000    20     34000     188.1    0.5%
  850  1000    20     34020     115.5    0.3%
  860  1000    20     34600     154.5    0.4%
  870  1000    20     34830     240.5    0.6%
  880  1000    20     34460     211.9    0.6%
  890  1000    20     34950     236.5    0.6%
  900  1000    20     34580     96.42    0.2%
  910  1000    20     36090     119.7    0.3%
  920  1000    20     35540     111.4    0.3%
  930  1000    20     35560     185.1    0.5%
  940  1000    20     36160       128    0.3%
  950  1000    20     36950     124.4    0.3%
  960  1000    20     36110     164.2    0.4%
  970  1000    20     36430     234.3    0.6%
  980  1000    20     37340     134.9    0.3%
  990  1000    20     36630     72.53    0.1%
 1000   500    20     26160     142.7    0.5%
 1000   510    20     27310     114.3    0.4%
 1000   520    20     26980     118.6    0.4%
 1000   530    20     27290     136.3    0.4%
 1000   540    20     27410     159.6    0.5%
 1000   550    20     27600     153.2    0.5%
 1000   560    20     27450     134.8    0.4%
 1000   570    20     27660     156.3    0.5%
 1000   580    20     27760     91.95    0.3%
 1000   590    20     28430     192.6    0.6%
 1000   600    20     28340     179.3    0.6%
 1000   610    20     28270       133    0.4%
 1000   620    20     28670     144.7    0.5%
 1000   630    20     29600     200.6    0.6%
 1000   640    20     29420     143.5    0.4%
 1000   650    20     29740     174.1    0.5%
 1000   660    20     30260     179.6    0.5%
 1000   670    20     29840     121.9    0.4%
 1000   680    20     30560     174.7    0.5%
 1000   690    20     30550     111.5    0.3%
 1000   700    20     30420     210.5    0.6%
 1000   710    20     30960     133.2    0.4%
 1000   720    20     31610     71.65    0.2%
 1000   730    20     31060     166.1    0.5%
 1000   740    20     31700     158.7    0.5%
 1000   750    20     31840     145.5    0.4%
 1000   760    20     31770     206.6    0.6%
 1000   770    20     32360       109    0.3%
 1000   780    20     33080     85.37    0.2%
 1000   790    20     32420     140.3    0.4%
 1000   800    20     32840     135.4    0.4%
 1000   810    20     33070     184.5    0.5%
 1000   820    20     32870     132.4    0.4%
 1000   830    20     33680     151.5    0.4%
 1000   840    20     33530       106    0.3%
 1000   850    20     33960     139.6    0.4%
 1000   860    20     34050     70.07    0.2%
 1000   870    20     35120     63.24    0.1%
 1000   880    20     34820       167    0.4%
 1000   890    20     34330       181    0.5%
 1000   900    20     35210     216.6    0.6%
 1000   910    20     35060     117.4    0.3%
 1000   920    20     35080       150    0.4%
 1000   930    20     35170     179.6    0.5%
 1000   940    20     36090     124.4    0.3%
 1000   950    20     35550     137.8    0.3%
 1000   960    20     37340     229.5    0.6%
 1000   970    20     36660     181.2    0.4%
 1000   980    20     36410     217.7    0.5%
 1000   990    20     36670     124.4    0.3%
 1000  1000     1     36850     172.5    0.4%
 1000  1000     2     36950     99.38    0.2%
 1000  1000     3     36920     140.5    0.3%
 1000  1000     4     36780     158.6    0.4%
 1000  1000     5     37800     144.6    0.3%
 1000  1000     6     37150     175.9    0.4%
 1000  1000     7     37040       225    0.6%
 1000  1000     8     37390     219.1    0.5%
 1000  1000     9     36940     230.6    0.6%
 1000  1000    10     37980     216.6    0.5%
 1000  1000    11     37450     132.9    0.3%
 1000  1000    12     37590     302.8    0.8%
 1000  1000    13     37350       130    0.3%
 1000  1000    14     37360       261    0.6%
 1000  1000    15     37400       186    0.4%
 1000  1000    16     37450     229.2    0.6%
 1000  1000    17     38090     158.4    0.4%
 1000  1000    18     37180     145.4    0.3%
 1000  1000    19     37350     354.7    0.9%
 1000  1000    20     38160     138.5    0.3%

Quality and confidence:
param     error
v         0.089
n         0.089
s         3.054

Model:
Time ~=        0
    + v     19.1
    + n    21.88
    + s    6.771
              µs

Reads = 204 + (3 * v) + (4 * n) + (1 * s)
Writes = 0 + (0 * v) + (0 * n) + (0 * s)

Pallet: "pallet_staking", Extrinsic: "get_npos_targets", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Staking Validators (r:501 w:0)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=        0
    + v     7.72
              µs

Reads = 1 + (1 * v)
Writes = 0 + (0 * v)

Min Squares Analysis
========
-- Extrinsic Time --

Data points distribution:
    v   mean µs  sigma µs       %
  500      3745     38.29    1.0%
  510      3753     50.44    1.3%
  520      3879     36.96    0.9%
  530      3935     33.39    0.8%
  540      4080     35.56    0.8%
  550      4063     42.19    1.0%
  560      4320     33.26    0.7%
  570      4384     16.68    0.3%
  580      4342     34.23    0.7%
  590      4423     32.96    0.7%
  600      4632     22.25    0.4%
  610      4563     68.92    1.5%
  620      4700     45.44    0.9%
  630      4688      49.7    1.0%
  640      4769     29.52    0.6%
  650      4927     35.91    0.7%
  660      4937     47.76    0.9%
  670      5111     54.47    1.0%
  680      5147     45.07    0.8%
  690      5154     50.77    0.9%
  700      5143     41.62    0.8%
  710      5385     35.34    0.6%
  720      5440     72.02    1.3%
  730      5608      31.6    0.5%
  740      5584     70.32    1.2%
  750      5554     38.62    0.6%
  760      5789     38.89    0.6%
  770      5887     58.82    0.9%
  780      5849     54.48    0.9%
  790      5820     39.41    0.6%
  800      6236     45.03    0.7%
  810      6099     38.63    0.6%
  820      6225     87.91    1.4%
  830      6280     43.97    0.7%
  840      6373     32.39    0.5%
  850      6449     53.55    0.8%
  860      6497     47.92    0.7%
  870      6686     56.49    0.8%
  880      6647     66.12    0.9%
  890      6758     49.11    0.7%
  900      6775     66.05    0.9%
  910      6912     56.95    0.8%
  920      6953     69.68    1.0%
  930      6948     60.85    0.8%
  940      7222     58.33    0.8%
  950      7246     40.77    0.5%
  960      7185     54.99    0.7%
  970      7253     79.56    1.0%
  980      7482     47.63    0.6%
  990      7713     33.75    0.4%
 1000      7608      81.2    1.0%

Quality and confidence:
param     error
v         0.026

Model:
Time ~=        0
    + v    7.719
              µs

Reads = 1 + (1 * v)
Writes = 0 + (0 * v)

Pallet: "pallet_staking", Extrinsic: "set_staking_configs", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Staking MinCommission (r:0 w:1)
Storage: Staking MinValidatorBond (r:0 w:1)
Storage: Staking MaxValidatorsCount (r:0 w:1)
Storage: Staking ChillThreshold (r:0 w:1)
Storage: Staking MaxNominatorsCount (r:0 w:1)
Storage: Staking MinNominatorBond (r:0 w:1)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    3.536
              µs

Reads = 0
Writes = 6

Min Squares Analysis
========
-- Extrinsic Time --

Model:
Time ~=    3.536
              µs

Reads = 0
Writes = 6

Pallet: "pallet_staking", Extrinsic: "chill_other", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Staking Ledger (r:1 w:0)
Storage: Staking Nominators (r:1 w:1)
Storage: Staking ChillThreshold (r:1 w:0)
Storage: Staking MaxNominatorsCount (r:1 w:0)
Storage: Staking CounterForNominators (r:1 w:1)
Storage: Staking MinNominatorBond (r:1 w:0)
Storage: Staking Validators (r:1 w:0)
Storage: BagsList ListNodes (r:2 w:2)
Storage: BagsList ListBags (r:1 w:1)
Storage: BagsList CounterForListNodes (r:1 w:1)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    55.53
              µs

Reads = 11
Writes = 6

Min Squares Analysis
========
-- Extrinsic Time --

Model:
Time ~=    55.53
              µs

Reads = 11
Writes = 6

Pallet: "pallet_staking", Extrinsic: "force_apply_min_commission", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Staking MinCommission (r:1 w:0)
Storage: Staking Validators (r:2 w:1)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=        0
    + i    9.026
              µs

Reads = 2 + (1 * i)
Writes = 0 + (1 * i)

Min Squares Analysis
========
-- Extrinsic Time --

Data points distribution:
    i   mean µs  sigma µs       %
    1     16.27     0.134    0.8%
   20     152.6     0.454    0.2%
   39     307.2     1.236    0.4%
   58     450.5     4.377    0.9%
   77     610.4     2.905    0.4%
   96     775.5     3.427    0.4%
  115     932.2      5.78    0.6%
  134      1106     6.252    0.5%
  153      1256     7.241    0.5%
  172      1433     7.543    0.5%
  191      1531     11.06    0.7%
  210      1675      12.1    0.7%
  229      1850     15.44    0.8%
  248      1994     10.38    0.5%
  267      2196     12.65    0.5%
  286      2346     13.32    0.5%
  305      2552      9.59    0.3%
  324      2699      11.9    0.4%
  343      2847     20.58    0.7%
  362      3030     22.48    0.7%
  381      3219     14.27    0.4%
  400      3334     24.88    0.7%
  419      3556     17.96    0.5%
  438      3691     24.69    0.6%
  457      3879     17.14    0.4%
  476      4058     32.92    0.8%
  495      4269     20.47    0.4%
  514      4391     32.65    0.7%
  533      4593      21.5    0.4%
  552      4842     31.85    0.6%
  571      4989     32.01    0.6%
  590      5228     14.03    0.2%
  609      5196     24.39    0.4%
  628      5542     42.74    0.7%
  647      5679      30.8    0.5%
  666      5852      29.8    0.5%
  685      6023      40.4    0.6%
  704      6134     49.21    0.8%
  723      6279     26.75    0.4%
  742      6575     34.53    0.5%
  761      6694     60.03    0.8%
  780      6828     30.79    0.4%
  799      7070     35.83    0.5%
  818      7079     34.58    0.4%
  837      7513     30.68    0.4%
  856      7689     39.32    0.5%
  875      7873     36.29    0.4%
  894      7976     30.84    0.3%
  913      8161     55.02    0.6%
  932      8392     67.24    0.8%
  951      8596     47.89    0.5%
  970      8764     37.66    0.4%
  989      8900     51.65    0.5%

Quality and confidence:
param     error
i         0.013

Model:
Time ~=        0
    + i     9.07
              µs

Reads = 2 + (1 * i)
Writes = 0 + (1 * i)


Comment on lines 1635 to 1638
if index as u32 >= max_validator_count {
log!(trace, "max_validator_count is less than the number of validators");
break
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@shawntabrizi does this suffice for bounding? Here is my rational for not just force applying to single validators: #10786 (comment)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not a good solution.

We will only be able to iterate over the same first n people. How should we touch the last ones?

@emostov
Copy link
Contributor Author

emostov commented Feb 9, 2022

/benchmark runtime pallet pallet_staking

@parity-benchapp
Copy link

parity-benchapp bot commented Feb 9, 2022

Benchmark Runtime Pallet for branch "zeke-force-min-stake" with command cargo run --quiet --profile=production --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_staking --extrinsic="*" --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/staking/src/weights.rs --template=./.maintain/frame-weight-template.hbs

Toolchain: stable-x86_64-unknown-linux-gnu (default)
rustc 1.57.0 (f1edd0429 2021-11-29)

Results
Pallet: "pallet_staking", Extrinsic: "bond", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Staking Bonded (r:1 w:1)
Storage: Staking Ledger (r:1 w:1)
Storage: Staking CurrentEra (r:1 w:0)
Storage: Staking HistoryDepth (r:1 w:0)
Storage: Balances Locks (r:1 w:1)
Storage: Staking Payee (r:0 w:1)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    37.28
              µs

Reads = 5
Writes = 4

Min Squares Analysis
========
-- Extrinsic Time --

Model:
Time ~=    37.28
              µs

Reads = 5
Writes = 4

Pallet: "pallet_staking", Extrinsic: "bond_extra", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Staking Bonded (r:1 w:0)
Storage: Staking Ledger (r:1 w:1)
Storage: Balances Locks (r:1 w:1)
Storage: BagsList ListNodes (r:3 w:3)
Storage: BagsList ListBags (r:2 w:2)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    64.96
              µs

Reads = 8
Writes = 7

Min Squares Analysis
========
-- Extrinsic Time --

Model:
Time ~=    64.96
              µs

Reads = 8
Writes = 7

Pallet: "pallet_staking", Extrinsic: "unbond", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Staking Ledger (r:1 w:1)
Storage: Staking Nominators (r:1 w:0)
Storage: Staking MinNominatorBond (r:1 w:0)
Storage: Staking CurrentEra (r:1 w:0)
Storage: Balances Locks (r:1 w:1)
Storage: System Account (r:1 w:1)
Storage: BagsList ListNodes (r:3 w:3)
Storage: Staking Bonded (r:1 w:0)
Storage: BagsList ListBags (r:2 w:2)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    71.09
              µs

Reads = 12
Writes = 8

Min Squares Analysis
========
-- Extrinsic Time --

Model:
Time ~=    71.09
              µs

Reads = 12
Writes = 8

Pallet: "pallet_staking", Extrinsic: "withdraw_unbonded_update", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Staking Ledger (r:1 w:1)
Storage: Staking CurrentEra (r:1 w:0)
Storage: Balances Locks (r:1 w:1)
Storage: System Account (r:1 w:1)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=     30.6
    + s    0.051
              µs

Reads = 4 + (0 * s)
Writes = 3 + (0 * s)

Min Squares Analysis
========
-- Extrinsic Time --

Data points distribution:
    s   mean µs  sigma µs       %
    0     29.35     0.103    0.3%
    2     29.83     0.153    0.5%
    4     30.24     0.281    0.9%
    6     30.76     0.418    1.3%
    8     31.28     0.165    0.5%
   10     31.08     0.157    0.5%
   12     31.48     0.072    0.2%
   14     31.39     0.206    0.6%
   16     30.81     0.113    0.3%
   18     31.17     0.109    0.3%
   20     31.31     0.093    0.2%
   22     31.58     0.193    0.6%
   24      31.6       0.3    0.9%
   26     31.69      0.14    0.4%
   28      32.6      0.19    0.5%
   30     31.95     0.166    0.5%
   32     32.62     0.205    0.6%
   34     32.73     0.338    1.0%
   36     32.61     0.121    0.3%
   38     32.84     0.137    0.4%
   40     35.03     2.182    6.2%
   42     33.17     0.479    1.4%
   44     33.52     0.121    0.3%
   46     34.15     0.136    0.3%
   48     34.15     0.216    0.6%
   50     34.05     0.212    0.6%
   52     34.08     0.197    0.5%
   54     33.61     0.402    1.1%
   56     33.52     0.123    0.3%
   58     33.86     0.111    0.3%
   60     33.72     0.134    0.3%
   62     34.01     0.199    0.5%
   64     33.82     0.193    0.5%
   66     33.76     0.196    0.5%
   68     33.78     0.166    0.4%
   70     33.99     0.119    0.3%
   72     34.12     0.232    0.6%
   74     34.05     0.168    0.4%
   76     33.93     0.239    0.7%
   78     34.32     0.346    1.0%
   80     34.37     0.069    0.2%
   82      34.6     0.206    0.5%
   84     34.69     0.348    1.0%
   86     34.81     0.414    1.1%
   88     35.07      0.16    0.4%
   90     34.93     0.135    0.3%
   92     36.06      0.22    0.6%
   94     35.18     0.345    0.9%
   96     35.52     0.188    0.5%
   98      35.6     0.169    0.4%
  100     35.55     0.177    0.4%

Quality and confidence:
param     error
s         0.001

Model:
Time ~=    30.61
    + s    0.052
              µs

Reads = 4 + (0 * s)
Writes = 3 + (0 * s)

Pallet: "pallet_staking", Extrinsic: "withdraw_unbonded_kill", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Staking Ledger (r:1 w:1)
Storage: Staking CurrentEra (r:1 w:0)
Storage: Staking Bonded (r:1 w:1)
Storage: Staking SlashingSpans (r:1 w:0)
Storage: Staking Validators (r:1 w:0)
Storage: Staking Nominators (r:1 w:1)
Storage: Staking CounterForNominators (r:1 w:1)
Storage: BagsList ListNodes (r:2 w:2)
Storage: BagsList ListBags (r:1 w:1)
Storage: BagsList CounterForListNodes (r:1 w:1)
Storage: System Account (r:1 w:1)
Storage: Balances Locks (r:1 w:1)
Storage: Staking Payee (r:0 w:1)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    58.18
    + s        0
              µs

Reads = 13 + (0 * s)
Writes = 11 + (0 * s)

Min Squares Analysis
========
-- Extrinsic Time --

Data points distribution:
    s   mean µs  sigma µs       %
    0     58.19     0.243    0.4%
    2     58.03     0.237    0.4%
    4     58.04     0.187    0.3%
    6     57.89     0.171    0.2%
    8     57.95     0.178    0.3%
   10        58     0.189    0.3%
   12     58.46     0.136    0.2%
   14     58.02     0.113    0.1%
   16     58.69     0.546    0.9%
   18     58.55     0.154    0.2%
   20     58.08      0.34    0.5%
   22     58.13     0.221    0.3%
   24     57.95     0.093    0.1%
   26     58.08     0.301    0.5%
   28     58.15     0.169    0.2%
   30     59.15     0.293    0.4%
   32     58.14     0.236    0.4%
   34     57.85     0.198    0.3%
   36     58.81     0.459    0.7%
   38     58.14      0.22    0.3%
   40     58.07      0.36    0.6%
   42     58.44     0.433    0.7%
   44     58.16     0.332    0.5%
   46     58.16      0.22    0.3%
   48     58.27     0.184    0.3%
   50     57.94     0.229    0.3%
   52     57.93     0.175    0.3%
   54     58.07     0.307    0.5%
   56     58.17     0.533    0.9%
   58     58.13     0.157    0.2%
   60     58.12     0.223    0.3%
   62     57.88     0.286    0.4%
   64     58.09     0.306    0.5%
   66      58.2     0.184    0.3%
   68     58.21     0.287    0.4%
   70     57.82     0.294    0.5%
   72     58.19       0.2    0.3%
   74     58.12     0.298    0.5%
   76     58.65     1.059    1.8%
   78     58.05     0.229    0.3%
   80     57.97     0.265    0.4%
   82     57.92     0.193    0.3%
   84     57.79     0.253    0.4%
   86     57.85     0.138    0.2%
   88     57.79     0.329    0.5%
   90     58.05     0.371    0.6%
   92     57.93     0.288    0.4%
   94     57.84     0.197    0.3%
   96     57.19     0.156    0.2%
   98     59.05     0.562    0.9%
  100     58.55     0.446    0.7%

Quality and confidence:
param     error
s             0

Model:
Time ~=    58.22
    + s        0
              µs

Reads = 13 + (0 * s)
Writes = 11 + (0 * s)

Pallet: "pallet_staking", Extrinsic: "validate", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Staking Ledger (r:1 w:0)
Storage: Staking MinValidatorBond (r:1 w:0)
Storage: Staking MinCommission (r:1 w:0)
Storage: Staking Validators (r:1 w:1)
Storage: Staking MaxValidatorsCount (r:1 w:0)
Storage: Staking Nominators (r:1 w:1)
Storage: Staking CounterForNominators (r:1 w:1)
Storage: BagsList ListNodes (r:2 w:2)
Storage: BagsList ListBags (r:1 w:1)
Storage: BagsList CounterForListNodes (r:1 w:1)
Storage: Staking CounterForValidators (r:1 w:1)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    45.72
              µs

Reads = 12
Writes = 8

Min Squares Analysis
========
-- Extrinsic Time --

Model:
Time ~=    45.72
              µs

Reads = 12
Writes = 8

Pallet: "pallet_staking", Extrinsic: "kick", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Staking Ledger (r:1 w:0)
Storage: Staking Nominators (r:1 w:1)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    17.69
    + k    8.059
              µs

Reads = 1 + (1 * k)
Writes = 0 + (1 * k)

Min Squares Analysis
========
-- Extrinsic Time --

Data points distribution:
    k   mean µs  sigma µs       %
    1     29.24     1.749    5.9%
    3     45.48     0.247    0.5%
    5     64.84     0.217    0.3%
    7      80.6     0.352    0.4%
    9     89.44     0.331    0.3%
   11     107.3     0.323    0.3%
   13     124.6     2.105    1.6%
   15     143.7     2.569    1.7%
   17     161.7     0.383    0.2%
   19     172.9      2.71    1.5%
   21     187.8     0.539    0.2%
   23     202.7      1.86    0.9%
   25     228.8     0.575    0.2%
   27     234.2     1.095    0.4%
   29     252.2     0.836    0.3%
   31     265.8     0.727    0.2%
   33     283.3     1.636    0.5%
   35     298.3     3.072    1.0%
   37     314.6     0.669    0.2%
   39     328.7     1.057    0.3%
   41     351.3     4.425    1.2%
   43     361.2     0.961    0.2%
   45       374     1.278    0.3%
   47     390.9     1.806    0.4%
   49     403.6     1.342    0.3%
   51     425.8     4.699    1.1%
   53     443.4     1.703    0.3%
   55     460.9     5.183    1.1%
   57     471.6     4.313    0.9%
   59     503.6     6.203    1.2%
   61     501.3     1.487    0.2%
   63     531.6      7.09    1.3%
   65     539.2     3.483    0.6%
   67       558     1.952    0.3%
   69       572     0.989    0.1%
   71     588.7     5.066    0.8%
   73     600.5     1.932    0.3%
   75       612     2.745    0.4%
   77     630.9     1.505    0.2%
   79     644.8     2.168    0.3%
   81       663     1.205    0.1%
   83     678.3     1.623    0.2%
   85       694     1.734    0.2%
   87     710.8     3.186    0.4%
   89     727.3     2.384    0.3%
   91     774.2      6.15    0.7%
   93     763.9     2.222    0.2%
   95     776.9     3.141    0.4%
   97     792.7     2.769    0.3%
   99     844.7     4.412    0.5%
  101     825.4     3.356    0.4%
  103     879.6     3.207    0.3%
  105     866.7     9.818    1.1%
  107     881.3     8.822    1.0%
  109     898.8     3.762    0.4%
  111     920.8     3.189    0.3%
  113     932.2     12.65    1.3%
  115     981.7     3.686    0.3%
  117      1006     6.458    0.6%
  119     981.8     4.466    0.4%
  121      1011     12.86    1.2%
  123      1050     7.343    0.6%
  125      1031     2.195    0.2%
  127      1050     7.259    0.6%

Quality and confidence:
param     error
k         0.012

Model:
Time ~=    13.93
    + k    8.164
              µs

Reads = 1 + (1 * k)
Writes = 0 + (1 * k)

Pallet: "pallet_staking", Extrinsic: "nominate", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Staking Ledger (r:1 w:0)
Storage: Staking MinNominatorBond (r:1 w:0)
Storage: Staking Nominators (r:1 w:1)
Storage: Staking MaxNominatorsCount (r:1 w:0)
Storage: Staking Validators (r:2 w:0)
Storage: Staking CurrentEra (r:1 w:0)
Storage: Staking Bonded (r:1 w:0)
Storage: BagsList ListNodes (r:2 w:2)
Storage: BagsList ListBags (r:1 w:1)
Storage: BagsList CounterForListNodes (r:1 w:1)
Storage: Staking CounterForNominators (r:1 w:1)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    51.48
    + n    3.308
              µs

Reads = 12 + (1 * n)
Writes = 6 + (0 * n)

Min Squares Analysis
========
-- Extrinsic Time --

Data points distribution:
    n   mean µs  sigma µs       %
    1     53.36     0.156    0.2%
    2     58.17     0.147    0.2%
    3     61.53     0.217    0.3%
    4     64.67     0.212    0.3%
    5     68.26     0.168    0.2%
    6     71.32     0.214    0.3%
    7     75.05     0.189    0.2%
    8     77.68     0.238    0.3%
    9     81.63     0.557    0.6%
   10      84.4     0.376    0.4%
   11     88.33     0.255    0.2%
   12     92.03      0.67    0.7%
   13      94.4      0.33    0.3%
   14     97.29       0.4    0.4%
   15     99.12     0.338    0.3%
   16     104.9     0.397    0.3%

Quality and confidence:
param     error
n         0.013

Model:
Time ~=    51.38
    + n     3.31
              µs

Reads = 12 + (1 * n)
Writes = 6 + (0 * n)

Pallet: "pallet_staking", Extrinsic: "chill", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Staking Ledger (r:1 w:0)
Storage: Staking Validators (r:1 w:0)
Storage: Staking Nominators (r:1 w:1)
Storage: Staking CounterForNominators (r:1 w:1)
Storage: BagsList ListNodes (r:2 w:2)
Storage: BagsList ListBags (r:1 w:1)
Storage: BagsList CounterForListNodes (r:1 w:1)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    44.99
              µs

Reads = 8
Writes = 6

Min Squares Analysis
========
-- Extrinsic Time --

Model:
Time ~=    44.99
              µs

Reads = 8
Writes = 6

Pallet: "pallet_staking", Extrinsic: "set_payee", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Staking Ledger (r:1 w:0)
Storage: Staking Payee (r:0 w:1)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    7.962
              µs

Reads = 1
Writes = 1

Min Squares Analysis
========
-- Extrinsic Time --

Model:
Time ~=    7.962
              µs

Reads = 1
Writes = 1

Pallet: "pallet_staking", Extrinsic: "set_controller", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Staking Bonded (r:1 w:1)
Storage: Staking Ledger (r:2 w:2)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    15.64
              µs

Reads = 3
Writes = 3

Min Squares Analysis
========
-- Extrinsic Time --

Model:
Time ~=    15.64
              µs

Reads = 3
Writes = 3

Pallet: "pallet_staking", Extrinsic: "set_validator_count", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Staking ValidatorCount (r:0 w:1)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    1.264
              µs

Reads = 0
Writes = 1

Min Squares Analysis
========
-- Extrinsic Time --

Model:
Time ~=    1.264
              µs

Reads = 0
Writes = 1

Pallet: "pallet_staking", Extrinsic: "force_no_eras", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Staking ForceEra (r:0 w:1)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    1.251
              µs

Reads = 0
Writes = 1

Min Squares Analysis
========
-- Extrinsic Time --

Model:
Time ~=    1.251
              µs

Reads = 0
Writes = 1

Pallet: "pallet_staking", Extrinsic: "force_new_era", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Staking ForceEra (r:0 w:1)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    1.375
              µs

Reads = 0
Writes = 1

Min Squares Analysis
========
-- Extrinsic Time --

Model:
Time ~=    1.375
              µs

Reads = 0
Writes = 1

Pallet: "pallet_staking", Extrinsic: "force_new_era_always", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Staking ForceEra (r:0 w:1)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    1.318
              µs

Reads = 0
Writes = 1

Min Squares Analysis
========
-- Extrinsic Time --

Model:
Time ~=    1.318
              µs

Reads = 0
Writes = 1

Pallet: "pallet_staking", Extrinsic: "set_invulnerables", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Staking Invulnerables (r:0 w:1)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    1.752
    + v    0.051
              µs

Reads = 0 + (0 * v)
Writes = 1 + (0 * v)

Min Squares Analysis
========
-- Extrinsic Time --

Data points distribution:
    v   mean µs  sigma µs       %
    0     1.319     0.025    1.8%
   20     2.608     0.028    1.0%
   40     3.635     0.045    1.2%
   60     4.706     0.033    0.7%
   80      5.87      0.04    0.6%
  100     6.851     0.031    0.4%
  120     7.927     0.051    0.6%
  140     8.862     0.031    0.3%
  160     9.833     0.048    0.4%
  180     11.02     0.042    0.3%
  200      12.1     0.075    0.6%
  220     12.97     0.051    0.3%
  240     14.35     0.033    0.2%
  260     15.03     0.061    0.4%
  280     16.19     0.035    0.2%
  300     17.29      0.04    0.2%
  320     18.26     0.054    0.2%
  340      19.3     0.044    0.2%
  360      20.2     0.146    0.7%
  380     21.45     0.049    0.2%
  400     22.43     0.039    0.1%
  420     23.31     0.149    0.6%
  440     24.49     0.057    0.2%
  460     25.56     0.035    0.1%
  480     26.05     0.055    0.2%
  500     27.21     0.206    0.7%
  520     28.23     0.278    0.9%
  540      29.4     0.262    0.8%
  560     30.03     0.045    0.1%
  580     31.98     0.025    0.0%
  600      32.2     0.192    0.5%
  620     33.17     0.079    0.2%
  640     34.18     0.042    0.1%
  660     36.02     0.119    0.3%
  680     36.96     0.324    0.8%
  700     37.41     0.063    0.1%
  720     38.34     0.031    0.0%
  740     39.48     0.054    0.1%
  760     40.43     0.075    0.1%
  780     41.48     0.064    0.1%
  800     42.41     0.054    0.1%
  820     43.47     0.056    0.1%
  840     44.58     0.057    0.1%
  860     45.58     0.104    0.2%
  880     46.56     0.056    0.1%
  900     47.73      0.04    0.0%
  920     48.67      0.06    0.1%
  940     50.08     0.069    0.1%
  960     50.74     0.052    0.1%
  980      51.8     0.033    0.0%
 1000      52.8     0.062    0.1%

Quality and confidence:
param     error
v             0

Model:
Time ~=    1.782
    + v    0.051
              µs

Reads = 0 + (0 * v)
Writes = 1 + (0 * v)

Pallet: "pallet_staking", Extrinsic: "force_unstake", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Staking Bonded (r:1 w:1)
Storage: Staking SlashingSpans (r:1 w:0)
Storage: Staking Validators (r:1 w:0)
Storage: Staking Nominators (r:1 w:1)
Storage: Staking CounterForNominators (r:1 w:1)
Storage: BagsList ListNodes (r:2 w:2)
Storage: BagsList ListBags (r:1 w:1)
Storage: BagsList CounterForListNodes (r:1 w:1)
Storage: System Account (r:1 w:1)
Storage: Balances Locks (r:1 w:1)
Storage: Staking Ledger (r:0 w:1)
Storage: Staking Payee (r:0 w:1)
Storage: Staking SpanSlash (r:0 w:2)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    56.67
    + s    0.811
              µs

Reads = 11 + (0 * s)
Writes = 12 + (1 * s)

Min Squares Analysis
========
-- Extrinsic Time --

Data points distribution:
    s   mean µs  sigma µs       %
    0     53.32      0.17    0.3%
    2     57.67     0.085    0.1%
    4     59.42     0.178    0.2%
    6     61.14     0.119    0.1%
    8     63.33     0.158    0.2%
   10     65.27     0.207    0.3%
   12     66.59     0.117    0.1%
   14     68.25     0.306    0.4%
   16     69.66     0.189    0.2%
   18     71.15      0.16    0.2%
   20     72.49     0.188    0.2%
   22     74.35     0.276    0.3%
   24     76.85     0.258    0.3%
   26     77.56     0.278    0.3%
   28     78.68     0.198    0.2%
   30     82.57     0.344    0.4%
   32     83.63     0.272    0.3%
   34     84.52     0.194    0.2%
   36     86.02     0.249    0.2%
   38     88.13     0.226    0.2%
   40     89.65     0.272    0.3%
   42     91.02     0.261    0.2%
   44     91.88     0.348    0.3%
   46     94.04     0.336    0.3%
   48     95.54     0.166    0.1%
   50     97.41     0.355    0.3%
   52     99.09     0.397    0.4%
   54     101.3     0.263    0.2%
   56     102.7     0.148    0.1%
   58     104.7     0.693    0.6%
   60     105.5     0.188    0.1%
   62     106.3     0.155    0.1%
   64     107.9     0.642    0.5%
   66     109.5      0.26    0.2%
   68     111.3     0.802    0.7%
   70     112.3     0.296    0.2%
   72     114.6     0.207    0.1%
   74     116.9     0.317    0.2%
   76     118.4     0.284    0.2%
   78     119.1     0.322    0.2%
   80     120.1     0.682    0.5%
   82     122.1     0.519    0.4%
   84     123.7     0.647    0.5%
   86     128.1     1.241    0.9%
   88     125.7     1.285    1.0%
   90     128.8     0.252    0.1%
   92     129.9     0.492    0.3%
   94     133.9     2.263    1.6%
   96     137.3     0.229    0.1%
   98     138.3     0.129    0.0%
  100     138.5     0.496    0.3%

Quality and confidence:
param     error
s         0.001

Model:
Time ~=    56.44
    + s    0.815
              µs

Reads = 11 + (0 * s)
Writes = 12 + (1 * s)

Pallet: "pallet_staking", Extrinsic: "cancel_deferred_slash", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Staking UnappliedSlashes (r:1 w:1)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=     1059
    + s     5.03
              µs

Reads = 1 + (0 * s)
Writes = 1 + (0 * s)

Min Squares Analysis
========
-- Extrinsic Time --

Data points distribution:
    s   mean µs  sigma µs       %
    1     158.2     0.317    0.2%
   20     342.9     0.285    0.0%
   39     526.5     7.514    1.4%
   58     706.3     7.725    1.0%
   77     877.8     5.274    0.6%
   96      1067     14.79    1.3%
  115      1225     14.94    1.2%
  134      1388     13.64    0.9%
  153      1560     15.92    1.0%
  172      1705     13.84    0.8%
  191      1864     13.62    0.7%
  210      2022     10.63    0.5%
  229      2171      19.8    0.9%
  248      2314       2.3    0.0%
  267      2444     13.24    0.5%
  286      2597     13.26    0.5%
  305      2713     13.07    0.4%
  324      2832      14.4    0.5%
  343      2977      11.6    0.3%
  362      3096     9.936    0.3%
  381      3207     17.43    0.5%
  400      3326     9.632    0.2%
  419      3446     13.76    0.3%
  438      3550     14.41    0.4%
  457      3627     15.32    0.4%
  476      3752     20.59    0.5%
  495      3852      12.9    0.3%
  514      3941     15.41    0.3%
  533      4025     12.99    0.3%
  552      4108     12.49    0.3%
  571      4187      22.8    0.5%
  590      4265     17.25    0.4%
  609      4344     13.36    0.3%
  628      4426     19.81    0.4%
  647      4481     20.06    0.4%
  666      4544     18.68    0.4%
  685      4609     14.75    0.3%
  704      4734     5.218    0.1%
  723      4726     13.59    0.2%
  742      4780     11.28    0.2%
  761      4822     16.34    0.3%
  780      4847     3.561    0.0%
  799      4898     15.76    0.3%
  818      4930     19.63    0.3%
  837      4958     10.58    0.2%
  856      5009      29.2    0.5%
  875      5020     17.57    0.3%
  894      5043     13.69    0.2%
  913      5048     8.749    0.1%
  932      5088     16.79    0.3%
  951      5086     18.22    0.3%
  970      5097     15.71    0.3%
  989      5084     10.51    0.2%

Quality and confidence:
param     error
s         0.056

Model:
Time ~=    951.5
    + s    4.995
              µs

Reads = 1 + (0 * s)
Writes = 1 + (0 * s)

Pallet: "pallet_staking", Extrinsic: "payout_stakers_dead_controller", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Staking CurrentEra (r:1 w:0)
Storage: Staking HistoryDepth (r:1 w:0)
Storage: Staking ErasValidatorReward (r:1 w:0)
Storage: Staking Bonded (r:2 w:0)
Storage: Staking Ledger (r:1 w:1)
Storage: Staking ErasStakersClipped (r:1 w:0)
Storage: Staking ErasRewardPoints (r:1 w:0)
Storage: Staking ErasValidatorPrefs (r:1 w:0)
Storage: Staking Payee (r:2 w:0)
Storage: System Account (r:2 w:2)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    81.66
    + n    23.52
              µs

Reads = 10 + (3 * n)
Writes = 2 + (1 * n)

Min Squares Analysis
========
-- Extrinsic Time --

Data points distribution:
    n   mean µs  sigma µs       %
    1     100.6     0.489    0.4%
    6     224.3     8.843    3.9%
   11     337.1     1.196    0.3%
   16     458.6     1.259    0.2%
   21     577.5     1.326    0.2%
   26     690.3     3.466    0.5%
   31     819.4     10.02    1.2%
   36     931.1     7.985    0.8%
   41      1048     5.855    0.5%
   46      1158     7.562    0.6%
   51      1314     3.425    0.2%
   56      1401     8.992    0.6%
   61      1505      9.36    0.6%
   66      1622     5.361    0.3%
   71      1765     10.87    0.6%
   76      1870     9.501    0.5%
   81      1995     13.54    0.6%
   86      2103     13.15    0.6%
   91      2223     14.51    0.6%
   96      2350     10.05    0.4%
  101      2435     18.84    0.7%
  106      2580     10.83    0.4%
  111      2692     14.51    0.5%
  116      2789     15.01    0.5%
  121      2945     15.47    0.5%
  126      3017     19.18    0.6%
  131      3162     27.67    0.8%
  136      3305     20.61    0.6%
  141      3395     18.62    0.5%
  146      3510     8.457    0.2%
  151      3629     9.279    0.2%
  156      3730     15.75    0.4%
  161      3866      25.9    0.6%
  166      4011      24.6    0.6%
  171      4144     8.349    0.2%
  176      4234      19.5    0.4%
  181      4315     17.72    0.4%
  186      4454     15.21    0.3%
  191      4554     14.28    0.3%
  196      4682     24.22    0.5%
  201      4875     14.59    0.2%
  206      4927     10.52    0.2%
  211      5020     11.49    0.2%
  216      5154     16.13    0.3%
  221      5309     36.89    0.6%
  226      5411     20.48    0.3%
  231      5478     17.95    0.3%
  236      5653     32.83    0.5%
  241      5787     22.37    0.3%
  246      5853     14.44    0.2%
  251      6018     27.76    0.4%
  256      6151     34.23    0.5%

Quality and confidence:
param     error
n         0.015

Model:
Time ~=    78.82
    + n    23.57
              µs

Reads = 10 + (3 * n)
Writes = 2 + (1 * n)

Pallet: "pallet_staking", Extrinsic: "payout_stakers_alive_staked", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Staking CurrentEra (r:1 w:0)
Storage: Staking HistoryDepth (r:1 w:0)
Storage: Staking ErasValidatorReward (r:1 w:0)
Storage: Staking Bonded (r:2 w:0)
Storage: Staking Ledger (r:2 w:2)
Storage: Staking ErasStakersClipped (r:1 w:0)
Storage: Staking ErasRewardPoints (r:1 w:0)
Storage: Staking ErasValidatorPrefs (r:1 w:0)
Storage: Staking Payee (r:2 w:0)
Storage: System Account (r:2 w:2)
Storage: Balances Locks (r:2 w:2)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    113.9
    + n    32.89
              µs

Reads = 11 + (5 * n)
Writes = 3 + (3 * n)

Min Squares Analysis
========
-- Extrinsic Time --

Data points distribution:
    n   mean µs  sigma µs       %
    1     129.6     0.494    0.3%
    6     296.2     1.716    0.5%
   11     465.9     1.748    0.3%
   16     634.9     5.697    0.8%
   21     806.5     10.05    1.2%
   26     966.5     7.763    0.8%
   31      1127     9.944    0.8%
   36      1311     12.65    0.9%
   41      1470     10.51    0.7%
   46      1646     18.02    1.0%
   51      1794     9.855    0.5%
   56      1967     7.096    0.3%
   61      2142     16.76    0.7%
   66      2280      7.52    0.3%
   71      2453     14.09    0.5%
   76      2614     8.367    0.3%
   81      2780     13.18    0.4%
   86      2929     7.292    0.2%
   91      3090     17.97    0.5%
   96      3290     18.67    0.5%
  101      3447     16.37    0.4%
  106      3629     13.93    0.3%
  111      3732      22.3    0.5%
  116      3967      21.2    0.5%
  121      4110     9.172    0.2%
  126      4284     14.47    0.3%
  131      4437     38.07    0.8%
  136      4568     20.29    0.4%
  141      4738     23.98    0.5%
  146      4937     8.545    0.1%
  151      5088     16.37    0.3%
  156      5292     17.58    0.3%
  161      5405     26.87    0.4%
  166      5544      25.4    0.4%
  171      5735     26.03    0.4%
  176      5907     36.91    0.6%
  181      6078     41.61    0.6%
  186      6183     23.44    0.3%
  191      6389     38.73    0.6%
  196      6601     21.72    0.3%
  201      6741     24.63    0.3%
  206      6922     24.39    0.3%
  211      7077      28.7    0.4%
  216      7196     28.11    0.3%
  221      7377     40.42    0.5%
  226      7544     19.92    0.2%
  231      7645     20.46    0.2%
  236      7920     37.35    0.4%
  241      7983      43.7    0.5%
  246      8235     23.86    0.2%
  251      8332     34.87    0.4%
  256      8548     42.96    0.5%

Quality and confidence:
param     error
n         0.019

Model:
Time ~=    117.7
    + n    32.87
              µs

Reads = 11 + (5 * n)
Writes = 3 + (3 * n)

Pallet: "pallet_staking", Extrinsic: "rebond", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Staking Ledger (r:1 w:1)
Storage: Balances Locks (r:1 w:1)
Storage: System Account (r:1 w:1)
Storage: BagsList ListNodes (r:3 w:3)
Storage: Staking Bonded (r:1 w:0)
Storage: BagsList ListBags (r:2 w:2)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    64.29
    + l    0.052
              µs

Reads = 9 + (0 * l)
Writes = 8 + (0 * l)

Min Squares Analysis
========
-- Extrinsic Time --

Data points distribution:
    l   mean µs  sigma µs       %
    1     64.25     0.162    0.2%
    2     64.07       0.2    0.3%
    3     63.87     0.211    0.3%
    4     64.52     0.418    0.6%
    5     64.19      0.18    0.2%
    6     64.84     0.244    0.3%
    7     66.03     1.174    1.7%
    8     65.15     0.193    0.2%
    9     65.15     0.282    0.4%
   10      64.6     0.132    0.2%
   11     65.02     0.197    0.3%
   12     65.03     0.156    0.2%
   13     65.27     0.554    0.8%
   14     65.09     0.253    0.3%
   15     65.13     0.157    0.2%
   16     65.49     0.278    0.4%
   17     65.24     0.395    0.6%
   18     64.81     0.157    0.2%
   19     65.43     0.215    0.3%
   20     64.86     0.181    0.2%
   21     65.95     0.198    0.3%
   22     65.55     0.161    0.2%
   23     65.24     0.233    0.3%
   24     66.73     0.485    0.7%
   25     65.41     0.188    0.2%
   26     65.75     0.144    0.2%
   27        66     0.211    0.3%
   28     65.98     0.186    0.2%
   29     65.19     0.179    0.2%
   30     65.51     0.217    0.3%
   31     65.66     0.146    0.2%
   32     66.11     0.329    0.4%

Quality and confidence:
param     error
l         0.003

Model:
Time ~=     64.4
    + l     0.05
              µs

Reads = 9 + (0 * l)
Writes = 8 + (0 * l)

Pallet: "pallet_staking", Extrinsic: "set_history_depth", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Staking CurrentEra (r:1 w:0)
Storage: Staking HistoryDepth (r:1 w:1)
Storage: Staking ErasStakersClipped (r:0 w:2)
Storage: Staking ErasValidatorPrefs (r:0 w:2)
Storage: Staking ErasValidatorReward (r:0 w:1)
Storage: Staking ErasRewardPoints (r:0 w:1)
Storage: Staking ErasStakers (r:0 w:2)
Storage: Staking ErasTotalStake (r:0 w:1)
Storage: Staking ErasStartSessionIndex (r:0 w:1)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=        0
    + e    20.16
              µs

Reads = 2 + (0 * e)
Writes = 4 + (7 * e)

Min Squares Analysis
========
-- Extrinsic Time --

Data points distribution:
    e   mean µs  sigma µs       %
    1     23.69     0.178    0.7%
    2     37.52       0.2    0.5%
    3     50.78     0.128    0.2%
    4     65.65     0.272    0.4%
    5     78.78     0.277    0.3%
    6     91.39     0.223    0.2%
    7     105.2     0.298    0.2%
    8     118.8     0.324    0.2%
    9     131.6     0.558    0.4%
   10     149.3     0.668    0.4%
   11     162.1     0.577    0.3%
   12     176.2     0.725    0.4%
   13     191.2     0.757    0.3%
   14     206.1     0.528    0.2%
   15       219     0.982    0.4%
   16     235.4     0.953    0.4%
   17     251.8     0.673    0.2%
   18     266.7      0.93    0.3%
   19     282.4     1.383    0.4%
   20     296.6     1.154    0.3%
   21     312.3     1.143    0.3%
   22     327.4     2.117    0.6%
   23     348.1     0.877    0.2%
   24     360.7      0.84    0.2%
   25     379.3     2.218    0.5%
   26     395.9     0.531    0.1%
   27     411.3     1.196    0.2%
   28     435.6     9.269    2.1%
   29     446.6     0.972    0.2%
   30     465.4     7.755    1.6%
   31       482     1.443    0.2%
   32     501.2     1.442    0.2%
   33     518.5      1.13    0.2%
   34     532.8     1.016    0.1%
   35     558.7     2.641    0.4%
   36     583.1       9.8    1.6%
   37     588.4      3.51    0.5%
   38     617.6     13.93    2.2%
   39     643.3     13.15    2.0%
   40     645.8      10.2    1.5%
   41     662.9     7.414    1.1%
   42     683.7     10.09    1.4%
   43     697.7      2.75    0.3%
   44     722.6     2.069    0.2%
   45     740.3      3.43    0.4%
   46     766.4     16.52    2.1%
   47     779.9     8.212    1.0%
   48     803.9       5.7    0.7%
   49     819.7     2.594    0.3%
   50     839.5     4.058    0.4%
   51     858.5     3.686    0.4%
   52     873.5     3.319    0.3%
   53     906.9     14.66    1.6%
   54     925.6     11.75    1.2%
   55     946.2      5.99    0.6%
   56     979.7     3.439    0.3%
   57     991.7     8.345    0.8%
   58      1010     12.11    1.1%
   59      1016      3.05    0.2%
   60      1053     6.536    0.6%
   61      1078     9.292    0.8%
   62      1120     2.283    0.2%
   63      1119     3.938    0.3%
   64      1123     3.763    0.3%
   65      1157     8.497    0.7%
   66      1175      7.48    0.6%
   67      1208     3.757    0.3%
   68      1225     4.122    0.3%
   69      1243     10.68    0.8%
   70      1258     11.43    0.9%
   71      1299     14.21    1.0%
   72      1319     9.189    0.6%
   73      1346     15.53    1.1%
   74      1366        13    0.9%
   75      1393     11.06    0.7%
   76      1424     12.44    0.8%
   77      1434     4.129    0.2%
   78      1467     4.831    0.3%
   79      1467     3.613    0.2%
   80      1515     12.82    0.8%
   81      1533     14.02    0.9%
   82      1550     9.755    0.6%
   83      1594     12.39    0.7%
   84      1632     6.592    0.4%
   85      1634     13.81    0.8%
   86      1647     14.79    0.8%
   87      1705     12.11    0.7%
   88      1701     8.691    0.5%
   89      1718     9.992    0.5%
   90      1793     14.03    0.7%
   91      1809     12.06    0.6%
   92      1860      6.61    0.3%
   93      1835      7.34    0.3%
   94      1872     6.228    0.3%
   95      1890     16.74    0.8%
   96      1925     7.063    0.3%
   97      1974     10.85    0.5%
   98      1995     7.363    0.3%
   99      2043      13.4    0.6%
  100      2042     9.949    0.4%

Quality and confidence:
param     error
e         0.062

Model:
Time ~=        0
    + e    20.36
              µs

Reads = 2 + (0 * e)
Writes = 4 + (7 * e)

Pallet: "pallet_staking", Extrinsic: "reap_stash", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: System Account (r:1 w:1)
Storage: Staking Bonded (r:1 w:1)
Storage: Staking Ledger (r:1 w:1)
Storage: Staking SlashingSpans (r:1 w:1)
Storage: Staking Validators (r:1 w:0)
Storage: Staking Nominators (r:1 w:1)
Storage: Staking CounterForNominators (r:1 w:1)
Storage: BagsList ListNodes (r:2 w:2)
Storage: BagsList ListBags (r:1 w:1)
Storage: BagsList CounterForListNodes (r:1 w:1)
Storage: Balances Locks (r:1 w:1)
Storage: Staking Payee (r:0 w:1)
Storage: Staking SpanSlash (r:0 w:1)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    62.55
    + s    0.803
              µs

Reads = 12 + (0 * s)
Writes = 12 + (1 * s)

Min Squares Analysis
========
-- Extrinsic Time --

Data points distribution:
    s   mean µs  sigma µs       %
    1     63.06     0.149    0.2%
    2     63.61     0.206    0.3%
    3     64.63     0.076    0.1%
    4     65.74     0.195    0.2%
    5     66.63      0.12    0.1%
    6     67.15     0.247    0.3%
    7     67.83     0.265    0.3%
    8     69.09     0.241    0.3%
    9     69.98     0.135    0.1%
   10     70.04     0.288    0.4%
   11     70.42     0.218    0.3%
   12     71.41     0.277    0.3%
   13     72.21     0.243    0.3%
   14     73.39     0.247    0.3%
   15     74.29     0.214    0.2%
   16     75.42     0.199    0.2%
   17     75.82     0.218    0.2%
   18     77.22     0.525    0.6%
   19     77.37     0.231    0.2%
   20     78.91      0.17    0.2%
   21     79.37     0.206    0.2%
   22     81.15     0.591    0.7%
   23     81.01     0.566    0.6%
   24     81.93     0.321    0.3%
   25     82.77     0.263    0.3%
   26     83.64     0.558    0.6%
   27     84.29     0.442    0.5%
   28        84     0.255    0.3%
   29     85.21      0.25    0.2%
   30     87.83     0.507    0.5%
   31     88.31      0.39    0.4%
   32     88.33     0.327    0.3%
   33     89.06     0.313    0.3%
   34     90.18     0.448    0.4%
   35      90.2     0.258    0.2%
   36     91.48     0.337    0.3%
   37     92.42     0.201    0.2%
   38     93.85     0.397    0.4%
   39     93.31     0.182    0.1%
   40     95.81     0.356    0.3%
   41     96.39     0.346    0.3%
   42     97.27     0.422    0.4%
   43     98.11       0.4    0.4%
   44     98.04     0.261    0.2%
   45     99.57     0.234    0.2%
   46     99.77     0.392    0.3%
   47     100.3     0.319    0.3%
   48     101.3     0.573    0.5%
   49     101.7     0.439    0.4%
   50     103.3     0.226    0.2%
   51     103.6      0.32    0.3%
   52     104.9     0.085    0.0%
   53     105.7     0.392    0.3%
   54     105.9     0.462    0.4%
   55     106.4     0.188    0.1%
   56     108.1     0.384    0.3%
   57     108.2     0.224    0.2%
   58     109.2     0.255    0.2%
   59     110.1     0.176    0.1%
   60     111.6     0.342    0.3%
   61     111.8     0.247    0.2%
   62       112     0.233    0.2%
   63     113.8     1.757    1.5%
   64     112.9     0.218    0.1%
   65     112.9     0.271    0.2%
   66     115.3     0.374    0.3%
   67     116.3     0.445    0.3%
   68     117.8     0.207    0.1%
   69     117.8     0.328    0.2%
   70     118.4     0.152    0.1%
   71       119     0.337    0.2%
   72     120.2     0.422    0.3%
   73     122.1     0.171    0.1%
   74     122.8     0.178    0.1%
   75     123.3     0.224    0.1%
   76     123.6     0.197    0.1%
   77     124.8      0.16    0.1%
   78     125.1     0.162    0.1%
   79     126.2     0.269    0.2%
   80     126.4     0.325    0.2%
   81     127.7     0.274    0.2%
   82     127.2     0.315    0.2%
   83     129.4     0.476    0.3%
   84     129.2     0.359    0.2%
   85     130.5     0.789    0.6%
   86     132.4     0.591    0.4%
   87     132.5     0.275    0.2%
   88       135      1.22    0.9%
   89     135.1     0.225    0.1%
   90     134.2     0.253    0.1%
   91     134.6     0.652    0.4%
   92     135.8      0.44    0.3%
   93     133.9     0.992    0.7%
   94     136.3     0.732    0.5%
   95     138.9     1.149    0.8%
   96     140.2     0.338    0.2%
   97     140.2     0.523    0.3%
   98     140.1     1.132    0.8%
   99     141.6     0.788    0.5%
  100     139.6     1.142    0.8%

Quality and confidence:
param     error
s             0

Model:
Time ~=    62.67
    + s      0.8
              µs

Reads = 12 + (0 * s)
Writes = 12 + (1 * s)

Pallet: "pallet_staking", Extrinsic: "new_era", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Staking CounterForNominators (r:1 w:0)
Storage: Staking CounterForValidators (r:1 w:0)
Storage: Staking Validators (r:2 w:0)
Storage: Staking Bonded (r:101 w:0)
Storage: Staking Ledger (r:101 w:0)
Storage: Staking SlashingSpans (r:1 w:0)
Storage: BagsList ListBags (r:200 w:0)
Storage: BagsList ListNodes (r:100 w:0)
Storage: Staking Nominators (r:100 w:0)
Storage: Staking ValidatorCount (r:1 w:0)
Storage: Staking MinimumValidatorCount (r:1 w:0)
Storage: Staking CurrentEra (r:1 w:1)
Storage: Staking HistoryDepth (r:1 w:0)
Storage: Staking ErasStakersClipped (r:0 w:1)
Storage: Staking ErasValidatorPrefs (r:0 w:1)
Storage: Staking ErasStakers (r:0 w:1)
Storage: Staking ErasTotalStake (r:0 w:1)
Storage: Staking ErasStartSessionIndex (r:0 w:1)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=        0
    + v    209.4
    + n     31.9
              µs

Reads = 208 + (3 * v) + (4 * n)
Writes = 3 + (3 * v) + (0 * n)

Min Squares Analysis
========
-- Extrinsic Time --

Data points distribution:
    v     n   mean µs  sigma µs       %
    1   100      1985     9.187    0.4%
    2   100      2114     9.259    0.4%
    3   100      2226     12.34    0.5%
    4   100      2377     10.22    0.4%
    5   100      2612     10.66    0.4%
    6   100      2781     20.15    0.7%
    7   100      3018     13.09    0.4%
    8   100      3242      7.71    0.2%
    9   100      3581     11.82    0.3%
   10     1     645.1     2.672    0.4%
   10     2     681.5     1.854    0.2%
   10     3     724.6     15.85    2.1%
   10     4     752.9     9.705    1.2%
   10     5       774     3.964    0.5%
   10     6     810.2     2.306    0.2%
   10     7     862.3     9.535    1.1%
   10     8     885.7     13.79    1.5%
   10     9     921.9     9.735    1.0%
   10    10       941      6.33    0.6%
   10    11     991.1      10.4    1.0%
   10    12      1028     9.879    0.9%
   10    13      1047     10.17    0.9%
   10    14      1081     15.99    1.4%
   10    15      1101     9.768    0.8%
   10    16      1154     10.04    0.8%
   10    17      1169     11.26    0.9%
   10    18      1200     10.82    0.9%
   10    19      1239     15.96    1.2%
   10    20      1273     18.03    1.4%
   10    21      1292     6.908    0.5%
   10    22      1311     10.89    0.8%
   10    23      1375     5.273    0.3%
   10    24      1389      6.61    0.4%
   10    25      1466       3.3    0.2%
   10    26      1515     17.03    1.1%
   10    27      1562     3.919    0.2%
   10    28      1630     10.38    0.6%
   10    29      1565     17.47    1.1%
   10    30      1609     9.308    0.5%
   10    31      1617     13.27    0.8%
   10    32      1655     11.69    0.7%
   10    33      1682     9.071    0.5%
   10    34      1708     16.76    0.9%
   10    35      1746     15.05    0.8%
   10    36      1776     11.38    0.6%
   10    37      1787     13.23    0.7%
   10    38      1847     16.11    0.8%
   10    39      1854     10.23    0.5%
   10    40      1928     14.81    0.7%
   10    41      1938     9.328    0.4%
   10    42      1950     11.86    0.6%
   10    43      1972     17.82    0.9%
   10    44      2019     14.89    0.7%
   10    45      2105     9.924    0.4%
   10    46      2096      12.7    0.6%
   10    47      2132     19.27    0.9%
   10    48      2172     17.32    0.7%
   10    49      2137     16.56    0.7%
   10    50      2235     3.024    0.1%
   10    51      2219     21.22    0.9%
   10    52      2310     22.39    0.9%
   10    53      2345     7.387    0.3%
   10    54      2356     9.149    0.3%
   10    55      2424     9.702    0.4%
   10    56      2467     20.82    0.8%
   10    57      2419      21.4    0.8%
   10    58      2467     11.58    0.4%
   10    59      2555     22.33    0.8%
   10    60      2573     29.25    1.1%
   10    61      2584     11.91    0.4%
   10    62      2624     11.13    0.4%
   10    63      2631     13.56    0.5%
   10    64      2715     15.36    0.5%
   10    65      2754     12.29    0.4%
   10    66      2780     14.15    0.5%
   10    67      2809     9.175    0.3%
   10    68      2866     32.77    1.1%
   10    69      2866     11.65    0.4%
   10    70      2918     10.99    0.3%
   10    71      2927       7.9    0.2%
   10    72      2912     17.27    0.5%
   10    73      2992     11.32    0.3%
   10    74      3028      19.4    0.6%
   10    75      3053     25.18    0.8%
   10    76      3064     9.119    0.2%
   10    77      3079      15.5    0.5%
   10    78      3121     13.56    0.4%
   10    79      3148     5.553    0.1%
   10    80      3201     25.61    0.8%
   10    81      3235     27.32    0.8%
   10    82      3299     15.97    0.4%
   10    83      3272      16.1    0.4%
   10    84      3297     12.76    0.3%
   10    85      3346     16.02    0.4%
   10    86      3410     20.33    0.5%
   10    87      3449     20.77    0.6%
   10    88      3404     27.03    0.7%
   10    89      3451     12.15    0.3%
   10    90      3483     12.86    0.3%
   10    91      3496     10.04    0.2%
   10    92      3524     11.51    0.3%
   10    93      3577     16.06    0.4%
   10    94      3596     18.84    0.5%
   10    95      3646     21.65    0.5%
   10    96      3676     11.23    0.3%
   10    97      3731     18.82    0.5%
   10    98      3764     25.27    0.6%
   10    99      3793      18.3    0.4%
   10   100      3786     14.44    0.3%

Quality and confidence:
param     error
v         0.921
n         0.046

Model:
Time ~=        0
    + v    223.3
    + n    31.69
              µs

Reads = 208 + (3 * v) + (4 * n)
Writes = 3 + (3 * v) + (0 * n)

Pallet: "pallet_staking", Extrinsic: "get_npos_voters", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Staking CounterForNominators (r:1 w:0)
Storage: Staking CounterForValidators (r:1 w:0)
Storage: Staking Validators (r:501 w:0)
Storage: Staking Bonded (r:1500 w:0)
Storage: Staking Ledger (r:1500 w:0)
Storage: Staking SlashingSpans (r:21 w:0)
Storage: BagsList ListBags (r:200 w:0)
Storage: BagsList ListNodes (r:1000 w:0)
Storage: Staking Nominators (r:1000 w:0)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=        0
    + v    18.37
    + n    21.46
    + s    43.42
              µs

Reads = 204 + (3 * v) + (4 * n) + (1 * s)
Writes = 0 + (0 * v) + (0 * n) + (0 * s)

Min Squares Analysis
========
-- Extrinsic Time --

Data points distribution:
    v     n     s   mean µs  sigma µs       %
  500  1000    20     27960     153.2    0.5%
  510  1000    20     27990     134.1    0.4%
  520  1000    20     27900     94.15    0.3%
  530  1000    20     28300     105.9    0.3%
  540  1000    20     28450     88.89    0.3%
  550  1000    20     28680     51.25    0.1%
  560  1000    20     28660     125.6    0.4%
  570  1000    20     29090     224.3    0.7%
  580  1000    20     29140     114.6    0.3%
  590  1000    20     29540     87.65    0.2%
  600  1000    20     29730     128.5    0.4%
  610  1000    20     29960     125.6    0.4%
  620  1000    20     29820     152.3    0.5%
  630  1000    20     29970     107.5    0.3%
  640  1000    20     30360     189.4    0.6%
  650  1000    20     30590     178.6    0.5%
  660  1000    20     30600     115.7    0.3%
  670  1000    20     30310     136.5    0.4%
  680  1000    20     31190     233.1    0.7%
  690  1000    20     30780     111.4    0.3%
  700  1000    20     31330     78.31    0.2%
  710  1000    20     31460     281.6    0.8%
  720  1000    20     31230     182.7    0.5%
  730  1000    20     31450      94.9    0.3%
  740  1000    20     32390     186.8    0.5%
  750  1000    20     32320     134.7    0.4%
  760  1000    20     32690     236.9    0.7%
  770  1000    20     33410     157.7    0.4%
  780  1000    20     32980     184.3    0.5%
  790  1000    20     32870     116.9    0.3%
  800  1000    20     33190     159.1    0.4%
  810  1000    20     33270     115.7    0.3%
  820  1000    20     33470     266.6    0.7%
  830  1000    20     33240     179.2    0.5%
  840  1000    20     33600     135.8    0.4%
  850  1000    20     34020     185.9    0.5%
  860  1000    20     34070     307.5    0.9%
  870  1000    20     34570     106.6    0.3%
  880  1000    20     35260     270.6    0.7%
  890  1000    20     34740     178.1    0.5%
  900  1000    20     34550     180.5    0.5%
  910  1000    20     35440     176.8    0.4%
  920  1000    20     35030     106.8    0.3%
  930  1000    20     35450     141.2    0.3%
  940  1000    20     35710     100.7    0.2%
  950  1000    20     35690     108.3    0.3%
  960  1000    20     35900     278.7    0.7%
  970  1000    20     35630     61.77    0.1%
  980  1000    20     36270     205.1    0.5%
  990  1000    20     37030     234.6    0.6%
 1000   500    20     26510     127.1    0.4%
 1000   510    20     26520       184    0.6%
 1000   520    20     26830     172.8    0.6%
 1000   530    20     27220     153.6    0.5%
 1000   540    20     27460     205.5    0.7%
 1000   550    20     27420     194.1    0.7%
 1000   560    20     27850     147.1    0.5%
 1000   570    20     27930     121.3    0.4%
 1000   580    20     28330     149.5    0.5%
 1000   590    20     28120     220.2    0.7%
 1000   600    20     27980     146.4    0.5%
 1000   610    20     28640     114.9    0.4%
 1000   620    20     28830     170.1    0.5%
 1000   630    20     28560     200.6    0.7%
 1000   640    20     29830     181.6    0.6%
 1000   650    20     29040     150.6    0.5%
 1000   660    20     29640     198.9    0.6%
 1000   670    20     29870     135.2    0.4%
 1000   680    20     30590     161.8    0.5%
 1000   690    20     29990     144.5    0.4%
 1000   700    20     30650     161.2    0.5%
 1000   710    20     30940       107    0.3%
 1000   720    20     31000       156    0.5%
 1000   730    20     30650     110.5    0.3%
 1000   740    20     31620     88.98    0.2%
 1000   750    20     31670     110.2    0.3%
 1000   760    20     32340     186.4    0.5%
 1000   770    20     32010     225.7    0.7%
 1000   780    20     32020     150.6    0.4%
 1000   790    20     32840     160.4    0.4%
 1000   800    20     32810     103.4    0.3%
 1000   810    20     32980     164.3    0.4%
 1000   820    20     33070     231.4    0.6%
 1000   830    20     33210     196.3    0.5%
 1000   840    20     33870     188.9    0.5%
 1000   850    20     33880     162.9    0.4%
 1000   860    20     33590     147.6    0.4%
 1000   870    20     34320     200.6    0.5%
 1000   880    20     34500     277.8    0.8%
 1000   890    20     33820     53.07    0.1%
 1000   900    20     34300     94.33    0.2%
 1000   910    20     34870     124.8    0.3%
 1000   920    20     35100     256.4    0.7%
 1000   930    20     35560     168.3    0.4%
 1000   940    20     35370     115.9    0.3%
 1000   950    20     35630     153.8    0.4%
 1000   960    20     36220     168.1    0.4%
 1000   970    20     36240       283    0.7%
 1000   980    20     36550     153.1    0.4%
 1000   990    20     36980     133.5    0.3%
 1000  1000     1     36890     260.2    0.7%
 1000  1000     2     36920     211.5    0.5%
 1000  1000     3     36640     114.6    0.3%
 1000  1000     4     37090     198.6    0.5%
 1000  1000     5     36980     200.8    0.5%
 1000  1000     6     37100       158    0.4%
 1000  1000     7     37260       240    0.6%
 1000  1000     8     37490     193.4    0.5%
 1000  1000     9     36920     225.7    0.6%
 1000  1000    10     36660     165.8    0.4%
 1000  1000    11     36920     256.5    0.6%
 1000  1000    12     37050     126.9    0.3%
 1000  1000    13     37080       295    0.7%
 1000  1000    14     37360     228.3    0.6%
 1000  1000    15     37110     192.1    0.5%
 1000  1000    16     37420     142.1    0.3%
 1000  1000    17     37120     333.7    0.8%
 1000  1000    18     37050     254.5    0.6%
 1000  1000    19     37410     211.7    0.5%
 1000  1000    20     37930       148    0.3%

Quality and confidence:
param     error
v         0.083
n         0.083
s         2.827

Model:
Time ~=        0
    + v     18.6
    + n    21.21
    + s        0
              µs

Reads = 204 + (3 * v) + (4 * n) + (1 * s)
Writes = 0 + (0 * v) + (0 * n) + (0 * s)

Pallet: "pallet_staking", Extrinsic: "get_npos_targets", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Staking Validators (r:501 w:0)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=        0
    + v    7.699
              µs

Reads = 1 + (1 * v)
Writes = 0 + (0 * v)

Min Squares Analysis
========
-- Extrinsic Time --

Data points distribution:
    v   mean µs  sigma µs       %
  500      3693     52.54    1.4%
  510      3706     25.31    0.6%
  520      3943     21.17    0.5%
  530      3927     20.17    0.5%
  540      4043     27.96    0.6%
  550      4031     33.31    0.8%
  560      4214     37.75    0.8%
  570      4231      24.1    0.5%
  580      4242     39.54    0.9%
  590      4427     39.79    0.8%
  600      4531     26.64    0.5%
  610      4546     41.49    0.9%
  620      4686     32.74    0.6%
  630      4556      33.7    0.7%
  640      4917     44.14    0.8%
  650      4889     45.31    0.9%
  660      4884     28.02    0.5%
  670      4871     35.53    0.7%
  680      5113     38.07    0.7%
  690      5116     34.78    0.6%
  700      5244     51.68    0.9%
  710      5400     51.28    0.9%
  720      5392     50.48    0.9%
  730      5489     49.15    0.8%
  740      5657     50.08    0.8%
  750      5583     38.21    0.6%
  760      5727     52.51    0.9%
  770      5958      46.1    0.7%
  780      5941     38.66    0.6%
  790      5878     49.23    0.8%
  800      5973     30.75    0.5%
  810      6035     38.99    0.6%
  820      6192     58.32    0.9%
  830      6092     68.35    1.1%
  840      6310      36.7    0.5%
  850      6449      37.9    0.5%
  860      6422     48.32    0.7%
  870      6459     30.21    0.4%
  880      6454     58.38    0.9%
  890      6703     49.41    0.7%
  900      6888     45.11    0.6%
  910      6870      78.7    1.1%
  920      6906     59.71    0.8%
  930      7182     58.82    0.8%
  940      7260     48.03    0.6%
  950      7157       119    1.6%
  960      7307     90.49    1.2%
  970      7338     55.89    0.7%
  980      7449      64.4    0.8%
  990      7363     41.32    0.5%
 1000      7427     69.76    0.9%

Quality and confidence:
param     error
v         0.028

Model:
Time ~=        0
    + v    7.698
              µs

Reads = 1 + (1 * v)
Writes = 0 + (0 * v)

Pallet: "pallet_staking", Extrinsic: "set_staking_configs", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Staking MinCommission (r:0 w:1)
Storage: Staking MinValidatorBond (r:0 w:1)
Storage: Staking MaxValidatorsCount (r:0 w:1)
Storage: Staking ChillThreshold (r:0 w:1)
Storage: Staking MaxNominatorsCount (r:0 w:1)
Storage: Staking MinNominatorBond (r:0 w:1)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=     3.54
              µs

Reads = 0
Writes = 6

Min Squares Analysis
========
-- Extrinsic Time --

Model:
Time ~=     3.54
              µs

Reads = 0
Writes = 6

Pallet: "pallet_staking", Extrinsic: "chill_other", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Staking Ledger (r:1 w:0)
Storage: Staking Nominators (r:1 w:1)
Storage: Staking ChillThreshold (r:1 w:0)
Storage: Staking MaxNominatorsCount (r:1 w:0)
Storage: Staking CounterForNominators (r:1 w:1)
Storage: Staking MinNominatorBond (r:1 w:0)
Storage: Staking Validators (r:1 w:0)
Storage: BagsList ListNodes (r:2 w:2)
Storage: BagsList ListBags (r:1 w:1)
Storage: BagsList CounterForListNodes (r:1 w:1)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    55.32
              µs

Reads = 11
Writes = 6

Min Squares Analysis
========
-- Extrinsic Time --

Model:
Time ~=    55.32
              µs

Reads = 11
Writes = 6

Pallet: "pallet_staking", Extrinsic: "force_apply_min_commission", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Staking MinCommission (r:1 w:0)
Storage: Staking Validators (r:1 w:1)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    8.719
              µs

Reads = 2
Writes = 1

Min Squares Analysis
========
-- Extrinsic Time --

Model:
Time ~=    8.719
              µs

Reads = 2
Writes = 1


ERROR: Unable to push ./frame/staking/src/weights.rs

@emostov
Copy link
Contributor Author

emostov commented Feb 9, 2022

/benchmark runtime pallet pallet_staking

@parity-benchapp
Copy link

parity-benchapp bot commented Feb 9, 2022

Benchmark Runtime Pallet for branch "zeke-force-min-stake" with command cargo run --quiet --profile=production --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_staking --extrinsic="*" --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/staking/src/weights.rs --template=./.maintain/frame-weight-template.hbs

Toolchain: stable-x86_64-unknown-linux-gnu (default)
rustc 1.57.0 (f1edd0429 2021-11-29)

Results
Pallet: "pallet_staking", Extrinsic: "bond", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Staking Bonded (r:1 w:1)
Storage: Staking Ledger (r:1 w:1)
Storage: Staking CurrentEra (r:1 w:0)
Storage: Staking HistoryDepth (r:1 w:0)
Storage: Balances Locks (r:1 w:1)
Storage: Staking Payee (r:0 w:1)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    37.77
              µs

Reads = 5
Writes = 4

Min Squares Analysis
========
-- Extrinsic Time --

Model:
Time ~=    37.77
              µs

Reads = 5
Writes = 4

Pallet: "pallet_staking", Extrinsic: "bond_extra", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Staking Bonded (r:1 w:0)
Storage: Staking Ledger (r:1 w:1)
Storage: Balances Locks (r:1 w:1)
Storage: BagsList ListNodes (r:3 w:3)
Storage: BagsList ListBags (r:2 w:2)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    64.81
              µs

Reads = 8
Writes = 7

Min Squares Analysis
========
-- Extrinsic Time --

Model:
Time ~=    64.81
              µs

Reads = 8
Writes = 7

Pallet: "pallet_staking", Extrinsic: "unbond", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Staking Ledger (r:1 w:1)
Storage: Staking Nominators (r:1 w:0)
Storage: Staking MinNominatorBond (r:1 w:0)
Storage: Staking CurrentEra (r:1 w:0)
Storage: Balances Locks (r:1 w:1)
Storage: System Account (r:1 w:1)
Storage: BagsList ListNodes (r:3 w:3)
Storage: Staking Bonded (r:1 w:0)
Storage: BagsList ListBags (r:2 w:2)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    71.63
              µs

Reads = 12
Writes = 8

Min Squares Analysis
========
-- Extrinsic Time --

Model:
Time ~=    71.63
              µs

Reads = 12
Writes = 8

Pallet: "pallet_staking", Extrinsic: "withdraw_unbonded_update", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Staking Ledger (r:1 w:1)
Storage: Staking CurrentEra (r:1 w:0)
Storage: Balances Locks (r:1 w:1)
Storage: System Account (r:1 w:1)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=     30.6
    + s    0.058
              µs

Reads = 4 + (0 * s)
Writes = 3 + (0 * s)

Min Squares Analysis
========
-- Extrinsic Time --

Data points distribution:
    s   mean µs  sigma µs       %
    0     29.86     0.063    0.2%
    2     30.49     0.127    0.4%
    4     30.86     0.138    0.4%
    6     30.25     0.127    0.4%
    8     31.17     0.138    0.4%
   10     30.04     0.089    0.2%
   12     31.23     0.263    0.8%
   14     31.92     0.326    1.0%
   16     31.49     0.251    0.7%
   18     31.97     0.214    0.6%
   20     31.65     0.127    0.4%
   22      31.7     0.321    1.0%
   24     32.17     0.392    1.2%
   26      32.2     0.293    0.9%
   28     32.33     0.283    0.8%
   30     32.49     0.323    0.9%
   32     32.53     0.161    0.4%
   34     32.98     0.274    0.8%
   36        33     0.262    0.7%
   38     32.85     0.251    0.7%
   40     33.28     0.279    0.8%
   42     33.43     0.135    0.4%
   44     33.38     0.154    0.4%
   46     33.32     0.178    0.5%
   48     34.08     0.426    1.2%
   50     33.55     0.137    0.4%
   52     33.96     0.159    0.4%
   54        34     0.239    0.7%
   56     34.31      0.37    1.0%
   58     34.12     0.163    0.4%
   60     34.27     0.206    0.6%
   62     34.39     0.184    0.5%
   64     34.32      0.17    0.4%
   66     34.18     0.192    0.5%
   68     34.94      0.34    0.9%
   70     34.74     0.128    0.3%
   72     34.95     0.204    0.5%
   74     35.14     0.151    0.4%
   76     36.18     0.144    0.3%
   78     35.09     0.276    0.7%
   80     35.21     0.111    0.3%
   82     35.08     0.233    0.6%
   84      35.3     0.193    0.5%
   86     35.18     0.331    0.9%
   88     35.55     0.154    0.4%
   90      35.7      0.23    0.6%
   92     35.77     0.167    0.4%
   94     36.27     0.281    0.7%
   96     36.03     0.141    0.3%
   98     35.56     0.499    1.4%
  100     36.18      0.17    0.4%

Quality and confidence:
param     error
s             0

Model:
Time ~=    30.61
    + s    0.059
              µs

Reads = 4 + (0 * s)
Writes = 3 + (0 * s)

Pallet: "pallet_staking", Extrinsic: "withdraw_unbonded_kill", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Staking Ledger (r:1 w:1)
Storage: Staking CurrentEra (r:1 w:0)
Storage: Staking Bonded (r:1 w:1)
Storage: Staking SlashingSpans (r:1 w:0)
Storage: Staking Validators (r:1 w:0)
Storage: Staking Nominators (r:1 w:1)
Storage: Staking CounterForNominators (r:1 w:1)
Storage: BagsList ListNodes (r:2 w:2)
Storage: BagsList ListBags (r:1 w:1)
Storage: BagsList CounterForListNodes (r:1 w:1)
Storage: System Account (r:1 w:1)
Storage: Balances Locks (r:1 w:1)
Storage: Staking Payee (r:0 w:1)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    59.07
    + s        0
              µs

Reads = 13 + (0 * s)
Writes = 11 + (0 * s)

Min Squares Analysis
========
-- Extrinsic Time --

Data points distribution:
    s   mean µs  sigma µs       %
    0     59.01     0.237    0.4%
    2     59.41     0.259    0.4%
    4     58.88     0.195    0.3%
    6     59.44     0.772    1.2%
    8     59.11     0.249    0.4%
   10     58.88     0.217    0.3%
   12     59.02     0.421    0.7%
   14     58.81     0.247    0.4%
   16     58.95     0.178    0.3%
   18     58.93     0.288    0.4%
   20     58.96     0.215    0.3%
   22     59.01      0.14    0.2%
   24     59.04     0.368    0.6%
   26     60.51     0.239    0.3%
   28     58.99     0.276    0.4%
   30     58.74     0.222    0.3%
   32     58.83     0.328    0.5%
   34     59.15     0.297    0.5%
   36     58.94     0.333    0.5%
   38     59.02     0.293    0.4%
   40     59.25     0.292    0.4%
   42     59.06     0.165    0.2%
   44     59.23     0.281    0.4%
   46     58.89     0.252    0.4%
   48     59.08     0.258    0.4%
   50     58.91     0.168    0.2%
   52     59.73      0.45    0.7%
   54     58.97     0.196    0.3%
   56     58.81     0.197    0.3%
   58     59.11     0.238    0.4%
   60     59.33      0.34    0.5%
   62     58.85     0.339    0.5%
   64     59.06     0.082    0.1%
   66     58.88     0.243    0.4%
   68     58.97     0.192    0.3%
   70     59.24     0.663    1.1%
   72     58.89     0.341    0.5%
   74     58.81     0.157    0.2%
   76     58.85      0.26    0.4%
   78     58.98     0.269    0.4%
   80     58.98     0.218    0.3%
   82     59.46     0.288    0.4%
   84     59.03     0.192    0.3%
   86     58.71     0.223    0.3%
   88     59.08     0.208    0.3%
   90     60.25     0.458    0.7%
   92     58.84     0.266    0.4%
   94     58.39     0.212    0.3%
   96     58.63     0.238    0.4%
   98     59.25     0.195    0.3%
  100     59.01     0.234    0.3%

Quality and confidence:
param     error
s             0

Model:
Time ~=    59.11
    + s        0
              µs

Reads = 13 + (0 * s)
Writes = 11 + (0 * s)

Pallet: "pallet_staking", Extrinsic: "validate", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Staking Ledger (r:1 w:0)
Storage: Staking MinValidatorBond (r:1 w:0)
Storage: Staking MinCommission (r:1 w:0)
Storage: Staking Validators (r:1 w:1)
Storage: Staking MaxValidatorsCount (r:1 w:0)
Storage: Staking Nominators (r:1 w:1)
Storage: Staking CounterForNominators (r:1 w:1)
Storage: BagsList ListNodes (r:2 w:2)
Storage: BagsList ListBags (r:1 w:1)
Storage: BagsList CounterForListNodes (r:1 w:1)
Storage: Staking CounterForValidators (r:1 w:1)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=     45.5
              µs

Reads = 12
Writes = 8

Min Squares Analysis
========
-- Extrinsic Time --

Model:
Time ~=     45.5
              µs

Reads = 12
Writes = 8

Pallet: "pallet_staking", Extrinsic: "kick", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Staking Ledger (r:1 w:0)
Storage: Staking Nominators (r:1 w:1)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    17.18
    + k    8.201
              µs

Reads = 1 + (1 * k)
Writes = 0 + (1 * k)

Min Squares Analysis
========
-- Extrinsic Time --

Data points distribution:
    k   mean µs  sigma µs       %
    1     30.51     1.217    3.9%
    3     45.27     0.231    0.5%
    5     65.41     0.265    0.4%
    7     76.67     1.963    2.5%
    9      90.7      0.34    0.3%
   11     107.4     0.129    0.1%
   13     127.7     0.506    0.3%
   15     145.1     0.213    0.1%
   17     159.9     0.379    0.2%
   19     170.4     0.253    0.1%
   21     187.2     0.873    0.4%
   23     211.9     1.473    0.6%
   25     226.8     2.931    1.2%
   27     238.5     3.475    1.4%
   29       251     0.885    0.3%
   31     280.2     1.228    0.4%
   33     282.8     0.752    0.2%
   35     303.4     3.535    1.1%
   37     314.8     0.903    0.2%
   39       331     1.682    0.5%
   41     350.5     4.445    1.2%
   43     366.5     4.764    1.2%
   45     379.8     6.057    1.5%
   47     392.3     1.418    0.3%
   49     409.5     1.469    0.3%
   51     433.1     4.889    1.1%
   53     444.4     1.905    0.4%
   55     459.9     4.616    1.0%
   57     478.8     6.396    1.3%
   59     507.2     2.554    0.5%
   61     507.4     2.024    0.3%
   63       530      1.53    0.2%
   65     544.7     1.666    0.3%
   67     565.3     8.483    1.5%
   69     574.9     1.471    0.2%
   71     589.4     1.238    0.2%
   73     608.5     1.393    0.2%
   75     645.6     3.354    0.5%
   77     651.8     10.79    1.6%
   79     683.7     5.851    0.8%
   81     669.8     2.038    0.3%
   83     715.4     3.055    0.4%
   85       731      2.36    0.3%
   87     716.2      2.19    0.3%
   89     761.8     2.407    0.3%
   91       752     3.112    0.4%
   93     777.3     11.47    1.4%
   95     785.3     7.686    0.9%
   97       806     7.548    0.9%
   99     812.3     1.975    0.2%
  101     831.8     2.308    0.2%
  103     853.3     3.195    0.3%
  105     866.4     3.984    0.4%
  107     924.5     10.27    1.1%
  109     937.2     5.672    0.6%
  111     967.5     8.362    0.8%
  113       976      7.61    0.7%
  115     951.8     4.062    0.4%
  117       978     12.08    1.2%
  119     990.6     7.946    0.8%
  121      1054     13.22    1.2%
  123      1054     5.809    0.5%
  125      1077     3.144    0.2%
  127      1053     3.582    0.3%

Quality and confidence:
param     error
k         0.015

Model:
Time ~=    12.76
    + k    8.301
              µs

Reads = 1 + (1 * k)
Writes = 0 + (1 * k)

Pallet: "pallet_staking", Extrinsic: "nominate", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Staking Ledger (r:1 w:0)
Storage: Staking MinNominatorBond (r:1 w:0)
Storage: Staking Nominators (r:1 w:1)
Storage: Staking MaxNominatorsCount (r:1 w:0)
Storage: Staking Validators (r:2 w:0)
Storage: Staking CurrentEra (r:1 w:0)
Storage: Staking Bonded (r:1 w:0)
Storage: BagsList ListNodes (r:2 w:2)
Storage: BagsList ListBags (r:1 w:1)
Storage: BagsList CounterForListNodes (r:1 w:1)
Storage: Staking CounterForNominators (r:1 w:1)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    51.46
    + n    3.324
              µs

Reads = 12 + (1 * n)
Writes = 6 + (0 * n)

Min Squares Analysis
========
-- Extrinsic Time --

Data points distribution:
    n   mean µs  sigma µs       %
    1     53.91     0.154    0.2%
    2        59     0.158    0.2%
    3     61.55     0.219    0.3%
    4     64.72     0.094    0.1%
    5     67.45     0.132    0.1%
    6     71.67     0.201    0.2%
    7     74.45     0.177    0.2%
    8     78.33     0.339    0.4%
    9      81.6     0.635    0.7%
   10     85.09     0.156    0.1%
   11     88.25     0.563    0.6%
   12     90.95     0.193    0.2%
   13     93.57     0.241    0.2%
   14     98.21     0.317    0.3%
   15     100.9     0.413    0.4%
   16     105.1     0.277    0.2%

Quality and confidence:
param     error
n          0.01

Model:
Time ~=    51.43
    + n    3.323
              µs

Reads = 12 + (1 * n)
Writes = 6 + (0 * n)

Pallet: "pallet_staking", Extrinsic: "chill", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Staking Ledger (r:1 w:0)
Storage: Staking Validators (r:1 w:0)
Storage: Staking Nominators (r:1 w:1)
Storage: Staking CounterForNominators (r:1 w:1)
Storage: BagsList ListNodes (r:2 w:2)
Storage: BagsList ListBags (r:1 w:1)
Storage: BagsList CounterForListNodes (r:1 w:1)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    44.84
              µs

Reads = 8
Writes = 6

Min Squares Analysis
========
-- Extrinsic Time --

Model:
Time ~=    44.84
              µs

Reads = 8
Writes = 6

Pallet: "pallet_staking", Extrinsic: "set_payee", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Staking Ledger (r:1 w:0)
Storage: Staking Payee (r:0 w:1)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    7.795
              µs

Reads = 1
Writes = 1

Min Squares Analysis
========
-- Extrinsic Time --

Model:
Time ~=    7.795
              µs

Reads = 1
Writes = 1

Pallet: "pallet_staking", Extrinsic: "set_controller", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Staking Bonded (r:1 w:1)
Storage: Staking Ledger (r:2 w:2)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    16.05
              µs

Reads = 3
Writes = 3

Min Squares Analysis
========
-- Extrinsic Time --

Model:
Time ~=    16.05
              µs

Reads = 3
Writes = 3

Pallet: "pallet_staking", Extrinsic: "set_validator_count", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Staking ValidatorCount (r:0 w:1)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    1.107
              µs

Reads = 0
Writes = 1

Min Squares Analysis
========
-- Extrinsic Time --

Model:
Time ~=    1.107
              µs

Reads = 0
Writes = 1

Pallet: "pallet_staking", Extrinsic: "force_no_eras", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Staking ForceEra (r:0 w:1)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    1.126
              µs

Reads = 0
Writes = 1

Min Squares Analysis
========
-- Extrinsic Time --

Model:
Time ~=    1.126
              µs

Reads = 0
Writes = 1

Pallet: "pallet_staking", Extrinsic: "force_new_era", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Staking ForceEra (r:0 w:1)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    1.183
              µs

Reads = 0
Writes = 1

Min Squares Analysis
========
-- Extrinsic Time --

Model:
Time ~=    1.183
              µs

Reads = 0
Writes = 1

Pallet: "pallet_staking", Extrinsic: "force_new_era_always", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Staking ForceEra (r:0 w:1)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    1.181
              µs

Reads = 0
Writes = 1

Min Squares Analysis
========
-- Extrinsic Time --

Model:
Time ~=    1.181
              µs

Reads = 0
Writes = 1

Pallet: "pallet_staking", Extrinsic: "set_invulnerables", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Staking Invulnerables (r:0 w:1)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    1.701
    + v     0.05
              µs

Reads = 0 + (0 * v)
Writes = 1 + (0 * v)

Min Squares Analysis
========
-- Extrinsic Time --

Data points distribution:
    v   mean µs  sigma µs       %
    0     1.176     0.035    2.9%
   20     2.473     0.025    1.0%
   40      3.58     0.032    0.8%
   60     4.598     0.048    1.0%
   80     5.721     0.036    0.6%
  100     6.735      0.03    0.4%
  120     7.657     0.053    0.6%
  140     8.784     0.036    0.4%
  160     9.871     0.031    0.3%
  180     10.85     0.044    0.4%
  200     11.84     0.047    0.3%
  220     12.87     0.074    0.5%
  240     13.94     0.034    0.2%
  260     14.84     0.063    0.4%
  280     15.78     0.059    0.3%
  300     17.09      0.05    0.2%
  320      17.8     0.163    0.9%
  340     18.91      0.06    0.3%
  360     19.68     0.092    0.4%
  380     21.04     0.048    0.2%
  400     21.56     0.087    0.4%
  420     22.88     0.198    0.8%
  440      24.1     0.069    0.2%
  460     25.19     0.029    0.1%
  480     26.28     0.055    0.2%
  500     27.14     0.054    0.1%
  520     27.47     0.048    0.1%
  540     28.56     0.234    0.8%
  560     29.65     0.185    0.6%
  580     30.56     0.091    0.2%
  600     31.87     0.045    0.1%
  620     32.67     0.057    0.1%
  640     33.81     0.077    0.2%
  660     35.32     0.266    0.7%
  680     35.76     0.225    0.6%
  700     36.82     0.038    0.1%
  720     37.69     0.082    0.2%
  740     38.64     0.038    0.0%
  760     39.75     0.056    0.1%
  780     41.45     0.309    0.7%
  800      41.8     0.074    0.1%
  820     42.82     0.068    0.1%
  840     43.86     0.058    0.1%
  860     44.76     0.063    0.1%
  880     45.75     0.063    0.1%
  900     46.82     0.046    0.0%
  920     47.77     0.047    0.0%
  940     48.81     0.063    0.1%
  960     49.88     0.134    0.2%
  980     50.78     0.057    0.1%
 1000     52.52     0.454    0.8%

Quality and confidence:
param     error
v             0

Model:
Time ~=    1.705
    + v     0.05
              µs

Reads = 0 + (0 * v)
Writes = 1 + (0 * v)

Pallet: "pallet_staking", Extrinsic: "force_unstake", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Staking Bonded (r:1 w:1)
Storage: Staking SlashingSpans (r:1 w:0)
Storage: Staking Validators (r:1 w:0)
Storage: Staking Nominators (r:1 w:1)
Storage: Staking CounterForNominators (r:1 w:1)
Storage: BagsList ListNodes (r:2 w:2)
Storage: BagsList ListBags (r:1 w:1)
Storage: BagsList CounterForListNodes (r:1 w:1)
Storage: System Account (r:1 w:1)
Storage: Balances Locks (r:1 w:1)
Storage: Staking Ledger (r:0 w:1)
Storage: Staking Payee (r:0 w:1)
Storage: Staking SpanSlash (r:0 w:2)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    57.43
    + s    0.801
              µs

Reads = 11 + (0 * s)
Writes = 12 + (1 * s)

Min Squares Analysis
========
-- Extrinsic Time --

Data points distribution:
    s   mean µs  sigma µs       %
    0     53.41      0.13    0.2%
    2     57.93     0.162    0.2%
    4     59.74     0.172    0.2%
    6     61.38     0.106    0.1%
    8     63.43     0.123    0.1%
   10     65.13     0.296    0.4%
   12     66.57     0.207    0.3%
   14     68.31     0.298    0.4%
   16     70.14     0.345    0.4%
   18     73.16     0.371    0.5%
   20      72.8     0.174    0.2%
   22     74.97     0.308    0.4%
   24     78.69     0.896    1.1%
   26     78.34     0.361    0.4%
   28     81.27     0.671    0.8%
   30     82.54     0.239    0.2%
   32     83.89     0.257    0.3%
   34     85.02     0.348    0.4%
   36      87.1       0.3    0.3%
   38     88.43     0.452    0.5%
   40     89.97     0.218    0.2%
   42     91.34     0.322    0.3%
   44     93.28     0.207    0.2%
   46     94.54     0.268    0.2%
   48     96.17     0.793    0.8%
   50     98.11     0.252    0.2%
   52      99.7     0.311    0.3%
   54     101.1     0.253    0.2%
   56     103.6     0.849    0.8%
   58     104.1     0.244    0.2%
   60     106.9     0.934    0.8%
   62     106.6     0.264    0.2%
   64     108.9      0.56    0.5%
   66     108.9     0.959    0.8%
   68       111     0.629    0.5%
   70     112.7     0.234    0.2%
   72     114.7     0.435    0.3%
   74     117.1       0.4    0.3%
   76     119.4      0.46    0.3%
   78     120.4     0.453    0.3%
   80       122     0.736    0.6%
   82     122.5     0.318    0.2%
   84     124.8     0.262    0.2%
   86     126.6     0.213    0.1%
   88     127.2     1.901    1.4%
   90     128.3     1.075    0.8%
   92     130.4     0.315    0.2%
   94     131.2     0.338    0.2%
   96     134.3     0.246    0.1%
   98     136.3     0.228    0.1%
  100     135.1     0.762    0.5%

Quality and confidence:
param     error
s         0.001

Model:
Time ~=    57.43
    + s    0.801
              µs

Reads = 11 + (0 * s)
Writes = 12 + (1 * s)

Pallet: "pallet_staking", Extrinsic: "cancel_deferred_slash", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Staking UnappliedSlashes (r:1 w:1)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=     1055
    + s    5.027
              µs

Reads = 1 + (0 * s)
Writes = 1 + (0 * s)

Min Squares Analysis
========
-- Extrinsic Time --

Data points distribution:
    s   mean µs  sigma µs       %
    1     158.8     0.388    0.2%
   20     342.4     0.207    0.0%
   39     523.6     0.379    0.0%
   58     710.4     11.99    1.6%
   77     884.8     10.93    1.2%
   96      1056      13.9    1.3%
  115      1223     15.66    1.2%
  134      1393     17.61    1.2%
  153      1566     11.53    0.7%
  172      1712     16.08    0.9%
  191      1864     17.02    0.9%
  210      2014     14.52    0.7%
  229      2169      9.82    0.4%
  248      2319     7.713    0.3%
  267      2452     2.512    0.1%
  286      2575     12.86    0.4%
  305      2716     10.54    0.3%
  324      2840     9.168    0.3%
  343      2964     17.87    0.6%
  362      3091     5.512    0.1%
  381      3211     7.166    0.2%
  400      3329     12.48    0.3%
  419      3436     8.911    0.2%
  438      3534     16.81    0.4%
  457      3646      18.4    0.5%
  476      3743      10.2    0.2%
  495      3825     13.75    0.3%
  514      3940     17.94    0.4%
  533      4025     14.83    0.3%
  552      4185     4.928    0.1%
  571      4206     14.31    0.3%
  590      4266     6.426    0.1%
  609      4356     15.71    0.3%
  628      4427     13.87    0.3%
  647      4482     12.46    0.2%
  666      4555     14.26    0.3%
  685      4611     16.84    0.3%
  704      4692     21.21    0.4%
  723      4720     13.21    0.2%
  742      4779     11.86    0.2%
  761      4818     13.44    0.2%
  780      4851     19.78    0.4%
  799      4900     19.01    0.3%
  818      4947     18.21    0.3%
  837      4970     18.54    0.3%
  856      4999      14.3    0.2%
  875      5022     14.55    0.2%
  894      5046     14.74    0.2%
  913      5064     12.83    0.2%
  932      5077     14.41    0.2%
  951      5094     21.71    0.4%
  970      5099     19.06    0.3%
  989      5105     19.17    0.3%

Quality and confidence:
param     error
s         0.056

Model:
Time ~=    950.2
    + s    5.001
              µs

Reads = 1 + (0 * s)
Writes = 1 + (0 * s)

Pallet: "pallet_staking", Extrinsic: "payout_stakers_dead_controller", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Staking CurrentEra (r:1 w:0)
Storage: Staking HistoryDepth (r:1 w:0)
Storage: Staking ErasValidatorReward (r:1 w:0)
Storage: Staking Bonded (r:2 w:0)
Storage: Staking Ledger (r:1 w:1)
Storage: Staking ErasStakersClipped (r:1 w:0)
Storage: Staking ErasRewardPoints (r:1 w:0)
Storage: Staking ErasValidatorPrefs (r:1 w:0)
Storage: Staking Payee (r:2 w:0)
Storage: System Account (r:2 w:2)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    90.25
    + n    23.98
              µs

Reads = 10 + (3 * n)
Writes = 2 + (1 * n)

Min Squares Analysis
========
-- Extrinsic Time --

Data points distribution:
    n   mean µs  sigma µs       %
    1     137.8      17.6   12.7%
    6     269.2     0.982    0.3%
   11     344.1      1.22    0.3%
   16     468.7     2.398    0.5%
   21     593.5     2.933    0.4%
   26       703     3.789    0.5%
   31     826.2      5.15    0.6%
   36     947.9       5.3    0.5%
   41      1078      9.37    0.8%
   46      1182     10.87    0.9%
   51      1307      6.44    0.4%
   56      1427     9.524    0.6%
   61      1546     11.46    0.7%
   66      1687     15.65    0.9%
   71      1834     9.942    0.5%
   76      1917     7.324    0.3%
   81      2043     7.821    0.3%
   86      2148     9.643    0.4%
   91      2263     15.65    0.6%
   96      2377      10.5    0.4%
  101      2507     6.946    0.2%
  106      2622     6.774    0.2%
  111      2765      17.6    0.6%
  116      2849     14.42    0.5%
  121      3004     7.544    0.2%
  126      3154     20.06    0.6%
  131      3245     10.99    0.3%
  136      3362     12.59    0.3%
  141      3472     12.12    0.3%
  146      3611     11.28    0.3%
  151      3721     14.43    0.3%
  156      3827     21.71    0.5%
  161      3945     11.55    0.2%
  166      4090     6.741    0.1%
  171      4193     16.45    0.3%
  176      4316     14.64    0.3%
  181      4454     13.88    0.3%
  186      4537     23.84    0.5%
  191      4680      13.6    0.2%
  196      4795     15.36    0.3%
  201      4908     20.46    0.4%
  206      5084      20.9    0.4%
  211      5112     20.05    0.3%
  216      5257     23.41    0.4%
  221      5398     16.49    0.3%
  226      5515     22.08    0.4%
  231      5680      26.5    0.4%
  236      5748     22.93    0.3%
  241      5818     21.51    0.3%
  246      6006     18.58    0.3%
  251      6161      18.1    0.2%
  256      6164     16.71    0.2%

Quality and confidence:
param     error
n         0.015

Model:
Time ~=    94.23
    + n    23.97
              µs

Reads = 10 + (3 * n)
Writes = 2 + (1 * n)

Pallet: "pallet_staking", Extrinsic: "payout_stakers_alive_staked", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Staking CurrentEra (r:1 w:0)
Storage: Staking HistoryDepth (r:1 w:0)
Storage: Staking ErasValidatorReward (r:1 w:0)
Storage: Staking Bonded (r:2 w:0)
Storage: Staking Ledger (r:2 w:2)
Storage: Staking ErasStakersClipped (r:1 w:0)
Storage: Staking ErasRewardPoints (r:1 w:0)
Storage: Staking ErasValidatorPrefs (r:1 w:0)
Storage: Staking Payee (r:2 w:0)
Storage: System Account (r:2 w:2)
Storage: Balances Locks (r:2 w:2)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    108.7
    + n    33.86
              µs

Reads = 11 + (5 * n)
Writes = 3 + (3 * n)

Min Squares Analysis
========
-- Extrinsic Time --

Data points distribution:
    n   mean µs  sigma µs       %
    1       131     0.765    0.5%
    6       305     0.895    0.2%
   11     474.2      1.14    0.2%
   16     644.6     2.142    0.3%
   21     816.7     2.125    0.2%
   26     989.8     1.822    0.1%
   31      1158     11.02    0.9%
   36      1329     9.182    0.6%
   41      1509      11.1    0.7%
   46      1678     12.12    0.7%
   51      1844     12.91    0.7%
   56      1997     7.976    0.3%
   61      2206     6.131    0.2%
   66      2361      12.4    0.5%
   71      2502     9.804    0.3%
   76      2702     18.28    0.6%
   81      2850     11.73    0.4%
   86      3007     16.17    0.5%
   91      3206     17.04    0.5%
   96      3390     15.13    0.4%
  101      3572      9.29    0.2%
  106      3741     29.94    0.8%
  111      3850     14.34    0.3%
  116      4018     16.91    0.4%
  121      4204     25.17    0.5%
  126      4419     25.86    0.5%
  131      4527     17.35    0.3%
  136      4707     21.02    0.4%
  141      4893     19.88    0.4%
  146      5075     18.97    0.3%
  151      5168     11.14    0.2%
  156      5380     22.36    0.4%
  161      5542     24.01    0.4%
  166      5693     26.56    0.4%
  171      5879      22.6    0.3%
  176      6098     20.11    0.3%
  181      6246     29.04    0.4%
  186      6411     23.61    0.3%
  191      6520     22.97    0.3%
  196      6740     22.33    0.3%
  201      6940     42.85    0.6%
  206      7116     66.63    0.9%
  211      7236     14.66    0.2%
  216      7376     10.79    0.1%
  221      7667     14.22    0.1%
  226      7805     24.03    0.3%
  231      7880      36.6    0.4%
  236      8171     19.74    0.2%
  241      8189     23.99    0.2%
  246      8473     23.63    0.2%
  251      8629     24.87    0.2%
  256      8834     36.32    0.4%

Quality and confidence:
param     error
n         0.022

Model:
Time ~=    109.3
    + n    33.88
              µs

Reads = 11 + (5 * n)
Writes = 3 + (3 * n)

Pallet: "pallet_staking", Extrinsic: "rebond", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Staking Ledger (r:1 w:1)
Storage: Balances Locks (r:1 w:1)
Storage: System Account (r:1 w:1)
Storage: BagsList ListNodes (r:3 w:3)
Storage: Staking Bonded (r:1 w:0)
Storage: BagsList ListBags (r:2 w:2)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    64.83
    + l    0.049
              µs

Reads = 9 + (0 * l)
Writes = 8 + (0 * l)

Min Squares Analysis
========
-- Extrinsic Time --

Data points distribution:
    l   mean µs  sigma µs       %
    1     64.84     0.372    0.5%
    2     65.21     0.223    0.3%
    3     64.67     0.275    0.4%
    4     64.78     0.186    0.2%
    5     65.07     0.239    0.3%
    6     64.96     0.342    0.5%
    7     65.41     0.245    0.3%
    8     64.94     0.328    0.5%
    9     65.63     0.321    0.4%
   10     65.18     0.388    0.5%
   11     65.39     0.282    0.4%
   12     65.21      0.31    0.4%
   13     65.97     0.156    0.2%
   14     64.96       0.2    0.3%
   15     65.38     0.222    0.3%
   16     65.64     0.152    0.2%
   17     65.37     0.346    0.5%
   18     65.32     0.251    0.3%
   19     65.99     0.177    0.2%
   20     66.41     0.343    0.5%
   21     66.11     0.366    0.5%
   22     66.15     0.277    0.4%
   23      66.2     0.198    0.2%
   24     65.65     0.361    0.5%
   25     66.68     0.151    0.2%
   26     65.97     0.097    0.1%
   27     66.04     0.218    0.3%
   28     66.28     0.192    0.2%
   29     66.14      0.34    0.5%
   30     66.18     0.263    0.3%
   31     66.29     0.225    0.3%
   32      66.1      0.27    0.4%

Quality and confidence:
param     error
l         0.002

Model:
Time ~=     64.8
    + l     0.05
              µs

Reads = 9 + (0 * l)
Writes = 8 + (0 * l)

Pallet: "pallet_staking", Extrinsic: "set_history_depth", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Staking CurrentEra (r:1 w:0)
Storage: Staking HistoryDepth (r:1 w:1)
Storage: Staking ErasStakersClipped (r:0 w:2)
Storage: Staking ErasValidatorPrefs (r:0 w:2)
Storage: Staking ErasValidatorReward (r:0 w:1)
Storage: Staking ErasRewardPoints (r:0 w:1)
Storage: Staking ErasStakers (r:0 w:2)
Storage: Staking ErasTotalStake (r:0 w:1)
Storage: Staking ErasStartSessionIndex (r:0 w:1)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=        0
    + e     20.3
              µs

Reads = 2 + (0 * e)
Writes = 4 + (7 * e)

Min Squares Analysis
========
-- Extrinsic Time --

Data points distribution:
    e   mean µs  sigma µs       %
    1     23.73     0.222    0.9%
    2     37.42     0.214    0.5%
    3      50.8     0.432    0.8%
    4     66.02     0.338    0.5%
    5     79.14      0.61    0.7%
    6      92.2     0.889    0.9%
    7     105.3     0.326    0.3%
    8     117.3     0.418    0.3%
    9     132.3     0.907    0.6%
   10     145.9     0.794    0.5%
   11     162.2     0.468    0.2%
   12     176.5     0.351    0.1%
   13       190     0.892    0.4%
   14     205.6     0.523    0.2%
   15     221.5     1.066    0.4%
   16     235.8     0.807    0.3%
   17     250.2     0.906    0.3%
   18     268.1     0.687    0.2%
   19     282.8     0.596    0.2%
   20     299.1     1.073    0.3%
   21     313.1     1.455    0.4%
   22     327.4     0.492    0.1%
   23     347.8     1.276    0.3%
   24     366.6     9.426    2.5%
   25     382.8     1.059    0.2%
   26     397.1     1.855    0.4%
   27     415.8     1.144    0.2%
   28     430.9     1.495    0.3%
   29       453     1.784    0.3%
   30     466.6     0.941    0.2%
   31     486.3     1.406    0.2%
   32     504.4     0.768    0.1%
   33     523.5     1.076    0.2%
   34     533.1     2.221    0.4%
   35     555.1      1.89    0.3%
   36     574.8     1.424    0.2%
   37     597.2     4.211    0.7%
   38     604.6     1.761    0.2%
   39     625.7     1.575    0.2%
   40     642.2     1.258    0.1%
   41     665.3     9.807    1.4%
   42     684.3     2.348    0.3%
   43     694.2     2.425    0.3%
   44     729.6      9.37    1.2%
   45     748.4     12.88    1.7%
   46       757     3.258    0.4%
   47       781     4.082    0.5%
   48     801.5     2.607    0.3%
   49     819.5     3.982    0.4%
   50     841.9     8.299    0.9%
   51     870.6        13    1.4%
   52     882.7     4.864    0.5%
   53     904.6      9.92    1.0%
   54     916.3     3.701    0.4%
   55     956.3     14.33    1.4%
   56       972     8.916    0.9%
   57     990.2      2.45    0.2%
   58      1009     4.402    0.4%
   59      1028     9.343    0.9%
   60      1047     10.01    0.9%
   61      1084     13.71    1.2%
   62      1119     12.38    1.1%
   63      1126     19.87    1.7%
   64      1146     7.807    0.6%
   65      1164     11.24    0.9%
   66      1214     13.78    1.1%
   67      1224     15.22    1.2%
   68      1232     10.79    0.8%
   69      1260      13.9    1.1%
   70      1267     11.88    0.9%
   71      1316      11.9    0.9%
   72      1321     13.28    1.0%
   73      1367     12.74    0.9%
   74      1382     12.97    0.9%
   75      1401     8.516    0.6%
   76      1407     3.396    0.2%
   77      1474     12.73    0.8%
   78      1462     4.788    0.3%
   79      1500     8.703    0.5%
   80      1535     7.334    0.4%
   81      1560     15.03    0.9%
   82      1575     9.381    0.5%
   83      1603     13.49    0.8%
   84      1602     7.862    0.4%
   85      1634     9.049    0.5%
   86      1671      12.4    0.7%
   87      1690     8.932    0.5%
   88      1706     16.98    0.9%
   89      1740     20.49    1.1%
   90      1777     6.192    0.3%
   91      1797     16.21    0.9%
   92      1821     13.96    0.7%
   93      1879     18.38    0.9%
   94      1863     11.87    0.6%
   95      1917     13.97    0.7%
   96      1952      9.42    0.4%
   97      1941      11.3    0.5%
   98      2004     12.41    0.6%
   99      2031     16.86    0.8%
  100      2055     12.79    0.6%

Quality and confidence:
param     error
e         0.061

Model:
Time ~=        0
    + e    20.45
              µs

Reads = 2 + (0 * e)
Writes = 4 + (7 * e)

Pallet: "pallet_staking", Extrinsic: "reap_stash", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: System Account (r:1 w:1)
Storage: Staking Bonded (r:1 w:1)
Storage: Staking Ledger (r:1 w:1)
Storage: Staking SlashingSpans (r:1 w:1)
Storage: Staking Validators (r:1 w:0)
Storage: Staking Nominators (r:1 w:1)
Storage: Staking CounterForNominators (r:1 w:1)
Storage: BagsList ListNodes (r:2 w:2)
Storage: BagsList ListBags (r:1 w:1)
Storage: BagsList CounterForListNodes (r:1 w:1)
Storage: Balances Locks (r:1 w:1)
Storage: Staking Payee (r:0 w:1)
Storage: Staking SpanSlash (r:0 w:1)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    62.73
    + s    0.804
              µs

Reads = 12 + (0 * s)
Writes = 12 + (1 * s)

Min Squares Analysis
========
-- Extrinsic Time --

Data points distribution:
    s   mean µs  sigma µs       %
    1     62.86     0.261    0.4%
    2     63.81     0.225    0.3%
    3     65.91     0.154    0.2%
    4     65.53     0.151    0.2%
    5     66.32     0.193    0.2%
    6     66.69     0.188    0.2%
    7     68.01     0.186    0.2%
    8        69     0.248    0.3%
    9     69.85     0.103    0.1%
   10     70.71      0.26    0.3%
   11     70.88     0.239    0.3%
   12     72.08     0.192    0.2%
   13     72.61     0.359    0.4%
   14      73.5     0.216    0.2%
   15     74.62      0.26    0.3%
   16     77.03     0.353    0.4%
   17     76.66     0.199    0.2%
   18     77.37     0.232    0.2%
   19     78.92     0.687    0.8%
   20     78.54     0.091    0.1%
   21     79.75     0.448    0.5%
   22     79.83     0.204    0.2%
   23     80.78     0.129    0.1%
   24     81.93     0.292    0.3%
   25     82.91     0.296    0.3%
   26     83.85     0.383    0.4%
   27     85.59     0.629    0.7%
   28     85.11      0.18    0.2%
   29     85.08     0.256    0.3%
   30     87.02     0.201    0.2%
   31     87.78     0.243    0.2%
   32     89.14     0.181    0.2%
   33      89.2     0.284    0.3%
   34     90.36     0.393    0.4%
   35     91.18      0.56    0.6%
   36      91.9     0.338    0.3%
   37     92.94     0.505    0.5%
   38     93.22     0.568    0.6%
   39     94.41      0.36    0.3%
   40      95.3     0.504    0.5%
   41     96.08     0.631    0.6%
   42     96.69      0.46    0.4%
   43     97.49     0.436    0.4%
   44     98.08     0.333    0.3%
   45     99.67     0.299    0.2%
   46        99      0.45    0.4%
   47     100.4     0.508    0.5%
   48     101.7       0.3    0.2%
   49     102.8     0.535    0.5%
   50     102.9     0.342    0.3%
   51     103.4     0.347    0.3%
   52     105.2     0.372    0.3%
   53     105.4     0.406    0.3%
   54       107     0.249    0.2%
   55     107.1     0.267    0.2%
   56     108.2     0.271    0.2%
   57     109.5      0.63    0.5%
   58     109.9     0.255    0.2%
   59     110.4     0.295    0.2%
   60     111.2     0.315    0.2%
   61     112.1     0.415    0.3%
   62     112.8     0.349    0.3%
   63     113.9       0.3    0.2%
   64     113.9     0.259    0.2%
   65     114.4      0.33    0.2%
   66     115.3     0.884    0.7%
   67     117.3     0.336    0.2%
   68     118.3     0.263    0.2%
   69     118.3     0.204    0.1%
   70     118.9     0.263    0.2%
   71       119     0.313    0.2%
   72     120.8     0.271    0.2%
   73     121.3     0.694    0.5%
   74     123.1     0.367    0.2%
   75     123.8     0.213    0.1%
   76     124.3     0.229    0.1%
   77     126.1     0.661    0.5%
   78     125.2     0.279    0.2%
   79       127     0.808    0.6%
   80     126.8     0.248    0.1%
   81     128.5     0.279    0.2%
   82     127.7     0.864    0.6%
   83       129     0.343    0.2%
   84     130.6     0.578    0.4%
   85     131.5     0.254    0.1%
   86     132.4     0.363    0.2%
   87     132.8     0.389    0.2%
   88     132.2     0.804    0.6%
   89     134.7     0.223    0.1%
   90     134.6     0.702    0.5%
   91     136.1     0.221    0.1%
   92     136.3     0.351    0.2%
   93     135.5     0.379    0.2%
   94     136.8      0.83    0.6%
   95     139.2     0.272    0.1%
   96     139.3     0.328    0.2%
   97     140.1     0.362    0.2%
   98     140.1     0.554    0.3%
   99     142.1     0.261    0.1%
  100     140.7     0.791    0.5%

Quality and confidence:
param     error
s             0

Model:
Time ~=    62.85
    + s    0.802
              µs

Reads = 12 + (0 * s)
Writes = 12 + (1 * s)

Pallet: "pallet_staking", Extrinsic: "new_era", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Staking CounterForNominators (r:1 w:0)
Storage: Staking CounterForValidators (r:1 w:0)
Storage: Staking Validators (r:2 w:0)
Storage: Staking Bonded (r:101 w:0)
Storage: Staking Ledger (r:101 w:0)
Storage: Staking SlashingSpans (r:1 w:0)
Storage: BagsList ListBags (r:200 w:0)
Storage: BagsList ListNodes (r:100 w:0)
Storage: Staking Nominators (r:100 w:0)
Storage: Staking ValidatorCount (r:1 w:0)
Storage: Staking MinimumValidatorCount (r:1 w:0)
Storage: Staking CurrentEra (r:1 w:1)
Storage: Staking HistoryDepth (r:1 w:0)
Storage: Staking ErasStakersClipped (r:0 w:1)
Storage: Staking ErasValidatorPrefs (r:0 w:1)
Storage: Staking ErasStakers (r:0 w:1)
Storage: Staking ErasTotalStake (r:0 w:1)
Storage: Staking ErasStartSessionIndex (r:0 w:1)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=        0
    + v    210.5
    + n    32.11
              µs

Reads = 208 + (3 * v) + (4 * n)
Writes = 3 + (3 * v) + (0 * n)

Min Squares Analysis
========
-- Extrinsic Time --

Data points distribution:
    v     n   mean µs  sigma µs       %
    1   100      1938     10.94    0.5%
    2   100      2098     12.96    0.6%
    3   100      2241     8.394    0.3%
    4   100      2394     14.17    0.5%
    5   100      2629     13.53    0.5%
    6   100      2810     20.77    0.7%
    7   100      3016     14.35    0.4%
    8   100      3277     18.52    0.5%
    9   100      3551     15.57    0.4%
   10     1     647.9     9.231    1.4%
   10     2     685.3     3.264    0.4%
   10     3     741.9     1.783    0.2%
   10     4     769.5     3.991    0.5%
   10     5     801.8     16.86    2.1%
   10     6     821.4      7.75    0.9%
   10     7     860.1     16.29    1.8%
   10     8     898.7     12.74    1.4%
   10     9     934.1     8.247    0.8%
   10    10     950.4     10.49    1.1%
   10    11      1014      14.1    1.3%
   10    12      1007     11.01    1.0%
   10    13      1050     11.04    1.0%
   10    14      1095      13.8    1.2%
   10    15      1116      12.2    1.0%
   10    16      1139     8.644    0.7%
   10    17      1167     6.143    0.5%
   10    18      1202     2.628    0.2%
   10    19      1228     10.98    0.8%
   10    20      1259     15.03    1.1%
   10    21      1292     11.43    0.8%
   10    22      1316     14.44    1.0%
   10    23      1358     10.66    0.7%
   10    24      1384     13.39    0.9%
   10    25      1435     9.926    0.6%
   10    26      1452     15.99    1.1%
   10    27      1511     10.31    0.6%
   10    28      1517     15.13    0.9%
   10    29      1570     12.65    0.8%
   10    30      1594      16.5    1.0%
   10    31      1618     11.78    0.7%
   10    32      1681     19.23    1.1%
   10    33      1690      17.6    1.0%
   10    34      1700     12.61    0.7%
   10    35      1770     9.595    0.5%
   10    36      1809     20.63    1.1%
   10    37      1837     20.39    1.1%
   10    38      1864     10.94    0.5%
   10    39      1882     13.37    0.7%
   10    40      1901     21.87    1.1%
   10    41      1955     5.196    0.2%
   10    42      1967     25.67    1.3%
   10    43      1987     13.59    0.6%
   10    44      2039      11.4    0.5%
   10    45      2081     23.54    1.1%
   10    46      2092     12.64    0.6%
   10    47      2123     12.07    0.5%
   10    48      2239     23.51    1.0%
   10    49      2169     10.27    0.4%
   10    50      2211     8.902    0.4%
   10    51      2268     16.32    0.7%
   10    52      2324     11.75    0.5%
   10    53      2375     16.48    0.6%
   10    54      2386        16    0.6%
   10    55      2412     15.19    0.6%
   10    56      2416     9.158    0.3%
   10    57      2436      5.55    0.2%
   10    58      2523     12.46    0.4%
   10    59      2535      10.4    0.4%
   10    60      2590     5.093    0.1%
   10    61      2567     7.899    0.3%
   10    62      2673     4.651    0.1%
   10    63      2673      12.2    0.4%
   10    64      2682     13.39    0.4%
   10    65      2734     11.83    0.4%
   10    66      2788     15.05    0.5%
   10    67      2812     11.79    0.4%
   10    68      2881     10.45    0.3%
   10    69      2826     16.29    0.5%
   10    70      2902     15.28    0.5%
   10    71      2934     15.92    0.5%
   10    72      2955     7.362    0.2%
   10    73      2984     18.68    0.6%
   10    74      3052     17.72    0.5%
   10    75      3078     26.17    0.8%
   10    76      3070     12.24    0.3%
   10    77      3124     12.75    0.4%
   10    78      3136      17.3    0.5%
   10    79      3171     24.89    0.7%
   10    80      3179     14.03    0.4%
   10    81      3252     6.497    0.1%
   10    82      3300     17.65    0.5%
   10    83      3303     15.54    0.4%
   10    84      3311     15.05    0.4%
   10    85      3361      25.8    0.7%
   10    86      3415     20.53    0.6%
   10    87      3424     23.75    0.6%
   10    88      3455     11.14    0.3%
   10    89      3483     10.39    0.2%
   10    90      3508     15.26    0.4%
   10    91      3529     18.36    0.5%
   10    92      3594     15.27    0.4%
   10    93      3605     14.01    0.3%
   10    94      3616     10.49    0.2%
   10    95      3685      25.1    0.6%
   10    96      3713     17.12    0.4%
   10    97      3790     11.42    0.3%
   10    98      3766     15.83    0.4%
   10    99      3783     22.85    0.6%
   10   100      3787     15.72    0.4%

Quality and confidence:
param     error
v         0.804
n          0.04

Model:
Time ~=        0
    + v    226.8
    + n    31.92
              µs

Reads = 208 + (3 * v) + (4 * n)
Writes = 3 + (3 * v) + (0 * n)

Pallet: "pallet_staking", Extrinsic: "get_npos_voters", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Staking CounterForNominators (r:1 w:0)
Storage: Staking CounterForValidators (r:1 w:0)
Storage: Staking Validators (r:501 w:0)
Storage: Staking Bonded (r:1500 w:0)
Storage: Staking Ledger (r:1500 w:0)
Storage: Staking SlashingSpans (r:21 w:0)
Storage: BagsList ListBags (r:200 w:0)
Storage: BagsList ListNodes (r:1000 w:0)
Storage: Staking Nominators (r:1000 w:0)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=        0
    + v    18.53
    + n    22.03
    + s    28.82
              µs

Reads = 204 + (3 * v) + (4 * n) + (1 * s)
Writes = 0 + (0 * v) + (0 * n) + (0 * s)

Min Squares Analysis
========
-- Extrinsic Time --

Data points distribution:
    v     n     s   mean µs  sigma µs       %
  500  1000    20     28500     124.3    0.4%
  510  1000    20     28590     169.7    0.5%
  520  1000    20     28540       150    0.5%
  530  1000    20     28730     77.17    0.2%
  540  1000    20     29200     147.1    0.5%
  550  1000    20     29490     99.53    0.3%
  560  1000    20     29110     215.7    0.7%
  570  1000    20     28910     157.3    0.5%
  580  1000    20     29680     154.1    0.5%
  590  1000    20     30340     73.22    0.2%
  600  1000    20     30130     165.8    0.5%
  610  1000    20     29630     136.3    0.4%
  620  1000    20     30150     171.2    0.5%
  630  1000    20     30340     152.5    0.5%
  640  1000    20     30490     55.27    0.1%
  650  1000    20     31500     114.1    0.3%
  660  1000    20     30840     101.9    0.3%
  670  1000    20     31280     237.9    0.7%
  680  1000    20     30980     250.7    0.8%
  690  1000    20     31540     156.4    0.4%
  700  1000    20     31730     150.7    0.4%
  710  1000    20     32220     149.5    0.4%
  720  1000    20     32040     229.9    0.7%
  730  1000    20     31900     124.2    0.3%
  740  1000    20     32250       215    0.6%
  750  1000    20     33080     183.1    0.5%
  760  1000    20     32620     151.5    0.4%
  770  1000    20     33470     182.3    0.5%
  780  1000    20     33080     137.4    0.4%
  790  1000    20     34190     166.4    0.4%
  800  1000    20     33510     185.9    0.5%
  810  1000    20     33940     203.7    0.6%
  820  1000    20     33260     119.3    0.3%
  830  1000    20     33940     215.7    0.6%
  840  1000    20     34290     120.3    0.3%
  850  1000    20     34270     100.5    0.2%
  860  1000    20     34500     187.8    0.5%
  870  1000    20     34900     200.6    0.5%
  880  1000    20     34720     186.4    0.5%
  890  1000    20     35370     186.5    0.5%
  900  1000    20     35320     203.8    0.5%
  910  1000    20     35730     168.2    0.4%
  920  1000    20     35650     193.5    0.5%
  930  1000    20     35950     139.6    0.3%
  940  1000    20     36880     159.5    0.4%
  950  1000    20     37020     245.3    0.6%
  960  1000    20     36700     307.1    0.8%
  970  1000    20     36710     234.4    0.6%
  980  1000    20     37150     237.3    0.6%
  990  1000    20     37350     270.1    0.7%
 1000   500    20     26690     110.7    0.4%
 1000   510    20     26900     126.1    0.4%
 1000   520    20     26770     87.76    0.3%
 1000   530    20     27190       147    0.5%
 1000   540    20     26910     74.63    0.2%
 1000   550    20     27720     223.7    0.8%
 1000   560    20     27990     161.6    0.5%
 1000   570    20     27680     117.2    0.4%
 1000   580    20     28320     136.9    0.4%
 1000   590    20     28500     134.6    0.4%
 1000   600    20     28410     189.4    0.6%
 1000   610    20     29810     181.6    0.6%
 1000   620    20     28920     176.5    0.6%
 1000   630    20     29300     187.2    0.6%
 1000   640    20     29690     162.1    0.5%
 1000   650    20     30280     70.03    0.2%
 1000   660    20     30090     230.1    0.7%
 1000   670    20     29990     138.3    0.4%
 1000   680    20     30660       125    0.4%
 1000   690    20     30780     183.6    0.5%
 1000   700    20     30960     107.5    0.3%
 1000   710    20     31170      88.6    0.2%
 1000   720    20     31650     188.2    0.5%
 1000   730    20     31190     204.2    0.6%
 1000   740    20     31360       144    0.4%
 1000   750    20     31730     251.2    0.7%
 1000   760    20     32360     167.3    0.5%
 1000   770    20     32520     108.6    0.3%
 1000   780    20     32160     101.2    0.3%
 1000   790    20     32520     217.7    0.6%
 1000   800    20     33100     203.9    0.6%
 1000   810    20     33970     78.77    0.2%
 1000   820    20     33350     51.94    0.1%
 1000   830    20     33680     124.1    0.3%
 1000   840    20     34090     125.6    0.3%
 1000   850    20     33910     178.8    0.5%
 1000   860    20     34270       189    0.5%
 1000   870    20     34310     233.5    0.6%
 1000   880    20     35230     208.8    0.5%
 1000   890    20     34670     256.2    0.7%
 1000   900    20     34740     176.7    0.5%
 1000   910    20     35270     124.4    0.3%
 1000   920    20     35780     118.5    0.3%
 1000   930    20     35950     230.3    0.6%
 1000   940    20     36740     146.6    0.3%
 1000   950    20     36070     140.7    0.3%
 1000   960    20     36470     387.7    1.0%
 1000   970    20     36840     100.8    0.2%
 1000   980    20     36730     243.7    0.6%
 1000   990    20     38160     118.4    0.3%
 1000  1000     1     37310       176    0.4%
 1000  1000     2     37120     190.5    0.5%
 1000  1000     3     37380     255.1    0.6%
 1000  1000     4     37130     289.8    0.7%
 1000  1000     5     36600     140.4    0.3%
 1000  1000     6     37790     134.1    0.3%
 1000  1000     7     37370     143.8    0.3%
 1000  1000     8     37320       284    0.7%
 1000  1000     9     37220     252.1    0.6%
 1000  1000    10     36760     191.3    0.5%
 1000  1000    11     37860     221.9    0.5%
 1000  1000    12     38120     194.4    0.5%
 1000  1000    13     37620     230.4    0.6%
 1000  1000    14     37920     103.1    0.2%
 1000  1000    15     37680     217.4    0.5%
 1000  1000    16     37690     228.9    0.6%
 1000  1000    17     37950     308.6    0.8%
 1000  1000    18     37360     161.8    0.4%
 1000  1000    19     36950     141.5    0.3%
 1000  1000    20     37780     192.2    0.5%

Quality and confidence:
param     error
v         0.087
n         0.087
s         2.984

Model:
Time ~=        0
    + v    18.77
    + n    21.89
    + s    8.282
              µs

Reads = 204 + (3 * v) + (4 * n) + (1 * s)
Writes = 0 + (0 * v) + (0 * n) + (0 * s)

Pallet: "pallet_staking", Extrinsic: "get_npos_targets", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Staking Validators (r:501 w:0)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=        0
    + v    7.784
              µs

Reads = 1 + (1 * v)
Writes = 0 + (0 * v)

Min Squares Analysis
========
-- Extrinsic Time --

Data points distribution:
    v   mean µs  sigma µs       %
  500      3704     22.98    0.6%
  510      3866     42.23    1.0%
  520      3902     49.62    1.2%
  530      3880     40.35    1.0%
  540      3996     22.17    0.5%
  550      4021     17.77    0.4%
  560      4269     34.28    0.8%
  570      4260     31.51    0.7%
  580      4300     44.34    1.0%
  590      4385      19.9    0.4%
  600      4428     21.38    0.4%
  610      4590     56.79    1.2%
  620      4527     47.45    1.0%
  630      4770     38.74    0.8%
  640      4844     52.29    1.0%
  650      4872     22.43    0.4%
  660      4761     40.08    0.8%
  670      4986     36.11    0.7%
  680      5086      65.5    1.2%
  690      5125     59.31    1.1%
  700      5230     27.87    0.5%
  710      5404     51.38    0.9%
  720      5558     62.92    1.1%
  730      5458     24.25    0.4%
  740      5635     31.36    0.5%
  750      5632     44.62    0.7%
  760      5657     19.84    0.3%
  770      5871     46.06    0.7%
  780      5984     39.74    0.6%
  790      5846      55.2    0.9%
  800      6001     66.08    1.1%
  810      6076     44.11    0.7%
  820      6180     32.05    0.5%
  830      6232     41.65    0.6%
  840      6359     59.77    0.9%
  850      6423     54.43    0.8%
  860      6707     38.38    0.5%
  870      6505     57.57    0.8%
  880      6462     47.52    0.7%
  890      6724     54.96    0.8%
  900      6797      42.7    0.6%
  910      6846     35.55    0.5%
  920      7166      59.5    0.8%
  930      7073     92.14    1.3%
  940      7282     54.46    0.7%
  950      7244     42.88    0.5%
  960      7145     30.61    0.4%
  970      7300     38.88    0.5%
  980      7497     56.03    0.7%
  990      7530     53.81    0.7%
 1000      7572     66.61    0.8%

Quality and confidence:
param     error
v         0.028

Model:
Time ~=        0
    + v    7.801
              µs

Reads = 1 + (1 * v)
Writes = 0 + (0 * v)

Pallet: "pallet_staking", Extrinsic: "set_staking_configs", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Staking MinCommission (r:0 w:1)
Storage: Staking MinValidatorBond (r:0 w:1)
Storage: Staking MaxValidatorsCount (r:0 w:1)
Storage: Staking ChillThreshold (r:0 w:1)
Storage: Staking MaxNominatorsCount (r:0 w:1)
Storage: Staking MinNominatorBond (r:0 w:1)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=     3.68
              µs

Reads = 0
Writes = 6

Min Squares Analysis
========
-- Extrinsic Time --

Model:
Time ~=     3.68
              µs

Reads = 0
Writes = 6

Pallet: "pallet_staking", Extrinsic: "chill_other", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Staking Ledger (r:1 w:0)
Storage: Staking Nominators (r:1 w:1)
Storage: Staking ChillThreshold (r:1 w:0)
Storage: Staking MaxNominatorsCount (r:1 w:0)
Storage: Staking CounterForNominators (r:1 w:1)
Storage: Staking MinNominatorBond (r:1 w:0)
Storage: Staking Validators (r:1 w:0)
Storage: BagsList ListNodes (r:2 w:2)
Storage: BagsList ListBags (r:1 w:1)
Storage: BagsList CounterForListNodes (r:1 w:1)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    55.45
              µs

Reads = 11
Writes = 6

Min Squares Analysis
========
-- Extrinsic Time --

Model:
Time ~=    55.45
              µs

Reads = 11
Writes = 6

Pallet: "pallet_staking", Extrinsic: "force_apply_min_commission", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Staking MinCommission (r:1 w:0)
Storage: Staking Validators (r:1 w:1)

Median Slopes Analysis
========
-- Extrinsic Time --

Model:
Time ~=    8.939
              µs

Reads = 2
Writes = 1

Min Squares Analysis
========
-- Extrinsic Time --

Model:
Time ~=    8.939
              µs

Reads = 2
Writes = 1


Parity Bot and others added 4 commits February 9, 2022 22:02
…--manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_staking --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/staking/src/weights.rs --template=./.maintain/frame-weight-template.hbs
@emostov
Copy link
Contributor Author

emostov commented Feb 9, 2022

@shawntabrizi

  • doc wording update 0d90a92
  • extrinsic change to return dispatch error if stash doesn't exist 0d90a92

@emostov
Copy link
Contributor Author

emostov commented Feb 10, 2022

bot merge

@paritytech-processbot
Copy link

Error: Approval criteria was not satisfied in paritytech/polkadot#4881.

The following errors might have affected the outcome of this attempt:

Merge failed. Check out the criteria for merge. If you're not meeting the approval count, check if the approvers are team members of substrateteamleads or core-devs.

@shawntabrizi
Copy link
Member

bot merge

@paritytech-processbot paritytech-processbot bot merged commit 27b8806 into master Feb 10, 2022
@paritytech-processbot paritytech-processbot bot deleted the zeke-force-min-stake branch February 10, 2022 21:22
grishasobol pushed a commit to gear-tech/substrate that referenced this pull request Mar 28, 2022
…h#10786)

* pallet-staking: Add extrinsic `force_apply_min_commission`

* Add benchmarks

* cargo run --quiet --profile=production  --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_staking --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/staking/src/weights.rs --template=./.maintain/frame-weight-template.hbs

* Bound iteration by  max_validator_count

* cargo run --quiet --profile=production  --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_staking --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/staking/src/weights.rs --template=./.maintain/frame-weight-template.hbs

* Only apply to 1 validator

* Update doc comments

* Uncomment tests

* cargo run --quiet --profile=production  --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_staking --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/staking/src/weights.rs --template=./.maintain/frame-weight-template.hbs

* Accept signed origins

* cargo run --quiet --profile=production  --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_staking --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/staking/src/weights.rs --template=./.maintain/frame-weight-template.hbs

* Remove contains_key check

* Add test for try_mutate_exists

* Impove try_mutate_exists docs

* Delete redundant try_mutate_exists tests;

* Delete residual from removed test

* cargo run --quiet --profile=production  --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_staking --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/staking/src/weights.rs --template=./.maintain/frame-weight-template.hbs

* Return an error when the stash does not exist

* Update try_mutate_exist doc wording

* Update frame/staking/src/pallet/mod.rs

* Apply suggestions from code review

Co-authored-by: Parity Bot <[email protected]>
Co-authored-by: Shawn Tabrizi <[email protected]>
driemworks added a commit to ideal-lab5/substrate-offchain-ipfs that referenced this pull request May 9, 2022
* Make some UI test expectations crisper (#10791)

* Make some UI test expectations crisper

* Update frame/support/test/tests/construct_runtime_ui/undefined_genesis_config_part.rs

* Update UI test expectations

* Missing newlines

* More whitespace issues

* contracts: `is_contract(address)` and `caller_is_origin()` are added to API (#10789)

* is_contract() and caller_is_origin() added to Ext API

* is_contract() exposed in wasm runtime.rs

* + test for is_contract()

* + seal_is_contract benchmark

* caller_is_origin() exposed to wasm/runtime.rs and covered by a test

* + seal_caller_is_origin benchmark

* Update frame/contracts/src/exec.rs

Co-authored-by: Alexander Theißen <[email protected]>

* Update frame/contracts/src/exec.rs

Co-authored-by: Alexander Theißen <[email protected]>

* Update frame/contracts/src/exec.rs

Co-authored-by: Alexander Theißen <[email protected]>

* Update frame/contracts/src/wasm/runtime.rs

Co-authored-by: Alexander Theißen <[email protected]>

* Update frame/contracts/src/wasm/runtime.rs

Co-authored-by: Alexander Theißen <[email protected]>

* Update frame/contracts/src/wasm/runtime.rs

Co-authored-by: Alexander Theißen <[email protected]>

* Update frame/contracts/src/exec.rs

Co-authored-by: Alexander Theißen <[email protected]>

* identation fix for benchmark macroses; test cosmetic improvement

* benchmark fix

* + is_contract() wasm test

* + caller_is_origin() wasm test

* Apply suggestions from code review

Co-authored-by: Alexander Theißen <[email protected]>

* is_contract() to borrow param instead of taking ownership

* phrasing improved

Co-authored-by: Hernando Castano <[email protected]>

* fixed wasm tests according to @athei feedback

* dead code warnings suppressed by unstable-interface attributes

* cargo run --quiet --profile=production  --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_contracts --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/contracts/src/weights.rs --template=./.maintain/frame-weight-template.hbs

Co-authored-by: Alexander Theißen <[email protected]>
Co-authored-by: Hernando Castano <[email protected]>
Co-authored-by: Parity Bot <[email protected]>

* maybe_total_supply in pallet-assets (#10799)

* maybe_total_supply in pallet-assets

* Update frame/assets/src/functions.rs

Co-authored-by: Bastian Köcher <[email protected]>

* Referenda and Conviction Voting pallets (#10195)

* Initial draft of new referendum state machine.

* Docs

* Fixes

* Fixes

* Add conviction-voting pallet

* Basic build

* Building

* Some TODOs

* Tests building

* Add missing file

* Basic lifecycle test

* Add couple of tests

* Another test

* More tests

* Fixes

* Fixes

* Formatting

* Fixes

* Tests

* Fixes

* Fixes

* More tests

* Formatting

* First few benchmarks

* First few benchmarks

* Defered queue servicing

* More testing

* Benchmarks

* Fiddly benchmark

* Final nudge benchmarks

* Formatting

* Formatting

* Finished up benchmarks

* cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_referenda --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/referenda/src/weights.rs --template=./.maintain/frame-weight-template.hbs

* Events finished

* Missing file

* No GenesisConfig for Referenda

* Formatting

* Docs

* Docs

* Docs

* Per-class conviction voting

* New test & mock utils

* More tests

* Tests

* Tests finished 🎉

* Benchmarking stuff

* Fixes

* Test harness

* Test harness

* Benchmarks for Conviction=Voting

* Benchmarking pipeline complete

* Docs

* Formatting

* Remove unneeded warning

* Fix UI tests

* cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_conviction_voting --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/conviction-voting/src/weights.rs --template=./.maintain/frame-weight-template.hbs

* Docs

* Update frame/conviction-voting/src/vote.rs

Co-authored-by: Shawn Tabrizi <[email protected]>

* update sp-runtime version

* MEL Fixes for Referenda and Conviction Voting (#10725)

* free maxencodedlen

* more maxencodedlen

* more MEL

* more mel

* disable storage info

* More Referenda Patches (#10760)

* basic fixes

* fix benchmarking

* fix license

* prevent panic in curve math

* fmt

* bump crate versions

* Update mock.rs

Co-authored-by: Parity Bot <[email protected]>
Co-authored-by: Shawn Tabrizi <[email protected]>

* More efficient WASM instance memory decommit on macos (#10801)

* More efficient WASM instance memory decommit on macos

* Apply suggestions from code review

Co-authored-by: Alexander Theißen <[email protected]>

* Updated error message

Co-authored-by: Alexander Theißen <[email protected]>

* make inner field of IdentityFields pub (#10773)

* Corrected description of clear_attribute extrinsic (#10729)

* block validators after X sessions, update mock runtime for test

* sp-maybe-compressed-blob: reduce boilerplate code (#10814)

Signed-off-by: koushiro <[email protected]>

* `seal_delegate_call` api function (support for library contracts)  (#10617)

* seal_call_code implementation

- tests
- benchmark

* Addressing @xgreenx's comments

* Fix test-linux-stable-int

* Rename seal_call_code to seal_delegate_call

* Pass value unchanged into lib contract

* Address @athei's comments

- whitespace .wat issues
- wrong/missing .wat comments
- redundant .wat calls/declarations

- change order of functions (seal_delegate_call right after seal_call)
  in decls, tests, benchmark
- fix comments, move doc comments to enum variants
- remove unnecessary empty lines

- rename runtime cost DelegateCall to DelegateCallBase
- do not set CallFlags::ALLOW_REENTRY for delegate_call

* Do not pass CallFlags::ALLOWS_REENTRY for delegate_call

* Update comment for seal_delegate_call and CallFlags

* Addressing @athei's comments (minor)

* Allow reentry for a new frame after delegate_call (revert)

* Same seal_caller and seal_value_transferred for lib contract

- test
- refactor frame args due to review
- logic for seal_caller (please review)

* Put caller on frame for delegate_call, minor fixes

* Update comment for delegate_call

* Addressing @athei's comments

* Update weights generated by benchmark

* Improve comments

* Address @HCastano's comments

* Update weights, thanks @joao-paulo-parity

* Improve InvalidCallFlags error comment

* Add Storage Info to Various Pallets (#10810)

* atomic swap

* bounties

* bounties fmt

* gilt

* indices

* nicks

* randomness-collective-flip

* recovery

* reuse maxapprovals

* Update tests.rs

* Update frame/randomness-collective-flip/src/lib.rs

Co-authored-by: Oliver Tale-Yazdi <[email protected]>

* use the correct bound

* complete recovery

* use `bounded_vec` macro

* Update tests.rs

* transaction payment

* uniques

* mmr

* example offchain worker

* beefy-mmr

* Update frame/recovery/src/lib.rs

Co-authored-by: Oliver Tale-Yazdi <[email protected]>

* Use BoundedVec instead of a type-parameterized BoundedString

* cargo fmt

* Update frame/atomic-swap/src/lib.rs

* use config const

* Update lib.rs

* update mel_bound

* fmt

Co-authored-by: Oliver Tale-Yazdi <[email protected]>
Co-authored-by: Keith Yeung <[email protected]>

* fixed regression in inline docs (#10819)

* try-runtime-cli: Add to docs (#10822)

* try-runtime-cli: Add to docs of pre/post hooks

* Add note about --ws-max-out-buffer-capacity 1000

* Bump serde from 1.0.132 to 1.0.136 (#10816)

Bumps [serde](https://github.com/serde-rs/serde) from 1.0.132 to 1.0.136.
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.132...v1.0.136)

---
updated-dependencies:
- dependency-name: serde
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* uodate tests, ipfs tests failing

* --dev implies --tmp (#10828)

* Add a new host function for reporting fatal errors; make WASM backtraces readable when printing out errors (#10741)

* Add a new host function for reporting fatal errors

* Fix one of the wasmtime executor tests

* Have `#[runtime_interface(wasm_only)]` actually mean WASM-only, and not no_std-only

* Print out errors through `Display` instead of `Debug`

* Switch one more trait to require `Error` for its error instead of only `Debug`

* Align to review comments

* specify ipfs version, update tests

* Add db params for export-state CLI command (#10830)

* update tests, cleanup

* Allow `SetBalance` to handle error when trying to kill acount with reference counter. (#10826)

* bug found

* fix logic

* a little simpler

* add test

* UncheckedExtrinsic: Harden decode and clarify `EXTRINSIC_FORMAT_VERSION` (#10829)

* UncheckedExtrinsic: Harden decode and clarify `EXTRINSIC_FORMAT_VERSION`

* Apply suggestions from code review

* fix typo

* pallet-staking: Add extrinsic `force_apply_min_commission` (#10786)

* pallet-staking: Add extrinsic `force_apply_min_commission`

* Add benchmarks

* cargo run --quiet --profile=production  --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_staking --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/staking/src/weights.rs --template=./.maintain/frame-weight-template.hbs

* Bound iteration by  max_validator_count

* cargo run --quiet --profile=production  --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_staking --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/staking/src/weights.rs --template=./.maintain/frame-weight-template.hbs

* Only apply to 1 validator

* Update doc comments

* Uncomment tests

* cargo run --quiet --profile=production  --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_staking --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/staking/src/weights.rs --template=./.maintain/frame-weight-template.hbs

* Accept signed origins

* cargo run --quiet --profile=production  --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_staking --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/staking/src/weights.rs --template=./.maintain/frame-weight-template.hbs

* Remove contains_key check

* Add test for try_mutate_exists

* Impove try_mutate_exists docs

* Delete redundant try_mutate_exists tests;

* Delete residual from removed test

* cargo run --quiet --profile=production  --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_staking --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/staking/src/weights.rs --template=./.maintain/frame-weight-template.hbs

* Return an error when the stash does not exist

* Update try_mutate_exist doc wording

* Update frame/staking/src/pallet/mod.rs

* Apply suggestions from code review

Co-authored-by: Parity Bot <[email protected]>
Co-authored-by: Shawn Tabrizi <[email protected]>

* Upgradable contracts using `set_code` function (#10690)

* poc logic

* set_code_hash impl, tests, benchmark

* Address @xgreenx's comments

* Move func defs closer to set_storage

* Check if code exists

- increment/decrement codehash refcount

* Document error for non-existing code hash

* Revert unrelated change

* Changes due to @athei's review

* Fix error handling

- comment errors: ReturnCodes
- update mock ext implementation
- return Error::CodeNotFound when no code for such hash

* Emit ContractCodeUpdated when setting new code_hash

* Address @athei's comments

* Move related defs to the bottom

* Minor comment update

Co-authored-by: Alexander Theißen <[email protected]>

* Improve docs

* Improve docs

* Update frame/contracts/src/wasm/runtime.rs

Co-authored-by: Alexander Theißen <[email protected]>

* Refactor set_code_hash test

* Minor change to benchmark

Co-authored-by: Alexander Theißen <[email protected]>

* Minor change to benchmark

Co-authored-by: Alexander Theißen <[email protected]>

* Minor comment refactor

Co-authored-by: Alexander Theißen <[email protected]>

* Address @HCastano's comments

* Update seal_set_code_hash comment

Co-authored-by: Hernando Castano <[email protected]>

* Move set_code_hash after delegate_call

* Move function to the bottom

* Moved and changed banchmark, added verify block

* Bring back previous benchmark

* Remove skip_meta for seal_set_code_hash

* Bring back skip_meta for seal_set_storage_per_new_kb

* Apply weights

Co-authored-by: Alexander Theißen <[email protected]>
Co-authored-by: Hernando Castano <[email protected]>

* Separate wasmi and wasmer sandbox implementations into their own modules (#10563)

* Moves wasmi specific `ImportResolver` and `MemoryTransfer` impls to submodule

* Splits context store environmental, moves impl `Externals` to wasmi backend

* Adds wasmer sandbox backend stub module

* Move sandbox impl code to backend specific modules

* Moves wasmi stuff

* Fixes value conversion

* Makes it all compile

* Remove `with_context_store`

* Moves `WasmerBackend` to the impl

* Reformat the source

* Moves wasmer MemoryWrapper

* Reformats the source

* Fixes mutability

* Moves backend impls to a submodule

* Fix visibility

* Reformat the source

* Feature gate wasmer backend module

* Moves wasmi memory allocation to backend module

* Rename WasmerBackend to Backend

* Refactor dispatch result decoding, get rid of Wasmi types in common sandbox code

* Reformat the source

* Remove redundant prefixes in backend functions

* Remove wasmer-sandbox from default features

* Post-review changes

* Add conversion soundness proof

* Remove redundant prefix

* Removes now redundant clone_inner

* Add `Error::SandboxBackend`, refactor invoke result

* Fix comments

* Rename `Error::SandboxBackend` to `Sandbox`

* Simplifies logic in `wasmer_backend::invoke`

* Fixes memory management

* Show Network ID when creating and inspecting (#10838)

Signed-off-by: Antonio Yang <[email protected]>

* Reduce overhead of generating network event metrics (#10839)

* Fix reentrancy of FrozenBalance::died hook (#10473)

* assets: execute `died` hook outside of mutate

Signed-off-by: Oliver Tale-Yazdi <[email protected]>

* assets: extend tests for `died` hook

Signed-off-by: Oliver Tale-Yazdi <[email protected]>

* assets: update doc of FrozenBalance::died

Signed-off-by: Oliver Tale-Yazdi <[email protected]>

* assets: review fixes

- fix cases where `died` should not have been called
- use `Option<DeadConsequence>` instead of `DeadConsequence`

Signed-off-by: Oliver Tale-Yazdi <[email protected]>

* assets: update comment in mock.rs

Signed-off-by: Oliver Tale-Yazdi <[email protected]>

* assets: return `Remove` in dead_account

The return value is ignored in the only case that it is produced
by a call, but having it this way makes it more understandable.

Signed-off-by: Oliver Tale-Yazdi <[email protected]>

* allow trailing comma (#10841)

* build-script-utils: allow reading the git commit hash from env var (#10845)

* build-script-utils: allow reading the git commit hash from env var

* build-script-utils: make the env var name substrate specific

* Don't create DB leaves when syncing historic blocks (#10844)

* Don't create DB leaves when syncing historic blocks

* Changed leaves check and added test

* fmt

* cleanup, use unsigned tx when appropriate

* add weights

* fix broken link (#10846)

* subkey: Support `--version` cli command (#10853)

* subkey: Support `--version` cli command

* FMT :facepalm:

* Remove `u32_trait` (#10850)

* Remove `u32_trait`

This trait only existed because there wasn't any const generic support at time of creation. However,
we now have support for it :)

* FMT

* wasm-builder: Support latest nightly (#10837)

* wasm-builder: Support latest nightly

With latest nightly, aka rust version 1.60+ namespaced features are added. This changes the handling
of optional dependencies. We currently have features that enable optional dependencies when `std` is
enabled. This was before no problem, but now the wasm-builder detects them as enabled. To support
the transition period until 1.60 is released as stable, this pr adds an heuristic to not enable these
optional crates in the wasm build when they are enabled in the `std` feature. This heuristic fails
when someones enables these optional dependencies from the outside as well as via the `std` feature,
however we hope that no one is doing this at the moment. When namespaced features are enabled, these
dependencies needs to be enabled using `dep:dependency-name` to solve this properly.

https://doc.rust-lang.org/cargo/reference/unstable.html#namespaced-features

* Remove accidentally added features

* update tests, remove unneeded params

* min authorities check before removal

* contracts: Fix `seal_call` weights (#10796)

* Fix call weights

* Fix instantiate benchmark

* cargo run --quiet --profile=production  --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_contracts --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/contracts/src/weights.rs --template=./.maintain/frame-weight-template.hbs

* Remove stale and superflous comments

* `decrement_refcount` should be infallible

* Don't hardcode increment_refcount, decrement_refcount

* Rename CopyIn/CopyOut

* Fix warning in tests

Co-authored-by: Parity Bot <[email protected]>

* Enable the `parking_lot` feature for `tokio` (#10855)

* [ci] fix publish-rustdocs (#10858)

* Fix beefy mock ecdsa keys (#10854)

Compressed ECDSA keys requires to have 0x02 or 0x03 as their first byte
in order to allow public key recovery.

Nevertheless the test was working because of the `unwrap_or_default()`
at the end of the conversion routine (i.e. the invalid keys were
converted to an empty vector).

* Mark sync_state_genSyncSpec JSON-RPC as safe (#10832)

* Mark sync_state_genSyncSpec JSON-RPC as safe

* Note that parameter is unused

* Ideally I'd wait for compilation to be finished before pushing, but it's really taking a long time

* Remove deny_unsafe parameter

* Remove unused dependency

* Reduce CPU overhead of gossip (#10859)

* sp-core-hashing: use the `digest::Digest` trait to handle the hashing function uniformly (#10835)

* sp-core-hashing: use sha3 instead of tiny-keccak

Signed-off-by: koushiro <[email protected]>

* use blake2 instead of blake2-rfc

Signed-off-by: koushiro <[email protected]>

* improve som hashing of sp-core and sp-api-proc-macro

Signed-off-by: koushiro <[email protected]>

* Some nits

Signed-off-by: koushiro <[email protected]>

* cargo fmt

Signed-off-by: koushiro <[email protected]>

* Use fully qualified sytnax for `retain_mut` (#10865)

* add llvm (#10864)

* refactor election score (#10834)

* refactor election score

* Test for ord

* remove reference

* vec -> slice

* change iter to iter_by_significance

* improve doc

* fix typo

* add explanation about [u128; 3]

* consolidate threshold and epsilon

* random fixes

* rename

* remove Into

* make iter_by_sig private

* remove vec

* Fix tests

* Measure per byte and not kb for certain benchmarks (#10863)

* Tidy Democracy (#10867)

* add test

* Assorted refactorings

* complete test

* saturating math

* final check

* use `default`

Co-authored-by: Gav Wood <[email protected]>

* cleanup storage maps, cleanup unused imports

* sc-executor: Improve logging (#10869)

Improves the logging by switching to `tracing` for a better log output. Besides that, it also adds a
trace for the function being executed.

* fix test issues

* Track allowed requests for state/warp sync (#10843)

* Track allowed requests for state/warp sync

* Added missing allowed_requests resets

* Apply suggestions from code review

Co-authored-by: Bastian Köcher <[email protected]>

* fmt

Co-authored-by: Bastian Köcher <[email protected]>

* Slots: Ensure that a race betwen finalized and best number is taken care off (#10876)

* Remove old lock file (#10879)

* Further reduce the CPU overhead of networking metrics (#10875)

* Simplify `num_connected_peers`

* Track requested peer counts

* Revert "Track requested peer counts"

This reverts commit 9f1c8704353df6afc17ed7e9f4ab8d8e29466ae4.

* Remove `substrate_sub_libp2p_peerset_num_requested` metric

* Remove two unused functions that I forgot to get rid of in previous commit

* Introduce `BoundedVec::iter_mut` (#10884)

* Introduce iters into BoundedVec

* Fix

* Remove unneeded funcs

* Update frame/support/src/storage/bounded_vec.rs

* Update frame/support/src/storage/bounded_vec.rs

Co-authored-by: Bastian Köcher <[email protected]>

* Slots: Log total proposing duration as milliseconds (#10886)

Parachains have currently a total proposing time of 500ms, so it this
currently always prints `0`. While actually the value is not `0` ;)

* staking: Clarify reward calc docs (#10890)

* tracing: Adds `init_for_tests` (#10893)

This function is useful for tests. It will enable `TRACE` logging and also uses the libtest aware writer.

* make submissions pub (#10899)

* contracts: Allow stack height metering to be disabled (#10877)

* Allow stack height metering to be disabled

* cargo run --quiet --profile=production  --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_contracts --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/contracts/src/weights.rs --template=./.maintain/frame-weight-template.hbs

* cargo run --quiet --profile=production  --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_contracts --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/contracts/src/weights.rs --template=./.maintain/frame-weight-template.hbs

Co-authored-by: Parity Bot <[email protected]>

* Rename Uniques Error::Unknown to something more sensible (#10895)

* Rename Uniques Error::Unknown to something more sensible

* Typos

* Typos

* fmt

Signed-off-by: Oliver Tale-Yazdi <[email protected]>

* Fix tests

Signed-off-by: Oliver Tale-Yazdi <[email protected]>

* fmt

Signed-off-by: Oliver Tale-Yazdi <[email protected]>

Co-authored-by: Oliver Tale-Yazdi <[email protected]>

* state-machine: Move all functionality from trie backend to the essence (#10904)

* state-machine: Move all functionality from trie backend to the essence

This is required for some future changes of me and it also makes more sense to have all the
functionality inside the essence. Besides that it changes the child root cache to directly
cache the hash.

* Update primitives/state-machine/src/trie_backend_essence.rs

Co-authored-by: cheme <[email protected]>

* FMT

Co-authored-by: cheme <[email protected]>

* staking: Remove `SessionInterface` supertrait (#10901)

* consensus-slots: cleanup SlotDuration config (#10878)

* consensus-slots: cleanup the SlotDuration config

* fix tests

* address review comments

* add contracts pallet + rpc to runtime

* Replace libsecp256k1 with k256 in FRAME related code (#10883)

* Replace libsecp256k1 with k256 in beefy-mmr

* Port of FRAME `contracts` benchmarking from `libsecp256k1` to `k256`

* Newtype to allow `Pcg32` rng usage with `k256` in contracts benchmarks

* Use `sp-io::crypto` to generate dummy keys in `contracts` bechmarks

* More compact code

* Cargo fmt

* Build `sp-keystore` only for dev profile

* Move public key generation back to the `map`

* Clean obsolete BABE's weight data (#10748)

* Clean obsolete BABE weight data
* Take out test assertion from check closure
* Optimize metadata access using `HeaderMetadata` trait
* Apply suggestions from code review
* Introduce finalize and import pre-commit synchronous actions
* Do not hold locks between internal methods calls
* Remove unused generic bound
* Apply suggestions from code review
* Register BABE's pre-commit actions on `block_import` instead of `start_babe`
* PreCommit actions should be `Fn` instead of `FnMut`
* More robust safenet in case of malformed finality notifications

Co-authored-by: Bastian Köcher <[email protected]>
Co-authored-by: André Silva <[email protected]>

* Factor DB weights out into their own files (#10908)

* Factor DB weights out into their own files

Signed-off-by: Oliver Tale-Yazdi <[email protected]>

* Review fixes

Signed-off-by: Oliver Tale-Yazdi <[email protected]>

* Fix CI

Signed-off-by: Oliver Tale-Yazdi <[email protected]>

* Weights in own mod

Signed-off-by: Oliver Tale-Yazdi <[email protected]>

* Get rid of unnecessary use of `async-std` in non-test code (#10891)

* No longer generate specs with consensus_engine field (#10346)

* No longer generate specs with consensus_engine field

* #[allow(unused)]

* Upgrading parity-scale-codec to v3 (#10825)

* Upgraded dependencies

* Adapting code to scale v3

* Empty commit to trigger CI

* Triggering CI

* Fixing UI test

* Remove superfluous dev-dep added by #9228

* Cryout for CI

* sc-cli: Fix bugs after switching to clap3 (#10920)

* sc-cli: Fix bugs after switching to clap3

Before switching to clap3 we support cli options like `--reserved-nodes A B` and after you needed to
pass `--reserved-nodes` cli option multiple times `--reserved-nodes A --reserved-nodes B`. This is
fixed by setting `multiple_occurrences(true)` option. This also done for all the other `Vec` cli
options in `sc-cli`. Besides that `--sync` wasn't supporting case insensitive parsing of the value.
This is now also supported. For both regressions a test is added. Besides that the pr removes all
the `rename_all = PascalCase` attributes, because they are not needed. All other `ArgEnum`s were
checked and all are already using `ignore_case(true)`.

* Bring back `PascalCase`, because otherwise it falls back to `kebab-case`...

* Storage benchmarking (#10897)

* WIP

Signed-off-by: Oliver Tale-Yazdi <[email protected]>

* WIP: DB benchmarking

Signed-off-by: Oliver Tale-Yazdi <[email protected]>

* WIP

Signed-off-by: Oliver Tale-Yazdi <[email protected]>

* WIP

Signed-off-by: Oliver Tale-Yazdi <[email protected]>

* Simplify code

Signed-off-by: Oliver Tale-Yazdi <[email protected]>

* Remove old files

Signed-off-by: Oliver Tale-Yazdi <[email protected]>

* Remove old files

Signed-off-by: Oliver Tale-Yazdi <[email protected]>

* Minimize changes

Signed-off-by: Oliver Tale-Yazdi <[email protected]>

* Add license

Signed-off-by: Oliver Tale-Yazdi <[email protected]>

* Remove dependencies

Signed-off-by: Oliver Tale-Yazdi <[email protected]>

* Extend template

Signed-off-by: Oliver Tale-Yazdi <[email protected]>

* Linter

Signed-off-by: Oliver Tale-Yazdi <[email protected]>

* Linter

Signed-off-by: Oliver Tale-Yazdi <[email protected]>

* Beauty fixes

Signed-off-by: Oliver Tale-Yazdi <[email protected]>

* Remove default

Signed-off-by: Oliver Tale-Yazdi <[email protected]>

* Add feature

Signed-off-by: Oliver Tale-Yazdi <[email protected]>

* Remove seed

Signed-off-by: Oliver Tale-Yazdi <[email protected]>

* CI wakeup

Signed-off-by: Oliver Tale-Yazdi <[email protected]>

* Fmt

Signed-off-by: Oliver Tale-Yazdi <[email protected]>

* Review fixes

Signed-off-by: Oliver Tale-Yazdi <[email protected]>

* Adding doc

Signed-off-by: Oliver Tale-Yazdi <[email protected]>

* Adding doc

Signed-off-by: Oliver Tale-Yazdi <[email protected]>

* Improve template

Signed-off-by: Oliver Tale-Yazdi <[email protected]>

* Do not expose columns

Signed-off-by: Oliver Tale-Yazdi <[email protected]>

* Fix ColumnId

Signed-off-by: Oliver Tale-Yazdi <[email protected]>

* Nicer template prints

Signed-off-by: Oliver Tale-Yazdi <[email protected]>

* Cleanup

Signed-off-by: Oliver Tale-Yazdi <[email protected]>

* Fix json path

Signed-off-by: Oliver Tale-Yazdi <[email protected]>

* Simplify `bench_write` logic

Signed-off-by: Oliver Tale-Yazdi <[email protected]>

* Invert tx before the second commit

Signed-off-by: Oliver Tale-Yazdi <[email protected]>

* add transfer assets extrinsic

* add chain ext

* Minor improvements to `bounded_vec` and `defensive`.  (#10873)

* Fix a few things in bounded_vec

* add test for try_extend

* Update frame/support/src/storage/bounded_vec.rs

Co-authored-by: Bastian Köcher <[email protected]>

* some review comments

* use swap

* remove clone

* use pop instead of truncate

* remove warn

* review comments

* Update frame/support/src/storage/bounded_vec.rs

Co-authored-by: Bastian Köcher <[email protected]>

* fix rustdoc

* fix links

* undo link

Co-authored-by: Bastian Köcher <[email protected]>

* Replace libsecp256k1 with secp256k1 (#10798)

* Replace libsecp256k1 with secp256k1

* Wipe ecdsa secret key from memory on drop

* Some comments for a known issue

* Safer core crypto primitives `from_slice` constructor

Previous version panics if slice lenght is not the expected one.

* Unit test fix

* Enable use of global secp256k1 context

* Better comments for ecdsa `Pair` drop

* Replace `libsecp256k1` with `seco256k1` in `beefy-mmr`

Used to convert ecdsa public key to ETH address

* Replace `libsecp256k1` with `secp256k1` in FRAME `contracts`benchmarks

* Temporary rollback of `beefy-mmr` to libsecp256k1

Check for detected build issues

* Cargo fmt

* Rollback of FRAME `contracts` benchmarks to `libsecp256k1`

* Rollback for unrelated changes

* Typo fix

* Add comments for deprecated `ecdsa_verify` and `secp256k1_ecdsa_recover`

* Integrate try-runtime into substrate node template (#10909)

* [10892-integrate-try-runtime-into-node-template] - Integrated try-runtime into node template

* [10892-integrate-try-runtime-into-node-template] Added match arms for try-runtime in command.rs

* [10892-integrate-try-runtime-into-node-template] Added match arms for try-runtime in command.rs

* Added feature flag for try-runtime in node-template/node and enabled try-runtime for node-template/runtime

* Added missing type annotations for try-runtime SubCommand in node-template

* Added missing type annotations for try-runtime SubCommand in node-template

* Implemented frame_try_runtime::TryRuntime<Block> for the node-template Runtime

* doc corrections (#10936)

* #10576: generic utility to unsubscribe from broadcast upon drop of the rx-side. (#10708)

* #10576: refactor `sc-utils::notification` and `sc-client-api::notifications`, so that they use common subscribe/unsubscribe routines

* Add some docs. Reorganise `sc-utils::notification`

* `sc-clent-api::notifications` and `sc-utils::notification` — ensure the SubscriptionGuard is dropped before the Rx-channel

* `sc-utils::pubsub::SubscriptionGuard` make it a bit more ergonomic.

Let the `Rx` to be put inside of the `SubscriptionGuard`, so that the latter shall guarantee the order:
- first unsubscribe;
- then drop the `Rx`.

* Being less zealous with splitting the modules into little pieces

* rework pubsub: the concrete usage should only define a good registry type

* sc-client-api::notifications: make it comply with the reworked pubsub

* cargo fmt

* make sc-client-api tests work

* Address the review notes

* cargo fmt

* Describe the behaviour of pubsub registry

* Doc-comments for module `sc-utils::pubsub`

* Fix: it used to send notifications regardless of the filter setup during subscription

* `sc-client-api::StorageNotifications` the API does not have to require mut-self-reference.

As a result `sc-service::Client` does not have to wrap its `storage_notifications` into a Mutex.

* cargo fmt

* Several changes addressing the notes by @bckhr.

- Remove the `impl Default for StorageNotifications<Block>`;
- no need for groupping the `remove_from` and `listen_from` into a separate `helpers` module;
- remove unnecessary import `use registry::SubscribeOp`.

* Add a doc-comment to the `sc-client::notifications::SubscribeOp`

* As per @bkchr note on the unproven assertion: behave gracefully upon receiving a duplicate subscription-ID.

* sc-utils::pubsub: log when a registry yields an ID that does point to an existing sink

* `sc-utils::notifications`: payload materialized lazily

* Update Cargo.lock (after adding `log` as a dependency to the `sc-utils`)

* `sc-client-api::notifications`: introduce a struct (instead of a type def) for the notification message

* Get rid of `sc-utils::pubsub::Channel` trait (instead just use the `sc-utils::mpsc`)

* The SubsID is no more generic: the fact it is a `Copy` is known — no need to pass it by ref

* sc-utils::pubsub internals do not have to be generic over the channel type

* Rename Hub::dispatch into Hub::send

* That method was unnecessary (`SubscriberSink::render_notification`)

* cargo fmt

* No need for a separate UnsubscribeGuard type

* Ditch the type-def of SubsID in the sc-utils::pubsub, instead — just use the crate::id_sequence::SeqID

* Return the <Registry as Dispatch>::Ret when sending an item

* Make the `Hub<M, R>::lock_registry(...)` method more ergonomic

* cargo doc links

* cargo doc links

* Use a simpler name for the type

* cargo doc links

* Derive `Default` rather than implement it

* Derive `Default` rather than implement it

* Remove an unnecessary usage of type_name

* Define a more cautious order between sinks.remove->registry.unsubscribe and registry.subscribe->sinks.insert

* Hub: lock_registry_for_tests->map_registry_for_tests — a safer choice for a public API

* Replace Mutex over the shared Registry with a ReentrableMutex+RefCell

* sc-utils::pubsub: add tests for a panicking registry

* Add the missing copyright headers

* Arc<Vec<_>> -> Arc<[_]>

* Bring back MaxNominations as a metadata constant (#10947)

* chain ext: parse params and call transfer func

* Bump futures from 0.3.16 to 0.3.19 (#10930)

Bumps [futures](https://github.com/rust-lang/futures-rs) from 0.3.16 to 0.3.19.
- [Release notes](https://github.com/rust-lang/futures-rs/releases)
- [Changelog](https://github.com/rust-lang/futures-rs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/futures-rs/compare/0.3.16...0.3.19)

---
updated-dependencies:
- dependency-name: futures
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Clean up extra_constant renaming. (#10935)

Co-authored-by: Xiankun Cheng <[email protected]>

* Bump smallvec from 1.7.0 to 1.8.0 (#10949)

Bumps [smallvec](https://github.com/servo/rust-smallvec) from 1.7.0 to 1.8.0.
- [Release notes](https://github.com/servo/rust-smallvec/releases)
- [Commits](https://github.com/servo/rust-smallvec/compare/v1.7.0...v1.8.0)

---
updated-dependencies:
- dependency-name: smallvec
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* new pallet: whitelist pallet (#10159)

* pallet whitelist

* refactor a bit

* fmt

* address audit

* improve tests

* return Ok + refund

* add test for dispatching failing

* add dispatch_whitelisted_call_with_preimage

* fmt

* better name

* Consume all data on decode

Signed-off-by: Oliver Tale-Yazdi <[email protected]>

* Add error docs

Signed-off-by: Oliver Tale-Yazdi <[email protected]>

* Remove phantom data

Signed-off-by: Oliver Tale-Yazdi <[email protected]>

* Use rust 2021

Signed-off-by: Oliver Tale-Yazdi <[email protected]>

* Update crate features

Signed-off-by: Oliver Tale-Yazdi <[email protected]>

* Fmt

Signed-off-by: Oliver Tale-Yazdi <[email protected]>

* Make compile

Signed-off-by: Oliver Tale-Yazdi <[email protected]>

* cargo run --quiet --profile=production  --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_whitelist --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/whitelist/src/weights.rs --template=./.maintain/frame-weight-template.hbs

* Bump Preimage max size

Signed-off-by: Oliver Tale-Yazdi <[email protected]>

* cargo run --quiet --profile=production  --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_whitelist --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/whitelist/src/weights.rs --template=./.maintain/frame-weight-template.hbs

* Fmt

Signed-off-by: Oliver Tale-Yazdi <[email protected]>

Co-authored-by: Oliver Tale-Yazdi <[email protected]>
Co-authored-by: Parity Bot <[email protected]>

* Release primitive crates (#10937)

* cargo set-version --bump major -p pallet-contracts-primitives

* cargo set-version --bump major -p sp-core

* cargo set-version --bump major -p sp-runtime-interface

* cargo set-version --bump major -p sp-wasm-interface

* cargo set-version --bump major -p sp-runtime

* cargo set-version --bump major -p sp-storage

* cargo set-version --bump major -p sp-rpc

* cargo set-version --bump major -p sp-io

* cargo set-version --bump major -p sp-trie

* cargo set-version -p sp-state-machine  -- 0.12.0

* cargo set-version -p sp-externalities  -- 0.12.0

* cargo set-version -p sp-keystore -- 0.12.0

* cargo set-version --bump major -p sp-keyring

* cargo set-version --bump major -p sp-version

* cargo set-version --bump major -p sp-tracing

* cargo set-version --bump major -p sp-application-crypto

* cargo set-version --bump major -p sp-arithmetic

* cargo unleash version bump-major -p sp-runtime-interface-proc-macro

* Add codec max-encoded-len feature to sp-arithmetic

* cargo unleash version bump-major -p sp-core-hashing-proc-macro

* Update new whitelist pallet to new primitive versions (#10953)

* sp-trie: Switch to thiserror and some other small cleanups (#10954)

* sp-trie: Switch to thiserror and some other small cleanups

* Add some extra method for converting a compact proof to a memory db

* Only maintain at most 1 `UnlockChunk` per era (#10670)

* Only maintain at most 1 `UnlockChunk` per era

* Bound `unlocking`

* Run cargo +nightly-2021-10-29 fmt

* Make benchmarks stuff compile

* Update frame/staking/src/lib.rs

Co-authored-by: Kian Paimani <[email protected]>

* Remove DerefMut; Implement neccesary methods directly

* Doc comments for new BoundedVec methods

* Fix benchmarks

* wip bonded_vec macro

* Correct rust doc

* Apply suggestions from code review

Co-authored-by: Kian Paimani <[email protected]>

* Update staking::Config impls

* Add MaxUnlockingChunks to more places

* Use defensive saturating add

* FMT

Co-authored-by: Kian Paimani <[email protected]>

* staking: Expose `MaxUnlockingChunks` in metadata as a const (#10958)

* Allow trailing commas for `bounded_vec!` (#10959)

* SimpleSlotWorker: Do not implement `SlotWorker` for all types implementing `SimpleSlotWorker` (#10934)

Because Rust currently doesn't support specialization, it prevents users from implementing
`SlotWorker` for their own types. This pr solves this by removing the generic implementation of
`SlotWorker` for `SimpleSlotWorker` and providing some wrapper type for that.

* Bump digest from 0.10.2 to 0.10.3 (#10960)

Bumps [digest](https://github.com/RustCrypto/traits) from 0.10.2 to 0.10.3.
- [Release notes](https://github.com/RustCrypto/traits/releases)
- [Commits](https://github.com/RustCrypto/traits/compare/digest-v0.10.2...digest-v0.10.3)

---
updated-dependencies:
- dependency-name: digest
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump scale-info from 2.0.0 to 2.0.1 (#10965)

Bumps [scale-info](https://github.com/paritytech/scale-info) from 2.0.0 to 2.0.1.
- [Release notes](https://github.com/paritytech/scale-info/releases)
- [Changelog](https://github.com/paritytech/scale-info/blob/master/CHANGELOG.md)
- [Commits](https://github.com/paritytech/scale-info/commits)

---
updated-dependencies:
- dependency-name: scale-info
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Add pr-custom-review config (#10968)

* Revise how staking configurations are set (#10955)

* Revise how staking configurations are set

fixes #10938

* Fix and add additional tests

* Format

* Formatting

* Add doc

Co-authored-by: Kian Paimani <[email protected]>

* Update frame/staking/src/tests.rs

Co-authored-by: Kian Paimani <[email protected]>

* Format

* Fix build

* Update weights.rs

* cargo run --quiet --profile=production  --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_staking --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/staking/src/weights.rs --template=./.maintain/frame-weight-template.hbs

Co-authored-by: Shawn Tabrizi <[email protected]>
Co-authored-by: Kian Paimani <[email protected]>
Co-authored-by: Parity Bot <[email protected]>

* Bump libc from 0.2.112 to 0.2.119 (#10967)

Bumps [libc](https://github.com/rust-lang/libc) from 0.2.112 to 0.2.119.
- [Release notes](https://github.com/rust-lang/libc/releases)
- [Commits](https://github.com/rust-lang/libc/compare/0.2.112...0.2.119)

---
updated-dependencies:
- dependency-name: libc
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump parity-db from 0.3.5 to 0.3.8 (#10970)

Bumps [parity-db](https://github.com/paritytech/parity-db) from 0.3.5 to 0.3.8.
- [Release notes](https://github.com/paritytech/parity-db/releases)
- [Commits](https://github.com/paritytech/parity-db/commits/v0.3.8)

---
updated-dependencies:
- dependency-name: parity-db
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* [EPM pallet]: remove `number of signed submissions` (#10945)

* [EPM pallet]: remove `number of signed submissions`

Closing #9229

* fix tests

* remove needless assert

* Update frame/election-provider-multi-phase/src/lib.rs

* cargo fmt

Signed-off-by: Niklas <[email protected]>

* fix grumbles

* cargo run --quiet --profile=production  --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_election_provider_multi_phase --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/election-provider-multi-phase/src/weights.rs --template=./.maintain/frame-weight-template.hbs

* drop `num_signed_submissions` in WeightInfo too

* fix build

Co-authored-by: Parity Bot <[email protected]>

* Refactored block body database scheme (#10779)

* Refactored tx storage database scheme

* Bump parity-db

* fmt

* Fix handling invalid index size + test

* Removed superflous result

* Minor changes

* fmt

* Deprecate "paritydb-experimental" CLI in favour or "paritydb" (#10975)

* Deprecate paritydb-experimental

* Updated comment

* [contracts] Stabilize "seal0" `is_contract` and `caller_is_origin`  (#10971)

* stabilize `seal_is_contract`

* stabilize `seal_caller_is_origin`

* Trie version migration pallet  (#10073)

* starting

* Updated from other branch.

* setting flag

* flag in storage struct

* fix flagging to access and insert.

* added todo to fix

* also missing serialize meta to storage proof

* extract meta.

* Isolate old trie layout.

* failing test that requires storing in meta when old hash scheme is used.

* old hash compatibility

* Db migrate.

* runing tests with both states when interesting.

* fix chain spec test with serde default.

* export state (missing trie function).

* Pending using new branch, lacking genericity on layout resolution.

* extract and set global meta

* Update to branch 4

* fix iterator with root flag (no longer insert node).

* fix trie root hashing of root

* complete basic backend.

* Remove old_hash meta from proof that do not use inner_hashing.

* fix trie test for empty (force layout on empty deltas).

* Root update fix.

* debug on meta

* Use trie key iteration that do not include value in proofs.

* switch default test ext to use inner hash.

* small integration test, and fix tx cache mgmt in ext.
test  failing

* Proof scenario at state-machine level.

* trace for db upgrade

* try different param

* act more like iter_from.

* Bigger batches.

* Update trie dependency.

* drafting codec changes and refact

* before removing unused branch no value alt hashing.
more work todo rename all flag var to alt_hash, and remove extrinsic
replace by storage query at every storage_root call.

* alt hashing only for branch with value.

* fix trie tests

* Hash of value include the encoded size.

* removing fields(broken)

* fix trie_stream to also include value length in inner hash.

* triedbmut only using alt type if inner hashing.

* trie_stream to also only use alt hashing type when actually alt hashing.

* Refactor meta state, logic should work with change of trie treshold.

* Remove NoMeta variant.

* Remove state_hashed trigger specific functions.

* pending switching to using threshold, new storage root api does not
make much sense.

* refactoring to use state from backend (not possible payload changes).

* Applying from previous state

* Remove default from storage, genesis need a special build.

* rem empty space

* Catch problem: when using triedb with default: we should not revert
nodes: otherwhise thing as trie codec cannot decode-encode without
changing state.

* fix compilation

* Right logic to avoid switch on reencode when default layout.

* Clean up some todos

* remove trie meta from root upstream

* update upstream and fix benches.

* split some long lines.

* UPdate trie crate to work with new design.

* Finish update to refactored upstream.

* update to latest triedb changes.

* Clean up.

* fix executor test.

* rust fmt from master.

* rust format.

* rustfmt

* fix

* start host function driven versioning

* update state-machine part

* still need access to state version from runtime

* state hash in mem: wrong

* direction likely correct, but passing call to code exec for genesis
init seem awkward.

* state version serialize in runtime, wrong approach, just initialize it
with no threshold for core api < 4 seems more proper.

* stateversion from runtime version (core api >= 4).

* update trie, fix tests

* unused import

* clean some TODOs

* Require RuntimeVersionOf for executor

* use RuntimeVersionOf to resolve genesis state version.

* update runtime version test

* fix state-machine tests

* TODO

* Use runtime version from storage wasm with fast sync.

* rustfmt

* fmt

* fix test

* revert useless changes.

* clean some unused changes

* fmt

* removing useless trait function.

* remove remaining reference to state_hash

* fix some imports

* Follow chain state version management.

* trie update, fix and constant threshold for trie layouts.

* update deps

* Update to latest trie pr changes.

* fix benches

* Verify proof requires right layout.

* update trie_root

* Update trie deps to  latest

* Update to latest trie versioning

* Removing patch

* update lock

* extrinsic for sc-service-test using layout v0.

* Adding RuntimeVersionOf to CallExecutor works.

* fmt

* error when resolving version and no wasm in storage.

* use existing utils to instantiate runtime code.

* migration pallet

* Patch to delay runtime switch.

* Revert "Patch to delay runtime switch."

This reverts commit d35f273b7d67b1b85a9e72973cab13c5c156c1d3.

* fix test

* fix child migration calls.

* useless closure

* remove remaining state_hash variables.

* Fix and add more tests

* Remove outdated comment

* useless inner hash

* fmt

* remote tests

* finally ksm works

* batches are broken

* clean the benchmarks

* Apply suggestions from code review

Co-authored-by: Guillaume Thiolliere <[email protected]>

* Apply suggestions from code review

Co-authored-by: Guillaume Thiolliere <[email protected]>

* Update frame/state-trie-migration/src/lib.rs

Co-authored-by: Joshy Orndorff <[email protected]>

* Update frame/state-trie-migration/src/lib.rs

* brand new version

* fix build

* Update frame/state-trie-migration/src/lib.rs

Co-authored-by: Guillaume Thiolliere <[email protected]>

* Update frame/state-trie-migration/src/lib.rs

Co-authored-by: Guillaume Thiolliere <[email protected]>

* Update primitives/storage/src/lib.rs

Co-authored-by: cheme <[email protected]>

* Update frame/state-trie-migration/src/lib.rs

Co-authored-by: cheme <[email protected]>

* Update frame/state-trie-migration/src/lib.rs

Co-authored-by: cheme <[email protected]>

* fmt and opt-in feature to apply state change.

* feature gate core version, use new test feature for node and test node

* Use a 'State' api version instead of Core one.

* fix merge of test function

* use blake macro.

* Fix state api (require declaring the api in runtime).

* Opt out feature, fix macro for io to select a given version
instead of latest.

* run test nodes on new state.

* fix

* new test structure

* new testing stuff from emeric

* Add commit_all, still not working

* Fix all tests

* add comment

* we have PoV tracking baby

* document stuff, but proof size is still wrong

* FUCK YEAH

* a big batch of review comments

* add more tests

* tweak test

* update config

* some remote-ext stuff

* delete some of the old stuff

* sync more files with master to minimize the diff

* Fix all tests

* make signed migration a bit more relaxed

* add witness check to signed submissions

* allow custom migration to also go above limit

* Fix these pesky tests

* ==== removal of the unsigned stuff ====

* Make all tests work again

* separate the tests from the logic so it can be reused easier

* fix overall build

* Update frame/state-trie-migration/src/lib.rs

Co-authored-by: cheme <[email protected]>

* Update frame/state-trie-migration/src/lib.rs

Co-authored-by: cheme <[email protected]>

* Slightly better termination

* some final tweaks

* Fix tests

* Restrict access to signed migrations

* address most of the review comments

* fix defensive

* New simplified code

* Fix weights

* fmt

* Update frame/state-trie-migration/src/lib.rs

Co-authored-by: Bastian Köcher <[email protected]>

* make the tests correctly fail

* Fix build

* Fix build

* try and fix the benchmarks

* fix build

* Fix cargo file

* Fix runtime deposit

* make rustdoc happy

* cargo run --quiet --profile=production  --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_state_trie_migration --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/state-trie-migration/src/weights.rs --template=./.maintain/frame-weight-template.hbs

Co-authored-by: cheme <[email protected]>
Co-authored-by: Guillaume Thiolliere <[email protected]>
Co-authored-by: Joshy Orndorff <[email protected]>
Co-authored-by: Bastian Köcher <[email protected]>
Co-authored-by: Parity Bot <[email protected]>

* BEEFY and GRANDPA protocol names should use full genesis hash (#10974)

std::fmt::Display shows formats as reduced hash (e.g. 0xb0a8…dafe)

Use hex::encode to format full hash.

Signed-off-by: acatangiu <[email protected]>

* Move weight constants to own mod (#10980)

* Move block+ext weights to own mod

Signed-off-by: Oliver Tale-Yazdi <[email protected]>

* Unused import

Signed-off-by: Oliver Tale-Yazdi <[email protected]>

* add block usage logs to system pallet (#10940)

* add block usage logs to system pallet

* add Debug

* use % instead of default Debug impl

* change formatting

* revert

* update runtime storage, update chain extension

* cleanup chain ext

* Fix the undeterministic storage proof recorded for the same execution (#10915)

* Add a test case for the determinism of recorded proof

* Replace HashMap with BTreeMap for the actual proof records

* cargo +nightly fmt --all

* Store the trie nodes in BTreeSet for StorageProof

* Nit

* Revert the BTreeMap changes and sort when converting to storage proof

* Remove PartialEq from StorageProof

* Remove unnecessary change

* Add `compare` method to StorageProof

* FMT

* Dummy change to trigger CI

* Use `BTreeSet` for StorageProof and keep using `Vec` for CompactProof

* Update comment on `iter_nodes`

* Revert `PartialEq` removal

* create iris ledger pallet

* ledger funcs in chain ext

* rename Iris -> IrisAssets, update readmes

* Minor Uniques pallet improvements and XCM v3 preparations (#10896)

* Introduce Helper to Uniques for benchmark stuff

* Fixes

* Formatting

* Featuregate the Helper, include ContainsPair

* Introduce & use EnsureOriginWithArg

* Benchmarking

* Docs

* More ContainsBoth helpers

* Formatting

* Formatting

* Fixes

Co-authored-by: Shawn Tabrizi <[email protected]>

* election provider support: Update some test only types (#10983)

* Feedback from @XLC for Referenda Pallet (#10991)

* feedback from @xlc

* english

* fmt

Signed-off-by: Oliver Tale-Yazdi <[email protected]>

Co-authored-by: Oliver Tale-Yazdi <[email protected]>

* Make bags-list generic over node value and instantiable (#10997)

* make instantiable

* update

* cargo fmt

* Clean up

* bags-list: Make it generic over node value

* Respond to some feedback

* Apply suggestions from code review

Co-authored-by: Kian Paimani <[email protected]>

* Add back default impl for weight update worst case

* Update to Score in more places'

* Use VoteWeight, not u64 to reduce test diff

* FMT

* FullCodec implies Codec

* formatting

* Fixup bags list remote test

Co-authored-by: doordashcon <[email protected]>
Co-authored-by: Doordashcon <[email protected]>
Co-authored-by: Kian Paimani <[email protected]>

* sc-finality-grandpa: use the #[from] attriute to remove boilerplate code (#11003)

Signed-off-by: koushiro <[email protected]>

* contracts: Add test to verify unique trie ids (#10914)

* Add test to verify unique trie ids

* Rename trie_seed to nonce

* Rename AccountCounter -> Nonce

* fmt

* sp-core: `full_crypto` doesn't imply `std` (#11006)

* sp-core: `full_crypto` doesn't imply `std`

This pr changes the feature set of `secp256k1` to not use `global-context` when only the
`full_crypto` is enabled. It will be slower when the `std` feature is not enabled as the context
always needs to be recreated, but that is fine.

* Update client/cli/src/arg_enums.rs

Co-authored-by: Davide Galassi <[email protected]>

Co-authored-by: Davide Galassi <[email protected]>

* Remove unused `parent_hash` in `OverlayedChanges::into_storage_changes` (#11011)

Ref https://github.com/paritytech/substrate/pull/10922#issuecomment-1064258443

CC @cheme

* iris ledger pallet -> transfer not yet functioning

* sp-api: Don't be dirty (#11015)

Ensure that the sp api macros don't use functions without providing the full path to the function.
This hygiene ensures that we don't actually try to call a method of an imported trait for example.

* unlock and transfer works

* Update clap to the latest version (#11017)

* Update clap to the latest version

Besides that it also removes some `structopt` leftovers from some docs.

* Fix compile errors

* More fixes

* Move scripts used in CI to the new location (#11008)

Move scripts used in CI to the new location - **./scripts/ci/**

* Move github scripts

* Move more files

* Move ci scripts and fix dependencies

* Update docs/node-template-release.md

Co-authored-by: João Paulo Silva de Souza <[email protected]>

* Remove Cargo.lock

* Apply suggestions from code review

Co-authored-by: Denis Pisarev <[email protected]>

* Make more paths uniform

Co-authored-by: João Paulo Silva de Souza <[email protected]>
Co-authored-by: Denis Pisarev <[email protected]>

* Move `sp-npos-elections-solution-type` to `frame-election-provider-support` (#11016)

* Move `sp-npos-elections-solution-type`
to `frame-election-provider-support`
First stab at it, will need to amend some more stuff

* Fixing tests

* Fixing tests

* Fixing cargo.toml for std configuration

* fmt

* Committing suggested changes
renaming, and re exporting macro.

* Removing unneeded imports

* shell.nix: Update to a newer nightly (#11028)

* update chain ext

* update naming, formatting, start tests

* Update lockfile (#11035)

Signed-off-by: Oliver Tale-Yazdi <[email protected]>

* Additional `benchmark-storage` flags (#11004)

* Fix typos

* Enable overwriting handlebars template

* Optionally name json output or disable json altogether

* Don't write to json by default

* Include block id in handlebars output

* Include warmups for write benchmarks

* PR comments

* Drop unnecessary file extension

* Use more appropriate types

* Use more appropriate error message

* More use of more appropriate types

* Rework write benchmark warmups

* Run same benchmark for both read and write

* SharedData: Update locks to mention possible deadlocks (#11034)

* SharedData: Update locks to mention possible deadlocks

* Update `Cargo.lock`

* Stabilize `seal_delegate_call` (#11037)

* add tests

* re-enumerate chain ext func ids

* Bump names from 0.12.0 to 0.13.0 (#11047)

Bumps [names](https://github.com/fnichol/names) from 0.12.0 to 0.13.0.
- [Release notes](https://github.com/fnichol/names/releases)
- [Changelog](https://github.com/fnichol/names/blob/main/CHANGELOG.md)
- [Commits](https://github.com/fnichol/names/compare/v0.12.0...v0.13.0)

---
updated-dependencies:
- dependency-name: names
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* State migration rpc (#10981)

* setting flag

* flag in storage struct

* fix flagging to access and insert.

* added todo to fix

* also missing serialize meta to storage proof

* extract meta.

* Isolate old trie layout.

* failing test that requires storing in meta when old hash scheme is used.

* old hash compatibility

* Db migrate.

* runing tests with both states when interesting.

* fix chain spec test with serde default.

* export state (missing trie function).

* Pending using new branch, lacking genericity on layout resolution.

* extract and set global meta

* Update to branch 4

* fix iterator with root flag (no longer insert node).

* fix trie root hashing of root

* complete basic backend.

* Remove old_hash meta from proof that do not use inner_hashing.

* fix trie test for empty (force layout on empty deltas).

* Root update fix.

* debug on meta

* Use trie key iteration that do not include value in proofs.

* switch default test ext to use inner hash.

* small integration test, and fix tx cache mgmt in ext.
test  failing

* Proof scenario at state-machine level.

* trace for db upgrade

* try different param

* act more like iter_from.

* Bigger batches.

* Update trie dependency.

* drafting codec changes and refact

* before removing unused branch no value alt hashing.
more work todo rename all flag var to alt_hash, and remove extrinsic
replace by storage query at every storage_root call.

* alt hashing only for branch with value.

* fix trie tests

* Hash of value include the encoded size.

* removing fields(broken)

* fix trie_stream to also include value length in inner hash.

* triedbmut only using alt type if inner hashing.

* trie_stream to also only use alt hashing type when actually alt hashing.

* Refactor meta state, logic should work with change of trie treshold.

* Remove NoMeta variant.

* Remove state_hashed trigger specific functions.

* pending switching to using threshold, new storage root api does not
make much sense.

* refactoring to use state from backend (not possible payload changes).

* Applying from previous state

* Remove default from storage, genesis need a special build.

* rem empty space

* Catch problem: when using triedb with default: we should not revert
nodes: otherwhise thing as trie codec cannot decode-encode without
changing state.

* fix compilation

* Right …
ark0f pushed a commit to gear-tech/substrate that referenced this pull request Feb 27, 2023
…h#10786)

* pallet-staking: Add extrinsic `force_apply_min_commission`

* Add benchmarks

* cargo run --quiet --profile=production  --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_staking --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/staking/src/weights.rs --template=./.maintain/frame-weight-template.hbs

* Bound iteration by  max_validator_count

* cargo run --quiet --profile=production  --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_staking --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/staking/src/weights.rs --template=./.maintain/frame-weight-template.hbs

* Only apply to 1 validator

* Update doc comments

* Uncomment tests

* cargo run --quiet --profile=production  --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_staking --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/staking/src/weights.rs --template=./.maintain/frame-weight-template.hbs

* Accept signed origins

* cargo run --quiet --profile=production  --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_staking --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/staking/src/weights.rs --template=./.maintain/frame-weight-template.hbs

* Remove contains_key check

* Add test for try_mutate_exists

* Impove try_mutate_exists docs

* Delete redundant try_mutate_exists tests;

* Delete residual from removed test

* cargo run --quiet --profile=production  --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_staking --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/staking/src/weights.rs --template=./.maintain/frame-weight-template.hbs

* Return an error when the stash does not exist

* Update try_mutate_exist doc wording

* Update frame/staking/src/pallet/mod.rs

* Apply suggestions from code review

Co-authored-by: Parity Bot <[email protected]>
Co-authored-by: Shawn Tabrizi <[email protected]>
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. 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
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants