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

Conversation

@athei
Copy link
Member

@athei athei commented Feb 4, 2022

Fixes #9066

  • Fix a benchmark bug where the weight for copying back the output buffer on call and instantiate was counted double.
  • Charge a surcharge when using SEAL_CLONE_INPUT vs SEAL_FORWARD_INPUT based on the cloned input.
  • Charge a surcharge for instantiate only when balanced is transferred (it is now optional to transfer balance).
  • Reduce the number of benchmark components for trivial cases (where we just copy).

Drive by fixes (in separate commits):

  • Remove stale and superfluous comments describing return types
  • decrement_refcount should be infallible
  • Refcount functions shouldn't be directly exposed to exec.rs (introduces by set_call PR)

@athei athei added A3-in_progress Pull request is in progress. No review needed at this stage. 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. D2-notlive 💤 PR contains changes in a runtime directory that is not deployed to a chain that requires an audit. labels Feb 4, 2022
@athei
Copy link
Member Author

athei commented Feb 4, 2022

/benchmark runtime pallet pallet_contracts

@parity-benchapp
Copy link

parity-benchapp bot commented Feb 4, 2022

Benchmark Runtime Pallet for branch "at-call-weights" 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_contracts --extrinsic="*" --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/contracts/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_contracts", Extrinsic: "on_initialize", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Contracts DeletionQueue (r:1 w:0)

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

Model:
Time ~=    1.646
              µs

Reads = 1
Writes = 0

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

Model:
Time ~=    1.646
              µs

Reads = 1
Writes = 0

Pallet: "pallet_contracts", Extrinsic: "on_initialize_per_trie_key", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Skipped Metadata (r:0 w:0)

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

Model:
Time ~=     6.87
    + k    0.745
              µs

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

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

Data points distribution:
    k   mean µs  sigma µs       %
    0     9.936     0.067    0.6%
   20     26.18     0.134    0.5%
   40     39.58     0.178    0.4%
   60     52.44     0.273    0.5%
   80     64.23     0.268    0.4%
  100      79.3     0.324    0.4%
  120     92.45     0.315    0.3%
  140     108.5     0.469    0.4%
  160       122     0.341    0.2%
  180     137.3     0.647    0.4%
  200     150.6     0.441    0.2%
  220     166.2     0.533    0.3%
  240     182.8     0.591    0.3%
  260     196.7     0.831    0.4%
  280     212.8     1.264    0.5%
  300       229     1.104    0.4%
  320     250.8     5.955    2.3%
  340     258.4      0.82    0.3%
  360     274.5     0.642    0.2%
  380     291.8     0.865    0.2%
  400     308.7     1.498    0.4%
  420     321.4     0.807    0.2%
  440     337.4     0.788    0.2%
  460     354.8     2.369    0.6%
  480     367.5     1.227    0.3%
  500     383.1     1.097    0.2%
  520     398.9     0.852    0.2%
  540     412.3     2.105    0.5%
  560     425.6     1.421    0.3%
  580     442.9     1.713    0.3%
  600     458.7     1.829    0.3%
  620     469.9     1.446    0.3%
  640     486.1     4.077    0.8%
  660     498.4     1.242    0.2%
  680     516.6      1.31    0.2%
  700     527.9     1.177    0.2%
  720     543.5     2.484    0.4%
  740     559.1     1.902    0.3%
  760     577.1     4.803    0.8%
  780     590.1      5.01    0.8%
  800     600.9     0.836    0.1%
  820     618.4     2.676    0.4%
  840     636.9     3.597    0.5%
  860       648     2.351    0.3%
  880     664.9     2.785    0.4%
  900     675.6     1.194    0.1%
  920     687.6      1.86    0.2%
  940     700.3     1.995    0.2%
  960     716.3     2.175    0.3%
  980     731.3     3.182    0.4%
 1000     753.6      10.4    1.3%
 1020     764.6     6.473    0.8%

Quality and confidence:
param     error
k             0

Model:
Time ~=     7.11
    + k    0.745
              µs

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

Pallet: "pallet_contracts", Extrinsic: "on_initialize_per_queue_item", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Contracts DeletionQueue (r:1 w:0)

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

Model:
Time ~=     12.9
    + q    2.253
              µs

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

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

Data points distribution:
    q   mean µs  sigma µs       %
    0     1.619     0.014    0.8%
   20     57.13     0.215    0.3%
   40     103.1     0.307    0.2%
   60     153.1     0.967    0.6%
   80     194.6     1.631    0.8%
  100     233.7     0.813    0.3%
  120     295.5     1.761    0.5%
  140     336.9     1.505    0.4%
  160     378.8     2.629    0.6%
  180     421.4     4.185    0.9%
  200       465     2.879    0.6%
  220     506.5     4.761    0.9%
  240     565.9     4.742    0.8%
  260     617.9     10.61    1.7%
  280     664.1      8.62    1.2%
  300     688.9     3.056    0.4%
  320     734.1     4.048    0.5%
  340     770.7     4.904    0.6%
  360     818.5     5.789    0.7%
  380     849.8     3.914    0.4%
  400     915.8     6.808    0.7%
  420       981     13.09    1.3%
  440      1018     8.402    0.8%
  460      1037     10.46    1.0%
  480      1079     6.675    0.6%
  500      1153     11.09    0.9%
  520      1172     11.95    1.0%
  540      1231     9.071    0.7%
  560      1261     4.399    0.3%
  580      1321     10.18    0.7%
  600      1311     7.552    0.5%
  620      1382     23.19    1.6%
  640      1405       5.8    0.4%
  660      1438     12.05    0.8%
  680      1518     7.363    0.4%
  700      1575     12.23    0.7%
  720      1631      4.37    0.2%
  740      1674     15.84    0.9%
  760      1700      13.7    0.8%
  780      1760     16.37    0.9%
  800      1817     9.671    0.5%
  820      1846     11.18    0.6%
  840      1916     15.71    0.8%
  860      1934     19.79    1.0%
  880      1997     13.83    0.6%
  900      2094     13.68    0.6%
  920      2164     17.99    0.8%
  940      2203     11.89    0.5%
  960      2146     9.186    0.4%
  980      2269     16.89    0.7%
 1000      2238     8.306    0.3%
 1020      2436     24.81    1.0%

Quality and confidence:
param     error
q         0.004

Model:
Time ~=    5.464
    + q     2.27
              µs

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

Pallet: "pallet_contracts", Extrinsic: "reinstrument", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Contracts PristineCode (r:1 w:0)
Storage: Contracts CodeStorage (r:0 w:1)

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

Model:
Time ~=    23.82
    + c    65.16
              µs

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

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

Data points distribution:
    c   mean µs  sigma µs       %
    0     25.81     0.152    0.5%
    2     158.6     0.488    0.3%
    4     284.8     0.364    0.1%
    6     411.4     4.714    1.1%
    8     540.1     0.824    0.1%
   10     678.2     16.92    2.4%
   12     800.9     13.43    1.6%
   14     945.4     15.28    1.6%
   16      1082     15.54    1.4%
   18      1198     15.05    1.2%
   20      1313     11.81    0.8%
   22      1441     12.47    0.8%
   24      1568     14.14    0.9%
   26      1736     14.16    0.8%
   28      1844     9.712    0.5%
   30      1985     12.33    0.6%
   32      2114     10.57    0.5%
   34      2249     11.28    0.5%
   36      2372     12.08    0.5%
   38      2489      12.1    0.4%
   40      2618        13    0.4%
   42      2731     13.91    0.5%
   44      2871     9.136    0.3%
   46      2999     17.91    0.5%
   48      3125     6.096    0.1%
   50      3298     5.793    0.1%
   52      3421     17.21    0.5%
   54      3552     17.35    0.4%
   56      3677      18.4    0.5%
   58      3814     14.39    0.3%
   60      3945     18.61    0.4%
   62      4062      16.4    0.4%
   64      4166     12.15    0.2%
   66      4337      15.7    0.3%
   68      4478     15.05    0.3%
   70      4599     14.77    0.3%
   72      4724     24.16    0.5%
   74      4818     8.874    0.1%
   76      4958     18.79    0.3%
   78      5074     13.99    0.2%
   80      5209     18.08    0.3%
   82      5339     19.38    0.3%
   84      5463     10.32    0.1%
   86      5568     23.82    0.4%
   88      5712     14.82    0.2%
   90      5866     10.21    0.1%
   92      5968     13.16    0.2%
   94      6087     12.26    0.2%
   96      6217     17.36    0.2%
   98      6459     18.02    0.2%
  100      6588     15.86    0.2%
  102      6705     15.09    0.2%
  104      6834     31.49    0.4%
  106      6941     8.626    0.1%
  108      7090     28.48    0.4%
  110      7243     30.77    0.4%
  112      7356     29.06    0.3%
  114      7473     18.15    0.2%
  116      7614        38    0.4%
  118      7732     21.18    0.2%
  120      7860     22.49    0.2%
  122      7982     12.22    0.1%
  124      8105     24.11    0.2%
  126      8245     18.53    0.2%
  128      8368     32.09    0.3%

Quality and confidence:
param     error
c         0.031

Model:
Time ~=    16.43
    + c    65.26
              µs

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

Pallet: "pallet_contracts", Extrinsic: "call_with_code_kb", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Contracts ContractInfoOf (r:1 w:1)
Storage: Contracts CodeStorage (r:1 w:0)
Storage: Timestamp Now (r:1 w:0)
Storage: System Account (r:1 w:1)

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

Model:
Time ~=    219.7
    + c    56.52
              µs

Reads = 4 + (0 * c)
Writes = 2 + (0 * c)

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

Data points distribution:
    c   mean µs  sigma µs       %
    0     227.7     0.478    0.2%
    2     339.6     0.354    0.1%
    4     453.1     0.502    0.1%
    6     561.5     4.719    0.8%
    8       674     1.242    0.1%
   10     788.6     11.59    1.4%
   12     898.7     11.44    1.2%
   14      1016     5.155    0.5%
   16      1129      10.9    0.9%
   18      1230     10.48    0.8%
   20      1331     1.889    0.1%
   22      1443     9.581    0.6%
   24      1560     13.91    0.8%
   26      1717     14.75    0.8%
   28      1814     12.69    0.6%
   30      1913     12.92    0.6%
   32      2028     11.14    0.5%
   34      2141        13    0.6%
   36      2239     14.45    0.6%
   38      2351     10.04    0.4%
   40      2459     17.14    0.6%
   42      2564     12.08    0.4%
   44      2675     14.72    0.5%
   46      2771     12.07    0.4%
   48      2914     16.69    0.5%
   50      3076     12.65    0.4%
   52      3183     8.502    0.2%
   54      3299     11.51    0.3%
   56      3406     15.23    0.4%
   58      3493     7.051    0.2%
   60      3614     12.91    0.3%
   62      3719     14.67    0.3%
   64      3820     10.86    0.2%
   66      3956     23.75    0.6%
   68      4065     18.74    0.4%
   70      4166     11.91    0.2%
   72      4271     14.75    0.3%
   74      4362     14.41    0.3%
   76      4490     13.98    0.3%
   78      4592        13    0.2%
   80      4691     10.37    0.2%
   82      4793     11.15    0.2%
   84      4894     10.38    0.2%
   86      5023     27.41    0.5%
   88      5121     12.88    0.2%
   90      5226     18.11    0.3%
   92      5331     10.37    0.1%
   94      5431     18.62    0.3%
   96      5546     12.56    0.2%
   98      5837     11.63    0.1%
  100      5948     15.69    0.2%
  102      6052     19.42    0.3%
  104      6159     25.77    0.4%
  106      6250     13.41    0.2%
  108      6375     22.26    0.3%
  110      6479     17.92    0.2%
  112      6587     18.24    0.2%
  114      6702     35.34    0.5%
  116      6801     12.38    0.1%
  118      6944     34.36    0.4%
  120      7005     14.77    0.2%
  122      7131     22.68    0.3%
  124      7223      18.7    0.2%
  126      7339     20.57    0.2%
  128      7448     15.42    0.2%

Quality and confidence:
param     error
c         0.044

Model:
Time ~=    209.8
    + c     56.6
              µs

Reads = 4 + (0 * c)
Writes = 2 + (0 * c)

Pallet: "pallet_contracts", Extrinsic: "instantiate_with_code", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Contracts CodeStorage (r:1 w:1)
Storage: Contracts AccountCounter (r:1 w:1)
Storage: Contracts ContractInfoOf (r:1 w:1)
Storage: Timestamp Now (r:1 w:0)
Storage: System Account (r:1 w:1)
Storage: Contracts PristineCode (r:0 w:1)
Storage: Contracts OwnerInfoOf (r:0 w:1)

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

Model:
Time ~=    266.5
    + c    144.5
    + s    1.759
              µs

Reads = 5 + (0 * c) + (0 * s)
Writes = 6 + (0 * c) + (0 * s)

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

Data points distribution:
    c     s   mean µs  sigma µs       %
    0  1024      2064     15.62    0.7%
    1  1024      2219     13.32    0.6%
    2  1024      2446     6.983    0.2%
    3  1024      2479     11.05    0.4%
    4  1024      2736     8.063    0.2%
    5  1024      2950     5.131    0.1%
    6  1024      2929     9.377    0.3%
    7  1024      3084        14    0.4%
    8  1024      3231     23.05    0.7%
    9  1024      3206     12.68    0.3%
   10  1024      3514     11.44    0.3%
   11  1024      3661     14.43    0.3%
   12  1024      3636     15.99    0.4%
   13  1024      3951     16.24    0.4%
   14  1024      4109     26.35    0.6%
   15  1024      4084     16.87    0.4%
   16  1024      4481     19.41    0.4%
   17  1024      4546     16.05    0.3%
   18  1024      4547     18.98    0.4%
   19  1024      4830     14.51    0.3%
   20  1024      4966      13.5    0.2%
   21  1024      4946     16.06    0.3%
   22  1024      5260     25.86    0.4%
   23  1024      5404     26.49    0.4%
   24  1024      5377     15.74    0.2%
   25  1024      5712     13.16    0.2%
   26  1024      5864      26.5    0.4%
   27  1024      5823     17.95    0.3%
   28  1024      6119      19.7    0.3%
   29  1024      6280     20.04    0.3%
   30  1024      6235     21.16    0.3%
   31  1024      6549      14.3    0.2%
   32  1024      6686     9.511    0.1%
   33  1024      6745     17.36    0.2%
   34  1024      7033     29.58    0.4%
   35  1024      7166     15.75    0.2%
   36  1024      7168     23.83    0.3%
   37  1024      7442      20.1    0.2%
   38  1024      7563     20.41    0.2%
   39  1024      7581     21.88    0.2%
   40  1024      7856     32.77    0.4%
   41  1024      8027     36.98    0.4%
   42  1024      7987     34.83    0.4%
   43  1024      8343     30.25    0.3%
   44  1024      8447      35.5    0.4%
   45  1024      8401     30.48    0.3%
   46  1024      8743     36.13    0.4%
   47  1024      8848     32.77    0.3%
   48  1024      8823     21.19    0.2%
   49  1024      9229     25.72    0.2%
   50  1024      9363     34.05    0.3%
   51  1024      9352     23.85    0.2%
   52  1024      9631     11.64    0.1%
   53  1024      9778     20.45    0.2%
   54  1024      9806     42.39    0.4%
   55  1024     10080     22.93    0.2%
   56  1024     10200     49.02    0.4%
   57  1024     10190      36.1    0.3%
   58  1024     10470     32.55    0.3%
   59  1024     10610     34.22    0.3%
   60  1024     10590      31.5    0.2%
   61  1024     10880     16.97    0.1%
   62     0      9215     16.78    0.1%
   62    20      9260     25.12    0.2%
   62    40      9325     34.46    0.3%
   62    60      9351     45.58    0.4%
   62    80      9371     31.96    0.3%
   62   100      9423     19.91    0.2%
   62   120      9434     23.37    0.2%
   62   140      9469     22.07    0.2%
   62   160      9500     18.06    0.1%
   62   180      9624     76.22    0.7%
   62   200      9605        32    0.3%
   62   220      9630     39.27    0.4%
   62   240      9653     21.49    0.2%
   62   260      9716     30.73    0.3%
   62   280      9718     23.77    0.2%
   62   300      9794     46.74    0.4%
   62   320      9800     33.59    0.3%
   62   340      9826     30.86    0.3%
   62   360      9851     27.69    0.2%
   62   380      9908     39.09    0.3%
   62   400      9944     17.78    0.1%
   62   420      9971     37.98    0.3%
   62   440      9994     24.91    0.2%
   62   460     10070     35.02    0.3%
   62   480     10080     18.57    0.1%
   62   500     10120     42.28    0.4%
   62   520     10150     23.13    0.2%
   62   540     10180     16.71    0.1%
   62   560     10230     26.88    0.2%
   62   580     10260      27.6    0.2%
   62   600     10270      24.1    0.2%
   62   620     10300     32.23    0.3%
   62   640     10330     26.82    0.2%
   62   660     10390     30.29    0.2%
   62   680     10440     40.48    0.3%
   62   700     10450     13.08    0.1%
   62   720     10500     37.06    0.3%
   62   740     10540      39.9    0.3%
   62   760     10650     67.47    0.6%
   62   780     10630     39.13    0.3%
   62   800     10640     44.01    0.4%
   62   820     10670      25.9    0.2%
   62   840     10700     27.86    0.2%
   62   860     10730     34.93    0.3%
   62   880     10800     20.99    0.1%
   62   900     10820     32.35    0.2%
   62   920     10850     22.24    0.2%
   62   940     10910     58.08    0.5%
   62   960     10950     42.99    0.3%
   62   980     10930     19.79    0.1%
   62  1000     10990      39.1    0.3%
   62  1020     11020      20.6    0.1%
   62  1024     11050     27.32    0.2%

