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

Conversation

@ggwpez
Copy link
Member

@ggwpez ggwpez commented Mar 29, 2022

The Phragmen benchmarks does not work for the Kusama runtime.
Looks like the accounts are just underfunded, this fixes it and also calculates the correct staking deposit.

Closes #11130

Signed-off-by: Oliver Tale-Yazdi <[email protected]>
@ggwpez ggwpez added the A3-in_progress Pull request is in progress. No review needed at this stage. label Mar 29, 2022
@ggwpez ggwpez requested a review from kianenigma as a code owner March 29, 2022 18:04
@github-actions github-actions bot added A0-please_review Pull request needs code review. and removed A3-in_progress Pull request is in progress. No review needed at this stage. labels Mar 29, 2022
@ggwpez ggwpez added A3-in_progress Pull request is in progress. No review needed at this stage. and removed A0-please_review Pull request needs code review. labels Mar 29, 2022
@ggwpez
Copy link
Member Author

ggwpez commented Mar 29, 2022

/benchmark runtime pallet pallet_elections_phragmen

@parity-benchapp
Copy link

parity-benchapp bot commented Mar 29, 2022

Benchmark Runtime Pallet for branch "oty-phragmen-bench" 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_elections_phragmen --extrinsic="*" --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/elections-phragmen/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_elections_phragmen", Extrinsic: "vote_equal", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Elections Candidates (r:1 w:0)
Storage: Elections Members (r:1 w:0)
Storage: Elections RunnersUp (r:1 w:0)
Storage: Elections Voting (r:1 w:1)
Storage: Balances Locks (r:1 w:1)

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

Model:
Time ~=    23.04
    + v    0.228
              µs

Reads = 5 + (0 * v)
Writes = 2 + (0 * v)

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

Data points distribution:
    v   mean µs  sigma µs       %
    1     22.33     0.096    0.4%
    2     23.41     0.065    0.2%
    3      23.8     0.085    0.3%
    4     23.67     0.197    0.8%
    5     24.53     0.188    0.7%
    6     24.73     0.104    0.4%
    7     24.98     0.148    0.5%
    8     25.04     0.076    0.3%
    9     25.39     0.197    0.7%
   10     25.73     0.127    0.4%
   11     25.16     0.141    0.5%
   12     25.49     0.123    0.4%
   13     25.79     0.098    0.3%
   14     26.53     0.147    0.5%
   15     26.11     0.112    0.4%
   16     26.47     0.116    0.4%

Quality and confidence:
param     error
v         0.006

Model:
Time ~=    22.98
    + v    0.232
              µs

Reads = 5 + (0 * v)
Writes = 2 + (0 * v)

Pallet: "pallet_elections_phragmen", Extrinsic: "vote_more", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Elections Candidates (r:1 w:0)
Storage: Elections Members (r:1 w:0)
Storage: Elections RunnersUp (r:1 w:0)
Storage: Elections Voting (r:1 w:1)
Storage: Balances Locks (r:1 w:1)

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

Model:
Time ~=    36.24
    + v    0.213
              µs

Reads = 5 + (0 * v)
Writes = 2 + (0 * v)

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

Data points distribution:
    v   mean µs  sigma µs       %
    2     36.17     0.135    0.3%
    3      37.3     0.095    0.2%
    4     37.31     0.131    0.3%
    5     36.73     0.075    0.2%
    6     37.16     0.152    0.4%
    7     37.82      0.14    0.3%
    8     38.32     0.275    0.7%
    9     38.56     0.277    0.7%
   10     38.07     0.173    0.4%
   11        38     0.116    0.3%
   12     39.55     0.169    0.4%
   13     39.34     0.268    0.6%
   14     38.69     0.142    0.3%
   15     39.42     0.137    0.3%
   16     39.59     0.168    0.4%

Quality and confidence:
param     error
v         0.008

Model:
Time ~=    36.17
    + v    0.219
              µs

