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

contracts: add seal_code_hash and seal_own_code_hash to API #10933

Merged
merged 28 commits into from
Mar 29, 2022

Conversation

agryaznov
Copy link
Contributor

@agryaznov agryaznov commented Feb 27, 2022

This is a follow-up to #10789 to add the following functions to contracts API:

fn origin() -> &AccountId;
fn code_hash(&AccountId) -> Option<CodeHash>;
fn own_code_hash() -> &CodeHash;

Edit: seal_origin was ultimately not included in this PR, see here as to why

@github-actions github-actions bot added the A0-please_review Pull request needs code review. label Feb 27, 2022
@athei athei added B7-runtimenoteworthy 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 28, 2022
frame/contracts/src/wasm/runtime.rs Show resolved Hide resolved
frame/contracts/src/wasm/runtime.rs Outdated Show resolved Hide resolved
frame/contracts/src/wasm/runtime.rs Outdated Show resolved Hide resolved
frame/contracts/src/wasm/runtime.rs Outdated Show resolved Hide resolved
frame/contracts/src/exec.rs Outdated Show resolved Hide resolved
frame/contracts/src/exec.rs Outdated Show resolved Hide resolved
frame/contracts/src/tests.rs Outdated Show resolved Hide resolved
frame/contracts/src/wasm/mod.rs Outdated Show resolved Hide resolved
frame/contracts/src/benchmarking/mod.rs Outdated Show resolved Hide resolved
frame/contracts/src/benchmarking/mod.rs Outdated Show resolved Hide resolved
@athei
Copy link
Member

athei commented Mar 10, 2022

Sorry for taking so long with my review. Kind of swamped here. Most of this is very minor stuff except the benchmarks.

@agryaznov agryaznov requested a review from athei March 16, 2022 13:20
frame/contracts/src/exec.rs Outdated Show resolved Hide resolved
frame/contracts/src/exec.rs Outdated Show resolved Hide resolved
frame/contracts/src/benchmarking/mod.rs Outdated Show resolved Hide resolved
frame/contracts/src/benchmarking/mod.rs Outdated Show resolved Hide resolved
frame/contracts/src/benchmarking/mod.rs Outdated Show resolved Hide resolved
frame/contracts/src/benchmarking/mod.rs Outdated Show resolved Hide resolved
@agryaznov agryaznov requested a review from athei March 17, 2022 11:44
Copy link
Member

@athei athei left a comment

Choose a reason for hiding this comment

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

Well done. We need to work for the benchmarking bot to work again, though.

@athei
Copy link
Member

athei commented Mar 21, 2022

/benchmark runtime pallet pallet_contracts

@parity-benchapp
Copy link

parity-benchapp bot commented Mar 21, 2022

Benchmark Runtime Pallet for branch "code_hash" 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.569
              µs

Reads = 1
Writes = 0

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

Model:
Time ~=    1.569
              µ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 ~=    9.455
    + k    0.749
              µs

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

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

Data points distribution:
    k   mean µs  sigma µs       %
    0     8.618     0.046    0.5%
   20     26.97     0.162    0.6%
   40     42.06      0.21    0.4%
   60     55.63     0.297    0.5%
   80      68.7     0.298    0.4%
  100     80.22     0.267    0.3%
  120     94.84     0.523    0.5%
  140     110.5      0.37    0.3%
  160     126.2     0.725    0.5%
  180       141     0.511    0.3%
  200     155.6     0.499    0.3%
  220     171.8     0.387    0.2%
  240     186.3     0.283    0.1%
  260     200.8      0.97    0.4%
  280       217     0.513    0.2%
  300     231.4     1.117    0.4%
  320     248.7     0.871    0.3%
  340     265.5     1.023    0.3%
  360     280.4     0.731    0.2%
  380     295.2     0.821    0.2%
  400     312.1     1.949    0.6%
  420       326     0.789    0.2%
  440     342.9     1.073    0.3%
  460     356.1     1.976    0.5%
  480     371.5     1.149    0.3%
  500     386.6      1.64    0.4%
  520     402.3     0.951    0.2%
  540     417.2     1.505    0.3%
  560     431.6     1.699    0.3%
  580     448.7     3.482    0.7%
  600     461.4     1.003    0.2%
  620     474.5     1.506    0.3%
  640     490.5     1.538    0.3%
  660     506.2     2.422    0.4%
  680     523.1     3.003    0.5%
  700     538.8     6.765    1.2%
  720     548.7     1.391    0.2%
  740       577      6.76    1.1%
  760     578.2      1.25    0.2%
  780     593.5     3.279    0.5%
  800     607.6     2.753    0.4%
  820     621.9     1.661    0.2%
  840     638.6     4.741    0.7%
  860     651.8     1.038    0.1%
  880     666.1      1.01    0.1%
  900     679.4     2.237    0.3%
  920     694.2     2.546    0.3%
  940       708     8.559    1.2%
  960     717.1     1.941    0.2%
  980       740     7.438    1.0%
 1000       758     11.75    1.5%
 1020       771      7.99    1.0%

Quality and confidence:
param     error
k             0

Model:
Time ~=     9.62
    + k    0.748
              µ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 ~=    6.121
    + q    1.769
              µs

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

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

Data points distribution:
    q   mean µs  sigma µs       %
    0     1.613     0.019    1.1%
   20      46.8     0.356    0.7%
   40     81.29     0.393    0.4%
   60     118.3     0.328    0.2%
   80     150.1      0.52    0.3%
  100     182.5     0.762    0.4%
  120     225.7     0.778    0.3%
  140     253.6     0.784    0.3%
  160     297.8     5.074    1.7%
  180     325.2     1.905    0.5%
  200     352.7       2.2    0.6%
  220     389.6     3.686    0.9%
  240     441.3     3.079    0.6%
  260     475.7     3.836    0.8%
  280     512.3     5.066    0.9%
  300     536.7     6.093    1.1%
  320     567.5     3.341    0.5%
  340     592.2     4.873    0.8%
  360     623.1     5.278    0.8%
  380     667.8     13.13    1.9%
  400     701.5     6.076    0.8%
  420     741.5     9.305    1.2%
  440     779.1     7.028    0.9%
  460     787.1     4.204    0.5%
  480     839.9     7.355    0.8%
  500     870.3     8.272    0.9%
  520     904.7     5.981    0.6%
  540       939     12.63    1.3%
  560     976.3     10.67    1.0%
  580     992.5     9.625    0.9%
  600      1037     12.69    1.2%
  620      1106     15.64    1.4%
  640      1123     7.618    0.6%
  660      1165     13.07    1.1%
  680      1183     13.95    1.1%
  700      1216     9.139    0.7%
  720      1254     18.51    1.4%
  740      1329     24.11    1.8%
  760      1343     21.31    1.5%
  780      1331     6.733    0.5%
  800      1399     9.579    0.6%
  820      1440     18.86    1.3%
  840      1482     15.77    1.0%
  860      1532     34.64    2.2%
  880      1555     26.01    1.6%
  900      1627     24.77    1.5%
  920      1688     14.87    0.8%
  940      1720     11.11    0.6%
  960      1780      28.6    1.6%
  980      1804     22.98    1.2%
 1000      1822     11.15    0.6%
 1020      1876     11.83    0.6%