Quality and confidence:
param     error
c         0.124
s         0.007

Model:
Time ~=    277.4
    + c    144.7
    + s     1.73
              µs

Reads = 5 + (0 * c) + (0 * s)
Writes = 6 + (0 * c) + (0 * s)

Pallet: "pallet_contracts", Extrinsic: "instantiate", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Contracts CodeStorage (r:1 w:1)
Storage: Contracts AccountCounter (r:1 w:1)
Storage: Contracts ContractInfoOf (r:1 w:1)
Storage: Timestamp Now (r:1 w:0)
Storage: System Account (r:1 w:1)
Storage: Contracts OwnerInfoOf (r:1 w:1)

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

Model:
Time ~=    169.8
    + s    1.704
              µs

Reads = 6 + (0 * s)
Writes = 5 + (0 * s)

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

Data points distribution:
    s   mean µs  sigma µs       %
    0     168.4     0.189    0.1%
   20     203.2       0.3    0.1%
   40     238.1     0.333    0.1%
   60     276.8     4.001    1.4%
   80     306.3     0.174    0.0%
  100     340.3     0.256    0.0%
  120     376.8     5.459    1.4%
  140     408.5     0.534    0.1%
  160     442.2     0.541    0.1%
  180     476.9     0.438    0.0%
  200     515.2     8.108    1.5%
  220     552.3     13.58    2.4%
  240     584.2     6.336    1.0%
  260       621     11.47    1.8%
  280     649.6     8.102    1.2%
  300     680.3     0.472    0.0%
  320     716.7     7.333    1.0%
  340     752.2     9.427    1.2%
  360     788.9     13.99    1.7%
  380     824.4     12.85    1.5%
  400       866     13.87    1.6%
  420     903.8     11.64    1.2%
  440     923.7     13.34    1.4%
  460     961.5     14.09    1.4%
  480      1000     16.28    1.6%
  500      1020     1.049    0.1%
  520      1063     14.34    1.3%
  540      1095     13.02    1.1%
  560      1128     14.08    1.2%
  580      1156     4.312    0.3%
  600      1203     15.55    1.2%
  620      1225      10.6    0.8%
  640      1280     16.18    1.2%
  660      1305     14.57    1.1%
  680      1348     13.26    0.9%
  700      1377     14.85    1.0%
  720      1401     12.02    0.8%
  740      1445     16.61    1.1%
  760      1481     16.64    1.1%
  780      1507     12.44    0.8%
  800      1546      14.7    0.9%
  820      1582     16.72    1.0%
  840      1612     14.13    0.8%
  860      1648     13.26    0.8%
  880      1678     12.85    0.7%
  900      1708     10.82    0.6%
  920      1740     8.693    0.4%
  940      1786     14.84    0.8%
  960      1817     14.98    0.8%
  980      1854     15.82    0.8%
 1000      1893     15.03    0.7%
 1020      1916     14.23    0.7%

Quality and confidence:
param     error
s         0.001

Model:
Time ~=    170.4
    + s    1.717
              µs

Reads = 6 + (0 * s)
Writes = 5 + (0 * s)

Pallet: "pallet_contracts", Extrinsic: "call", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Contracts ContractInfoOf (r:1 w:1)
Storage: Contracts CodeStorage (r:1 w:0)
Storage: Timestamp Now (r:1 w:0)
Storage: System Account (r:1 w:1)

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

Model:
Time ~=    137.9
              µs

Reads = 4
Writes = 2

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

Model:
Time ~=    137.9
              µs

Reads = 4
Writes = 2

Pallet: "pallet_contracts", Extrinsic: "upload_code", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Contracts CodeStorage (r:1 w:1)
Storage: Contracts PristineCode (r:0 w:1)
Storage: Contracts OwnerInfoOf (r:0 w:1)

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

Model:
Time ~=    49.32
    + c    66.48
              µs

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

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

Data points distribution:
    c   mean µs  sigma µs       %
    0     48.93     0.223    0.4%
    1     117.9     1.263    1.0%
    2       186     1.305    0.7%
    3     247.3     0.536    0.2%
    4       315     0.561    0.1%
    5       380     0.959    0.2%
    6       443     0.379    0.0%
    7     520.2     13.26    2.5%
    8     580.8     7.397    1.2%
    9       648     9.165    1.4%
   10     708.9     0.993    0.1%
   11     776.8     11.23    1.4%
   12     841.7      14.1    1.6%
   13     919.8     9.862    1.0%
   14     983.3     10.43    1.0%
   15      1050     12.91    1.2%
   16      1115     14.08    1.2%
   17      1175     12.54    1.0%
   18      1244     13.16    1.0%
   19      1305     13.52    1.0%
   20      1369     15.43    1.1%
   21      1444     14.73    1.0%
   22      1489     9.869    0.6%
   23      1563     15.53    0.9%
   24      1622     12.25    0.7%
   25      1727     13.33    0.7%
   26      1787     14.91    0.8%
   27      1859     8.804    0.4%
   28      1908     17.97    0.9%
   29      1992     3.869    0.1%
   30      2044     16.73    0.8%
   31      2101     10.78    0.5%
   32      2183     12.85    0.5%
   33      2248     9.722    0.4%
   34      2348     3.261    0.1%
   35      2383      13.9    0.5%
   36      2440     8.131    0.3%
   37      2497      14.4    0.5%
   38      2575     18.93    0.7%
   39      2639     9.131    0.3%
   40      2703     6.457    0.2%
   41      2754     7.954    0.2%
   42      2895     23.69    0.8%
   43      2886     6.051    0.2%
   44      2956     12.86    0.4%
   45      3023     8.029    0.2%
   46      3065     10.13    0.3%
   47      3136     13.51    0.4%
   48      3192     16.15    0.5%
   49      3324     10.06    0.3%
   50      3396     10.36    0.3%
   51      3461     3.319    0.0%
   52      3589     6.581    0.1%
   53      3646     6.318    0.1%
   54      3699     19.49    0.5%
   55      3723     9.502    0.2%
   56      3782     16.98    0.4%
   57      3840     15.54    0.4%
   58      3913     21.12    0.5%
   59      3975     14.89    0.3%
   60      4049     10.59    0.2%
   61      4117     14.39    0.3%
   62      4209     37.94    0.9%
   63      4221     13.19    0.3%
   64      4300     18.94    0.4%

Quality and confidence:
param     error
c         0.053

Model:
Time ~=    44.07
    + c    66.75
              µs

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

Pallet: "pallet_contracts", Extrinsic: "remove_code", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Contracts OwnerInfoOf (r:1 w:1)
Storage: Contracts CodeStorage (r:0 w:1)
Storage: Contracts PristineCode (r:0 w:1)

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

Model:
Time ~=    24.26
              µs

Reads = 1
Writes = 3

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

Model:
Time ~=    24.26
              µs

Reads = 1
Writes = 3

Pallet: "pallet_contracts", Extrinsic: "seal_caller", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: System Account (r:1 w:0)
Storage: Contracts ContractInfoOf (r:1 w:1)
Storage: Contracts CodeStorage (r:1 w:0)
Storage: Timestamp Now (r:1 w:0)

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

Model:
Time ~=    216.4
    + r    47.98
              µs

Reads = 4 + (0 * r)
Writes = 1 + (0 * r)

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

Data points distribution:
    r   mean µs  sigma µs       %
    0     213.5     0.319    0.1%
    1     263.8     0.325    0.1%
    2     313.9     0.628    0.2%
    3     361.4     1.481    0.4%
    4     410.1     1.707    0.4%
    5     456.1     1.115    0.2%
    6     503.8     2.611    0.5%
    7     552.5     0.817    0.1%
    8     600.8     0.415    0.0%
    9     655.1     10.72    1.6%
   10     702.2     10.32    1.4%
   11     743.8     8.287    1.1%
   12     796.6     12.03    1.5%
   13     839.4     7.962    0.9%
   14     887.8     1.707    0.1%
   15     937.1     6.539    0.6%
   16     993.7     9.605    0.9%
   17      1033     5.498    0.5%
   18      1094     10.36    0.9%
   19      1133     12.82    1.1%
   20      1181     13.69    1.1%

Quality and confidence:
param     error
r         0.092

Model:
Time ~=    215.2
    + r    48.35
              µs

Reads = 4 + (0 * r)
Writes = 1 + (0 * r)

Pallet: "pallet_contracts", Extrinsic: "seal_address", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: System Account (r:1 w:0)
Storage: Contracts ContractInfoOf (r:1 w:1)
Storage: Contracts CodeStorage (r:1 w:0)
Storage: Timestamp Now (r:1 w:0)

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

Model:
Time ~=    217.2
    + r    48.27
              µs

Reads = 4 + (0 * r)
Writes = 1 + (0 * r)

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

Data points distribution:
    r   mean µs  sigma µs       %
    0     213.2     0.288    0.1%
    1     264.8     0.266    0.1%
    2     314.1     0.413    0.1%
    3     361.6     0.462    0.1%
    4     411.5     2.592    0.6%
    5     467.7     1.628    0.3%
    6     505.6     0.871    0.1%
    7     555.5     0.581    0.1%
    8       619     6.904    1.1%
    9     652.9     2.939    0.4%
   10       709     12.05    1.6%
   11       758     12.25    1.6%
   12       796      9.77    1.2%
   13     842.9     5.203    0.6%
   14     894.3     1.467    0.1%
   15       947      7.97    0.8%
   16     991.1     9.084    0.9%
   17      1049     13.14    1.2%
   18      1090     12.38    1.1%
   19      1137     13.31    1.1%
   20      1184      7.58    0.6%

Quality and confidence:
param     error
r         0.102

Model:
Time ~=    218.2
    + r    48.49
              µs

Reads = 4 + (0 * r)
Writes = 1 + (0 * r)

Pallet: "pallet_contracts", Extrinsic: "seal_gas_left", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: System Account (r:1 w:0)
Storage: Contracts ContractInfoOf (r:1 w:1)
Storage: Contracts CodeStorage (r:1 w:0)
Storage: Timestamp Now (r:1 w:0)

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

Model:
Time ~=    217.6
    + r    47.55
              µs

Reads = 4 + (0 * r)
Writes = 1 + (0 * r)

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

Data points distribution:
    r   mean µs  sigma µs       %
    0     214.7     2.038    0.9%
    1     263.8     0.212    0.0%
    2     313.6     0.612    0.1%
    3     364.3     4.997    1.3%
    4     409.1      0.32    0.0%
    5     456.1     0.791    0.1%
    6     502.5     1.296    0.2%
    7     554.7      8.23    1.4%
    8     600.6     4.416    0.7%
    9     645.7     2.961    0.4%
   10     693.2     6.449    0.9%
   11     740.4     5.382    0.7%
   12     790.9     9.996    1.2%
   13     831.6     1.791    0.2%
   14     886.4     1.566    0.1%
   15     938.9     8.972    0.9%
   16     983.9     7.355    0.7%
   17      1030     8.361    0.8%
   18      1078     10.98    1.0%
   19      1121     8.059    0.7%
   20      1168     9.415    0.8%

Quality and confidence:
param     error
r         0.076

Model:
Time ~=    217.6
    + r    47.71
              µs

Reads = 4 + (0 * r)
Writes = 1 + (0 * r)

Pallet: "pallet_contracts", Extrinsic: "seal_balance", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: System Account (r:1 w:0)
Storage: Contracts ContractInfoOf (r:1 w:1)
Storage: Contracts CodeStorage (r:1 w:0)
Storage: Timestamp Now (r:1 w:0)

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

Model:
Time ~=    220.2
    + r    136.5
              µs

Reads = 5 + (0 * r)
Writes = 1 + (0 * r)

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

Data points distribution:
    r   mean µs  sigma µs       %
    0     213.4     0.161    0.0%
    1       357     0.479    0.1%
    2     493.8     0.563    0.1%
    3     630.3     1.717    0.2%
    4     766.7     1.281    0.1%
    5       904     4.154    0.4%
    6      1048     13.97    1.3%
    7      1181     12.61    1.0%
    8      1318     14.48    1.0%
    9      1453     12.41    0.8%
   10      1588     11.38    0.7%
   11      1728      14.8    0.8%
   12      1865     13.27    0.7%
   13      2001     14.74    0.7%
   14      2138     14.96    0.6%
   15      2289     11.87    0.5%
   16      2395     9.766    0.4%
   17      2546     11.24    0.4%
   18      2693     6.571    0.2%
   19      2817     9.894    0.3%
   20      2949     13.72    0.4%

Quality and confidence:
param     error
r         0.141

Model:
Time ~=    220.7
    + r    136.8
              µs

Reads = 5 + (0 * r)
Writes = 1 + (0 * r)

Pallet: "pallet_contracts", Extrinsic: "seal_value_transferred", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: System Account (r:1 w:0)
Storage: Contracts ContractInfoOf (r:1 w:1)
Storage: Contracts CodeStorage (r:1 w:0)
Storage: Timestamp Now (r:1 w:0)

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

Model:
Time ~=    217.2
    + r    48.03
              µs

Reads = 4 + (0 * r)
Writes = 1 + (0 * r)

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

Data points distribution:
    r   mean µs  sigma µs       %
    0     213.2     0.285    0.1%
    1     264.3     0.346    0.1%
    2     315.8     1.823    0.5%
    3     361.8      0.94    0.2%
    4     409.7     0.489    0.1%
    5     456.7     2.085    0.4%
    6     517.5     9.713    1.8%
    7     559.7     7.911    1.4%
    8     607.6     7.975    1.3%
    9     651.6     5.154    0.7%
   10     696.6      1.95    0.2%
   11     745.2     1.679    0.2%
   12     796.6     10.38    1.3%
   13     848.4     11.15    1.3%
   14     889.3     1.204    0.1%
   15     938.2     1.603    0.1%
   16     986.5      2.25    0.2%
   17      1034     4.514    0.4%
   18      1087     11.23    1.0%
   19      1139     12.19    1.0%
   20      1173     6.762    0.5%

Quality and confidence:
param     error
r         0.086

Model:
Time ~=    218.5
    + r    48.12
              µs

Reads = 4 + (0 * r)
Writes = 1 + (0 * r)

Pallet: "pallet_contracts", Extrinsic: "seal_minimum_balance", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: System Account (r:1 w:0)
Storage: Contracts ContractInfoOf (r:1 w:1)
Storage: Contracts CodeStorage (r:1 w:0)
Storage: Timestamp Now (r:1 w:0)

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

Model:
Time ~=    217.7
    + r    47.95
              µs

Reads = 4 + (0 * r)
Writes = 1 + (0 * r)

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

Data points distribution:
    r   mean µs  sigma µs       %
    0     213.3     0.143    0.0%
    1     264.8     0.295    0.1%
    2     313.8     0.515    0.1%
    3     361.1     0.591    0.1%
    4     412.4     4.686    1.1%
    5     457.3     1.029    0.2%
    6     505.7      1.34    0.2%
    7     556.9     4.556    0.8%
    8     603.3     2.315    0.3%
    9     654.1     5.276    0.8%
   10     697.4     2.162    0.3%
   11     744.4     6.947    0.9%
   12     791.6     6.463    0.8%
   13     845.9     10.62    1.2%
   14       893     5.252    0.5%
   15     946.4     9.784    1.0%
   16     992.5     8.302    0.8%
   17      1034      7.43    0.7%
   18      1087     11.94    1.0%
   19      1130     8.035    0.7%
   20      1177     9.834    0.8%

Quality and confidence:
param     error
r         0.078

Model:
Time ~=    216.9
    + r    48.23
              µs

Reads = 4 + (0 * r)
Writes = 1 + (0 * r)

Pallet: "pallet_contracts", Extrinsic: "seal_block_number", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: System Account (r:1 w:0)
Storage: Contracts ContractInfoOf (r:1 w:1)
Storage: Contracts CodeStorage (r:1 w:0)
Storage: Timestamp Now (r:1 w:0)

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