Reads = 5 + (0 * v)
Writes = 2 + (0 * v)

Pallet: "pallet_elections_phragmen", Extrinsic: "vote_less", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Elections Candidates (r:1 w:0)
Storage: Elections Members (r:1 w:0)
Storage: Elections RunnersUp (r:1 w:0)
Storage: Elections Voting (r:1 w:1)
Storage: Balances Locks (r:1 w:1)

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

Model:
Time ~=    35.81
    + v    0.237
              µs

Reads = 5 + (0 * v)
Writes = 2 + (0 * v)

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

Data points distribution:
    v   mean µs  sigma µs       %
    2     35.64     0.102    0.2%
    3     36.79     0.168    0.4%
    4     36.26     0.125    0.3%
    5     36.93     0.204    0.5%
    6     38.01     0.103    0.2%
    7     38.28     0.125    0.3%
    8     37.26     0.119    0.3%
    9     37.72     0.067    0.1%
   10      38.1     0.381    0.9%
   11     38.99     0.109    0.2%
   12     38.99     0.238    0.6%
   13     38.73      0.17    0.4%
   14     39.23     0.252    0.6%
   15     39.23     0.162    0.4%
   16     39.31     0.114    0.2%

Quality and confidence:
param     error
v         0.008

Model:
Time ~=    35.79
    + v    0.241
              µs

Reads = 5 + (0 * v)
Writes = 2 + (0 * v)

Pallet: "pallet_elections_phragmen", Extrinsic: "remove_voter", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Elections Voting (r:1 w:1)
Storage: Balances Locks (r:1 w:1)

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

Model:
Time ~=    33.06
              µs

Reads = 2
Writes = 2

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

Model:
Time ~=    33.06
              µs

Reads = 2
Writes = 2

Pallet: "pallet_elections_phragmen", Extrinsic: "submit_candidacy", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Elections Candidates (r:1 w:1)
Storage: Elections Members (r:1 w:0)
Storage: Elections RunnersUp (r:1 w:0)

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

Model:
Time ~=     35.6
    + c    0.123
              µs

Reads = 3 + (0 * c)
Writes = 1 + (0 * c)

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

Data points distribution:
    c   mean µs  sigma µs       %
    1     34.08     0.123    0.3%
    4      34.5     0.214    0.6%
    7     34.71     0.173    0.4%
   10     35.06     0.121    0.3%
   13     35.55     0.305    0.8%
   16     36.37     0.107    0.2%
   19     36.72     0.148    0.4%
   22     38.49     0.118    0.3%
   25     38.65     0.083    0.2%
   28     39.26     0.199    0.5%
   31     39.41     0.145    0.3%
   34     40.15     0.119    0.2%
   37     40.74     0.089    0.2%
   40     40.17     0.132    0.3%
   43     41.02      0.12    0.2%
   46      41.3     0.166    0.4%
   49     41.88     0.149    0.3%
   52     42.14      0.18    0.4%
   55     42.89     0.121    0.2%
   58     42.97     0.192    0.4%
   61     43.31      0.26    0.6%
   64     43.68     0.151    0.3%
   67     43.79     0.248    0.5%
   70     44.41     0.158    0.3%
   73     45.08     0.187    0.4%
   76     44.56     0.094    0.2%
   79     45.86     0.207    0.4%
   82     46.75     0.469    1.0%
   85     46.43     0.078    0.1%
   88      47.3     0.307    0.6%
   91     47.39     0.141    0.2%
   94     47.37     0.161    0.3%
   97      47.6     0.082    0.1%
  100     48.22     0.167    0.3%
  103     48.43      0.15    0.3%
  106     49.23      0.25    0.5%
  109     49.25     0.137    0.2%
  112      50.1     0.122    0.2%
  115      50.5     0.259    0.5%
  118     50.89     0.164    0.3%
  121     51.25     0.146    0.2%
  124     51.92     0.103    0.1%
  127     51.64     0.188    0.3%
  130     52.58     0.168    0.3%
  133     51.92     0.136    0.2%
  136     51.99     0.144    0.2%
  139     52.71     0.125    0.2%
  142     52.98     0.204    0.3%
  145     52.96     0.156    0.2%
  148     53.55     0.255    0.4%
  151     53.65     0.247    0.4%
  154     54.39     0.188    0.3%
  157     54.86     0.181    0.3%
  160     54.79     0.228    0.4%
  163     55.81     0.232    0.4%
  166     56.22       0.2    0.3%
  169     56.29     0.221    0.3%
  172        56     0.162    0.2%
  175     56.87     0.254    0.4%
  178     57.06     0.236    0.4%
  181     57.82      0.12    0.2%
  184     57.53     0.128    0.2%
  187     57.63     0.366    0.6%
  190     58.13     0.224    0.3%
  193     58.14     0.222    0.3%
  196     58.96     0.243    0.4%
  199     60.65     0.947    1.5%