Quality and confidence:
param     error
q         0.004

Model:
Time ~=        0
    + q    1.795
              µ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 ~=    18.43
    + c    0.048
              µs

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

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

Data points distribution:
    c   mean µs  sigma µs       %
    0     20.75     0.328    1.5%
 2621     148.7     1.307    0.8%
 5242     271.5     0.328    0.1%
 7863     402.3     2.067    0.5%
10484     521.6     8.462    1.6%
13105     659.8     9.918    1.5%
15726     795.1     13.08    1.6%
18347     900.4      5.65    0.6%
20968      1031     14.89    1.4%
23589      1142     14.44    1.2%
26210      1297     15.52    1.1%
28831      1418     14.19    1.0%
31452      1543     15.92    1.0%
34073      1673     12.44    0.7%
36694      1818     7.909    0.4%
39315      1926     3.659    0.1%
41936      2033     13.62    0.6%
44557      2156      13.2    0.6%
47178      2276     8.953    0.3%
49799      2460     14.11    0.5%
52420      2588     24.95    0.9%
55041      2702     9.816    0.3%
57662      2823     8.438    0.2%
60283      2949     18.04    0.6%
62904      3074     14.16    0.4%
65525      3190     18.27    0.5%
68146      3336     11.24    0.3%
70767      3444     5.616    0.1%
73388      3573     8.759    0.2%
76009      3689     2.569    0.0%
78630      3808     3.765    0.0%
81251      3939     15.66    0.3%
83872      4050     13.08    0.3%
86493      4180     14.27    0.3%
89114      4334     13.67    0.3%
91735      4420     14.34    0.3%
94356      4541     12.08    0.2%
96977      4655     16.11    0.3%
99598      4926     21.32    0.4%
102219      5038     15.78    0.3%
104840      5165     15.72    0.3%
107461      5280     11.48    0.2%
110082      5401     11.68    0.2%
112703      5527     23.94    0.4%
115324      5633     11.92    0.2%
117945      5756     9.864    0.1%
120566      5908      26.4    0.4%
123187      5999      11.5    0.1%
125808      6137     12.81    0.2%
128429      6241     19.64    0.3%
131050      6368     28.95    0.4%

Quality and confidence:
param     error
c             0

Model:
Time ~=    12.25
    + c    0.049
              µs

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

Pallet: "pallet_contracts", Extrinsic: "call_with_code_per_byte", 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 ~=    222.6
    + c    0.053
              µs

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

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

Data points distribution:
    c   mean µs  sigma µs       %
    0     231.1     0.174    0.0%
 2621     366.2     0.365    0.0%
 5242       501     0.823    0.1%
 7863       642     1.716    0.2%
10484     777.2     8.129    1.0%
13105     927.1     13.63    1.4%
15726      1052     7.748    0.7%
18347      1175     1.304    0.1%
20968      1307     7.607    0.5%
23589      1449     16.26    1.1%
26210      1629      16.5    1.0%
28831      1747     10.03    0.5%
31452      1882     13.71    0.7%
34073      2069     11.26    0.5%
36694      2160     17.25    0.7%
39315      2280     13.47    0.5%
41936      2423     12.92    0.5%
44557      2537     13.94    0.5%
47178      2682     10.77    0.4%
49799      2934     12.95    0.4%
52420      3042     16.17    0.5%
55041      3171     5.643    0.1%
57662      3309     11.83    0.3%
60283      3424     11.04    0.3%
62904      3559      21.7    0.6%
65525      3700     10.35    0.2%
68146      3827     6.591    0.1%
70767      3962     5.176    0.1%
73388      4083       5.5    0.1%
76009      4218     15.09    0.3%
78630      4370     15.64    0.3%
81251      4491     10.03    0.2%
83872      4622     10.52    0.2%
86493      4768     20.11    0.4%
89114      4966        18    0.3%
91735      4996     14.77    0.2%
94356      5130      11.1    0.2%
96977      5259     13.38    0.2%
99598      5584     11.51    0.2%
102219      5717     13.98    0.2%
104840      5840     18.88    0.3%
107461      6010     24.76    0.4%
110082      6120     26.24    0.4%
112703      6246        28    0.4%
115324      6373     13.29    0.2%
117945      6508      18.4    0.2%
120566      6640     28.91    0.4%
123187      6762      16.7    0.2%
125808      6897      14.5    0.2%
128429      7025     15.05    0.2%
131050      7161     19.59    0.2%

Quality and confidence:
param     error
c             0