Model:
Time ~=    217.3
    + r    47.49
              µs

Reads = 4 + (0 * r)
Writes = 1 + (0 * r)

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

Data points distribution:
    r   mean µs  sigma µs       %
    0     213.4     0.331    0.1%
    1     267.9     2.839    1.0%
    2       316     6.747    2.1%
    3     359.4     0.589    0.1%
    4     408.5     1.647    0.4%
    5     455.2     1.105    0.2%
    6     506.3     9.053    1.7%
    7       553       3.3    0.5%
    8     598.8     1.758    0.2%
    9     645.9     1.107    0.1%
   10     695.3     6.713    0.9%
   11     739.3      2.85    0.3%
   12     786.9     5.025    0.6%
   13     837.3     11.41    1.3%
   14     883.6     1.659    0.1%
   15     938.9     11.33    1.2%
   16     977.9     5.112    0.5%
   17      1034     12.27    1.1%
   18      1084     12.86    1.1%
   19      1119     8.022    0.7%
   20      1181     16.39    1.3%

Quality and confidence:
param     error
r         0.095

Model:
Time ~=    216.4
    + r     47.9
              µs

Reads = 4 + (0 * r)
Writes = 1 + (0 * r)

Pallet: "pallet_contracts", Extrinsic: "seal_now", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: System Account (r:1 w:0)
Storage: Contracts ContractInfoOf (r:1 w:1)
Storage: Contracts CodeStorage (r:1 w:0)
Storage: Timestamp Now (r:1 w:0)

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

Model:
Time ~=    217.9
    + r    47.85
              µs

Reads = 4 + (0 * r)
Writes = 1 + (0 * r)

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

Data points distribution:
    r   mean µs  sigma µs       %
    0     212.9     0.198    0.0%
    1     264.4     0.231    0.0%
    2     313.7     0.407    0.1%
    3     361.7     1.513    0.4%
    4     416.5     11.79    2.8%
    5     458.3     1.678    0.3%
    6     504.5     1.085    0.2%
    7       554     1.373    0.2%
    8     600.8     1.504    0.2%
    9     650.2     1.478    0.2%
   10     694.9     1.368    0.1%
   11     751.1     12.46    1.6%
   12     797.6     10.74    1.3%
   13     837.3     4.628    0.5%
   14     889.9     2.271    0.2%
   15     937.4     2.256    0.2%
   16     989.7     7.355    0.7%
   17      1030     3.327    0.3%
   18      1082     9.559    0.8%
   19      1128     9.542    0.8%
   20      1175     7.394    0.6%

Quality and confidence:
param     error
r         0.076

Model:
Time ~=    217.8
    + r    47.99
              µs

Reads = 4 + (0 * r)
Writes = 1 + (0 * r)

Pallet: "pallet_contracts", Extrinsic: "seal_weight_to_fee", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: System Account (r:1 w:0)
Storage: Contracts ContractInfoOf (r:1 w:1)
Storage: Contracts CodeStorage (r:1 w:0)
Storage: Timestamp Now (r:1 w:0)
Storage: TransactionPayment NextFeeMultiplier (r:1 w:0)

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

Model:
Time ~=    218.7
    + r    120.5
              µs

Reads = 5 + (0 * r)
Writes = 1 + (0 * r)

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

Data points distribution:
    r   mean µs  sigma µs       %
    0     213.1     0.139    0.0%
    1       340     0.385    0.1%
    2     468.5     12.89    2.7%
    3     583.9     7.427    1.2%
    4     700.2     0.657    0.0%
    5     821.7     8.173    0.9%
    6     947.2     9.885    1.0%
    7      1078     15.78    1.4%
    8      1190     13.19    1.1%
    9      1309     11.95    0.9%
   10      1423     9.292    0.6%
   11      1545     6.999    0.4%
   12      1686     11.34    0.6%
   13      1805     15.17    0.8%
   14      1919     14.71    0.7%
   15      2029     14.23    0.7%
   16      2155     15.76    0.7%
   17      2270     10.22    0.4%
   18      2397     11.56    0.4%
   19      2521     12.73    0.5%
   20      2642     13.54    0.5%

Quality and confidence:
param     error
r         0.147

Model:
Time ~=    220.2
    + r      121
              µs

Reads = 5 + (0 * r)
Writes = 1 + (0 * r)

Pallet: "pallet_contracts", Extrinsic: "seal_gas", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: System Account (r:1 w:0)
Storage: Contracts ContractInfoOf (r:1 w:1)
Storage: Contracts CodeStorage (r:1 w:0)
Storage: Timestamp Now (r:1 w:0)

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

Model:
Time ~=    124.5
    + r    24.41
              µs

Reads = 4 + (0 * r)
Writes = 1 + (0 * r)

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

Data points distribution:
    r   mean µs  sigma µs       %
    0     122.3     0.135    0.1%
    1     148.6     0.225    0.1%
    2       173     0.103    0.0%
    3     198.2     0.156    0.0%
    4     223.4     1.811    0.8%
    5     245.6     0.281    0.1%
    6     272.2      0.54    0.1%
    7     296.5     2.144    0.7%
    8     318.8     0.651    0.2%
    9     342.3     0.502    0.1%
   10     367.6     2.937    0.7%
   11     396.3     1.465    0.3%
   12     425.6     6.101    1.4%
   13     443.6     1.166    0.2%
   14     467.2      1.81    0.3%
   15     494.7     7.607    1.5%
   16     514.9      2.24    0.4%
   17     537.9     0.965    0.1%
   18       563     2.847    0.5%
   19     594.3      8.14    1.3%
   20     610.1     2.171    0.3%

Quality and confidence:
param     error
r         0.046

Model:
Time ~=    124.3
    + r     24.5
              µs

Reads = 4 + (0 * r)
Writes = 1 + (0 * r)

Pallet: "pallet_contracts", Extrinsic: "seal_input", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: System Account (r:1 w:0)
Storage: Contracts ContractInfoOf (r:1 w:1)
Storage: Contracts CodeStorage (r:1 w:0)
Storage: Timestamp Now (r:1 w:0)

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

Model:
Time ~=    216.4
    + r    46.91
              µs

Reads = 4 + (0 * r)
Writes = 1 + (0 * r)

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

Data points distribution:
    r   mean µs  sigma µs       %
    0       213     0.332    0.1%
    1       267     2.657    0.9%
    2     311.2     0.557    0.1%
    3     356.5     1.882    0.5%
    4     405.6     0.847    0.2%
    5     452.2     2.155    0.4%
    6     497.1     0.904    0.1%
    7     546.6     1.702    0.3%
    8     595.2     6.381    1.0%
    9     639.3     5.636    0.8%
   10     687.9     8.651    1.2%
   11     731.2      2.93    0.4%
   12     781.8     7.713    0.9%
   13     824.5     6.478    0.7%
   14     876.9     4.933    0.5%
   15     929.2     12.73    1.3%
   16     970.5      9.06    0.9%
   17      1015     7.867    0.7%
   18      1070     10.55    0.9%
   19      1106     2.175    0.1%
   20      1160     10.31    0.8%

Quality and confidence:
param     error
r         0.079

Model:
Time ~=      216
    + r    47.14
              µs

Reads = 4 + (0 * r)
Writes = 1 + (0 * r)

Pallet: "pallet_contracts", Extrinsic: "seal_input_per_kb", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: System Account (r:1 w:0)
Storage: Contracts ContractInfoOf (r:1 w:1)
Storage: Contracts CodeStorage (r:1 w:0)
Storage: Timestamp Now (r:1 w:0)

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

Model:
Time ~=    292.1
    + n    10.48
              µs

Reads = 4 + (0 * n)
Writes = 1 + (0 * n)

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

Data points distribution:
    n   mean µs  sigma µs       %
    0     263.3     0.314    0.1%
   20     479.2     1.481    0.3%
   40     700.7     8.455    1.2%
   60     899.5     3.038    0.3%
   80      1114     12.53    1.1%
  100      1348      24.3    1.8%
  120      1576     14.16    0.8%
  140      1772     17.62    0.9%
  160      1974     14.05    0.7%
  180      2205     21.55    0.9%
  200      2404     16.58    0.6%
  220      2619        12    0.4%
  240      2813     15.93    0.5%
  260      3015     9.089    0.3%
  280      3265     27.95    0.8%
  300      3453     13.43    0.3%
  320      3643     10.72    0.2%
  340      3864     23.79    0.6%
  360      4062     14.77    0.3%
  380      4293     35.27    0.8%
  400      4469     11.71    0.2%
  420      4677     11.98    0.2%
  440      4891     14.11    0.2%
  460      5190     77.87    1.5%
  480      5348     24.52    0.4%
  500      5531     28.08    0.5%
  520      5753     40.02    0.6%
  540      5992     40.11    0.6%
  560      6147     33.62    0.5%
  580      6377     36.44    0.5%
  600      6604     53.57    0.8%
  620      6794     35.58    0.5%
  640      7024     65.33    0.9%
  660      7221      40.9    0.5%
  680      7445      41.1    0.5%
  700      7678     59.73    0.7%
  720      7817     47.99    0.6%
  740      8070     33.22    0.4%
  760      8242     30.64    0.3%
  780      8524     82.61    0.9%
  800      8679     55.85    0.6%
  820      8911     70.38    0.7%
  840      9092     43.34    0.4%
  860      9378     67.91    0.7%
  880      9526     54.48    0.5%
  900      9694     43.56    0.4%
  920      9957     77.94    0.7%
  940     10340      40.6    0.3%
  960     10330     39.76    0.3%
  980     10500     36.81    0.3%
 1000     10780     61.42    0.5%
 1020     10930     27.77    0.2%

Quality and confidence:
param     error
n         0.007

Model:
Time ~=    293.5
    + n    10.49
              µs

Reads = 4 + (0 * n)
Writes = 1 + (0 * n)

Pallet: "pallet_contracts", Extrinsic: "seal_return", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: System Account (r:1 w:0)
Storage: Contracts ContractInfoOf (r:1 w:1)
Storage: Contracts CodeStorage (r:1 w:0)
Storage: Timestamp Now (r:1 w:0)

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

Model:
Time ~=    209.5
    + r    2.108
              µs

Reads = 4 + (0 * r)
Writes = 1 + (0 * r)

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

Data points distribution:
    r   mean µs  sigma µs       %
    0     209.6     0.193    0.0%
    1     211.6     0.235    0.1%

Quality and confidence:
param     error
r         0.101

Model:
Time ~=    209.6
    + r    2.062
              µs

Reads = 4 + (0 * r)
Writes = 1 + (0 * r)

Pallet: "pallet_contracts", Extrinsic: "seal_return_per_kb", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: System Account (r:1 w:0)
Storage: Contracts ContractInfoOf (r:1 w:1)
Storage: Contracts CodeStorage (r:1 w:0)
Storage: Timestamp Now (r:1 w:0)

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

Model:
Time ~=    211.9
    + n    0.185
              µs

Reads = 4 + (0 * n)
Writes = 1 + (0 * n)

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

Data points distribution:
    n   mean µs  sigma µs       %
    0     211.4     0.206    0.0%
   20     215.5     0.267    0.1%
   40     219.3     0.168    0.0%
   60     223.3     0.336    0.1%
   80     226.6     0.144    0.0%
  100     235.8     0.205    0.0%
  120     234.5     0.431    0.1%
  140     238.4     0.714    0.2%
  160       242      0.99    0.4%
  180     245.4     0.157    0.0%
  200     249.7     1.148    0.4%
  220     253.3     0.794    0.3%
  240     256.1     0.119    0.0%
  260     261.4      1.66    0.6%
  280     266.1     1.619    0.6%
  300     269.2     2.616    0.9%
  320     277.2     0.266    0.0%
  340       277     2.223    0.8%
  360     279.4     1.796    0.6%
  380       289     1.614    0.5%
  400     285.9     0.328    0.1%
  420     289.2     0.253    0.0%
  440     293.6     0.618    0.2%
  460     296.6      0.22    0.0%
  480     301.1     2.087    0.6%
  500     304.5     0.248    0.0%
  520     310.5     3.049    0.9%
  540     315.5      3.75    1.1%
  560     315.6     0.429    0.1%
  580     319.2     0.311    0.0%
  600     323.5     2.675    0.8%
  620     329.8     4.083    1.2%
  640     332.7     3.853    1.1%
  660     336.4     4.154    1.2%
  680     337.5     0.322    0.0%
  700     340.8     0.266    0.0%
  720     345.8     3.016    0.8%
  740     353.4     6.581    1.8%
  760     354.5     4.181    1.1%
  780     358.6     4.237    1.1%
  800     362.3     4.521    1.2%
  820     365.4     4.579    1.2%
  840     367.2     0.539    0.1%
  860     376.8     6.146    1.6%
  880     377.4     4.697    1.2%
  900     385.7     5.804    1.5%
  920       387     6.071    1.5%
  940     385.7     0.347    0.0%
  960     389.1     0.493    0.1%
  980     392.7     0.413    0.1%
 1000     402.3     6.752    1.6%
 1020     408.5      6.54    1.6%

Quality and confidence:
param     error
n             0

Model:
Time ~=    212.3
    + n    0.188
              µs

Reads = 4 + (0 * n)
Writes = 1 + (0 * n)

Pallet: "pallet_contracts", Extrinsic: "seal_terminate", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: System Account (r:1 w:0)
Storage: Contracts ContractInfoOf (r:1 w:1)
Storage: Contracts CodeStorage (r:1 w:0)
Storage: Timestamp Now (r:1 w:0)
Storage: Contracts DeletionQueue (r:1 w:1)
Storage: Contracts OwnerInfoOf (r:1 w:1)

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

Model:
Time ~=    213.1
    + r    51.93
              µs

Reads = 4 + (4 * r)
Writes = 1 + (5 * r)

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

Data points distribution:
    r   mean µs  sigma µs       %
    0       213     0.196    0.0%
    1       265     0.367    0.1%

Quality and confidence:
param     error
r         0.138

Model:
Time ~=      213
    + r    51.96
              µs

Reads = 4 + (4 * r)
Writes = 1 + (5 * r)

Pallet: "pallet_contracts", Extrinsic: "seal_random", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: System Account (r:1 w:0)
Storage: Contracts ContractInfoOf (r:1 w:1)
Storage: Contracts CodeStorage (r:1 w:0)
Storage: Timestamp Now (r:1 w:0)
Storage: RandomnessCollectiveFlip RandomMaterial (r:1 w:0)

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

Model:
Time ~=    217.8
    + r    155.2
              µs

Reads = 5 + (0 * r)
Writes = 1 + (0 * r)

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

Data points distribution:
    r   mean µs  sigma µs       %
    0     213.2     0.175    0.0%
    1     372.8     0.287    0.0%
    2     532.5     9.091    1.7%
    3     682.7     1.852    0.2%
    4     839.7     8.101    0.9%
    5     993.4     5.765    0.5%
    6      1145     9.444    0.8%
    7      1315     15.89    1.2%
    8      1480     13.62    0.9%
    9      1628     14.32    0.8%
   10      1782     14.46    0.8%
   11      1944     13.81    0.7%
   12      2084      11.6    0.5%
   13      2237     17.69    0.7%
   14      2393     11.32    0.4%
   15      2549     15.08    0.5%
   16      2699     12.37    0.4%
   17      2873     17.76    0.6%
   18      3014     21.87    0.7%
   19      3181     8.909    0.2%
   20      3333     14.16    0.4%

Quality and confidence:
param     error
r         0.165

Model:
Time ~=    219.1
    + r    155.7
              µs

Reads = 5 + (0 * r)
Writes = 1 + (0 * r)

Pallet: "pallet_contracts", Extrinsic: "seal_deposit_event", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: System Account (r:1 w:0)
Storage: Contracts ContractInfoOf (r:1 w:1)
Storage: Contracts CodeStorage (r:1 w:0)
Storage: Timestamp Now (r:1 w:0)

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

Model:
Time ~=    223.8
    + r    278.1
              µs

Reads = 4 + (0 * r)
Writes = 1 + (0 * r)

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

Data points distribution:
    r   mean µs  sigma µs       %
    0     210.3     0.312    0.1%
    1     501.8     1.705    0.3%
    2     783.1     9.178    1.1%
    3      1055     4.847    0.4%
    4      1326     5.551    0.4%
    5      1626     6.325    0.3%
    6      1902     12.69    0.6%
    7      2187     10.11    0.4%
    8      2456     7.951    0.3%
    9      2741     10.87    0.3%
   10      3024     14.73    0.4%
   11      3279      5.89    0.1%
   12      3576     18.67    0.5%
   13      3847     18.25    0.4%
   14      4106     13.65    0.3%
   15      4386     13.53    0.3%
   16      4660     11.95    0.2%
   17      4983     14.65    0.2%
   18      5226     16.22    0.3%
   19      5516     11.23    0.2%
   20      5779      15.7    0.2%