Quality and confidence:
param     error
c             0

Model:
Time ~=    35.38
    + c    0.124
              µs

Reads = 3 + (0 * c)
Writes = 1 + (0 * c)

Pallet: "pallet_elections_phragmen", Extrinsic: "renounce_candidacy_candidate", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Elections Candidates (r:1 w:1)

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

Model:
Time ~=    31.69
    + c    0.085
              µs

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

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

Data points distribution:
    c   mean µs  sigma µs       %
    1     30.57     0.122    0.3%
    4     30.77     0.057    0.1%
    7     31.62     0.103    0.3%
   10     31.71     0.105    0.3%
   13      32.1     0.203    0.6%
   16     31.95     0.155    0.4%
   19     32.78     0.185    0.5%
   22     33.85     0.125    0.3%
   25      33.2     0.174    0.5%
   28     33.52     0.083    0.2%
   31     34.47     0.102    0.2%
   34     34.68     0.144    0.4%
   37     34.59     0.114    0.3%
   40     34.78     0.147    0.4%
   43     35.92     0.122    0.3%
   46     32.89     1.056    3.2%
   49     36.01     0.114    0.3%
   52     35.96     0.219    0.6%
   55     36.21     0.086    0.2%
   58     36.54     0.088    0.2%
   61      36.5      0.97    2.6%
   64     34.41     0.871    2.5%
   67     33.89     0.473    1.3%
   70     38.39     0.137    0.3%
   73     38.39     0.187    0.4%
   76     38.38     0.141    0.3%
   79     39.38      0.09    0.2%
   82     40.27     0.093    0.2%
   85     40.08     0.355    0.8%
   88     40.43      1.21    2.9%
   91     41.19     0.235    0.5%
   94     41.09      0.35    0.8%
   97     40.87     0.193    0.4%
  100     38.33     2.068    5.3%
  103     41.68      0.47    1.1%
  106     37.34     0.388    1.0%
  109     38.28     1.286    3.3%
  112     39.98     2.185    5.4%
  115     42.23      0.23    0.5%
  118     42.68     0.289    0.6%
  121     41.39     1.879    4.5%
  124     42.29     2.632    6.2%
  127     41.74     2.337    5.5%
  130     38.13     0.194    0.5%
  133     43.88     0.253    0.5%
  136     38.95     0.839    2.1%
  139     44.15     1.435    3.2%
  142     39.03     0.111    0.2%
  145     39.17      0.22    0.5%
  148     44.03     1.999    4.5%
  151     39.56     0.234    0.5%
  154     45.14     0.237    0.5%
  157     44.03     2.426    5.5%
  160     40.75     2.216    5.4%
  163     44.39     2.872    6.4%
  166     44.66     2.792    6.2%
  169     45.82     1.903    4.1%
  172     45.61     2.618    5.7%
  175     47.06     0.917    1.9%
  178     45.16     3.143    6.9%
  181     40.98     0.385    0.9%
  184     48.27     0.104    0.2%
  187     46.91     3.042    6.4%
  190     48.39     0.307    0.6%
  193     48.91      0.62    1.2%
  196     42.45     1.418    3.3%
  199     50.28      5.06   10.0%