Model:
Time ~=    213.4
    + c    0.053
              µ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 Nonce (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 ~=      261
    + c    0.125
    + s    0.001
              µ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 1048576      2049     11.99    0.5%
 1284 1048576      2054     17.44    0.8%
 2568 1048576      2222     8.496    0.3%
 3852 1048576      2370     11.26    0.4%
 5136 1048576      2530     3.697    0.1%
 6420 1048576      2693     10.52    0.3%
 7704 1048576      2853     10.99    0.3%
 8988 1048576      3031     12.63    0.4%
10272 1048576      3174     15.66    0.4%
11556 1048576      3321     9.696    0.2%
12840 1048576      3503     17.58    0.5%
14124 1048576      3658     11.49    0.3%
15408 1048576      3791     9.451    0.2%
16692 1048576      3981     8.329    0.2%
17976 1048576      4149     17.46    0.4%
19260 1048576      4303     15.35    0.3%
20544 1048576      4451     14.09    0.3%
21828 1048576      4597     13.21    0.2%
23112 1048576      4758     18.45    0.3%
24396 1048576      4872     11.52    0.2%
25680 1048576      5117     14.52    0.2%
26964 1048576      5260     17.46    0.3%
28248 1048576      5404     16.62    0.3%
29532 1048576      5563     12.98    0.2%
30816 1048576      5709     15.39    0.2%
32100 1048576      5869     17.17    0.2%
33384 1048576      6112     16.89    0.2%
34668 1048576      6280     13.73    0.2%
35952 1048576      6419     19.77    0.3%
37236 1048576      6594     31.41    0.4%
38520 1048576      6711     15.85    0.2%
39804 1048576      6872     20.23    0.2%
41088 1048576      7033     12.18    0.1%
42372 1048576      7178     20.43    0.2%
43656 1048576      7357     28.62    0.3%
44940 1048576      7515     29.94    0.3%
46224 1048576      7645     38.66    0.5%
47508 1048576      7784     30.29    0.3%
48792 1048576      7953     21.17    0.2%
50076 1048576      8228     42.78    0.5%
51360 1048576      8368     39.51    0.4%
52644 1048576      8512     27.45    0.3%
53928 1048576      8674     27.74    0.3%
55212 1048576      8833     27.08    0.3%
56496 1048576      8967     13.33    0.1%
57780 1048576      9148     38.89    0.4%
59064 1048576      9434     31.11    0.3%
60348 1048576      9443     30.06    0.3%
61632 1048576      9589     22.34    0.2%
62916 1048576      9753     21.28    0.2%
64200 1048576      9921     19.88    0.2%
64226     0      8268     25.09    0.3%
64226 20971      8269     21.02    0.2%
64226 41942      8334     19.27    0.2%
64226 62913      8345     23.39    0.2%
64226 83884      8380     26.24    0.3%
64226 104855      8418     29.35    0.3%
64226 125826      8489     40.08    0.4%
64226 146797      8513     20.64    0.2%
64226 167768      8524     27.79    0.3%
64226 188739      8577     21.88    0.2%
64226 209710      8571     23.37    0.2%
64226 230681      8622     22.45    0.2%
64226 251652      8659     30.11    0.3%
64226 272623      8683     23.83    0.2%
64226 293594      8715     12.97    0.1%
64226 314565      8741     27.78    0.3%
64226 335536      8777     26.01    0.2%
64226 356507      8808     23.26    0.2%
64226 377478      8834     32.49    0.3%
64226 398449      8871     21.54    0.2%
64226 419420      8894     18.74    0.2%
64226 440391      8942     24.57    0.2%
64226 461362      8965     21.14    0.2%
64226 482333      8987     22.21    0.2%
64226 503304      9060     23.24    0.2%
64226 524275      9061      24.6    0.2%
64226 545246      9106     11.59    0.1%
64226 566217      9120     23.47    0.2%
64226 587188      9180     27.56    0.3%
64226 608159      9202     25.04    0.2%
64226 629130      9250     31.18    0.3%
64226 650101      9282     32.22    0.3%
64226 671072      9302     45.42    0.4%
64226 692043      9343     42.07    0.4%
64226 713014      9340     39.46    0.4%
64226 733985      9402     23.15    0.2%
64226 754956      9416     32.17    0.3%
64226 775927      9468     36.28    0.3%
64226 796898      9484     31.09    0.3%
64226 817869      9542     28.75    0.3%
64226 838840      9543     11.14    0.1%
64226 859811      9601     28.54    0.2%
64226 880782      9630     25.82    0.2%
64226 901753      9657     42.49    0.4%
64226 922724      9679     34.59    0.3%
64226 943695      9705     23.46    0.2%
64226 964666      9748     30.69    0.3%
64226 985637      9951     10.46    0.1%
64226 1006608      9821     36.47    0.3%
64226 1027579      9848     39.89    0.4%
64226 1048550      9900     20.65    0.2%

Quality and confidence:
param     error
c             0
s             0

Model:
Time ~=    231.1
    + c    0.125
    + s    0.002
              µ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 Nonce (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 ~=    175.6
    + s    0.001
              µs

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

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

Data points distribution:
    s   mean µs  sigma µs       %
    0     173.7      0.85    0.4%
20971     210.5     2.012    0.9%
41942     247.5     6.565    2.6%
62913     280.1     1.843    0.6%
83884     313.7     0.284    0.0%
104855     349.2     0.982    0.2%
125826       384     0.977    0.2%
146797     419.8      8.04    1.9%
167768     452.8     0.702    0.1%
188739     487.2      0.59    0.1%
209710     524.9       8.7    1.6%
230681     562.2     7.479    1.3%
251652     597.5     10.61    1.7%
272623     629.3     10.81    1.7%
293594     673.7     15.93    2.3%
314565       701     11.42    1.6%
335536     738.5     12.73    1.7%
356507     764.4     0.537    0.0%
377478     815.6     14.31    1.7%
398449     838.6      10.8    1.2%
419420     873.7     6.423    0.7%
440391     908.4     12.15    1.3%
461362     942.2     12.23    1.2%
482333     998.8     1.618    0.1%
503304      1027     14.26    1.3%
524275      1045     11.49    1.0%
545246      1086     13.61    1.2%
566217      1119     12.76    1.1%
587188      1152     15.81    1.3%
608159      1201     11.91    0.9%
629130      1225     13.03    1.0%
650101      1252     9.016    0.7%
671072      1302     13.08    1.0%
692043      1335     13.14    0.9%
713014      1371      18.9    1.3%
733985      1405     13.66    0.9%
754956      1430     13.88    0.9%
775927      1485     11.61    0.7%
796898      1511     11.73    0.7%
817869      1548     13.07    0.8%
838840      1581     12.62    0.7%
859811      1611     15.34    0.9%
880782      1661     4.036    0.2%
901753      1713      2.11    0.1%
922724      1723     12.96    0.7%
943695      1766     3.303    0.1%
964666      1787     15.22    0.8%
985637      1837      23.9    1.3%
1006608      1868     5.979    0.3%
1027579      1894     16.34    0.8%
1048550      1943     5.682    0.2%

Quality and confidence:
param     error
s             0

Model:
Time ~=    172.2
    + s    0.002
              µ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 ~=    140.9
              µs

Reads = 4
Writes = 2

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

Model:
Time ~=    140.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 ~=    45.98
    + c    0.049
              µs

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

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

Data points distribution:
    c   mean µs  sigma µs       %
    0     42.93     0.178    0.4%
 1310     112.2     0.414    0.3%
 2620       178     0.407    0.2%
 3930     238.6     0.471    0.1%
 5240     300.9     0.268    0.0%
 6550     370.7     0.817    0.2%
 7860     433.5      4.66    1.0%
 9170     495.9     9.381    1.8%
10480     553.8     5.185    0.9%
11790     614.6     0.575    0.0%
13100     694.4     5.245    0.7%
14410     758.2     11.38    1.5%
15720       821     10.46    1.2%
17030     879.4     6.063    0.6%
18340     957.4     12.15    1.2%
19650      1011     13.11    1.2%
20960      1079     16.02    1.4%
22270      1131     13.49    1.1%
23580      1188     13.52    1.1%
24890      1285     14.21    1.1%
26200      1361     9.503    0.6%
27510      1414     13.85    0.9%
28820      1471     15.84    1.0%
30130      1531     14.28    0.9%
31440      1603     10.62    0.6%
32750      1654     13.34    0.8%
34060      1738     13.56    0.7%
35370      1797     18.72    1.0%
36680      1870     18.65    0.9%
37990      1928     16.61    0.8%
39300      1971     12.56    0.6%
40610      2038     20.58    1.0%
41920      2102     10.73    0.5%
43230      2160     9.599    0.4%
44540      2215     14.06    0.6%
45850      2293     6.011    0.2%
47160      2354     2.063    0.0%
48470      2422     14.44    0.5%
49780      2545     11.24    0.4%
51090      2592      17.3    0.6%
52400      2655     7.374    0.2%
53710      2714     11.81    0.4%
55020      2786     14.73    0.5%
56330      2838     14.07    0.4%
57640      2895     9.865    0.3%
58950      2960     12.28    0.4%
60260      3024     10.19    0.3%
61570      3093     14.27    0.4%
62880      3153     15.93    0.5%
64190      3213     14.97    0.4%
65500      3265     9.829    0.3%

Quality and confidence:
param     error
c             0

Model:
Time ~=    42.49
    + c    0.049
              µ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.53
              µs

Reads = 1
Writes = 3

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

Model:
Time ~=    24.53
              µ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 ~=    220.3
    + r    47.67
              µs

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

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

Data points distribution:
    r   mean µs  sigma µs       %
    0     220.8     0.303    0.1%
    1       268     4.082    1.5%
    2     315.2     0.512    0.1%
    3     362.1     1.264    0.3%
    4     412.1     1.979    0.4%
    5     458.6     1.016    0.2%
    6     506.7     4.033    0.7%
    7     560.3     8.353    1.4%
    8     602.4     0.811    0.1%
    9     650.2     1.638    0.2%
   10     697.6     6.659    0.9%
   11     746.2     6.282    0.8%
   12     789.1     1.324    0.1%
   13     842.7     9.391    1.1%
   14       889     0.989    0.1%
   15     944.1     11.18    1.1%
   16     988.6     11.07    1.1%
   17      1038     12.32    1.1%
   18      1080     8.343    0.7%
   19      1126     9.703    0.8%
   20      1176     7.696    0.6%

Quality and confidence:
param     error
r          0.08

Model:
Time ~=      220
    + r    47.88
              µ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 ~=    76.16
    + r      369
              µs

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

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

Data points distribution:
    r   mean µs  sigma µs       %
    0     213.2      5.18    2.4%
    1     533.9     4.309    0.8%
    2     847.5     6.404    0.7%
    3      1188     11.82    0.9%
    4      1535     9.588    0.6%
    5      1888     12.52    0.6%
    6      2250     11.39    0.5%
    7      2652     9.013    0.3%
    8      2981     12.25    0.4%
    9      3355     17.66    0.5%
   10      3758     15.77    0.4%
   11      4079     18.46    0.4%
   12      4498     19.07    0.4%
   13      4906     19.01    0.3%
   14      5255     15.46    0.2%
   15      5521     13.62    0.2%
   16      5985     12.05    0.2%
   17      6307     14.78    0.2%
   18      6764     19.97    0.2%
   19      7254     21.33    0.2%
   20      7695     20.63    0.2%

Quality and confidence:
param     error
r           0.9

Model:
Time ~=    71.77
    + r    371.2
              µs

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

Pallet: "pallet_contracts", Extrinsic: "seal_code_hash", 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 ~=    62.75
    + r    438.6
              µs

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

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

Data points distribution:
    r   mean µs  sigma µs       %
    0     221.1     2.509    1.1%
    1     597.5      7.67    1.2%
    2     992.1     8.435    0.8%
    3      1409     12.91    0.9%
    4      1802     10.96    0.6%
    5      2247     14.92    0.6%
    6      2672     9.398    0.3%
    7      3077     11.31    0.3%
    8      3529     10.78    0.3%
    9      3959     13.24    0.3%
   10      4351     13.03    0.2%
   11      4811      13.7    0.2%
   12      5245     9.199    0.1%
   13      5711     20.47    0.3%
   14      6127     14.83    0.2%
   15      6579     20.59    0.3%
   16      7156     25.16    0.3%
   17      7561     31.19    0.4%
   18      8158     15.68    0.1%
   19      8650     31.66    0.3%
   20      9737     231.4    2.3%

Quality and confidence:
param     error
r         2.329

Model:
Time ~=        0
    + r    451.7
              µs

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

Pallet: "pallet_contracts", Extrinsic: "seal_own_code_hash", 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 ~=    228.9
    + r    52.68
              µs

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

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

Data points distribution:
    r   mean µs  sigma µs       %
    0     224.2     0.735    0.3%
    1     282.3     0.455    0.1%
    2     337.9     0.721    0.2%
    3     390.5     1.407    0.3%
    4     452.1     5.118    1.1%
    5     502.3     0.913    0.1%
    6     535.3     2.168    0.4%
    7     598.6     9.135    1.5%
    8     644.5     5.535    0.8%
    9     695.9     2.433    0.3%
   10     747.8     7.023    0.9%
   11     799.9     6.547    0.8%
   12     855.3     9.022    1.0%
   13     900.4     1.627    0.1%
   14     983.9      7.07    0.7%
   15      1019     12.56    1.2%
   16      1082     14.64    1.3%
   17      1122     9.137    0.8%
   18      1181     12.35    1.0%
   19      1233     12.48    1.0%
   20      1291     13.01    1.0%

Quality and confidence:
param     error
r         0.128

Model:
Time ~=    227.8
    + r    52.84
              µs

Reads = 4 + (0 * 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 ~=    214.4
    + r    20.81
              µs

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

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

Data points distribution:
    r   mean µs  sigma µs       %
    0     213.1     0.948    0.4%
    1     235.4     0.295    0.1%
    2     256.1     0.346    0.1%
    3     276.8     0.212    0.0%
    4       298     0.375    0.1%
    5     318.4     0.469    0.1%
    6     340.7     1.436    0.4%
    7       360     0.904    0.2%
    8     379.8     0.416    0.1%
    9       401     3.207    0.7%
   10       420     0.844    0.2%
   11       444     0.731    0.1%
   12     464.1     1.653    0.3%
   13       484     1.855    0.3%
   14     509.4     4.715    0.9%
   15     527.2     1.385    0.2%
   16     547.5      0.83    0.1%
   17     567.9     0.849    0.1%
   18     594.3     9.735    1.6%
   19     608.9     2.695    0.4%
   20     641.4     4.603    0.7%

Quality and confidence:
param     error
r         0.043

Model:
Time ~=      213
    + r    21.02
              µs

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

Pallet: "pallet_contracts", Extrinsic: "seal_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 ~=    219.1
    + r    47.63
              µs

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

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

Data points distribution:
    r   mean µs  sigma µs       %
    0       221     0.201    0.0%
    1     259.3     6.384    2.4%
    2     318.3     5.534    1.7%
    3     361.5     0.604    0.1%
    4       414     3.422    0.8%
    5     456.8     0.618    0.1%
    6       504     2.445    0.4%
    7     557.7     9.856    1.7%
    8       600     1.107    0.1%
    9     657.5     11.87    1.8%
   10     692.6     0.886    0.1%
   11     739.1      1.24    0.1%
   12     795.7     14.55    1.8%
   13     837.5     12.46    1.4%
   14     891.7     6.629    0.7%
   15     943.9     12.77    1.3%
   16     993.2     10.79    1.0%
   17      1026      2.31    0.2%
   18      1077     7.091    0.6%
   19      1130     12.18    1.0%
   20      1187     11.67    0.9%

Quality and confidence:
param     error
r         0.108

Model:
Time ~=    217.8
    + r    48.06
              µ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 ~=    218.4
    + r    47.71
              µs

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

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

Data points distribution:
    r   mean µs  sigma µs       %
    0     216.1     1.186    0.5%
    1     265.9     0.232    0.0%
    2     319.4     3.367    1.0%
    3     361.4     0.921    0.2%
    4     413.7     6.569    1.5%
    5     456.6     0.925    0.2%
    6       505      4.48    0.8%
    7     553.9     1.198    0.2%
    8     599.4     1.215    0.2%
    9     653.8     8.867    1.3%
   10     695.7       5.3    0.7%
   11     745.6      5.07    0.6%
   12     803.3     13.51    1.6%
   13     839.8     9.181    1.0%
   14       909     14.29    1.5%
   15     947.4     13.47    1.4%
   16     984.2     8.776    0.8%
   17      1035     11.05    1.0%
   18      1091     12.28    1.1%
   19      1126     11.81    1.0%
   20      1166     9.276    0.7%

Quality and confidence:
param     error
r         0.117

Model:
Time ~=      219
    + r    48.05
              µ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 ~=    219.3
    + r    47.09
              µs

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

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

Data points distribution:
    r   mean µs  sigma µs       %
    0     215.9     0.268    0.1%
    1     265.5     0.498    0.1%
    2     305.4     6.669    2.1%
    3       358     3.819    1.0%
    4     408.8     0.756    0.1%
    5     455.9     1.774    0.3%
    6     501.8     1.282    0.2%
    7     558.1     9.998    1.7%
    8     606.6      11.9    1.9%
    9     649.7     8.605    1.3%
   10     691.3     2.398    0.3%
   11     738.2       6.8    0.9%
   12       787     9.028    1.1%
   13     835.3     11.69    1.4%
   14     878.9     1.861    0.2%
   15     925.1     2.081    0.2%
   16     979.6     9.029    0.9%
   17      1031     13.57    1.3%
   18      1066     7.863    0.7%
   19      1112     6.894    0.6%
   20      1161      13.3    1.1%

Quality and confidence:
param     error
r         0.101

Model:
Time ~=    218.8
    + r    47.32
              µ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 ~=    219.4
    + r    142.3
              µs

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

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

Data points distribution:
    r   mean µs  sigma µs       %
    0     215.6     0.282    0.1%
    1     362.7     0.288    0.0%
    2     494.4     4.631    0.9%
    3       643     3.298    0.5%
    4     790.8     10.84    1.3%
    5     936.9     8.633    0.9%
    6      1077     12.99    1.2%
    7      1222     15.55    1.2%
    8      1363     11.51    0.8%
    9      1505     10.13    0.6%
   10      1637     13.89    0.8%
   11      1780     18.09    1.0%
   12      1931      16.6    0.8%
   13      2076     18.13    0.8%
   14      2226     17.63    0.7%
   15      2370     10.65    0.4%
   16      2495     21.54    0.8%
   17      2630      18.3    0.6%
   18      2788     9.963    0.3%
   19      2916     15.48    0.5%
   20      3069      14.7    0.4%

Quality and confidence:
param     error
r         0.171

Model:
Time ~=    219.2
    + r    142.5
              µ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 ~=    216.4
    + r    47.87
              µs

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

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

Data points distribution:
    r   mean µs  sigma µs       %
    0     215.6     0.083    0.0%
    1     265.7     0.259    0.0%
    2     314.2     0.432    0.1%
    3     360.5     0.863    0.2%
    4     408.3     0.877    0.2%
    5     453.3      3.83    0.8%
    6     502.7     7.208    1.4%
    7     551.2     0.626    0.1%
    8     598.4     2.361    0.3%
    9     644.2     0.853    0.1%
   10     707.7     10.59    1.4%
   11     743.5     11.76    1.5%
   12     798.3     10.02    1.2%
   13     838.3     10.39    1.2%
   14     901.7     16.29    1.8%
   15     955.4     8.518    0.8%
   16     985.5     10.99    1.1%
   17      1045     13.48    1.2%
   18      1080      13.5    1.2%
   19      1131     10.68    0.9%
   20      1177     12.45    1.0%

Quality and confidence:
param     error
r         0.119

Model:
Time ~=    215.1
    + r    48.39
              µ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 ~=    216.2
    + r    47.61
              µs

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

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

Data points distribution:
    r   mean µs  sigma µs       %
    0     215.8     0.454    0.2%
    1     265.7     0.786    0.2%
    2     314.6      2.05    0.6%
    3     359.9     0.764    0.2%
    4     397.7     5.908    1.4%
    5     450.4     5.027    1.1%
    6     505.1     10.31    2.0%
    7     549.6     0.823    0.1%
    8     599.4     9.492    1.5%
    9     645.9     8.262    1.2%
   10     701.1      13.2    1.8%
   11     738.8     5.929    0.8%
   12     780.9     1.885    0.2%
   13     838.2      13.9    1.6%
   14     893.3      11.8    1.3%
   15     947.5     10.68    1.1%
   16     982.9     11.47    1.1%
   17      1026     5.372    0.5%
   18      1082     8.489    0.7%
   19      1125     14.86    1.3%
   20      1173     13.18    1.1%

Quality and confidence:
param     error
r         0.115

Model:
Time ~=    214.6
    + r    48.04
              µ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 ~=    215.8
    + r    47.66
              µs

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

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

Data points distribution:
    r   mean µs  sigma µs       %
    0       221     0.152    0.0%
    1     265.8     1.026    0.3%
    2     316.6     3.548    1.1%
    3     360.2     2.056    0.5%
    4     399.7     6.162    1.5%
    5     450.1     3.066    0.6%
    6     497.8     1.246    0.2%
    7     556.5     12.02    2.1%
    8       594     1.146    0.1%
    9     640.6     2.254    0.3%
   10     690.7     10.28    1.4%
   11     730.6     1.822    0.2%
   12     784.3     10.31    1.3%
   13     829.4     9.947    1.1%
   14     908.9     10.21    1.1%
   15     935.6     8.064    0.8%
   16     989.2     9.332    0.9%
   17      1042     14.11    1.3%
   18      1077     12.11    1.1%
   19      1127     9.251    0.8%
   20      1170     9.004    0.7%

Quality and confidence:
param     error
r         0.126

Model:
Time ~=      214
    + r    48.06
              µ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 ~=    216.4
    + r    47.46
              µs

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

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

Data points distribution:
    r   mean µs  sigma µs       %
    0     215.8     0.215    0.0%
    1       265     0.388    0.1%
    2     313.3     0.219    0.0%
    3     359.3     0.603    0.1%
    4     406.8      0.71    0.1%
    5     452.7     1.342    0.2%
    6     499.7      1.05    0.2%
    7     548.2     1.803    0.3%
    8     604.2     12.12    2.0%
    9       643     9.645    1.4%
   10     684.8      7.07    1.0%
   11     731.7     4.984    0.6%
   12     780.2      9.64    1.2%
   13     825.9     13.85    1.6%
   14     884.5     1.948    0.2%
   15     934.6     7.509    0.8%
   16     980.3     5.471    0.5%
   17      1035     10.78    1.0%
   18      1069     2.801    0.2%
   19      1135     7.061    0.6%
   20      1168     10.12    0.8%

Quality and confidence:
param     error
r           0.1

Model:
Time ~=    214.4
    + r    47.79
              µ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 ~=    230.5
    + r    121.9
              µs

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

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

Data points distribution:
    r   mean µs  sigma µs       %
    0       216     0.161    0.0%
    1     345.8      1.48    0.4%
    2     469.9     5.055    1.0%
    3     591.7     8.316    1.4%
    4     720.1     6.164    0.8%
    5     837.8     12.81    1.5%
    6       973     9.241    0.9%
    7      1099     6.697    0.6%
    8      1205     14.41    1.1%
    9      1329     15.72    1.1%
   10      1446     9.716    0.6%
   11      1576     13.07    0.8%
   12      1701     4.656    0.2%
   13      1820     9.338    0.5%
   14      1933     13.64    0.7%
   15      2061     7.864    0.3%
   16      2168     13.49    0.6%
   17      2300     14.08    0.6%
   18      2423     6.705    0.2%
   19      2549     19.24    0.7%
   20      2661     17.57    0.6%

Quality and confidence:
param     error
r          0.15

Model:
Time ~=    229.2
    + r    121.9
              µ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 ~=    127.3
    + r    23.97
              µs

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

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

Data points distribution:
    r   mean µs  sigma µs       %
    0     124.8     0.174    0.1%
    1     152.9     1.556    1.0%
    2     174.3     0.132    0.0%
    3       204     0.371    0.1%
    4     223.3     0.251    0.1%
    5     245.9     0.108    0.0%
    6     275.4     2.172    0.7%
    7     294.6     0.307    0.1%
    8     317.5     0.449    0.1%
    9     341.1     1.577    0.4%
   10     363.5     0.322    0.0%
   11     404.5     12.02    2.9%
   12     417.5     0.592    0.1%
   13     441.7     1.748    0.3%
   14     464.4     0.538    0.1%
   15     487.9     0.564    0.1%
   16     510.8     0.555    0.1%
   17     535.1      1.29    0.2%
   18     562.8     8.327    1.4%
   19     582.1     1.575    0.2%
   20     605.6     3.006    0.4%

Quality and confidence:
param     error
r         0.056

Model:
Time ~=    127.9
    + r    24.01
              µ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 ~=    217.2
    + r    46.52
              µs

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

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

Data points distribution:
    r   mean µs  sigma µs       %
    0     215.6     0.151    0.0%
    1     264.6     0.597    0.2%
    2     308.1     6.067    1.9%
    3     357.4     1.028    0.2%
    4     410.9     12.87    3.1%
    5     450.2     1.487    0.3%
    6     494.3     0.916    0.1%
    7     545.2     2.647    0.4%
    8     593.6     6.964    1.1%
    9     637.4     7.981    1.2%
   10     683.2     6.807    0.9%
   11     727.1     4.426    0.6%
   12     776.6     7.281    0.9%
   13       819     11.04    1.3%
   14     883.8      13.7    1.5%
   15     918.3      7.65    0.8%
   16       970     14.57    1.5%
   17      1017     13.79    1.3%
   18      1065     13.28    1.2%
   19      1103     10.64    0.9%
   20      1148     14.36    1.2%

Quality and confidence:
param     error
r         0.114

Model:
Time ~=    216.6
    + r    46.86
              µ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 ~=    285.3
    + n    11.89
              µs

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

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

Data points distribution:
    n   mean µs  sigma µs       %
    0     264.5     0.267    0.1%
   20     507.7     4.568    0.8%
   40     743.5     2.087    0.2%
   60     991.3     10.02    1.0%
   80      1236     12.69    1.0%
  100      1473     16.85    1.1%
  120      1711     15.17    0.8%
  140      1954     16.81    0.8%
  160      2190     15.69    0.7%
  180      2425     11.76    0.4%
  200      2678     9.435    0.3%
  220      2901     10.98    0.3%
  240      3154     19.91    0.6%
  260      3382     8.823    0.2%
  280      3620     9.686    0.2%
  300      3857     11.03    0.2%
  320      4093     11.68    0.2%
  340      4341     14.48    0.3%
  360      4581     12.81    0.2%
  380      4819     16.56    0.3%
  400      5043     12.48    0.2%
  420      5278     12.75    0.2%
  440      5530     16.45    0.2%
  460      5769      19.6    0.3%
  480      5985     11.29    0.1%
  500      6228     11.27    0.1%
  520      6464     18.34    0.2%
  540      6705     16.09    0.2%
  560      6948     15.86    0.2%
  580      7177     16.64    0.2%
  600      7418     16.24    0.2%
  620      7653     15.27    0.1%
  640      7883     16.22    0.2%
  660      8284     31.53    0.3%
  680      8367     17.16    0.2%
  700      8598     34.07    0.3%
  720      8834     28.33    0.3%
  740      9075     21.63    0.2%
  760      9323     27.04    0.2%
  780      9553     22.45    0.2%
  800      9830      33.1    0.3%
  820     10020      25.5    0.2%
  840     10280     36.45    0.3%
  860     10510     17.14    0.1%
  880     10740     19.68    0.1%
  900     11000      36.1    0.3%
  920     11220     19.42    0.1%
  940     11450     24.36    0.2%
  960     11700     35.61    0.3%
  980     11930     25.07    0.2%
 1000     12180     25.55    0.2%
 1020     12410     26.67    0.2%

Quality and confidence:
param     error
n         0.004

Model:
Time ~=    285.1
    + n    11.89
              µ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 ~=    213.7
    + r    0.929
              µs

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

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

Data points distribution:
    r   mean µs  sigma µs       %
    0     215.3     2.054    0.9%
    1     214.5     0.239    0.1%

Quality and confidence:
param     error
r         0.689

Model:
Time ~=    215.3
    + r        0
              µ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 ~=    214.6
    + n    0.198
              µs

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

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

Data points distribution:
    n   mean µs  sigma µs       %
    0     214.3     0.135    0.0%
   20     218.5     0.203    0.0%
   40     223.2     1.242    0.5%
   60     226.3     0.177    0.0%
   80     230.8     1.112    0.4%
  100     234.4     0.191    0.0%
  120     238.6      0.31    0.1%
  140     242.3     0.447    0.1%
  160     247.2     1.002    0.4%
  180     250.7     0.179    0.0%
  200     254.6     0.149    0.0%
  220     258.4     0.271    0.1%
  240     262.2      0.25    0.0%
  260     266.4     0.225    0.0%
  280     270.4     0.256    0.0%
  300     274.3     0.307    0.1%
  320     278.6     0.841    0.3%
  340     282.1     0.371    0.1%
  360     286.5     0.231    0.0%
  380     290.2     0.418    0.1%
  400     294.2     0.249    0.0%
  420     297.9     0.264    0.0%
  440       302     0.198    0.0%
  460     306.1     0.276    0.0%
  480       310      0.17    0.0%
  500     314.2      0.22    0.0%
  520     318.5     0.418    0.1%
  540       322     0.246    0.0%
  560     325.8     0.202    0.0%
  580     330.4     1.065    0.3%
  600     334.1     0.731    0.2%
  620     337.7     0.164    0.0%
  640     341.8     0.362    0.1%
  660     345.9      0.24    0.0%
  680     349.7     0.329    0.0%
  700     353.5     0.244    0.0%
  720     357.4     0.247    0.0%
  740     362.1      0.48    0.1%
  760     365.8     0.735    0.2%
  780     369.7     0.539    0.1%
  800     374.7      2.75    0.7%
  820     377.4     0.559    0.1%
  840     385.9     6.401    1.6%
  860     385.4     0.313    0.0%
  880     395.3     11.08    2.8%
  900     393.5      0.38    0.0%
  920     397.2     0.212    0.0%
  940     406.1     8.796    2.1%
  960     414.1      11.5    2.7%
  980     409.3     0.332    0.0%
 1000     420.9     11.99    2.8%
 1020     417.6     0.328    0.0%

Quality and confidence:
param     error
n             0

Model:
Time ~=    213.9
    + n    0.201
              µ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 ~=    215.6
    + r     52.4
              µs

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

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

Data points distribution:
    r   mean µs  sigma µs       %
    0     215.7     0.373    0.1%
    1     268.2     0.244    0.0%

Quality and confidence:
param     error
r         0.149

Model:
Time ~=    215.7
    + r    52.42
              µ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 ~=    218.1
    + r      157
              µs

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

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

Data points distribution:
    r   mean µs  sigma µs       %
    0       216     0.193    0.0%
    1     379.1     4.894    1.2%
    2     534.3     7.468    1.3%
    3     687.2     0.724    0.1%
    4       847     8.896    1.0%
    5      1009     12.93    1.2%
    6      1156     4.628    0.4%
    7      1329     13.76    1.0%
    8      1474     17.06    1.1%
    9      1645     16.12    0.9%
   10      1798      12.9    0.7%
   11      1952     18.08    0.9%
   12      2096     10.58    0.5%
   13      2264     9.647    0.4%
   14      2406     8.742    0.3%
   15      2575     9.193    0.3%
   16      2734     12.43    0.4%
   17      2906     16.18    0.5%
   18      3063     5.337    0.1%
   19      3208     7.548    0.2%
   20      3370     11.61    0.3%

Quality and confidence:
param     error
r         0.149

Model:
Time ~=    217.9
    + r    157.5
              µ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 ~=    226.3
    + r      297
              µs

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

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

Data points distribution:
    r   mean µs  sigma µs       %
    0     217.2     0.158    0.0%
    1     519.4     0.903    0.1%
    2     829.5     10.88    1.3%
    3      1121     9.586    0.8%
    4      1429     7.123    0.4%
    5      1724     16.12    0.9%
    6      2008     9.262    0.4%
    7      2323     12.94    0.5%
    8      2598     11.06    0.4%
    9      2915     10.22    0.3%
   10      3204     13.86    0.4%
   11      3501     9.095    0.2%
   12      3782     12.55    0.3%
   13      4090     9.322    0.2%
   14      4374      26.1    0.5%
   15      4660     18.26    0.3%
   16      5009     22.45    0.4%
   17      5281     14.32    0.2%
   18      5573     21.88    0.3%
   19      5874     17.65    0.3%
   20      6168     20.63    0.3%

Quality and confidence:
param     error
r          0.21

Model:
Time ~=    230.7
    + r    296.9
              µ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 ~=    556.1
    + t    294.4
    + n    81.44
              µ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      1817     19.61    1.0%
    1    16      2174     11.36    0.5%
    2    16      2462     11.68    0.4%
    3    16      2753     14.27    0.5%
    4     0      1714     5.932    0.3%
    4     1      1823     13.73    0.7%
    4     2      1883     11.16    0.5%
    4     3      1987      8.85    0.4%
    4     4      2053     7.361    0.3%
    4     5      2136     10.51    0.4%
    4     6      2181     8.429    0.3%
    4     7      2266     17.73    0.7%
    4     8      2350     16.01    0.6%
    4     9      2450      10.3    0.4%
    4    10      2529     13.97    0.5%
    4    11      2603        12    0.4%
    4    12      2688     17.49    0.6%
    4    13      2778     13.23    0.4%
    4    14      2852     11.75    0.4%
    4    15      2992     9.656    0.3%
    4    16      3028     12.37    0.4%

Quality and confidence:
param     error
t         1.701
n         0.335

Model:
Time ~=    539.2
    + t    294.3
    + n    82.11
              µ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 ~=    135.2
    + r    39.05
              µs

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

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

Data points distribution:
    r   mean µs  sigma µs       %
    0     131.8      0.23    0.1%
    1     174.4      0.22    0.1%
    2     212.8     0.386    0.1%
    3     253.1     0.716    0.2%
    4     291.1     1.075    0.3%
    5     332.9     0.927    0.2%
    6     371.6     1.366    0.3%
    7       411     3.931    0.9%
    8     447.5     1.723    0.3%
    9       483     0.927    0.1%
   10     520.7     1.605    0.3%
   11     577.3     5.216    0.9%
   12     607.8     7.323    1.2%
   13     642.3     1.523    0.2%
   14     680.5     1.409    0.2%
   15     750.3     14.34    1.9%
   16       757     1.604    0.2%
   17     805.2     6.613    0.8%
   18     837.7     1.786    0.2%
   19     876.1     2.699    0.3%
   20     913.2     1.561    0.1%

Quality and confidence:
param     error
r         0.094

Model:
Time ~=      135
    + r    39.24
              µ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.14
    + r    399.5
              µs

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

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

Data points distribution:
    r   mean µs  sigma µs       %
    0     215.9      0.21    0.0%
    1     552.6     2.316    0.4%
    2     906.5     7.249    0.7%
    3      1289     11.06    0.8%
    4      1646     16.48    1.0%
    5      2040     6.073    0.2%
    6      2415     12.76    0.5%
    7      2792     13.87    0.4%
    8      3127     20.15    0.6%
    9      3627     11.61    0.3%
   10      4014     11.42    0.2%
   11      4418     18.89    0.4%
   12      4823     23.07    0.4%
   13      5219     22.31    0.4%
   14      5591     28.87    0.5%
   15      6021     24.54    0.4%
   16      6442     21.81    0.3%
   17      6862     30.58    0.4%
   18      7436     28.23    0.3%
   19      7886     36.48    0.4%
   20      8272     28.43    0.3%

Quality and confidence:
param     error
r         1.107

Model:
Time ~=    41.75
    + r    403.4
              µ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 ~=      606
    + n    27.83
              µs

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

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

Data points distribution:
    n   mean µs  sigma µs       %
    0     556.8     3.082    0.5%
    1     634.7     3.412    0.5%
    2     668.5     6.023    0.9%
    3     699.5     8.666    1.2%
    4     726.6     8.292    1.1%
    5     755.5     10.84    1.4%
    6     771.6     7.583    0.9%
    7     811.2      11.8    1.4%
    8     825.8     8.714    1.0%
    9     855.9     7.479    0.8%
   10     881.3     3.245    0.3%
   11     920.9      15.3    1.6%
   12     940.4     12.62    1.3%
   13     975.5      10.6    1.0%
   14     992.4     2.085    0.2%
   15      1025     12.82    1.2%
   16      1041     9.515    0.9%

Quality and confidence:
param     error
n         0.255

Model:
Time ~=      602
    + n     28.3
              µ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 ~=    632.3
    + n    10.33
              µs

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

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

Data points distribution:
    n   mean µs  sigma µs       %
    0     559.1     5.133    0.9%
    1     630.4     4.007    0.6%
    2       664     2.819    0.4%
    3     677.3     8.811    1.3%
    4     680.8     2.443    0.3%
    5     694.2     5.766    0.8%
    6     697.8       5.8    0.8%
    7     703.4     5.772    0.8%
    8     719.9     6.962    0.9%
    9     714.5     2.039    0.2%
   10     733.4     13.65    1.8%
   11     752.1     6.329    0.8%
   12     751.1     11.57    1.5%
   13     759.3     7.125    0.9%
   14     772.2     3.644    0.4%
   15     787.1     3.324    0.4%
   16     800.7     11.51    1.4%

Quality and confidence:
param     error
n         0.308

Model:
Time ~=    620.9
    + n    11.33
              µ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 ~=    101.4
    + r    378.8
              µs

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

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

Data points distribution:
    r   mean µs  sigma µs       %
    0     215.8     0.219    0.1%
    1     559.7     2.355    0.4%
    2     898.8     4.449    0.4%
    3      1268     5.457    0.4%
    4      1601     4.411    0.2%
    5      1965     12.24    0.6%
    6      2330     4.486    0.1%
    7      2695     12.75    0.4%
    8      3053     12.82    0.4%
    9      3490     14.25    0.4%
   10      3849     11.95    0.3%
   11      4267     17.77    0.4%
   12      4635     26.03    0.5%
   13      4979     26.23    0.5%
   14      5353     17.66    0.3%
   15      5764     19.84    0.3%
   16      6140     20.75    0.3%
   17      6550     36.18    0.5%
   18      7077     28.52    0.4%
   19      7451     21.35    0.2%
   20      7850      24.8    0.3%

Quality and confidence:
param     error
r         0.851

Model:
Time ~=    88.11
    + r    381.6
              µ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 ~=    609.3
    + n    9.833
              µs

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

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

Data points distribution:
    n   mean µs  sigma µs       %
    0     556.7     1.138    0.2%
    1     606.3     0.949    0.1%
    2     638.6     2.495    0.3%
    3       657     13.12    1.9%
    4     655.9     3.585    0.5%
    5     664.3     8.762    1.3%
    6     679.6     13.15    1.9%
    7     686.4     10.37    1.5%
    8     685.9     3.637    0.5%
    9     693.5     4.711    0.6%
   10       698     7.482    1.0%
   11     712.8     4.053    0.5%
   12     714.4     6.681    0.9%
   13     726.5      1.64    0.2%
   14     747.2     9.364    1.2%
   15     762.6     4.328    0.5%
   16     766.7     2.831    0.3%

Quality and confidence:
param     error
n         0.262

Model:
Time ~=    603.1
    + n    10.28
              µ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 ~=    129.5
    + r    322.7
              µs

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

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

Data points distribution:
    r   mean µs  sigma µs       %
    0     217.4     0.229    0.1%
    1     498.4     3.168    0.6%
    2     790.8     5.153    0.6%
    3      1107     13.38    1.2%
    4      1416     8.735    0.6%
    5      1736     9.329    0.5%
    6      2020     17.91    0.8%
    7      2332     18.29    0.7%
    8      2637     17.13    0.6%
    9      3025     17.43    0.5%
   10      3313     12.86    0.3%
   11      3634     25.72    0.7%
   12      3957     15.34    0.3%
   13      4299      21.2    0.4%
   14      4615     27.05    0.5%
   15      4939     23.22    0.4%
   16      5282     22.52    0.4%
   17      5634      21.8    0.3%
   18      6052     35.92    0.5%
   19      6364     19.68    0.3%
   20      6697      36.8    0.5%

Quality and confidence:
param     error
r         0.666

Model:
Time ~=    112.4
    + r    324.8
              µ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<truncated>...

…--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
@HCastano
Copy link
Contributor

So I'm not convinced we need seal_origin. It's just an analogue to tx.origin on Ethereum, which has been controversial due to some possible footguns with its usage (thanks @Robbepop for that resource).

If you go through that thread you'll see that there's a common use case that pops up for tx.origin, which is checking whether or not the account which initiated the transaction is an EOA or a contract (require(tx.origin == msg.sender) - and we already have seal_is_contract for doing this.

Unless we get user requests with compelling use cases for seal_origin which can't be accomplished with the current API we shouldn't add it.

@athei
Copy link
Member

athei commented Mar 23, 2022

Yeah I tend to agree. @agryaznov can you remove seal_origin from this PR?

@agryaznov agryaznov requested review from athei and cmichi March 24, 2022 20:40
@athei athei changed the title contracts: add seal_origin(), seal_code_hash and seal_own_code_hash to API contracts: add seal_code_hash and seal_own_code_hash to API Mar 25, 2022
@athei
Copy link
Member

athei commented Mar 29, 2022

CI not happy. Try to merge master again.

@athei
Copy link
Member

athei commented Mar 29, 2022

bot merge

@petreze
Copy link

petreze commented Apr 19, 2022

Hey, do you have an idea why i do not have access to the "code_hash" function inside "ink_env"?
I updated the ink! version to the latest 3.0.1 and still don't have access to it..

@athei
Copy link
Member

athei commented Apr 19, 2022

It was just merged to ink! and is not part of 3.0.1. You need to wait for the next release or use master.

DaviRain-Su pushed a commit to octopus-network/substrate that referenced this pull request Aug 23, 2022
…tytech#10933)

* `seal_origin` + tests added

* `seal_origin` benchmark added

* `seal_code_hash` + tests added

* `seal_code_hash` benchmark added

* `seal_own_code_hash` + tests added

* `seal_own_code_hash` benchmark added

* fmt lil fix

* akward accident bug fix

* Apply suggestions from code review

Co-authored-by: Alexander Theißen <alex.theissen@me.com>

* Apply suggestions from code review

Co-authored-by: Alexander Theißen <alex.theissen@me.com>

* benchmark fix

* `WasmModule::getter()` to take `module_name` arg

* test enhanced

* fixes based on review feedback

* Apply suggestions from code review

Co-authored-by: Alexander Theißen <alex.theissen@me.com>

* Hash left as const to return a ref to it from mock

* HASH test val to local const in mock

* Apply suggestions from code review

Co-authored-by: Alexander Theißen <alex.theissen@me.com>

* fixes to benchmarks according to review feedback

* 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

* removed `seal_origin` from API

Co-authored-by: Alexander Theißen <alex.theissen@me.com>
Co-authored-by: Parity Bot <admin@parity.io>
ark0f pushed a commit to gear-tech/substrate that referenced this pull request Feb 27, 2023
…tytech#10933)

* `seal_origin` + tests added

* `seal_origin` benchmark added

* `seal_code_hash` + tests added

* `seal_code_hash` benchmark added

* `seal_own_code_hash` + tests added

* `seal_own_code_hash` benchmark added

* fmt lil fix

* akward accident bug fix

* Apply suggestions from code review

Co-authored-by: Alexander Theißen <alex.theissen@me.com>

* Apply suggestions from code review

Co-authored-by: Alexander Theißen <alex.theissen@me.com>

* benchmark fix

* `WasmModule::getter()` to take `module_name` arg

* test enhanced

* fixes based on review feedback

* Apply suggestions from code review

Co-authored-by: Alexander Theißen <alex.theissen@me.com>

* Hash left as const to return a ref to it from mock

* HASH test val to local const in mock

* Apply suggestions from code review

Co-authored-by: Alexander Theißen <alex.theissen@me.com>

* fixes to benchmarks according to review feedback

* 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

* removed `seal_origin` from API

Co-authored-by: Alexander Theißen <alex.theissen@me.com>
Co-authored-by: Parity Bot <admin@parity.io>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A0-please_review Pull request needs code review. C1-low PR touches the given topic and has a low impact on builders. 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.

None yet

5 participants