Quality and confidence:
param     error
r         0.192

Model:
Time ~=      226
    + r    278.2
              µs

Reads = 4 + (0 * r)
Writes = 1 + (0 * r)

Pallet: "pallet_contracts", Extrinsic: "seal_deposit_event_per_topic_and_kb", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: System Account (r:1 w:0)
Storage: Contracts ContractInfoOf (r:1 w:1)
Storage: Contracts CodeStorage (r:1 w:0)
Storage: Timestamp Now (r:1 w:0)
Storage: System EventTopics (r:100 w:100)

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

Model:
Time ~=    490.7
    + t    295.1
    + n    81.25
              µs

Reads = 4 + (100 * t) + (0 * n)
Writes = 1 + (100 * t) + (0 * n)

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

Data points distribution:
    t     n   mean µs  sigma µs       %
    0    16      1761     9.983    0.5%
    1    16      2111     15.94    0.7%
    2    16      2384     14.62    0.6%
    3    16      2712     17.27    0.6%
    4     0      1661     10.99    0.6%
    4     1      1741     10.88    0.6%
    4     2      1799     7.691    0.4%
    4     3      1902     10.94    0.5%
    4     4      1990     9.074    0.4%
    4     5      2066     12.53    0.6%
    4     6      2136     15.65    0.7%
    4     7      2212     13.73    0.6%
    4     8      2258     11.53    0.5%
    4     9      2366     7.223    0.3%
    4    10      2447     10.65    0.4%
    4    11      2517     15.01    0.5%
    4    12      2625     11.66    0.4%
    4    13      2706     23.97    0.8%
    4    14      2791     13.45    0.4%
    4    15      2887     20.45    0.7%
    4    16      2959     12.97    0.4%

Quality and confidence:
param     error
t          1.73
n         0.341

Model:
Time ~=      485
    + t    290.1
    + n    81.93
              µs

Reads = 4 + (100 * t) + (0 * n)
Writes = 1 + (100 * t) + (0 * n)

Pallet: "pallet_contracts", Extrinsic: "seal_debug_message", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: System Account (r:1 w:0)
Storage: Contracts ContractInfoOf (r:1 w:1)
Storage: Contracts CodeStorage (r:1 w:0)
Storage: Timestamp Now (r:1 w:0)

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

Model:
Time ~=    132.9
    + r    40.06
              µs

Reads = 4 + (0 * r)
Writes = 1 + (0 * r)

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

Data points distribution:
    r   mean µs  sigma µs       %
    0     131.1     1.083    0.8%
    1       173     0.253    0.1%
    2     212.8      0.25    0.1%
    3     253.7     0.424    0.1%
    4     292.8     1.054    0.3%
    5     331.4      0.59    0.1%
    6     376.3     1.804    0.4%
    7     415.1     2.017    0.4%
    8     454.1     1.018    0.2%
    9     491.5     0.923    0.1%
   10     531.2       2.5    0.4%
   11     579.1     7.296    1.2%
   12     614.9     2.247    0.3%
   13     655.7     4.992    0.7%
   14     699.3     8.036    1.1%
   15     730.1     1.203    0.1%
   16     772.9     7.593    0.9%
   17       820     7.123    0.8%
   18     857.5     6.588    0.7%
   19       893     2.325    0.2%
   20     943.8     12.64    1.3%

Quality and confidence:
param     error
r         0.064

Model:
Time ~=    131.8
    + r    40.29
              µs

Reads = 4 + (0 * r)
Writes = 1 + (0 * r)

Pallet: "pallet_contracts", Extrinsic: "seal_set_storage", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Skipped Metadata (r:0 w:0)

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

Model:
Time ~=    54.77
    + r    399.4
              µs

Reads = 4 + (100 * r)
Writes = 1 + (100 * r)

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

Data points distribution:
    r   mean µs  sigma µs       %
    0     213.6     0.174    0.0%
    1     553.2     9.733    1.7%
    2     905.6       6.6    0.7%
    3      1272     14.33    1.1%
    4      1639     16.35    0.9%
    5      2015     10.41    0.5%
    6      2406     6.117    0.2%
    7      2781     13.87    0.4%
    8      3137     16.65    0.5%
    9      3618     20.22    0.5%
   10      4008     19.91    0.4%
   11      4412     16.47    0.3%
   12      4833      13.7    0.2%
   13      5217     30.58    0.5%
   14      5600     21.79    0.3%
   15      5995     32.07    0.5%
   16      6413     23.12    0.3%
   17      6873     32.87    0.4%
   18      7419      20.2    0.2%
   19      7804     36.31    0.4%
   20      8240     38.68    0.4%

Quality and confidence:
param     error
r         1.014

Model:
Time ~=    43.32
    + r    402.1
              µs

Reads = 4 + (100 * r)
Writes = 1 + (100 * r)

Pallet: "pallet_contracts", Extrinsic: "seal_set_storage_per_new_kb", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Skipped Metadata (r:0 w:0)

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

Model:
Time ~=    607.2
    + n    26.12
              µs

Reads = 105 + (0 * n)
Writes = 103 + (0 * n)

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

Data points distribution:
    n   mean µs  sigma µs       %
    0     548.4     1.395    0.2%
    1     633.1     1.598    0.2%
    2     663.3     5.948    0.8%
    3     691.2     4.541    0.6%
    4     713.8     2.458    0.3%
    5       744     8.439    1.1%
    6     765.9     9.621    1.2%
    7     796.4     9.085    1.1%
    8     829.6     11.72    1.4%
    9     844.2     4.365    0.5%
   10     864.7      5.46    0.6%
   11     893.4     9.528    1.0%
   12     910.7     2.546    0.2%
   13     938.3     3.596    0.3%
   14     992.4     12.52    1.2%
   15      1010     13.59    1.3%
   16      1020     10.17    0.9%

Quality and confidence:
param     error
n         0.271

Model:
Time ~=    597.4
    + n    27.23
              µs

Reads = 105 + (0 * n)
Writes = 103 + (0 * n)

Pallet: "pallet_contracts", Extrinsic: "seal_set_storage_per_old_kb", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Skipped Metadata (r:0 w:0)

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

Model:
Time ~=    634.4
    + n    9.911
              µs

Reads = 105 + (0 * n)
Writes = 103 + (0 * n)

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

Data points distribution:
    n   mean µs  sigma µs       %
    0     556.9     4.957    0.8%
    1     629.2     2.342    0.3%
    2     662.9     3.933    0.5%
    3     679.4      13.6    2.0%
    4     681.3     8.366    1.2%
    5     692.8     10.16    1.4%
    6     696.6     2.121    0.3%
    7     705.4     2.583    0.3%
    8     714.1     7.565    1.0%
    9       717     4.524    0.6%
   10     732.3     15.62    2.1%
   11     732.3     1.563    0.2%
   12     740.3     3.935    0.5%
   13     750.5      2.73    0.3%
   14     771.5     2.312    0.2%
   15     781.6     3.733    0.4%
   16     810.4     14.77    1.8%

Quality and confidence:
param     error
n         0.331

Model:
Time ~=    620.1
    + n    11.12
              µs

Reads = 105 + (0 * n)
Writes = 103 + (0 * n)

Pallet: "pallet_contracts", Extrinsic: "seal_clear_storage", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Skipped Metadata (r:0 w:0)

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

Model:
Time ~=    103.5
    + r    377.9
              µs

Reads = 5 + (100 * r)
Writes = 3 + (100 * r)

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

Data points distribution:
    r   mean µs  sigma µs       %
    0     213.6     0.623    0.2%
    1     560.3     13.03    2.3%
    2     910.8     8.718    0.9%
    3      1252     2.978    0.2%
    4      1597     15.34    0.9%
    5      1960     9.678    0.4%
    6      2328     15.05    0.6%
    7      2677     14.41    0.5%
    8      3031     17.06    0.5%
    9      3503     24.88    0.7%
   10      3829      24.4    0.6%
   11      4251     25.62    0.6%
   12      4598     17.99    0.3%
   13      4978     38.84    0.7%
   14      5350     22.15    0.4%
   15      5729     29.93    0.5%
   16      6150     25.21    0.4%
   17      6509     16.43    0.2%
   18      7047     29.44    0.4%
   19      7420     22.65    0.3%
   20      7832     43.86    0.5%

Quality and confidence:
param     error
r         0.868

Model:
Time ~=    88.79
    + r    380.3
              µs

Reads = 5 + (100 * r)
Writes = 3 + (100 * r)

Pallet: "pallet_contracts", Extrinsic: "seal_clear_storage_per_kb", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Skipped Metadata (r:0 w:0)

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

Model:
Time ~=    614.1
    + n    9.513
              µs

Reads = 105 + (0 * n)
Writes = 103 + (0 * n)

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

Data points distribution:
    n   mean µs  sigma µs       %
    0     557.7     2.967    0.5%
    1     608.7     1.359    0.2%
    2     644.6     3.306    0.5%
    3     652.8     4.027    0.6%
    4     657.6     3.015    0.4%
    5     674.2     13.51    2.0%
    6     674.3     2.007    0.2%
    7     690.5      12.8    1.8%
    8     687.6     1.687    0.2%
    9     697.5     1.759    0.2%
   10     698.9     1.267    0.1%
   11     712.1     1.377    0.1%
   12     721.7     11.66    1.6%
   13     732.2     6.502    0.8%
   14     744.9     3.224    0.4%
   15     759.1      1.43    0.1%
   16     771.3     7.665    0.9%

Quality and confidence:
param     error
n         0.256

Model:
Time ~=    605.3
    + n    10.26
              µs

Reads = 105 + (0 * n)
Writes = 103 + (0 * n)

Pallet: "pallet_contracts", Extrinsic: "seal_get_storage", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Skipped Metadata (r:0 w:0)

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

Model:
Time ~=    132.7
    + r    318.8
              µs

Reads = 4 + (100 * r)
Writes = 1 + (0 * r)

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

Data points distribution:
    r   mean µs  sigma µs       %
    0     215.2     0.172    0.0%
    1     492.4     3.489    0.7%
    2     786.3     6.894    0.8%
    3      1099     13.72    1.2%
    4      1380     2.984    0.2%
    5      1711      15.4    0.8%
    6      2006     9.892    0.4%
    7      2310     16.45    0.7%
    8      2631     13.59    0.5%
    9      2985     18.77    0.6%
   10      3286     25.67    0.7%
   11      3616     14.64    0.4%
   12      3917     18.03    0.4%
   13      4250     34.36    0.8%
   14      4586     22.01    0.4%
   15      4898     23.16    0.4%
   16      5204     17.41    0.3%
   17      5555     16.93    0.3%
   18      5960     26.94    0.4%
   19      6262     36.96    0.5%
   20      6619     33.67    0.5%

Quality and confidence:
param     error
r         0.582

Model:
Time ~=    117.8
    + r    320.5
              µs

Reads = 4 + (100 * r)
Writes = 1 + (0 * r)

Pallet: "pallet_contracts", Extrinsic: "seal_get_storage_per_kb", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Skipped Metadata (r:0 w:0)

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

Model:
Time ~=    573.7
    + n    62.77
              µs

Reads = 104 + (0 * n)
Writes = 1 + (0 * n)

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

Data points distribution:
    n   mean µs  sigma µs       %
    0     492.9     2.301    0.4%
    1     613.4     2.472    0.4%
    2     725.7     14.69    2.0%
    3     768.6      1.89    0.2%
    4     835.1     6.975    0.8%
    5     896.2     10.43    1.1%
    6       954     9.197    0.9%
    7      1010     9.821    0.9%
    8      1076     9.459    0.8%
    9      1140     11.37    0.9%
   10      1188     10.83    0.9%
   11      1250     8.809    0.7%
   12      1304     11.88    0.9%
   13      1367     2.443    0.1%
   14      1447        15    1.0%
   15      1536     14.36    0.9%
   16      1579     12.98    0.8%

Quality and confidence:
param     error
n         0.392

Model:
Time ~=    559.8
    + n    63.76
              µs

Reads = 104 + (0 * n)
Writes = 1 + (0 * n)

Pallet: "pallet_contracts", Extrinsic: "seal_contains_storage", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Skipped Metadata (r:0 w:0)

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

Model:
Time ~=    137.7
    + r      286
              µs

Reads = 4 + (100 * r)
Writes = 1 + (0 * r)

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

Data points distribution:
    r   mean µs  sigma µs       %
    0     213.4     0.226    0.1%
    1     459.9     1.227    0.2%
    2     720.1     9.196    1.2%
    3     997.3     7.728    0.7%
    4      1266     16.38    1.2%
    5      1570     6.686    0.4%
    6      1815     11.04    0.6%
    7      2135     5.317    0.2%
    8      2352     18.34    0.7%
    9      2676     18.67    0.6%
   10      2966     20.27    0.6%
   11      3270     10.21    0.3%
   12      3580     24.11    0.6%
   13      3834     9.789    0.2%
   14      4100     17.78    0.4%
   15      4419     26.31    0.5%
   16      4684     33.56    0.7%
   17      4992      29.7    0.5%
   18      5356     33.59    0.6%
   19      5718     37.08    0.6%
   20      5989     25.14    0.4%

Quality and confidence:
param     error
r         0.642

Model:
Time ~=    120.2
    + r    288.5
              µs

Reads = 4 + (100 * r)
Writes = 1 + (0 * r)

Pallet: "pallet_contracts", Extrinsic: "seal_contains_storage_per_kb", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Skipped Metadata (r:0 w:0)

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

Model:
Time ~=    523.7
    + n    8.842
              µs

Reads = 104 + (0 * n)
Writes = 1 + (0 * n)

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

Data points distribution:
    n   mean µs  sigma µs       %
    0     470.6     16.05    3.4%
    1     521.6     5.948    1.1%
    2     548.2     1.126    0.2%
    3       553     1.251    0.2%
    4     564.7     1.216    0.2%
    5     570.1     4.337    0.7%
    6     579.6     1.797    0.3%
    7     584.7     1.103    0.1%
    8     593.2     5.903    0.9%
    9     603.7     12.62    2.0%
   10     604.6     7.962    1.3%
   11     617.2     10.35    1.6%
   12     625.9     10.65    1.7%
   13     638.7     10.96    1.7%
   14     637.1     3.029    0.4%
   15     656.9     4.444    0.6%
   16     666.9     2.114    0.3%

Quality and confidence:
param     error
n          0.23

Model:
Time ~=    513.2
    + n    9.643
              µs

Reads = 104 + (0 * n)
Writes = 1 + (0 * n)

Pallet: "pallet_contracts", Extrinsic: "seal_take_storage", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Skipped Metadata (r:0 w:0)

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

Model:
Time ~=    104.4
    + r    410.1
              µs

Reads = 5 + (100 * r)
Writes = 3 + (100 * r)

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

Data points distribution:
    r   mean µs  sigma µs       %
    0     215.1     0.173    0.0%
    1       591      4.96    0.8%
    2     956.8     8.905    0.9%
    3      1348     3.875    0.2%
    4      1732     16.29    0.9%
    5      2131     12.06    0.5%
    6      2539      17.3    0.6%
    7      2906      14.6    0.5%
    8      3295     28.85    0.8%
    9      3784     14.19    0.3%
   10      4172     8.999    0.2%
   11      4574     6.036    0.1%
   12      4988     15.93    0.3%
   13      5398      13.1    0.2%
   14      5836      21.3    0.3%
   15      6234     26.44    0.4%
   16      6635      34.9    0.5%
   17      7071     19.68    0.2%
   18      7601     17.19    0.2%
   19      8055     39.55    0.4%
   20      8453     24.61    0.2%

Quality and confidence:
param     error
r           0.8

Model:
Time ~=    91.34
    + r    412.4
              µs

Reads = 5 + (100 * r)
Writes = 3 + (100 * r)

Pallet: "pallet_contracts", Extrinsic: "seal_take_storage_per_kb", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Skipped Metadata (r:0 w:0)

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

Model:
Time ~=      665
    + n    63.98
              µs

Reads = 105 + (0 * n)
Writes = 103 + (0 * n)

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

Data points distribution:
    n   mean µs  sigma µs       %
    0     585.5     1.691    0.2%
    1     705.9     5.052    0.7%
    2     810.8     10.84    1.3%
    3     869.6     12.13    1.3<truncated>...

@athei athei force-pushed the at-call-weights branch 2 times, most recently from 5aec5a6 to cf06f87 Compare February 8, 2022 14:06
@athei
Copy link
Member Author

athei commented Feb 8, 2022

/benchmark runtime pallet pallet_contracts

@parity-benchapp
Copy link

parity-benchapp bot commented Feb 8, 2022

Benchmark Runtime Pallet for branch "at-call-weights" 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_contracts --extrinsic="*" --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/contracts/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_contracts", Extrinsic: "on_initialize", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Contracts DeletionQueue (r:1 w:0)

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