Quality and confidence:
param     error
c         0.001

Model:
Time ~=    31.55
    + c    0.078
              µs

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

Pallet: "pallet_elections_phragmen", Extrinsic: "renounce_candidacy_members", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Elections Members (r:1 w:1)
Storage: Elections RunnersUp (r:1 w:1)
Storage: Council Prime (r:1 w:1)
Storage: Council Proposals (r:1 w:0)
Storage: Council Members (r:0 w:1)

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

Model:
Time ~=    41.53
              µs

Reads = 4
Writes = 4

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

Model:
Time ~=    41.53
              µs

Reads = 4
Writes = 4

Pallet: "pallet_elections_phragmen", Extrinsic: "renounce_candidacy_runners_up", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Elections RunnersUp (r:1 w:1)

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

Model:
Time ~=    30.76
              µs

Reads = 1
Writes = 1

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

Model:
Time ~=    30.76
              µs

Reads = 1
Writes = 1

Pallet: "pallet_elections_phragmen", Extrinsic: "remove_member_without_replacement", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Benchmark Override (r:0 w:0)

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

Model:
Time ~=  2000000
              µs

Reads = 0
Writes = 0

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

Model:
Time ~=  2000000
              µs

Reads = 0
Writes = 0

Pallet: "pallet_elections_phragmen", Extrinsic: "remove_member_with_replacement", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Elections RunnersUp (r:1 w:1)
Storage: Elections Members (r:1 w:1)
Storage: System Account (r:1 w:1)
Storage: Council Prime (r:1 w:1)
Storage: Council Proposals (r:1 w:0)
Storage: Council Members (r:0 w:1)

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

Model:
Time ~=    48.28
              µs

Reads = 5
Writes = 5

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

Model:
Time ~=    48.28
              µs

Reads = 5
Writes = 5

Pallet: "pallet_elections_phragmen", Extrinsic: "remove_member_wrong_refund", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Elections RunnersUp (r:1 w:0)

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

Model:
Time ~=    4.747
              µs

Reads = 1
Writes = 0

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

Model:
Time ~=    4.747
              µs

Reads = 1
Writes = 0

Pallet: "pallet_elections_phragmen", Extrinsic: "clean_defunct_voters", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Elections Voting (r:251 w:250)
Storage: Elections Members (r:1 w:0)
Storage: Elections RunnersUp (r:1 w:0)
Storage: Elections Candidates (r:1 w:0)
Storage: Balances Locks (r:250 w:250)
Storage: System Account (r:250 w:250)

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

Model:
Time ~=        0
    + v    49.32
    + d    0.034
              µs

Reads = 4 + (3 * v) + (0 * d)
Writes = 0 + (3 * v) + (0 * d)

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

Data points distribution:
    v     d   mean µs  sigma µs       %
  250   250     11790      98.4    0.8%
  255   250     11970     37.47    0.3%
  260   250     12210        35    0.2%
  265   250     12450     59.05    0.4%
  270   250     12720     42.17    0.3%
  275   250     12890     24.83    0.1%
  280   250     13240     30.45    0.2%
  285   250     13470     39.68    0.2%
  290   250     13680     23.12    0.1%
  295   250     14030     33.35    0.2%
  300   250     14130     30.72    0.2%
  305   250     14400     27.86    0.1%
  310   250     14560     29.95    0.2%
  315   250     14890     33.34    0.2%
  320   250     15070     32.84    0.2%
  325   250     15410     59.98    0.3%
  330   250     15580     26.22    0.1%
  335   250     15910     19.69    0.1%
  340   250     16150     35.42    0.2%
  345   250     16390     28.46    0.1%
  350   250     16490     36.79    0.2%
  355   250     16810     32.57    0.1%
  360   250     17040     36.52    0.2%
  365   250     17280     57.23    0.3%
  370   250     17450     33.42    0.1%
  375   250     17880     40.98    0.2%
  380   250     18110     73.73    0.4%
  385   250     18160     27.63    0.1%
  390   250     18510     62.93    0.3%
  395   250     18760     41.15    0.2%
  400   250     19000     22.96    0.1%
  405   250     19260     33.59    0.1%
  410   250     19520     56.27    0.2%
  415   250     19830     40.94    0.2%
  420   250     20140     59.39    0.2%
  425   250     20390     35.69    0.1%
  430   250     20640      37.6    0.1%
  435   250     20760     53.78    0.2%
  440   250     21040     48.49    0.2%
  445   250     21320     57.09    0.2%
  450   250     21590     26.57    0.1%
  455   250     21830     26.46    0.1%
  460   250     22010     46.02    0.2%
  465   250     22350     82.05    0.3%
  470   250     22540     57.56    0.2%
  475   250     22780     56.91    0.2%
  480   250     23150     30.54    0.1%
  485   250     23310     43.62    0.1%
  490   250     23640     31.68    0.1%
  495   250     23850     80.17    0.3%
  500     1     24050     55.02    0.2%
  500     5     24010      28.5    0.1%
  500     9     24060     47.49    0.1%
  500    13     24030     51.35    0.2%
  500    17     24030     36.53    0.1%
  500    21     24050     59.91    0.2%
  500    25     24020     53.16    0.2%
  500    29     24090     78.61    0.3%
  500    33     24090     62.14    0.2%
  500    37     24050     36.28    0.1%
  500    41     24050     68.21    0.2%
  500    45     24180     73.97    0.3%
  500    49     24080     32.43    0.1%
  500    53     24090     73.63    0.3%
  500    57     24090     68.31    0.2%
  500    61     24040     42.75    0.1%
  500    65     24100     53.43    0.2%
  500    69     24040     57.68    0.2%
  500    73     24040     55.62    0.2%
  500    77     24080     34.94    0.1%
  500    81     24070     60.22    0.2%
  500    85     24090     62.12    0.2%
  500    89     24210     97.79    0.4%
  500    93     24100     99.15    0.4%
  500    97     24140     46.25    0.1%
  500   101     24060     61.54    0.2%
  500   105     24160     49.34    0.2%
  500   109     24020     36.36    0.1%
  500   113     24090     45.92    0.1%
  500   117     24010     19.39    0.0%
  500   121     24100     46.95    0.1%
  500   125     24090     45.61    0.1%
  500   129     24100        83    0.3%
  500   133     24090     56.75    0.2%
  500   137     24040     38.69    0.1%
  500   141     24080     56.55    0.2%
  500   145     24100     51.18    0.2%
  500   149     24100     47.69    0.1%
  500   153     24020     56.92    0.2%
  500   157     24010     58.23    0.2%
  500   161     24020     43.59    0.1%
  500   165     24150     56.86    0.2%
  500   169     24120      91.2    0.3%
  500   173     24030     65.21    0.2%
  500   177     24150     46.49    0.1%
  500   181     24110     81.05    0.3%
  500   185     24140     74.64    0.3%
  500   189     24050     47.32    0.1%
  500   193     24180     30.43    0.1%
  500   197     24020     54.46    0.2%
  500   201     24070     58.96    0.2%
  500   205     24130     79.36    0.3%
  500   209     24070     75.98    0.3%
  500   213     24010     66.52    0.2%
  500   217     24060     45.95    0.1%
  500   221     24000     53.51    0.2%
  500   225     24050     50.03    0.2%
  500   229     24110     68.79    0.2%
  500   233     24020     44.45    0.1%
  500   237     24070     37.45    0.1%
  500   241     24070     97.41    0.4%
  500   245     24120     34.55    0.1%
  500   249     24060     47.69    0.1%
  500   250     24080     58.98    0.2%