Model:
Time ~=     1.56
              µs

Reads = 1
Writes = 0

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

Model:
Time ~=     1.56
              µs

Reads = 1
Writes = 0

Pallet: "pallet_contracts", Extrinsic: "on_initialize_per_trie_key", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Skipped Metadata (r:0 w:0)

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

Model:
Time ~=    7.976
    + k    0.748
              µs

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

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

Data points distribution:
    k   mean µs  sigma µs       %
    0     10.02     0.056    0.5%
   20     26.48     0.156    0.5%
   40     40.25     0.114    0.2%
   60     53.03     0.267    0.5%
   80     65.07     0.312    0.4%
  100     80.36     0.358    0.4%
  120     94.14     0.383    0.4%
  140     109.3     0.647    0.5%
  160     124.4     1.041    0.8%
  180     141.1     1.144    0.8%
  200     153.3     0.443    0.2%
  220     169.3     0.541    0.3%
  240     183.6     0.379    0.2%
  260     200.3     0.563    0.2%
  280     214.5     0.856    0.3%
  300     230.3     0.719    0.3%
  320       247     1.085    0.4%
  340     263.3     0.687    0.2%
  360     279.8     2.513    0.8%
  380     294.6     0.653    0.2%
  400     309.9     0.923    0.2%
  420     324.2     0.681    0.2%
  440     339.6     1.439    0.4%
  460     354.4     1.013    0.2%
  480     369.5     0.558    0.1%
  500     384.7     1.012    0.2%
  520     401.5     0.725    0.1%
  540       414     1.692    0.4%
  560     429.6      1.72    0.4%
  580     444.9     1.011    0.2%
  600     459.6     1.911    0.4%
  620     474.2     1.895    0.3%
  640     488.2     2.065    0.4%
  660     503.4     5.522    1.0%
  680     517.1     1.517    0.2%
  700     532.2     1.005    0.1%
  720     545.7      1.53    0.2%
  740     561.5     1.201    0.2%
  760     575.7     1.158    0.2%
  780     591.1     1.745    0.2%
  800     606.9     3.378    0.5%
  820     620.3     1.695    0.2%
  840     640.4     2.373    0.3%
  860     656.9     8.102    1.2%
  880     668.6     1.791    0.2%
  900     684.2     7.503    1.0%
  920     696.1     1.622    0.2%
  940     706.4     2.983    0.4%
  960       723     4.949    0.6%
  980       736     1.851    0.2%
 1000     752.1     1.476    0.1%
 1020     767.8     1.882    0.2%

Quality and confidence:
param     error
k             0

Model:
Time ~=    7.843
    + k    0.749
              µs

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

Pallet: "pallet_contracts", Extrinsic: "on_initialize_per_queue_item", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Contracts DeletionQueue (r:1 w:0)

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

Model:
Time ~=    10.92
    + q    2.246
              µs

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

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

Data points distribution:
    q   mean µs  sigma µs       %
    0      1.55     0.025    1.6%
   20        56     0.328    0.5%
   40     100.7     0.447    0.4%
   60     150.4     0.619    0.4%
   80     192.2       1.6    0.8%
  100     236.5     1.591    0.6%
  120     292.3     1.279    0.4%
  140     332.7     3.615    1.0%
  160     374.1     3.663    0.9%
  180     409.7     3.649    0.8%
  200     456.3     3.583    0.7%
  220     494.4     4.754    0.9%
  240     565.7     7.423    1.3%
  260     614.5     5.303    0.8%
  280     669.5     13.18    1.9%
  300     697.3     9.627    1.3%
  320     741.9     6.023    0.8%
  340     769.2     8.748    1.1%
  360     822.8     10.82    1.3%
  380     872.1       7.6    0.8%
  400     913.5     18.45    2.0%
  420     918.9       6.9    0.7%
  440       984     11.58    1.1%
  460      1024     6.501    0.6%
  480      1082     11.07    1.0%
  500      1133     13.58    1.1%
  520      1169     16.39    1.4%
  540      1228     10.54    0.8%
  560      1211     10.92    0.9%
  580      1258     9.117    0.7%
  600      1335     5.858    0.4%
  620      1407     13.97    0.9%
  640      1452     21.06    1.4%
  660      1472     10.93    0.7%
  680      1474     5.165    0.3%
  700      1587     9.058    0.5%
  720      1541     10.86    0.7%
  740      1601     12.82    0.8%
  760      1685     11.37    0.6%
  780      1758     23.79    1.3%
  800      1781     15.88    0.8%
  820      1826     15.57    0.8%
  840      1879      5.93    0.3%
  860      1945     9.375    0.4%
  880      1974     29.41    1.4%
  900      2090     12.66    0.6%
  920      2149     13.58    0.6%
  940      2196     12.58    0.5%
  960      2169     21.65    0.9%
  980      2280     8.838    0.3%
 1000      2280     27.43    1.2%
 1020      2364     11.48    0.4%

Quality and confidence:
param     error
q         0.005

Model:
Time ~=    3.228
    + q    2.257
              µs

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

Pallet: "pallet_contracts", Extrinsic: "reinstrument", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Contracts PristineCode (r:1 w:0)
Storage: Contracts CodeStorage (r:0 w:1)

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

Model:
Time ~=    29.35
    + c    65.93
              µs

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

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

Data points distribution:
    c   mean µs  sigma µs       %
    0     31.01     0.132    0.4%
    2     162.4     0.438    0.2%
    4     293.1     0.346    0.1%
    6     419.1     0.692    0.1%
    8     555.2     1.158    0.2%
   10     692.2     14.27    2.0%
   12     826.3     12.82    1.5%
   14     958.8     12.09    1.2%
   16      1092     14.71    1.3%
   18      1223     15.24    1.2%
   20      1343     16.73    1.2%
   22      1467      14.3    0.9%
   24      1584     12.27    0.7%
   26      1771     2.963    0.1%
   28      1880      13.4    0.7%
   30      2001     12.03    0.6%
   32      2126      13.2    0.6%
   34      2278     16.64    0.7%
   36      2402     16.38    0.6%
   38      2528     17.53    0.6%
   40      2650     12.63    0.4%
   42      2769     12.07    0.4%
   44      2905     21.28    0.7%
   46      3033     19.18    0.6%
   48      3152     15.93    0.5%
   50      3353     5.212    0.1%
   52      3466     17.12    0.4%
   54      3594     8.637    0.2%
   56      3736     15.95    0.4%
   58      3856     23.85    0.6%
   60      3971     9.826    0.2%
   62      4101     10.95    0.2%
   64      4239     22.56    0.5%
   66      4392      9.28    0.2%
   68      4510     12.73    0.2%
   70      4652     24.64    0.5%
   72      4755     12.42    0.2%
   74      4903     13.25    0.2%
   76      5013     11.73    0.2%
   78      5143     16.73    0.3%
   80      5291     13.48    0.2%
   82      5415     16.91    0.3%
   84      5502     22.44    0.4%
   86      5651     10.07    0.1%
   88      5771     17.25    0.2%
   90      5908      8.63    0.1%
   92      6028      15.9    0.2%
   94      6162     19.84    0.3%
   96      6279        13    0.2%
   98      6570     13.47    0.2%
  100      6642     4.945    0.0%
  102      6785     9.474    0.1%
  104      6931     10.93    0.1%
  106      7055     21.24    0.3%
  108      7167     13.08    0.1%
  110      7304      16.5    0.2%
  112      7441     18.22    0.2%
  114      7570     24.67    0.3%
  116      7727     17.98    0.2%
  118      7845     21.97    0.2%
  120      7961     19.27    0.2%
  122      8084     21.09    0.2%
  124      8224     20.26    0.2%
  126      8315     17.57    0.2%
  128      8468     17.62    0.2%

Quality and confidence:
param     error
c         0.034

Model:
Time ~=    20.53
    + c    66.01
              µs

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

Pallet: "pallet_contracts", Extrinsic: "call_with_code_kb", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Contracts ContractInfoOf (r:1 w:1)
Storage: Contracts CodeStorage (r:1 w:0)
Storage: Timestamp Now (r:1 w:0)
Storage: System Account (r:1 w:1)

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

Model:
Time ~=    306.3
    + c    57.59
              µs

Reads = 4 + (0 * c)
Writes = 2 + (0 * c)

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

Data points distribution:
    c   mean µs  sigma µs       %
    0       309     0.127    0.0%
    2     424.8     4.348    1.0%
    4     537.8     0.772    0.1%
    6     644.9      0.51    0.0%
    8     766.3     8.259    1.0%
   10     921.1      8.97    0.9%
   12       992     13.43    1.3%
   14      1115     7.983    0.7%
   16      1226     11.48    0.9%
   18      1367     13.37    0.9%
   20      1480     14.11    0.9%
   22      1556     14.33    0.9%
   24      1662     13.45    0.8%
   26      1808     11.05    0.6%
   28      1924     17.53    0.9%
   30      2028     12.74    0.6%
   32      2198     15.02    0.6%
   34      2277     15.15    0.6%
   36      2371     20.27    0.8%
   38      2464     16.66    0.6%
   40      2570     16.25    0.6%
   42      2690     8.835    0.3%
   44      2817     29.36    1.0%
   46      2965     21.47    0.7%
   48      3005     13.85    0.4%
   50      3210     13.77    0.4%
   52      3347      22.7    0.6%
   54      3433      11.2    0.3%
   56      3515     13.25    0.3%
   58      3643     20.33    0.5%
   60      3759     10.85    0.2%
   62      3862     8.628    0.2%
   64      3964     9.322    0.2%
   66      4084     16.33    0.3%
   68      4190     9.273    0.2%
   70      4313     28.59    0.6%
   72      4410     14.99    0.3%
   74      4523     13.75    0.3%
   76      4673     21.28    0.4%
   78      4847     9.815    0.2%
   80      4853     16.51    0.3%
   82      4951     5.585    0.1%
   84      5052     9.547    0.1%
   86      5164     16.81    0.3%
   88      5280     20.42    0.3%
   90      5374     15.19    0.2%
   92      5488     15.11    0.2%
   94      5591     14.54    0.2%
   96      5757     15.32    0.2%
   98      6017     18.83    0.3%
  100      6124     15.26    0.2%
  102      6243     19.29    0.3%
  104      6331     13.74    0.2%
  106      6472     27.38    0.4%
  108      6568     22.46    0.3%
  110      6656     14.82    0.2%
  112      6789     27.19    0.4%
  114      6907      21.9    0.3%
  116      7087     13.58    0.1%
  118      7121     23.87    0.3%
  120      7300     17.75    0.2%
  122      7336     22.85    0.3%
  124      7438     28.14    0.3%
  126      7621     23.62    0.3%
  128      7652     20.22    0.2%

Quality and confidence:
param     error
c         0.053

Model:
Time ~=    295.7
    + c    57.66
              µs

Reads = 4 + (0 * c)
Writes = 2 + (0 * c)

Pallet: "pallet_contracts", Extrinsic: "instantiate_with_code", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Contracts CodeStorage (r:1 w:1)
Storage: Contracts AccountCounter (r:1 w:1)
Storage: Contracts ContractInfoOf (r:1 w:1)
Storage: Timestamp Now (r:1 w:0)
Storage: System Account (r:1 w:1)
Storage: Contracts PristineCode (r:0 w:1)
Storage: Contracts OwnerInfoOf (r:0 w:1)

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

Model:
Time ~=    375.1
    + c    149.4
    + s    1.755
              µs

Reads = 5 + (0 * c) + (0 * s)
Writes = 6 + (0 * c) + (0 * s)

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

Data points distribution:
    c     s   mean µs  sigma µs       %
    0  1024      2224     15.51    0.6%
    1  1024      2364     6.762    0.2%
    2  1024      2497     14.57    0.5%
    3  1024      2479     16.29    0.6%
    4  1024      2784     14.02    0.5%
    5  1024      2943     10.09    0.3%
    6  1024      2931     13.35    0.4%
    7  1024      3235     11.77    0.3%
    8  1024      3395     16.24    0.4%
    9  1024      3382     10.12    0.2%
   10  1024      3696     12.43    0.3%
   11  1024      3886     2.059    0.0%
   12  1024      3816     13.82    0.3%
   13  1024      4144     12.98    0.3%
   14  1024      4294     16.42    0.3%
   15  1024      4253     6.755    0.1%
   16  1024      4567     15.42    0.3%
   17  1024      4771     20.61    0.4%
   18  1024      4741     13.02    0.2%
   19  1024      5032     14.79    0.2%
   20  1024      5188     15.04    0.2%
   21  1024      5170     21.24    0.4%
   22  1024      5453      17.7    0.3%
   23  1024      5590     13.27    0.2%
   24  1024      5583     18.77    0.3%
   25  1024      5921     17.41    0.2%
   26  1024      6087     23.02    0.3%
   27  1024      6052     20.36    0.3%
   28  1024      6369     30.95    0.4%
   29  1024      6512     28.02    0.4%
   30  1024      6481     17.27    0.2%
   31  1024      6792     24.76    0.3%
   32  1024      6942     23.36    0.3%
   33  1024      7015     7.128    0.1%
   34  1024      7316      28.1    0.3%
   35  1024      7456     24.56    0.3%
   36  1024      7438     23.21    0.3%
   37  1024      7744     10.95    0.1%
   38  1024      7886     17.58    0.2%
   39  1024      7896     45.73    0.5%
   40  1024      8175     34.21    0.4%
   41  1024      8326     18.35    0.2%
   42  1024      8365      53.3    0.6%
   43  1024      8624     48.74    0.5%
   44  1024      8758      59.1    0.6%
   45  1024      8736     21.78    0.2%
   46  1024      9030     29.03    0.3%
   47  1024      9198     37.49    0.4%
   48  1024      9157     41.63    0.4%
   49  1024      9590     33.32    0.3%
   50  1024      9729     35.51    0.3%
   51  1024      9697     48.02    0.4%
   52  1024      9993     17.83    0.1%
   53  1024     10140     34.48    0.3%
   54  1024     10120     18.44    0.1%
   55  1024     10440     31.45    0.3%
   56  1024     10610     35.21    0.3%
   57  1024     10540     25.95    0.2%
   58  1024     10900     48.72    0.4%
   59  1024     10990     30.08    0.2%
   60  1024     10980     28.27    0.2%
   61  1024     11300     34.43    0.3%
   62     0      9566     41.79    0.4%
   62    20      9596     24.42    0.2%
   62    40      9667     51.54    0.5%
   62    60      9666     22.99    0.2%
   62    80      9731     50.41    0.5%
   62   100      9749     18.12    0.1%
   62   120      9798     32.09    0.3%
   62   140      9823     30.05    0.3%
   62   160      9866     33.08    0.3%
   62   180      9905     31.65    0.3%
   62   200      9976     19.46    0.1%
   62   220      9941     29.58    0.2%
   62   240      9975     15.99    0.1%
   62   260     10030     24.58    0.2%
   62   280     10100     35.08    0.3%
   62   300     10230     74.78    0.7%
   62   320     10160     25.22    0.2%
   62   340     10200     26.53    0.2%
   62   360     10210     14.76    0.1%
   62   380     10270     19.71    0.1%
   62   400     10270     20.92    0.2%
   62   420     10330     22.77    0.2%
   62   440     10360     29.22    0.2%
   62   460     10390     27.96    0.2%
   62   480     10410     29.07    0.2%
   62   500     10450      25.4    0.2%
   62   520     10490     47.89    0.4%
   62   540     10500      22.2    0.2%
   62   560     10530     33.92    0.3%
   62   580     10600     22.44    0.2%
   62   600     10600     25.77    0.2%
   62   620     10650     27.06    0.2%
   62   640     10680     20.46    0.1%
   62   660     10740     42.24    0.3%
   62   680     10770     32.58    0.3%
   62   700     10810     46.19    0.4%
   62   720     10840     42.22    0.3%
   62   740     10890     30.76    0.2%
   62   760     10920     35.48    0.3%
   62   780     10950     50.99    0.4%
   62   800     10980     30.42    0.2%
   62   820     11000     28.87    0.2%
   62   840     11050     36.13    0.3%
   62   860     11050     23.28    0.2%
   62   880     11120     25.51    0.2%
   62   900     11150     29.26    0.2%
   62   920     11190     29.67    0.2%
   62   940     11210     37.71    0.3%
   62   960     11230      18.9    0.1%
   62   980     11330     29.48    0.2%
   62  1000     11360     27.07    0.2%
   62  1020     11380     39.81    0.3%
   62  1024     11410     22.24    0.1%

Quality and confidence:
param     error
c         0.125
s         0.007

Model:
Time ~=    332.5
    + c      149
    + s    1.779
              µs

Reads = 5 + (0 * c) + (0 * s)
Writes = 6 + (0 * c) + (0 * s)