Quality and confidence:
param     error
v         0.037
d         0.035

Model:
Time ~=        0
    + v    49.56
    + d        0
              µs

Reads = 4 + (3 * v) + (0 * d)
Writes = 0 + (3 * v) + (0 * d)

Pallet: "pallet_elections_phragmen", Extrinsic: "election_phragmen", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Elections Candidates (r:1 w:1)
Storage: Elections Members (r:1 w:1)
Storage: Elections RunnersUp (r:1 w:1)
Storage: Elections Voting (r:502 w:0)
Storage: Council Proposals (r:1 w:0)
Storage: Elections ElectionRounds (r:1 w:1)
Storage: Council Members (r:0 w:1)
Storage: Council Prime (r:0 w:1)
Storage: System Account (r:2 w:2)

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

Model:
Time ~=        0
    + c    12.85
    + v    46.36
    + e    2.679
              µs

Reads = 0 + (2 * c) + (1 * v) + (0 * e)
Writes = 0 + (1 * c) + (0 * v) + (0 * e)

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

Data points distribution:
    c     v     e   mean µs  sigma µs       %
    1   500  8000      3301     17.78    0.5%
    4   500  8000      4614      21.3    0.4%
    7   500  8000      6727     24.04    0.3%
   10   500  8000      9935     36.91    0.3%
   13   500  8000     13580     51.61    0.3%
   16   500  8000     18230     115.1    0.6%
   19   500  8000     20340     65.02    0.3%
   22   500  8000     22110     87.64    0.3%
   25   500  8000     23180     43.52    0.1%
   28   500  8000     23820     59.62    0.2%
   31   500  8000     24120        32    0.1%
   34   500  8000     25640     63.41    0.2%
   37   500  8000     28090      58.4    0.2%
   40   500  8000     28360     96.24    0.3%
   43   500  8000     28640     78.33    0.2%
   46   500  8000     26160     51.72    0.1%
   49   500  8000     26750     72.52    0.2%
   52   500  8000     29680     61.45    0.2%
   55   500  8000     26680     62.54    0.2%
   58   500  8000     29690     93.93    0.3%
   61   500  8000     28270     23.61    0.0%
   64   500  8000     27900     50.15    0.1%
   67   500  8000     30520     36.61    0.1%
   70   500  8000     27770     97.26    0.3%
   73   500  8000     27880     40.57    0.1%
   76   500  8000     29850     43.49    0.1%
   79   500  8000     30100     45.06    0.1%
   82   500  8000     27500     49.42    0.1%
   85   500  8000     27880     57.93    0.2%
   88   500  8000     29870     90.47    0.3%
   91   500  8000     29470     37.62    0.1%
   94   500  8000     29790     80.96    0.2%
   97   500  8000     28760     60.32    0.2%
  100   500  8000     27090     67.36    0.2%
  103   500  8000     28760     84.02    0.2%
  106   500  8000     28980     76.16    0.2%
  109   500  8000     29300     70.37    0.2%
  112   500  8000     29800     88.39    0.2%
  115   500  8000     29210     66.04    0.2%
  118   500  8000     30120     50.46    0.1%
  121   500  8000     28700     51.25    0.1%
  124   500  8000     27120     66.37    0.2%
  127   500  8000     26930     71.86    0.2%
  130   500  8000     28600     74.39    0.2%
  133   500  8000     28650     59.04    0.2%
  136   500  8000     28910     66.72    0.2%
  139   500  8000     29270      70.7    0.2%
  142   500  8000     28910     51.26    0.1%
  145   500  8000     28630     50.85    0.1%
  148   500  8000     29060     68.47    0.2%
  151   500  8000     28790     77.56    0.2%
  154   500  8000     28600     50.47    0.1%
  157   500  8000     28810     67.24    0.2%
  160   500  8000     28440      37.9    0.1%
  163   500  8000     27130     59.51    0.2%
  166   500  8000     26200     92.04    0.3%
  169   500  8000     26540      35.3    0.1%
  172   500  8000     27630      75.8    0.2%
  175   500  8000     27780     53.58    0.1%
  178   500  8000     27800        75    0.2%
  181   500  8000     27720     38.24    0.1%
  184   500  8000     28180     72.03    0.2%
  187   500  8000     27590      67.3    0.2%
  190   500  8000     27570     79.25    0.2%
  193   500  8000     27200      63.6    0.2%
  196   500  8000     27700     95.98    0.3%
  199   500  8000     28050     60.81    0.2%
  200     1  8000      3748     5.467    0.1%
  200    10  8000      4213     26.12    0.6%
  200    19  8000      4803     16.99    0.3%
  200    28  8000      5393     14.24    0.2%
  200    37  8000      5981     12.87    0.2%
  200    46  8000      6482     20.57    0.3%
  200    55  8000      6903     20.94    0.3%
  200    64  8000      7445     26.68    0.3%
  200    73  8000      7932     24.74    0.3%
  200    82  8000      8290     22.03    0.2%
  200    91  8000      8792      31.1    0.3%
  200   100  8000      9103     12.81    0.1%
  200   109  8000      9522     27.98    0.2%
  200   118  8000      9829     35.21    0.3%
  200   127  8000     10300     33.41    0.3%
  200   136  8000     10700     36.56    0.3%
  200   145  8000     11040     14.25    0.1%
  200   154  8000     11330     20.12    0.1%
  200   163  8000     11680     25.81    0.2%
  200   172  8000     11980     28.59    0.2%
  200   181  8000     12370     40.22    0.3%
  200   190  8000     12430      28.8    0.2%
  200   199  8000     12550     42.32    0.3%
  200   208  8000     13060     23.24    0.1%
  200   217  8000     14020     41.72    0.2%
  200   226  8000     14490     28.84    0.1%
  200   235  8000     15180     41.65    0.2%
  200   244  8000     15290     31.45    0.2%
  200   253  8000     15640     38.31    0.2%
  200   262  8000     16280     38.03    0.2%
  200   271  8000     16600     33.52    0.2%
  200   280  8000     16620     19.98    0.1%
  200   289  8000     17410     50.56    0.2%
  200   298  8000     18040     54.15    0.3%
  200   307  8000     18280     47.99    0.2%
  200   316  8000     18880     67.94    0.3%
  200   325  8000     19120     54.26    0.2%
  200   334  8000     19410     37.12    0.1%
  200   343  8000     19840     38.77    0.1%
  200   352  8000     20240     44.31    0.2%
  200   361  8000     20240     57.31    0.2%
  200   370  8000     21100     27.71    0.1%
  200   379  8000     21420       116    0.5%
  200   388  8000     21380     74.58    0.3%
  200   397  8000     21810     72.17    0.3%
  200   406  8000     21690     47.25    0.2%
  200   415  8000     23000     51.58    0.2%
  200   424  8000     24270     57.62    0.2%
  200   433  8000     24560      91.2    0.3%
  200   442  8000     24960     92.03    0.3%
  200   451  8000     25580     71.93    0.2%
  200   460  8000     25950      58.1    0.2%
  200   469  8000     26230     70.99    0.2%
  200   478  8000     26670     67.26    0.2%
  200   487  8000     27100     68.06    0.2%
  200   496  8000     27470     106.8    0.3%
  200   500   500      7070     26.09    0.3%
  200   500   650      7116     29.84    0.4%
  200   500   800      7084     20.82    0.2%
  200   500   950      7096     33.29    0.4%
  200   500  1100      7633     28.76    0.3%
  200   500  1250      7575     27.94    0.3%
  200   500  1400      7614     31.54    0.4%
  200   500  1550      8347     24.87    0.2%
  200   500  1700      8385     29.05    0.3%
  200   500  1850      8329      30.1    0.3%
  200   500  2000      9061      49.5    0.5%
  200   500  2150      9044     28.85    0.3%
  200   500  2300      9032     34.27    0.3%
  200   500  2450      9044     50.78    0.5%
  200   500  2600     10140     40.43    0.3%
  200   500  2750     10100     52.31    0.5%
  200   500  2900     10140     41.95    0.4%
  200   500  3050     11150     49.79    0.4%
  200   500  3200     11160      75.3    0.6%
  200   500  3350     10990     63.16    0.5%
  200   500  3500     12300     39.27    0.3%
  200   500  3650     12340     59.96    0.4%
  200   500  3800     12280     72.02    0.5%
  200   500  3950     12360     53.59    0.4%
  200   500  4100     13620     42.11    0.3%
  200   500  4250     13700     51.45    0.3%
  200   500  4400     13670     30.62    0.2%
  200   500  4550     15110     18.59    0.1%
  200   500  4700     15140     36.35    0.2%
  200   500  4850     15200     46.56    0.3%
  200   500  5000     16700      36.1    0.2%
  200   500  5150     16700      36.1    0.2%
  200   500  5300     16650     38.82    0.2%
  200   500  5450     16680     45.06    0.2%
  200   500  5600     18210     57.69    0.3%
  200   500  5750     18310     33.45    0.1%
  200   500  5900     18280     33.81    0.1%
  200   500  6050     19970     44.19    0.2%
  200   500  6200     19980     52.94    0.2%
  200   500  6350     20050     35.77    0.1%
  200   500  6500     21770     52.17    0.2%
  200   500  6650     21710     49.64    0.2%
  200   500  6800     21710     27.88    0.1%
  200   500  6950     21690     71.47    0.3%
  200   500  7100     23590     73.81    0.3%
  200   500  7250     23530      28.3    0.1%
  200   500  7400     23620     82.78    0.3%
  200   500  7550     25610     47.51    0.1%
  200   500  7700     25640     65.23    0.2%
  200   500  7850     25600     55.15    0.2%
  200   500  8000     28060     90.04    0.3%