Pallet: "pallet_contracts", Extrinsic: "instantiate", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Contracts CodeStorage (r:1 w:1)
Storage: Contracts AccountCounter (r:1 w:1)
Storage: Contracts ContractInfoOf (r:1 w:1)
Storage: Timestamp Now (r:1 w:0)
Storage: System Account (r:1 w:1)
Storage: Contracts OwnerInfoOf (r:1 w:1)

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

Model:
Time ~=    222.1
    + s    1.744
              µs

Reads = 6 + (0 * s)
Writes = 5 + (0 * s)

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

Data points distribution:
    s   mean µs  sigma µs       %
    0     222.2     2.141    0.9%
   20     255.3     0.113    0.0%
   40     291.1     0.275    0.0%
   60     326.2      0.31    0.0%
   80     361.4     0.216    0.0%
  100     403.8     6.666    1.6%
  120       433      6.15    1.4%
  140     466.1     0.413    0.0%
  160     500.6     0.678    0.1%
  180     535.5     0.333    0.0%
  200     571.5     0.276    0.0%
  220     608.2      6.46    1.0%
  240       643     8.549    1.3%
  260     687.9     11.99    1.7%
  280     712.3     6.344    0.8%
  300     745.5     0.395    0.0%
  320       783      9.18    1.1%
  340     817.1     6.249    0.7%
  360     855.7     12.44    1.4%
  380     893.8      12.7    1.4%
  400     933.3     15.34    1.6%
  420     964.1     13.06    1.3%
  440      1006     16.37    1.6%
  460      1050     14.22    1.3%
  480      1069     14.38    1.3%
  500      1100      14.1    1.2%
  520      1143     16.64    1.4%
  540      1169     12.26    1.0%
  560      1204     12.47    1.0%
  580      1245     13.93    1.1%
  600      1283     14.32    1.1%
  620      1317     13.32    1.0%
  640      1343     12.83    0.9%
  660      1383     15.05    1.0%
  680      1429     14.21    0.9%
  700      1453     12.58    0.8%
  720      1484     12.28    0.8%
  740      1518     11.49    0.7%
  760      1561     15.56    0.9%
  780      1600     12.07    0.7%
  800      1622     12.65    0.7%
  820      1664     13.91    0.8%
  840      1701     15.35    0.9%
  860      1733     13.53    0.7%
  880      1770     14.96    0.8%
  900      1803     14.45    0.8%
  920      1840      15.6    0.8%
  940      1876     16.15    0.8%
  960      1932     17.17    0.8%
  980      1939     12.22    0.6%
 1000      1972     12.23    0.6%
 1020      2005     10.72    0.5%

Quality and confidence:
param     error
s         0.001

Model:
Time ~=    222.9
    + s    1.759
              µs

Reads = 6 + (0 * s)
Writes = 5 + (0 * s)

Pallet: "pallet_contracts", Extrinsic: "call", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Contracts ContractInfoOf (r:1 w:1)
Storage: Contracts CodeStorage (r:1 w:0)
Storage: Timestamp Now (r:1 w:0)
Storage: System Account (r:1 w:1)

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

Model:
Time ~=      189
              µs

Reads = 4
Writes = 2

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

Model:
Time ~=      189
              µs

Reads = 4
Writes = 2

Pallet: "pallet_contracts", Extrinsic: "upload_code", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Contracts CodeStorage (r:1 w:1)
Storage: Contracts PristineCode (r:0 w:1)
Storage: Contracts OwnerInfoOf (r:0 w:1)

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

Model:
Time ~=    55.55
    + c    66.34
              µs

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

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

Data points distribution:
    c   mean µs  sigma µs       %
    0     53.77     0.148    0.2%
    1     123.5     0.291    0.2%
    2     187.2     0.243    0.1%
    3     255.4     2.089    0.8%
    4     318.7     0.174    0.0%
    5     382.8     0.243    0.0%
    6     446.7     0.381    0.0%
    7     524.8     11.76    2.2%
    8     586.2     9.123    1.5%
    9     647.4      1.25    0.1%
   10     714.8     8.833    1.2%
   11     773.5     0.817    0.1%
   12     843.3     8.188    0.9%
   13     919.3     4.246    0.4%
   14       986     11.59    1.1%
   15      1048     9.957    0.9%
   16      1120     13.61    1.2%
   17      1192     14.39    1.2%
   18      1255     16.09    1.2%
   19      1320     14.56    1.1%
   20      1377      16.4    1.1%
   21      1443     12.97    0.8%
   22      1497     11.71    0.7%
   23      1576     12.54    0.7%
   24      1639     16.22    0.9%
   25      1729     16.78    0.9%
   26      1786     15.26    0.8%
   27      1848     15.85    0.8%
   28      1924     14.09    0.7%
   29      1986     15.75    0.7%
   30      2059      19.8    0.9%
   31      2116     11.36    0.5%
   32      2177     12.27    0.5%
   33      2263     12.42    0.5%
   34      2320     10.09    0.4%
   35      2372     12.31    0.5%
   36      2444     12.78    0.5%
   37      2495     16.07    0.6%
   38      2573     6.195    0.2%
   39      2646     11.69    0.4%
   40      2696     11.59    0.4%
   41      2768     9.656    0.3%
   42      2826     16.89    0.5%
   43      2895        14    0.4%
   44      2958     9.857    0.3%
   45      3018     8.772    0.2%
   46      3092     16.89    0.5%
   47      3146     13.11    0.4%
   48      3266     2.719    0.0%
   49      3343        12    0.3%
   50      3401     19.94    0.5%
   51      3464     9.965    0.2%
   52      3522     10.86    0.3%
   53      3594      9.71    0.2%
   54      3650     14.22    0.3%
   55      3721      12.4    0.3%
   56      3791     12.74    0.3%
   57      3840     8.288    0.2%
   58      3907     10.94    0.2%
   59      3974     7.287    0.1%
   60      4052     13.01    0.3%
   61      4100     7.475    0.1%
   62      4178      13.7    0.3%
   63      4216     20.42    0.4%
   64      4293     10.81    0.2%

Quality and confidence:
param     error
c         0.036

Model:
Time ~=    52.52
    + c    66.48
              µs

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

Pallet: "pallet_contracts", Extrinsic: "remove_code", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Contracts OwnerInfoOf (r:1 w:1)
Storage: Contracts CodeStorage (r:0 w:1)
Storage: Contracts PristineCode (r:0 w:1)

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

Model:
Time ~=     24.7
              µs

Reads = 1
Writes = 3

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

Model:
Time ~=     24.7
              µs

Reads = 1
Writes = 3

Pallet: "pallet_contracts", Extrinsic: "seal_caller", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: System Account (r:1 w:0)
Storage: Contracts ContractInfoOf (r:1 w:1)
Storage: Contracts CodeStorage (r:1 w:0)
Storage: Timestamp Now (r:1 w:0)

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

Model:
Time ~=    300.7
    + r    49.38
              µs

Reads = 4 + (0 * r)
Writes = 1 + (0 * r)

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

Data points distribution:
    r   mean µs  sigma µs       %
    0       297     0.194    0.0%
    1     350.4     3.363    0.9%
    2     408.6     13.57    3.3%
    3     448.5     0.616    0.1%
    4       501     3.652    0.7%
    5     546.8     0.471    0.0%
    6     598.9      4.58    0.7%
    7     646.9     2.063    0.3%
    8     695.6      3.95    0.5%
    9     750.5     11.16    1.4%
   10     791.4     2.166    0.2%
   11     842.4     7.887    0.9%
   12     905.7     16.95    1.8%
   13     939.8     9.624    1.0%
   14      1002     13.36    1.3%
   15      1050     11.22    1.0%
   16      1106     15.01    1.3%
   17      1149     13.23    1.1%
   18      1202     10.89    0.9%
   19      1242     13.07    1.0%
   20      1290      13.4    1.0%

Quality and confidence:
param     error
r         0.125

Model:
Time ~=    300.1
    + r    49.82
              µs

Reads = 4 + (0 * r)
Writes = 1 + (0 * r)

Pallet: "pallet_contracts", Extrinsic: "seal_is_contract", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: System Account (r:1 w:0)
Storage: Contracts ContractInfoOf (r:1 w:1)
Storage: Contracts CodeStorage (r:1 w:0)
Storage: Timestamp Now (r:1 w:0)

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

Model:
Time ~=    188.2
    + r    374.8
              µs

Reads = 4 + (100 * r)
Writes = 1 + (0 * r)

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

Data points distribution:
    r   mean µs  sigma µs       %
    0     297.2     0.204    0.0%
    1     619.4     4.514    0.7%
    2     961.3     10.73    1.1%
    3      1314     9.481    0.7%
    4      1660     9.626    0.5%
    5      2042     5.001    0.2%
    6      2384     9.996    0.4%
    7      2704     10.34    0.3%
    8      3125     8.891    0.2%
    9      3523     13.55    0.3%
   10      3949     15.48    0.3%
   11      4338     10.44    0.2%
   12      4604     15.34    0.3%
   13      5023      25.8    0.5%
   14      5483     11.51    0.2%
   15      5729        28    0.4%
   16      6272     18.65    0.2%
   17      6551     10.87    0.1%
   18      6969     25.29    0.3%
   19      7425     27.74    0.3%
   20      7716     36.38    0.4%

Quality and confidence:
param     error
r         0.718

Model:
Time ~=    179.4
    + r    375.8
              µs

Reads = 4 + (100 * r)
Writes = 1 + (0 * r)

Pallet: "pallet_contracts", Extrinsic: "seal_caller_is_origin", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: System Account (r:1 w:0)
Storage: Contracts ContractInfoOf (r:1 w:1)
Storage: Contracts CodeStorage (r:1 w:0)
Storage: Timestamp Now (r:1 w:0)

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

Model:
Time ~=    295.8
    + r    21.71
              µs

Reads = 4 + (0 * r)
Writes = 1 + (0 * r)

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

Data points distribution:
    r   mean µs  sigma µs       %
    0     292.3     0.217    0.0%
    1     316.5       0.2    0.0%
    2     338.9     0.947    0.2%
    3     361.4     0.771    0.2%
    4     383.4     1.131    0.2%
    5     404.3     0.393    0.0%
    6     432.7     4.215    0.9%
    7     448.3     0.514    0.1%
    8     470.2     1.787    0.3%
    9       490     0.335    0.0%
   10     510.9     0.782    0.1%
   11     537.1     0.853    0.1%
   12     563.8     9.377    1.6%
   13     580.2     1.442    0.2%
   14     607.2     0.807    0.1%
   15     620.1     0.626    0.1%
   16     645.6     8.556    1.3%
   17     676.2     16.48    2.4%
   18     683.6     0.766    0.1%
   19     716.5     14.37    2.0%
   20       728     6.436    0.8%

Quality and confidence:
param     error
r         0.079

Model:
Time ~=    295.1
    + r    21.94
              µs

Reads = 4 + (0 * r)
Writes = 1 + (0 * r)

Pallet: "pallet_contracts", Extrinsic: "seal_address", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: System Account (r:1 w:0)
Storage: Contracts ContractInfoOf (r:1 w:1)
Storage: Contracts CodeStorage (r:1 w:0)
Storage: Timestamp Now (r:1 w:0)

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

Model:
Time ~=    300.9
    + r    49.02
              µs

Reads = 4 + (0 * r)
Writes = 1 + (0 * r)

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

Data points distribution:
    r   mean µs  sigma µs       %
    0     297.1     0.094    0.0%
    1     349.2      0.13    0.0%
    2     399.1      0.28    0.0%
    3     447.7     0.983    0.2%
    4       499     0.256    0.0%
    5     545.8     0.736    0.1%
    6     598.8     5.357    0.8%
    7     650.7     10.75    1.6%
    8       700     13.39    1.9%
    9     743.9     5.498    0.7%
   10     790.6     4.488    0.5%
   11     836.9     2.528    0.3%
   12     898.7     14.77    1.6%
   13     947.9     14.76    1.5%
   14     993.4     11.49    1.1%
   15      1044     12.52    1.1%
   16      1087     2.079    0.1%
   17      1141     12.62    1.1%
   18      1194     13.52    1.1%
   19      1238     12.96    1.0%
   20      1283     9.853    0.7%

Quality and confidence:
param     error
r         0.111

Model:
Time ~=    300.3
    + r    49.43
              µs

Reads = 4 + (0 * r)
Writes = 1 + (0 * r)

Pallet: "pallet_contracts", Extrinsic: "seal_gas_left", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: System Account (r:1 w:0)
Storage: Contracts ContractInfoOf (r:1 w:1)
Storage: Contracts CodeStorage (r:1 w:0)
Storage: Timestamp Now (r:1 w:0)

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

Model:
Time ~=    300.9
    + r    48.68
              µs

Reads = 4 + (0 * r)
Writes = 1 + (0 * r)

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

Data points distribution:
    r   mean µs  sigma µs       %
    0       297     0.135    0.0%
    1     354.7     2.866    0.8%
    2     398.4     0.201    0.0%
    3       449     0.161    0.0%
    4     495.9     0.786    0.1%
    5     543.2      0.41    0.0%
    6     595.8     6.603    1.1%
    7     641.9      0.35    0.0%
    8     690.6     2.069    0.2%
    9     745.2     7.589    1.0%
   10       786      0.34    0.0%
   11     832.8       1.1    0.1%
   12     882.8     0.327    0.0%
   13     933.3     10.31    1.1%
   14     987.1     2.581    0.2%
   15      1034     9.205    0.8%
   16      1082     9.869    0.9%
   17      1128      4.13    0.3%
   18      1196     14.39    1.2%
   19      1229     8.558    0.6%
   20      1280     11.64    0.9%

Quality and confidence:
param     error
r         0.087

Model:
Time ~=    299.8
    + r       49
              µs

Reads = 4 + (0 * r)
Writes = 1 + (0 * r)

Pallet: "pallet_contracts", Extrinsic: "seal_balance", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: System Account (r:1 w:0)
Storage: Contracts ContractInfoOf (r:1 w:1)
Storage: Contracts CodeStorage (r:1 w:0)
Storage: Timestamp Now (r:1 w:0)

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

Model:
Time ~=    304.4
    + r    138.6
              µs

Reads = 5 + (0 * r)
Writes = 1 + (0 * r)

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

Data points distribution:
    r   mean µs  sigma µs       %
    0     296.5     0.121    0.0%
    1       447     10.24    2.2%
    2       582      5.74    0.9%
    3     718.6     1.035    0.1%
    4     860.9     10.87    1.2%
    5      1006     14.87    1.4%
    6      1148     12.74    1.1%
    7      1278     10.67    0.8%
    8      1425     17.19    1.2%
    9      1546     9.293    0.6%
   10      1692     13.88    0.8%
   11      1838     9.929    0.5%
   12      1970     12.76    0.6%
   13      2112     10.34    0.4%
   14      2259      14.3    0.6%
   15      2389     12.69    0.5%
   16      2519     9.203    0.3%
   17      2654      10.8    0.4%
   18      2793     13.35    0.4%
   19      2952     8.362    0.2%
   20      3123     5.529    0.1%

Quality and confidence:
param     error
r         0.175

Model:
Time ~=      303
    + r    139.2
              µs

Reads = 5 + (0 * r)
Writes = 1 + (0 * r)

Pallet: "pallet_contracts", Extrinsic: "seal_value_transferred", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: System Account (r:1 w:0)
Storage: Contracts ContractInfoOf (r:1 w:1)
Storage: Contracts CodeStorage (r:1 w:0)
Storage: Timestamp Now (r:1 w:0)

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

Model:
Time ~=    300.9
    + r    48.63
              µs

Reads = 4 + (0 * r)
Writes = 1 + (0 * r)

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

Data points distribution:
    r   mean µs  sigma µs       %
    0       297     0.212    0.0%
    1     348.6     0.363    0.1%
    2     398.4     0.219    0.0%
    3     447.1     1.688    0.3%
    4     495.9     0.752    0.1%
    5     542.9     0.828    0.1%
    6     594.1     0.747    0.1%
    7     642.1      0.44    0.0%
    8       690     0.441    0.0%
    9     738.2     0.807    0.1%
   10     788.6     5.379    0.6%
   11     833.1     1.731    0.2%
   12     902.7     12.26    1.3%
   13     927.6     0.872    0.0%
   14     984.4     2.811    0.2%
   15      1036     10.36    0.9%
   16      1094     12.49    1.1%
   17      1135     14.48    1.2%
   18      1175     1.971    0.1%
   19      1229      10.6    0.8%
   20      1270      2.39    0.1%

Quality and confidence:
param     error
r         0.093

Model:
Time ~=    299.7
    + r    48.94
              µs

Reads = 4 + (0 * r)
Writes = 1 + (0 * r)

Pallet: "pallet_contracts", Extrinsic: "seal_minimum_balance", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: System Account (r:1 w:0)
Storage: Contracts ContractInfoOf (r:1 w:1)
Storage: Contracts CodeStorage (r:1 w:0)
Storage: Timestamp Now (r:1 w:0)

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

Model:
Time ~=    301.2
    + r    48.57
              µs

Reads = 4 + (0 * r)
Writes = 1 + (0 * r)

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

Data points distribution:
    r   mean µs  sigma µs       %
    0     297.1     0.281    0.0%
    1       349      0.37    0.1%
    2     398.4     0.479    0.1%
    3     446.6     0.414    0.0%
    4     506.6     8.954    1.7%
    5     547.6     9.825    1.7%
    6     594.6     9.248    1.5%
    7     645.6     6.311    0.9%
    8     690.3     0.978    0.1%
    9     747.7     13.58    1.8%
   10     794.5     13.39    1.6%
   11       837     8.453    1.0%
   12     898.6     16.71    1.8%
   13     943.1     14.96    1.5%
   14     985.2      2.52    0.2%
   15      1045     11.98    1.1%
   16      1092      14.6    1.3%
   17      1131     11.26    0.9%
   18      1176     7.961    0.6%
   19      1232     13.99    1.1%
   20      1276     13.91    1.0%

Quality and confidence:
param     error
r         0.128

Model:
Time ~=    302.2
    + r       49
              µs

Reads = 4 + (0 * r)
Writes = 1 + (0 * r)

Pallet: "pallet_contracts", Extrinsic: "seal_block_number", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: System Account (r:1 w:0)
Storage: Contracts ContractInfoOf (r:1 w:1)
Storage: Contracts CodeStorage (r:1 w:0)
Storage: Timestamp Now (r:1 w:0)

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

Model:
Time ~=    301.3
    + r    48.28
              µs

Reads = 4 + (0 * r)
Writes = 1 + (0 * r)

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

Data points distribution:
    r   mean µs  sigma µs       %
    0     298.7     4.088    1.3%
    1     349.3     1.786    0.5%
    2     399.7     4.275    1.0%
    3     447.5     3.906    0.8%
    4     502.2     8.015    1.5%
    5       544     0.813    0.1%
    6     588.8     0.812    0.1%
    7     653.3     9.157    1.4%
    8     689.1     4.883    0.7%
    9     739.7     7.972    1.0%
   10     783.9     5.394    0.6%
   11     835.8     7.909    0.9%
   12     880.3     5.553    0.6%
   13     924.4     0.751    0.0%
   14     984.7     9.146    0.9%
   15      1032     10.06    0.9%
   16      1083     11.36    1.0%
   17      1134     14.44    1.2%
   18      1194     16.29    1.3%
   19      1227        11    0.8%
   20      1268     10.59    0.8%

Quality and confidence:
param     error
r         0.114

Model:
Time ~=    300.7
    + r    48.79
              µs

Reads = 4 + (0 * r)
Writes = 1 + (0 * r)

Pallet: "pallet_contracts", Extrinsic: "seal_now", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: System Account (r:1 w:0)
Storage: Contracts ContractInfoOf (r:1 w:1)
Storage: Contracts CodeStorage (r:1 w:0)
Storage: Timestamp Now (r:1 w:0)

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

Model:
Time ~=      301
    + r    48.46
              µs

Reads = 4 + (0 * r)
Writes = 1 + (0 * r)

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

Data points distribution:
    r   mean µs  sigma µs       %
    0     298.8     4.726    1.5%
    1     348.3     0.252    0.0%
    2     405.2     8.199    2.0%
    3     445.9     0.432    0.0%
    4     494.9     0.273    0.0%
    5       543     0.866    0.1%
    6     591.3     1.514    0.2%
    7     646.3     10.05    1.5%
    8     689.2     1.893    0.2%
    9     743.5      10.3    1.3%
   10     798.3     13.14    1.6%
   11     839.3      10.8    1.2%
   12     899.3     18.28    2.0%
   13     933.6     12.34    1.3%
   14     988.3     8.637    0.8%
   15      1034     8.871    0.8%
   16      1082     9.131    0.8%
   17      1131     9.699    0.8%
   18      1189     14.74    1.2%
   19      1223     7.529    0.6%
   20      1269     8.076    0.6%

Quality and confidence:
param     error
r         0.119

Model:
Time ~=    301.9
    + r    48.83
              µs

Reads = 4 + (0 * r)
Writes = 1 + (0 * r)

Pallet: "pallet_contracts", Extrinsic: "seal_weight_to_fee", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: System Account (r:1 w:0)
Storage: Contracts ContractInfoOf (r:1 w:1)
Storage: Contracts CodeStorage (r:1 w:0)
Storage: Timestamp Now (r:1 w:0)
Storage: TransactionPayment NextFeeMultiplier (r:1 w:0)

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

Model:
Time ~=      304
    + r    121.3
              µs

Reads = 5 + (0 * r)
Writes = 1 + (0 * r)

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

Data points distribution:
    r   mean µs  sigma µs       %
    0     297.2      0.16    0.0%
    1       424     0.385    0.0%
    2     546.9     4.218    0.7%
    3     677.1     15.36    2.2%
    4     791.4     11.48    1.4%
    5     913.3     11.11    1.2%
    6      1045     12.75    1.2%
    7      1152      8.47    0.7%
    8      1281      13.3    1.0%
    9      1404     15.28    1.0%
   10      1517     13.86    0.9%
   11      1644      14.4    0.8%
   12      1772     11.88    0.6%
   13      1892     13.38    0.7%
   14      2022     7.566    0.3%
   15      2134     13.02    0.6%
   16      2255     9.774    0.4%
   17      2367     11.78    0.4%
   18      2504     12.76    0.5%
   19      2616     13.42    0.5%
   20      2734     10.87    0.3%

Quality and confidence:
param     error
r         0.146

Model:
Time ~=    304.9
    + r    121.8
              µs

Reads = 5 + (0 * r)
Writes = 1 + (0 * r)

Pallet: "pallet_contracts", Extrinsic: "seal_gas", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: System Account (r:1 w:0)
Storage: Contracts ContractInfoOf (r:1 w:1)
Storage: Contracts CodeStorage (r:1 w:0)
Storage: Timestamp Now (r:1 w:0)

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

Model:
Time ~=    177.6
    + r    24.93
              µs

Reads = 4 + (0 * r)
Writes = 1 + (0 * r)

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

Data points distribution:
    r   mean µs  sigma µs       %
    0     173.6     0.143    0.0%
    1     201.8      0.17    0.0%
    2     226.2     0.117    0.0%
    3     252.8     0.322    0.1%
    4       279      0.23    0.0%
    5       303      4.09    1.3%
    6     331.8     3.488    1.0%
    7     352.3     0.233    0.0%
    8     376.6     0.442    0.1%
    9     401.4     0.576    0.1%
   10       429     4.684    1.0%
   11     454.1     0.379    0.0%
   12     482.1      5.17    1.0%
   13       508     5.206    1.0%
   14     528.4     2.046    0.3%
   15     559.9     11.54    2.0%
   16     576.1     1.993    0.3%
   17     599.6     0.539    0.0%
   18     624.1     0.628    0.1%
   19     649.2     1.067    0.1%
   20     673.3     0.746    0.1%

Quality and confidence:
param     error
r         0.052

Model:
Time ~=    178.1
    + r    24.96
              µs

Reads = 4 + (0 * r)
Writes = 1 + (0 * r)

Pallet: "pallet_contracts", Extrinsic: "seal_input", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: System Account (r:1 w:0)
Storage: Contracts ContractInfoOf (r:1 w:1)
Storage: Contracts CodeStorage (r:1 w:0)
Storage: Timestamp Now (r:1 w:0)

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

Model:
Time ~=    299.5
    + r    48.59
              µs

Reads = 4 + (0 * r)
Writes = 1 + (0 * r)

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

Data points distribution:
    r   mean µs  sigma µs       %
    0     296.8     0.182    0.0%
    1     348.2     0.154    0.0%
    2     397.5     0.213    0.0%
    3     444.4     0.185    0.0%
    4     496.8     7.834    1.5%
    5     540.2      0.46    0.0%
    6     587.5     1.963    0.3%
    7     645.1     10.34    1.6%
    8     684.2     0.638    0.0%
    9     751.6     8.858    1.1%
   10     784.7     13.08    1.6%
   11     832.1     9.902    1.1%
   12     893.2     15.69    1.7%
   13     954.5     14.21    1.4%
   14     982.9     11.58    1.1%
   15      1029     13.11    1.2%
   16      1082     9.904    0.9%
   17      1119     8.985    0.8%
   18      1173     13.73    1.1%
   19      1232     11.97    0.9%
   20      1299     8.743    0.6%

Quality and confidence:
param     error
r          0.14

Model:
Time ~=    297.3
    + r    49.19
              µs

Reads = 4 + (0 * r)
Writes = 1 + (0 * r)

Pallet: "pallet_contracts", Extrinsic: "seal_input_per_kb", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: System Account (r:1 w:0)
Storage: Contracts ContractInfoOf (r:1 w:1)
Storage: Contracts CodeStorage (r:1 w:0)
Storage: Timestamp Now (r:1 w:0)

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

Model:
Time ~=    374.5
    + n    11.92
              µs

Reads = 4 + (0 * n)
Writes = 1 + (0 * n)

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

Data points distribution:
    n   mean µs  sigma µs       %
    0       348     0.154    0.0%
   20       591     1.698    0.2%
   40     838.5     11.43    1.3%
   60      1080     13.14    1.2%
   80      1318     14.77    1.1%
  100      1563     14.02    0.8%
  120      1809     15.09    0.8%
  140      2047     11.36    0.5%
  160      2305     8.841    0.3%
  180      2527        10    0.3%
  200      2762     9.443    0.3%
  220      3000     9.807    0.3%
  240      3234     20.07    0.6%
  260      3477       5.7    0.1%
  280      3712     14.43    0.3%
  300      3955      9.81    0.2%
  320      4186     5.254    0.1%
  340      4437     12.06    0.2%
  360      4664     13.91    0.2%
  380      4921      20.4    0.4%
  400      5135     15.14    0.2%
  420      5393      17.1    0.3%
  440      5622        15    0.2%
  460      5869     17.87    0.3%
  480      6091     14.54    0.2%
  500      6330     20.87    0.3%
  520      6601     21.29    0.3%
  540      6816     22.85    0.3%
  560      7058     22.85    0.3%
  580      7319     31.24    0.4%
  600      7519     20.58    0.2%
  620      7763      28.1    0.3%
  640      8000     30.65    0.3%
  660      8239     25.47    0.3%
  680      8476      22.3    0.2%
  700      8708     16.57    0.1%
  720      8967     18.65    0.2%
  740      9214     26.72    0.2%
  760      9465     28.32    0.2%
  780      9690     36.69    0.3%
  800      9890     24.31    0.2%
  820     10150     26.08    0.2%
  840     10390     32.83    0.3%
  860     10640     17.57    0.1%
  880     10870     28.53    0.2%
  900     11090     32.91    0.2%
  920     11340     15.22    0.1%
  940     11560     26.49    0.2%
  960     11810     31.56    0.2%
  980     12040     30.29    0.2%
 1000     12280     25.08    0.2%
 1020     12520     13.75    0.1%

Quality and confidence:
param     error
n         0.003

Model:
Time ~=    374.4
    + n    11.92
              µs

Reads = 4 + (0 * n)
Writes = 1 + (0 * n)

Pallet: "pallet_contracts", Extrinsic: "seal_return", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: System Account (r:1 w:0)
Storage: Contracts ContractInfoOf (r:1 w:1)
Storage: Contracts CodeStorage (r:1 w:0)
Storage: Timestamp Now (r:1 w:0)

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

Model:
Time ~=    292.1
    + r    1.524
              µs

Reads = 4 + (0 * r)
Writes = 1 + (0 * r)

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

Data points distribution:
    r   mean µs  sigma µs       %
    0     292.2     0.258    0.0%
    1     293.7     0.226    0.0%

Quality and confidence:
param     error
r         0.114

Model:
Time ~=    292.2
    + r    1.474
              µs

Reads = 4 + (0 * r)
Writes = 1 + (0 * r)

Pallet: "pallet_contracts", Extrinsic: "seal_return_per_kb", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: System Account (r:1 w:0)
Storage: Contracts ContractInfoOf (r:1 w:1)
Storage: Contracts CodeStorage (r:1 w:0)
Storage: Timestamp Now (r:1 w:0)

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

Model:
Time ~=    294.1
    + n    0.228
              µs

Reads = 4 + (0 * n)
Writes = 1 + (0 * n)

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

Data points distribution:
    n   mean µs  sigma µs       %
    0     293.8     0.189    0.0%
   20     298.5     0.116    0.0%
   40       303     0.107    0.0%
   60     307.8     0.451    0.1%
   80     312.7     0.334    0.1%
  100     318.4     2.747    0.8%
  120     321.7     0.117    0.0%
  140     326.1      0.17    0.0%
  160     330.8       0.2    0.0%
  180       336     1.663    0.4%
  200     343.7     10.72    3.1%
  220     344.3     0.215    0.0%
  240     350.6     5.095    1.4%
  260     353.5     0.179    0.0%
  280       358     0.192    0.0%
  300     371.4     1.626    0.4%
  320     367.3     0.299    0.0%
  340     371.9      0.16    0.0%
  360     378.3      5.16    1.3%
  380     381.2     0.353    0.0%
  400     390.4     6.995    1.7%
  420     392.9     4.657    1.1%
  440     394.8     0.119    0.0%
  460     399.1      0.18    0.0%
  480       404     0.269    0.0%
  500     408.9     0.165    0.0%
  520     412.6     0.339    0.0%
  540     417.7     0.211    0.0%
  560     421.8     0.238    0.0%
  580     426.7     0.194    0.0%
  600       432      1.69    0.3%
  620     435.6     0.301    0.0%
  640     440.2     0.254    0.0%
  660     447.4     4.301    0.9%
  680     449.4     0.164    0.0%
  700     456.9     9.043    1.9%
  720     463.1     9.107    1.9%
  740     463.5     0.333    0.0%
  760     469.4     4.016    0.8%
  780     477.7     10.64    2.2%
  800     482.2     10.48    2.1%
  820       482     0.466    0.0%
  840     485.9      0.11    0.0%
  860     491.9      2.83    0.5%
  880     496.8      4.15    0.8%
  900     499.8     0.289    0.0%
  920     506.1     4.362    0.8%
  940     509.2     0.271    0.0%
  960     513.2      0.18    0.0%
  980     517.9     0.295    0.0%
 1000     530.9     11.15    2.1%
 1020     527.4     0.358    0.0%

Quality and confidence:
param     error
n             0

Model:
Time ~=    294.7
    + n     0.23
              µs

Reads = 4 + (0 * n)
Writes = 1 + (0 * n)

Pallet: "pallet_contracts", Extrinsic: "seal_terminate", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: System Account (r:1 w:0)
Storage: Contracts ContractInfoOf (r:1 w:1)
Storage: Contracts CodeStorage (r:1 w:0)
Storage: Timestamp Now (r:1 w:0)
Storage: Contracts DeletionQueue (r:1 w:1)
Storage: Contracts OwnerInfoOf (r:1 w:1)

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

Model:
Time ~=    297.3
    + r    50.89
              µs

Reads = 4 + (4 * r)
Writes = 1 + (5 * r)

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

Data points distribution:
    r   mean µs  sigma µs       %
    0     297.5     0.949    0.3%
    1       351     8.454    2.4%

Quality and confidence:
param     error
r         2.835

Model:
Time ~=    297.5
    + r    53.49
              µs

Reads = 4 + (4 * r)
Writes = 1 + (5 * r)

Pallet: "pallet_contracts", Extrinsic: "seal_random", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: System Account (r:1 w:0)
Storage: Contracts ContractInfoOf (r:1 w:1)
Storage: Contracts CodeStorage (r:1 w:0)
Storage: Timestamp Now (r:1 w:0)
Storage: RandomnessCollectiveFlip RandomMaterial (r:1 w:0)

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

Model:
Time ~=    300.5
    + r      160
              µs

Reads = 5 + (0 * r)
Writes = 1 + (0 * r)

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

Data points distribution:
    r   mean µs  sigma µs       %
    0       297     0.124    0.0%
    1     460.8     0.561    0.1%
    2     619.4     1.472    0.2%
    3     780.6     9.183    1.1%
    4     941.5     12.27    1.3%
    5      1096     6.458    0.5%
    6      1282     11.15    0.8%
    7      1421     13.18    0.9%
    8      1566     9.187    0.5%
    9      1750     12.46    0.7%
   10      1912      11.8    0.6%
   11      2060     12.55    0.6%
   12      2223     14.11    0.6%
   13      2363     12.25    0.5%
   14      2541     9.919    0.3%
   15      2692      11.7    0.4%
   16      2858      11.1    0.3%
   17      3030     11.81    0.3%
   18      3251     12.13    0.3%
   19      3348     4.982    0.1%
   20      3508     8.754    0.2%