Quality and confidence:
param     error
c         1.656
v         0.689
e         0.047

Model:
Time ~=        0
    + c    29.01
    + v     49.2
    + e    3.352
              µs

Reads = 0 + (2 * c) + (1 * v) + (0 * e)
Writes = 0 + (1 * c) + (0 * v) + (0 * e)


…--manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_elections_phragmen --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/elections-phragmen/src/weights.rs --template=./.maintain/frame-weight-template.hbs
@ggwpez ggwpez added A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit C1-low PR touches the given topic and has a low impact on builders. and removed A3-in_progress Pull request is in progress. No review needed at this stage. labels Mar 30, 2022
Copy link
Contributor

@kianenigma kianenigma left a comment

Choose a reason for hiding this comment

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

Thanks!

@ggwpez
Copy link
Member Author

ggwpez commented Mar 30, 2022

bot merge

@paritytech-processbot paritytech-processbot bot merged commit f2d3494 into master Mar 30, 2022
@paritytech-processbot paritytech-processbot bot deleted the oty-phragmen-bench branch March 30, 2022 18:16
DaviRain-Su pushed a commit to octopus-network/substrate that referenced this pull request Aug 23, 2022
* Fix phragmen benchmark

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_elections_phragmen --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/elections-phragmen/src/weights.rs --template=./.maintain/frame-weight-template.hbs

Co-authored-by: Parity Bot <[email protected]>
ark0f pushed a commit to gear-tech/substrate that referenced this pull request Feb 27, 2023
* Fix phragmen benchmark

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_elections_phragmen --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/elections-phragmen/src/weights.rs --template=./.maintain/frame-weight-template.hbs

Co-authored-by: Parity Bot <[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. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix benchmark regression in pallet_elections_phragmen

3 participants