Quality and confidence:
param     error
r          0.22

Model:
Time ~=    296.3
    + r    160.8
              µs

Reads = 5 + (0 * r)
Writes = 1 + (0 * r)

Pallet: "pallet_contracts", Extrinsic: "seal_deposit_event", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: System Account (r:1 w:0)
Storage: Contracts ContractInfoOf (r:1 w:1)
Storage: Contracts CodeStorage (r:1 w:0)
Storage: Timestamp Now (r:1 w:0)

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

Model:
Time ~=    307.6
    + r    277.6
              µs

Reads = 4 + (0 * r)
Writes = 1 + (0 * r)

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

Data points distribution:
    r   mean µs  sigma µs       %
    0     292.9     0.175    0.0%
    1     586.3     4.011    0.6%
    2     870.4     15.43    1.7%
    3      1145     11.08    0.9%
    4      1417     14.34    1.0%
    5      1697     12.88    0.7%
    6      1990     9.631    0.4%
    7      2254     16.48    0.7%
    8      2537     12.42    0.4%
    9      2803     14.55    0.5%
   10      3086     12.17    0.3%
   11      3360     12.81    0.3%
   12      3630     13.29    0.3%
   13      3935     18.75    0.4%
   14      4185     15.77    0.3%
   15      4462     20.44    0.4%
   16      4743     12.61    0.2%
   17      5034     15.69    0.3%
   18      5332     23.19    0.4%
   19      5581     16.58    0.2%
   20      5858     17.69    0.3%

Quality and confidence:
param     error
r         0.202

Model:
Time ~=    308.4
    + r    277.7
              µs

Reads = 4 + (0 * r)
Writes = 1 + (0 * r)

Pallet: "pallet_contracts", Extrinsic: "seal_deposit_event_per_topic_and_kb", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: System Account (r:1 w:0)
Storage: Contracts ContractInfoOf (r:1 w:1)
Storage: Contracts CodeStorage (r:1 w:0)
Storage: Timestamp Now (r:1 w:0)
Storage: System EventTopics (r:100 w:100)

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

Model:
Time ~=    623.4
    + t    296.5
    + n    85.08
              µs

Reads = 4 + (100 * t) + (0 * n)
Writes = 1 + (100 * t) + (0 * n)

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

Data points distribution:
    t     n   mean µs  sigma µs       %
    0    16      1959     14.33    0.7%
    1    16      2304     11.73    0.5%
    2    16      2599     11.33    0.4%
    3    16      2889     16.84    0.5%
    4     0      1765     7.281    0.4%
    4     1      1895     9.721    0.5%
    4     2      1963     13.25    0.6%
    4     3      2039     16.87    0.8%
    4     4      2091     16.41    0.7%
    4     5      2183     13.04    0.5%
    4     6      2280     12.11    0.5%
    4     7      2346     11.94    0.5%
    4     8      2418     12.27    0.5%
    4     9      2505     12.74    0.5%
    4    10      2615     13.64    0.5%
    4    11      2686     18.59    0.6%
    4    12      2760     10.92    0.3%
    4    13      2860     19.02    0.6%
    4    14      2955     8.789    0.2%
    4    15      3072     9.037    0.2%
    4    16      3161     14.11    0.4%

Quality and confidence:
param     error
t         2.053
n         0.404

Model:
Time ~=    625.1
    + t    284.7
    + n    85.89
              µs

Reads = 4 + (100 * t) + (0 * n)
Writes = 1 + (100 * t) + (0 * n)

Pallet: "pallet_contracts", Extrinsic: "seal_debug_message", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: System Account (r:1 w:0)
Storage: Contracts ContractInfoOf (r:1 w:1)
Storage: Contracts CodeStorage (r:1 w:0)
Storage: Timestamp Now (r:1 w:0)

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

Model:
Time ~=    185.5
    + r    41.32
              µs

Reads = 4 + (0 * r)
Writes = 1 + (0 * r)

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

Data points distribution:
    r   mean µs  sigma µs       %
    0     182.9     0.213    0.1%
    1     227.7     0.301    0.1%
    2     268.2     0.314    0.1%
    3       311     1.464    0.4%
    4     349.8     0.533    0.1%
    5     389.6     0.728    0.1%
    6     433.8     1.878    0.4%
    7     473.4     3.032    0.6%
    8     511.7     0.588    0.1%
    9     554.9     9.505    1.7%
   10     594.3     10.73    1.8%
   11     643.3      5.61    0.8%
   12     682.2     5.179    0.7%
   13     731.4     11.03    1.5%
   14     779.4     15.26    1.9%
   15     798.3     1.197    0.1%
   16     842.5     10.59    1.2%
   17       928     4.417    0.4%
   18     944.6     14.65    1.5%
   19     969.2      0.97    0.1%
   20      1012     6.827    0.6%

Quality and confidence:
param     error
r         0.134

Model:
Time ~=    182.1
    + r    41.92
              µs

Reads = 4 + (0 * r)
Writes = 1 + (0 * r)

Pallet: "pallet_contracts", Extrinsic: "seal_set_storage", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Skipped Metadata (r:0 w:0)

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

Model:
Time ~=    156.3
    + r    401.5
              µs

Reads = 4 + (100 * r)
Writes = 1 + (100 * r)

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

Data points distribution:
    r   mean µs  sigma µs       %
    0     297.6     0.349    0.1%
    1     642.2     5.907    0.9%
    2     994.5     3.024    0.3%
    3      1383     13.17    0.9%
    4      1751     17.28    0.9%
    5      2138     14.01    0.6%
    6      2528     9.431    0.3%
    7      2913     12.11    0.4%
    8      3267     9.961    0.3%
    9      3755     25.39    0.6%
   10      4147      31.5    0.7%
   11      4553      10.6    0.2%
   12      4946     18.11    0.3%
   13      5348     16.84    0.3%
   14      5709     25.02    0.4%
   15      6113     21.32    0.3%
   16      6556     38.92    0.5%
   17      6999     46.41    0.6%
   18      7536     33.61    0.4%
   19      7990     21.53    0.2%
   20      8428     24.62    0.2%

Quality and confidence:
param     error
r         1.038

Model:
Time ~=      139
    + r    405.1
              µs

Reads = 4 + (100 * r)
Writes = 1 + (100 * r)

Pallet: "pallet_contracts", Extrinsic: "seal_set_storage_per_new_kb", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Skipped Metadata (r:0 w:0)

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

Model:
Time ~=    697.3
    + n    30.67
              µs

Reads = 105 + (0 * n)
Writes = 103 + (0 * n)

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

Data points distribution:
    n   mean µs  sigma µs       %
    0     640.5     1.523    0.2%
    1     728.4     2.528    0.3%
    2     762.5     7.065    0.9%
    3     790.1     1.451    0.1%
    4     824.5     5.491    0.6%
    5     851.5     1.573    0.1%
    6     889.5     11.29    1.2%
    7     923.3     10.41    1.1%
    8     941.7     9.667    1.0%
    9     978.9     6.162    0.6%
   10      1004     7.574    0.7%
   11      1028     10.84    1.0%
   12      1071     13.93    1.3%
   13      1101     9.111    0.8%
   14      1130     16.02    1.4%
   15      1162     13.99    1.2%
   16      1167     7.376    0.6%

Quality and confidence:
param     error
n         0.275

Model:
Time ~=    689.5
    + n    31.43
              µs

Reads = 105 + (0 * n)
Writes = 103 + (0 * n)

Pallet: "pallet_contracts", Extrinsic: "seal_set_storage_per_old_kb", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Skipped Metadata (r:0 w:0)

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

Model:
Time ~=    723.5
    + n    9.961
              µs

Reads = 105 + (0 * n)
Writes = 103 + (0 * n)

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

Data points distribution:
    n   mean µs  sigma µs       %
    0     644.1     1.539    0.2%
    1     715.7     1.701    0.2%
    2     750.6     1.678    0.2%
    3     772.8     12.67    1.6%
    4     768.8     1.125    0.1%
    5     777.2     7.518    0.9%
    6     788.8     10.99    1.3%
    7     797.6     7.795    0.9%
    8     808.1     8.979    1.1%
    9     819.2      9.31    1.1%
   10     811.4     5.301    0.6%
   11     832.7     13.73    1.6%
   12     845.3      13.4    1.5%
   13     838.4     2.591    0.3%
   14     856.4     8.358    0.9%
   15     875.2     5.853    0.6%
   16       887     8.995    1.0%

Quality and confidence:
param     error
n          0.34

Model:
Time ~=    709.9
    + n    11.18
              µs

Reads = 105 + (0 * n)
Writes = 103 + (0 * n)

Pallet: "pallet_contracts", Extrinsic: "seal_clear_storage", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Skipped Metadata (r:0 w:0)

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

Model:
Time ~=    189.1
    + r    385.9
              µs

Reads = 5 + (100 * r)
Writes = 3 + (100 * r)

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

Data points distribution:
    r   mean µs  sigma µs       %
    0       298     1.709    0.5%
    1     645.9     1.709    0.2%
    2       997     13.46    1.3%
    3      1349     1.695    0.1%
    4      1708     15.39    0.9%
    5      2095     12.71    0.6%
    6      2474     23.25    0.9%
    7      2808     12.47    0.4%
    8      3217     10.92    0.3%
    9      3650     19.22    0.5%
   10      3996     18.53    0.4%
   11      4410     23.95    0.5%
   12      4850     44.56    0.9%
   13      5137     16.26    0.3%
   14      5550     15.76    0.2%
   15      5917     14.67    0.2%
   16      6383     30.74    0.4%
   17      6730     20.35    0.3%
   18      7318     23.02    0.3%
   19      7669     35.89    0.4%
   20      8065      41.5    0.5%

Quality and confidence:
param     error
r         0.883

Model:
Time ~=    169.9
    + r      389
              µs

Reads = 5 + (100 * r)
Writes = 3 + (100 * r)

Pallet: "pallet_contracts", Extrinsic: "seal_clear_storage_per_kb", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Skipped Metadata (r:0 w:0)

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

Model:
Time ~=    703.9
    + n    9.839
              µs

Reads = 105 + (0 * n)
Writes = 103 + (0 * n)

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

Data points distribution:
    n   mean µs  sigma µs       %
    0     646.9     5.321    0.8%
    1     708.9     12.78    1.8%
    2     731.8     2.331    0.3%
    3     746.4     9.019    1.2%
    4     747.6     2.851    0.3%
    5     769.1     13.07    1.6%
    6     762.6     2.056    0.2%
    7     777.1     8.883    1.1%
    8     778.2     1.668    0.2%
    9     785.6     2.454    0.3%
   10     791.7     4.509    0.5%
   11     805.4     3.797    0.4%
   12     817.5     12.08    1.4%
   13     818.4     2.475    0.3%
   14     840.1     1.496    0.1%
   15     863.5     10.62    1.2%
   16     865.5     7.447    0.8%

Quality and confidence:
param     error
n         0.268

Model:
Time ~=    695.5
    + n    10.53
              µs

Reads = 105 + (0 * n)
Writes = 103 + (0 * n)

Pallet: "pallet_contracts", Extrinsic: "seal_get_storage", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Skipped Metadata (r:0 w:0)

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

Model:
Time ~=    205.4
    + r    327.2
              µs

Reads = 4 + (100 * r)
Writes = 1 + (0 * r)

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

Data points distribution:
    r   mean µs  sigma µs       %
    0       299     0.175    0.0%
    1     583.9      5.49    0.9%
    2     884.5     7.777    0.8%
    3      1192     3.843    0.3%
    4      1489     6.016    0.4%
    5      1818     8.924    0.4%
    6      2135     16.39    0.7%
    7      2446     10.76    0.4%
    8      2768     17.14    0.6%
    9      3173     17.57    0.5%
   10      3452     10.38    0.3%
   11      3774     10.64    0.2%
   12      4097     17.09    0.4%
   13      4434     23.17    0.5%
   14      4749     21.83    0.4%
   15      5098     14.72    0.2%
   16      5423     32.03    0.5%
   17      5787     22.37    0.3%
   18      6165      21.2    0.3%
   19      6512     35.76    0.5%
   20      6879     16.96    0.2%

Quality and confidence:
param     error
r         0.607

Model:
Time ~=      195
    + r    328.9
              µs

Reads = 4 + (100 * r)
Writes = 1 + (0 * r)

Pallet: "pallet_contracts", Extrinsic: "seal_get_storage_per_kb", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Skipped Metadata (r:0 w:0)

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

Model:
Time ~=    660.1
    + n    67.95
              µs

Reads = 104 + (0 * n)
Writes = 1 + (0 * n)

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

Data points distribution:
    n   mean µs  sigma µs       %
    0     587.2     8.161    1.3%
    1     705.4     1.432    0.2%
    2     813.4     9.569    1.1%
    3     875.6     8.862    1.0%
    4     940.1     1.838    0.1%
    5      1012     13.01    1.2%
    6      1075     12.04    1.1%
    7      1140      12.2    1.0%
    8      1200     13.13    1.0%
    9      1262     16.68    1.3%
   10      1322     9.401    0.7%
   11      1393     12.22    0.8%
   12      1464     9.538    0.6%
   13      1530     12.31    0.8%
   14      1606     14.09    0.8%
   15      1685      12.2    0.7%
   16      1755     15.78    0.8%

Quality and confidence:
param     error
n         0.361

Model:
Time ~=    647.4
    + n    68.84
              µs

Reads = 104 + (0 * n)
Writes = 1 + (0 * n)

Pallet: "pallet_contracts", Extrinsic: "seal_contains_storage", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Skipped Metadata (r:0 w:0)

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

Model:
Time ~=    216.6
    + r    292.8
              µs

Reads = 4 + (100 * r)
Writes = 1 + (0 * r)

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

Data points distribution:
    r   mean µs  sigma µs       %
    0     297.2     0.111    0.0%
    1     552.2     6.533    1.1%
    2     823.5     11.47    1.3%
    3      1106     9.655    0.8%
    4      1372     6.126    0.4%
    5      1664     8.449    0.5%
    6      1936     7.175    0.3%
    7      2224        16    0.7%
    8      2508     15.28    0.6%
    9      2820     23.42    0.8%
   10      3109     17.39    0.5%
   11      3418     15.11    0.4%
   12      3735     13.55    0.3%
   13      4005     16.93    0.4%
   14      4255      17.9    0.4%
   15      4575     17.88    0.3%
   16      4892     36.59    0.7%
   17      5196     32.45    0.6%
   18      5596      18.5    0.3%
   19      5900     35.12    0.5%
   20      6211     21.02    0.3%

Quality and confidence:
param     error
r         0.658

Model:
Time ~=    198.9
    + r    295.3
              µs

Reads = 4 + (100 * r)
Writes = 1 + (0 * r)

Pallet: "pallet_contracts", Extrinsic: "seal_contains_storage_per_kb", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info
========
Storage: Skipped Metadata (r:0 w:0)

Median Slopes Analysis
========
-- Extrinsic Time<truncated>...

athei and others added 5 commits February 9, 2022 12:37
…--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
@athei athei 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 Feb 9, 2022
@athei athei marked this pull request as ready for review February 9, 2022 12:03
@athei athei requested review from HCastano and cmichi February 9, 2022 12:20
Copy link
Contributor

@HCastano HCastano left a comment

Choose a reason for hiding this comment

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

I need to take another look at the benchmark changes, rest look good though

Comment on lines 139 to 142
/// Weight charged for copying data from the sandbox.
CopyIn(u32),
/// Weight charged for copying data to the sandbox.
CopyOut(u32),
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't these comments be swapped?

Copy link
Member Author

Choose a reason for hiding this comment

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

It depends what your point of view is. Those are written from the point of view of the pallet-contracts and not the contract. But I should rename them to make them independent of that point of view.

Comment on lines +815 to +817
if value > 0u32.into() {
self.charge_gas(RuntimeCosts::InstantiateSurchargeTransfer)?;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

My bank does the same thing 😆

Copy link
Contributor

@HCastano HCastano left a comment

Choose a reason for hiding this comment

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

Thanks for the clarifications!

@athei
Copy link
Member Author

athei commented Feb 15, 2022

bot merge

@paritytech-processbot paritytech-processbot bot merged commit dd8a868 into master Feb 15, 2022
@paritytech-processbot paritytech-processbot bot deleted the at-call-weights branch February 15, 2022 08:56
grishasobol pushed a commit to gear-tech/substrate that referenced this pull request Mar 28, 2022
* 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]>
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
chan…
ark0f pushed a commit to gear-tech/substrate that referenced this pull request Feb 27, 2023
* 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]>
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. D2-notlive 💤 PR contains changes in a runtime directory that is not deployed to a chain that requires an audit.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add proper weight to new version of seal_call

4 participants