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

contracts: Remove state rent #9669

Merged
14 commits merged into from
Sep 6, 2021
Merged

contracts: Remove state rent #9669

14 commits merged into from
Sep 6, 2021

Conversation

athei
Copy link
Member

@athei athei commented Sep 1, 2021

This PR removes state rent (data, code) from the pallet_contracts code base. It greatly reduces complexity and allows coming changes to be much simpler to implement. It includes a storage migration and is backwards compatible for existing contracts (for the ones not using the unstable-interface feature). Tombstones are no longer a thing and existing ones are removed by the migration.

Motivation

The pallet_contracts was designed from the beginning to combat unbounded state growth by using state rent (charging contracts for the state they consume). The main reason for the introduction appears to be that this is what Ethereum was exploring at the time. The idea is elegant because it pushes the policy decisions around contract financing to the contract authors and allows them to experiment with different ideas rather than enforcing one at the runtime level.

In practice however, it turns out that state rent is really difficult to deal with and the smart contract audience is not equipped to deal with this issue and simply uses any other solution where this is not a thing. Please keep in mind that in contrast to runtime development where flexibility is key we are going for a crowd where ease of use is paramount. Additionally, Ethereum itself abandoned the idea and is on track on using what they call state expiry. Something that could be added to substrate later as a runtime opt-in for smart contract hosting chains.

The conclusion is that rolling out state rent will put us as a severe disadvantage with regard to adoption when compared to other smart contract technologies with regard to adaption without any short to medium time gain. Even on Ethereum with years of heavy usage on its back running a mining node is still something totally feasible. With the luxury of runtime upgrades and storage migrations we should solve the problem in a less intrusive way later.

Implementation

The PR mainly deletes code and adjusts tests/benchmarks. The biggest change is that the concept of a tombstone is gone. The TombstoneDeposit is renamed to ContractDeposit and is a deposit a deployer needs to deposit into the new contract on top of the ExistentialDeposit (no change to the previous behavior). Please note that seal_terminate can still be used to remove a contract and is the only way to remove a contract and regain the deposit.

One side effect of this change is that the ContractInfo data structure no longer contains any mutable data. Meaning that all the data there is fixed at the point of contract instantiation. This makes the ContractInfo caching we do obsolete. Instead of deleting the code I hid it behind the CONTRACT_INFO_CAN_CHANGE constant which can be switched to true once we change the structure to contain mutable data again.

Security Discussion

With the removal of state rent we open the door for attackers that try to DoS the chain by creating as much storage as possible. This is because you pay once (in weight) to create the storage but it needs to be kept around forever by collators (in absence of a future solution like state expiry). The means of making this attack economically infeasible is to adjust the Limits::payload_len field which determines the maximum amount of storage per key. Lower sizes make creating storage more expensive because creating or updating storage items is expensive in weight. However, for maximum flexibility and efficiency we want to set the value as high as possible.

Please keep in mind that this attack would not affect the relay chain because validators do not need to keep the state of a potentially smart contract hosting parachain.

I propose setting the maximum value size per key to 512 bytes as an initial value (ethereum uses 32 bytes for various reasons). We can always increase the value but lowering it would be a breaking change. This would put the price of 1 GB of storage on Kusama to 271 KSM. Calculation here. Try to play around with different values. These are the weights obtained through benchmarking I used for the calculation (1ps = 1 weight = 1 unit of balance):

set_storage: "129.1 µs",
set_storage_per_byte: "851 ps"

Those values seem rather low but note that:

  • It gets more expensive when the chain is used more (price of the balance unit and balance price of weight)
    • The 1 weight = 1 balance unit is the worst case (cheapest case)
  • This is still above what 1GB would have costed on ethereum in 2017

Please keep in mind that we are not trying to find a long term solution due to these calculation but merely try to avoid a DoS attack.

Porting Guide

Smart Contract Languages

All existing stable functions are retained and are replaced by doing nothing or returning sane default values. The unstable seal_rent_params and seal_rent_status are removed.

Nodes

All rent related configuration options are removed from the Config trait. Remove them without replacement as your compiler requests. The public rent_projection function is removed and rent_projection field is removed from the return types of bare_instantiate and bare_call.

Offchain Tools

@jacogr

polkadot-js/api#3925

The rent_projection RPC is removed and the rent_projection field is removed from the instantiate RPC result type. The in-storage ContractInfo type changed and need to be synced with typescript.

@athei athei added A3-in_progress Pull request is in progress. No review needed at this stage. 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 Sep 1, 2021
@athei athei added this to In Progress in Smart Contracts via automation Sep 1, 2021
@xlc
Copy link
Contributor

xlc commented Sep 1, 2021

Why not just charge a fixed deposit per stored byte? Charge storage by gas makes no sense nor does weights.

@atenjin
Copy link
Contributor

atenjin commented Sep 1, 2021

If you guys decide to remove rent, I advise to recover put_code
#8671

@athei
Copy link
Member Author

athei commented Sep 1, 2021

Why not just charge a fixed deposit per stored byte?

The "just" is doing a lot of heavy lifting here, though. Making the caller pay a deposit is the obvious solution but it has some open questions associated with it. It is certainly something that we consider and it might be implemented. However, the code that is removed here can't be reused for that because it is all about the contract being responsible for paying the rent/deposit which is fundamentally different.

Why this solution wasn't explored before was the stance that we want to give smart contract authors maximum flexibility with their financing model. However, It turned out that the current approach provides that but didn't pass the reality check when it comes to ease of development.

Charge storage by gas makes no sense nor does weights.

I agree. But that is not the point. I stated in my write up that those calculations are just to assess how feasible a DoS attack is right now. It is not a long term solution.

@athei
Copy link
Member Author

athei commented Sep 1, 2021

/benchmark runtime pallet pallet_contracts

@parity-benchapp
Copy link

parity-benchapp bot commented Sep 1, 2021

Benchmark Runtime Pallet for branch "at-remove-rent" with command cargo run --quiet --release --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

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 ~=    3.244
              µs

Reads = 1
Writes = 0

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

Model:
Time ~=    3.244
              µ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 ~=        0
    + k    2.237
              µs

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

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

Data points distribution:
    k   mean µs  sigma µs       %
    0     56.12     0.288    0.5%
   20     58.99     0.492    0.8%
   40     95.92     0.812    0.8%
   60     131.1     1.589    1.2%
   80     165.7     1.183    0.7%
  100     206.1      1.01    0.4%
  120     241.7     1.859    0.7%
  140     285.1     1.787    0.6%
  160     325.7      1.92    0.5%
  180     370.5     1.548    0.4%
  200     414.2     3.408    0.8%
  220     458.1     4.979    1.0%
  240     503.6     3.054    0.6%
  260     547.4     11.12    2.0%
  280     581.7     6.846    1.1%
  300     628.1      11.4    1.8%
  320       672     2.347    0.3%
  340     708.2     5.701    0.8%
  360     771.4     4.651    0.6%
  380     816.3     5.733    0.7%
  400     862.1     7.834    0.9%
  420     903.8     6.732    0.7%
  440     946.6     4.227    0.4%
  460     982.4     9.762    0.9%
  480      1035     15.23    1.4%
  500      1077     12.14    1.1%
  520      1119     12.12    1.0%
  540      1193     12.42    1.0%
  560      1221     6.279    0.5%
  580      1284     10.93    0.8%
  600      1333     12.97    0.9%
  620      1359     8.886    0.6%
  640      1402     8.938    0.6%
  660      1457     12.53    0.8%
  680      1473     8.969    0.6%
  700      1568     9.478    0.6%
  720      1581     12.67    0.8%
  740      1639     8.609    0.5%
  760      1710     18.98    1.1%
  780      1754      17.8    1.0%
  800      1785     23.94    1.3%
  820      1825     13.77    0.7%
  840      1877     18.09    0.9%
  860      1921     15.17    0.7%
  880      1977      16.2    0.8%
  900      2020     13.64    0.6%
  920      2077     12.78    0.6%
  940      2066      21.8    1.0%
  960      2135     16.47    0.7%
  980      2163      13.4    0.6%
 1000      2216     14.44    0.6%
 1020      2251     14.84    0.6%

Quality and confidence:
param     error
k         0.003

Model:
Time ~=        0
    + k    2.245
              µ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 ~=    77.76
    + q    0.374
              µs

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

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

Data points distribution:
    q   mean µs  sigma µs       %
    0     3.327     0.028    0.8%
   20     72.14     0.843    1.1%
   40     83.46     1.168    1.3%
   60     93.88     0.735    0.7%
   80     104.3     1.098    1.0%
  100     114.3     0.827    0.7%
  120     124.2     1.341    1.0%
  140     134.1     1.719    1.2%
  160     144.2      1.31    0.9%
  180       155     1.262    0.8%
  200     166.1     1.252    0.7%
  220     169.7     7.996    4.7%
  240     160.4     1.317    0.8%
  260     193.8     1.443    0.7%
  280     202.4     2.224    1.0%
  300     204.3     2.042    0.9%
  320     214.6     1.474    0.6%
  340     202.5     2.443    1.2%
  360     209.3     3.052    1.4%
  380     218.5     4.499    2.0%
  400     255.8     1.073    0.4%
  420     266.2     1.785    0.6%
  440       277     2.371    0.8%
  460       248     2.101    0.8%
  480     259.1     3.304    1.2%
  500     261.5     3.047    1.1%
  520     269.8     2.558    0.9%
  540       276     1.954    0.7%
  560     284.1     1.514    0.5%
  580       290     1.913    0.6%
  600     299.9     1.878    0.6%
  620     308.5     3.159    1.0%
  640     318.5     1.705    0.5%
  660     326.4     8.866    2.7%
  680     332.8     1.726    0.5%
  700     338.1     1.557    0.4%
  720     346.5     1.288    0.3%
  740     351.8     1.321    0.3%
  760     365.2     1.859    0.5%
  780     371.9     1.626    0.4%
  800     384.6     7.312    1.9%
  820     387.4     1.629    0.4%
  840     388.7     1.255    0.3%
  860     400.6     3.509    0.8%
  880     406.2     2.111    0.5%
  900     414.3     6.282    1.5%
  920     424.1     5.976    1.4%
  940       427     2.262    0.5%
  960     432.8     1.576    0.3%
  980     438.9     0.802    0.1%
 1000     444.1     1.212    0.2%

Quality and confidence:
param     error
q         0.002

Model:
Time ~=    77.62
    + q    0.377
              µs

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

Pallet: "pallet_contracts", Extrinsic: "instrument", 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 ~=    52.35
    + c    77.71
              µs

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

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

Data points distribution:
    c   mean µs  sigma µs       %
    0     64.82      0.34    0.5%
    2     226.7     3.411    1.5%
    4     378.9     1.252    0.3%
    6     507.8     0.313    0.0%
    8     688.3      15.5    2.2%
   10     822.6      14.1    1.7%
   12     994.2     16.92    1.7%
   14      1160     13.41    1.1%
   16      1286     14.57    1.1%
   18      1463     15.57    1.0%
   20      1585     14.95    0.9%
   22      1706     11.96    0.7%
   24      1847     10.86    0.5%
   26      2127     14.11    0.6%
   28      2243     16.02    0.7%
   30      2384     8.969    0.3%
   32      2517     12.89    0.5%
   34      2697     12.86    0.4%
   36      2837     7.033    0.2%
   38      2961     15.65    0.5%
   40      3102     11.66    0.3%
   42      3232     9.928    0.3%
   44      3361     8.881    0.2%
   46      3537     20.51    0.5%
   48      3626     15.76    0.4%
   50      4157     11.25    0.2%
   52      4153     15.95    0.3%
   54      4302     14.96    0.3%
   56      4434     15.41    0.3%
   58      4561     16.18    0.3%
   60      4691     13.28    0.2%
   62      4831     19.81    0.4%
   64      4979     22.82    0.4%
   66      5207     12.24    0.2%
   68      5335     12.96    0.2%
   70      5459     11.29    0.2%
   72      5603     13.29    0.2%
   74      5922     17.13    0.2%
   76      5871     21.01    0.3%
   78      6176     16.68    0.2%
   80      6124      19.7    0.3%
   82      6299     10.89    0.1%
   84      6595     18.44    0.2%
   86      6517      15.5    0.2%
   88      6666     36.01    0.5%
   90      6797     30.97    0.4%
   92      6915     22.35    0.3%
   94      7067     26.22    0.3%
   96      7196     22.34    0.3%
   98      7886     33.09    0.4%
  100      8028     23.94    0.2%
  102      8137      22.7    0.2%
  104      8293     20.78    0.2%
  106      8416     18.51    0.2%
  108      8567     28.17    0.3%
  110      8719     14.89    0.1%
  112      8845     14.68    0.1%
  114      8961     19.46    0.2%
  116      9092     30.02    0.3%
  118      9226     17.44    0.1%
  120      9645     23.77    0.2%
  122      9482      27.2    0.2%
  124      9616     19.33    0.2%
  126      9765     31.01    0.3%
  128      9881     18.65    0.1%

Quality and confidence:
param     error
c         0.125

Model:
Time ~=    34.44
    + c    77.78
              µs

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

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

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

Model:
Time ~=    7.064
    + c    1.659
              µs

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

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

Data points distribution:
    c   mean µs  sigma µs       %
    0     5.995     0.056    0.9%
    2     9.976     0.072    0.7%
    4     13.59     0.056    0.4%
    6     16.71     0.058    0.3%
    8      20.2     0.091    0.4%
   10     23.25     0.145    0.6%
   12      26.5      0.07    0.2%
   14     30.48     0.106    0.3%
   16     33.95     0.101    0.2%
   18     37.61     0.104    0.2%
   20     40.87     0.087    0.2%
   22     44.42     0.073    0.1%
   24     47.84     0.279    0.5%
   26     50.17     0.455    0.9%
   28     53.65     0.088    0.1%
   30     58.26     0.107    0.1%
   32     60.37     0.066    0.1%
   34     63.52     0.061    0.0%
   36     66.65     0.058    0.0%
   38     69.72     0.066    0.0%
   40     73.43     0.141    0.1%
   42     77.03     0.088    0.1%
   44     80.17     0.121    0.1%
   46     83.37     0.143    0.1%
   48     86.57     0.082    0.0%
   50     89.74     0.179    0.1%
   52      93.4     0.045    0.0%
   54      96.6     0.177    0.1%
   56       100     0.227    0.2%
   58     102.9     0.224    0.2%
   60     106.4     0.226    0.2%
   62     109.8     0.274    0.2%
   64     113.1      0.44    0.3%
   66     116.1     0.351    0.3%
   68     119.5     0.209    0.1%
   70     123.1     0.108    0.0%
   72     127.1     0.288    0.2%
   74     130.4     0.092    0.0%
   76     133.5     0.072    0.0%
   78     138.9      1.36    0.9%
   80     140.1     0.183    0.1%
   82     143.3     0.076    0.0%
   84     146.3     0.258    0.1%
   86     150.1     0.228    0.1%
   88     154.1     0.132    0.0%
   90       156     0.134    0.0%
   92     159.2     0.128    0.0%
   94     162.6     0.093    0.0%
   96     165.9     0.136    0.0%
   98     169.1     0.108    0.0%
  100     172.6     0.178    0.1%
  102     176.5     0.337    0.1%
  104     179.6     0.293    0.1%
  106     182.5     0.263    0.1%
  108       186     0.307    0.1%
  110     189.2     0.284    0.1%
  112     192.5     0.316    0.1%
  114     196.4     0.212    0.1%
  116     199.3      0.27    0.1%
  118       203     0.253    0.1%
  120     206.3      0.18    0.0%
  122     209.6     0.268    0.1%
  124     213.1     0.158    0.0%
  126     216.4     0.214    0.0%
  128     219.9       0.2    0.0%

Quality and confidence:
param     error
c             0

Model:
Time ~=    7.114
    + c     1.66
              µs

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

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

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

Model:
Time ~=    11.24
    + c    2.679
              µs

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

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

Data points distribution:
    c   mean µs  sigma µs       %
    0     10.11     0.054    0.5%
    2      16.6     0.054    0.3%
    4     21.63     0.084    0.3%
    6     27.16     0.079    0.2%
    8     32.59     0.079    0.2%
   10     37.99     0.113    0.2%
   12     42.95     0.331    0.7%
   14     47.97     0.051    0.1%
   16     54.95     0.125    0.2%
   18     59.55     0.081    0.1%
   20     65.92     0.095    0.1%
   22     70.23     0.096    0.1%
   24     76.12     0.633    0.8%
   26     81.06     0.221    0.2%
   28     87.91     0.097    0.1%
   30      93.3     0.787    0.8%
   32     97.47     0.109    0.1%
   34       102     0.135    0.1%
   36     107.1     0.159    0.1%
   38     112.7     0.134    0.1%
   40     118.6     0.154    0.1%
   42     126.5     0.166    0.1%
   44     129.5     0.125    0.0%
   46     134.4     0.186    0.1%
   48     139.3     0.293    0.2%
   50     145.3     0.118    0.0%
   52     149.6     0.086    0.0%
   54     155.6     0.219    0.1%
   56     161.2     0.518    0.3%
   58       166     0.125    0.0%
   60     171.4     0.277    0.1%
   62     176.7     0.113    0.0%
   64     181.8     0.127    0.0%
   66       187      0.12    0.0%
   68     192.4     0.202    0.1%
   70     198.6     0.301    0.1%
   72     204.9     0.251    0.1%
   74     209.8     0.151    0.0%
   76     215.1     0.149    0.0%
   78     220.4     0.289    0.1%
   80     225.4     0.158    0.0%
   82     231.3      0.48    0.2%
   84     237.5     0.755    0.3%
   86     242.6     0.758    0.3%
   88     248.6     0.163    0.0%
   90     252.3     0.254    0.1%
   92     257.3     0.338    0.1%
   94     262.2     0.339    0.1%
   96     267.6     0.277    0.1%
   98     272.8     0.218    0.0%
  100     278.4     0.543    0.1%
  102     285.8     2.563    0.8%
  104     290.1     0.196    0.0%
  106     294.9      0.55    0.1%
  108     300.2     0.667    0.2%
  110     305.9     0.592    0.1%
  112     311.3     0.382    0.1%
  114     316.5     0.502    0.1%
  116     322.1     0.438    0.1%
  118     327.9     0.367    0.1%
  120     333.2     0.341    0.1%
  122     338.5     0.494    0.1%
  124     343.7     0.416    0.1%
  126     348.5     0.596    0.1%
  128       354     0.473    0.1%

Quality and confidence:
param     error
c             0

Model:
Time ~=    11.31
    + c    2.679
              µs

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

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

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

Model:
Time ~=    589.7
    + c    193.2
    + s    2.287
              µs

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

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

Data points distribution:
    c     s   mean µs  sigma µs       %
    0  1024      2900     11.36    0.3%
    1  1024      3132      19.7    0.6%
    2  1024      3306     16.26    0.4%
    3  1024      3502      18.2    0.5%
    4  1024      3676     14.62    0.3%
    5  1024      3880      15.9    0.4%
    6  1024      4049     13.58    0.3%
    7  1024      4265     17.16    0.4%
    8  1024      4426     20.91    0.4%
    9  1024      4673     7.678    0.1%
   10  1024      4887     22.99    0.4%
   11  1024      5016     19.43    0.3%
   12  1024      5192     21.61    0.4%
   13  1024      5443     11.49    0.2%
   14  1024      5617     13.71    0.2%
   15  1024      5791      19.4    0.3%
   16  1024      5947     12.72    0.2%
   17  1024      6299     14.27    0.2%
   18  1024      6462     25.25    0.3%
   19  1024      6635     10.77    0.1%
   20  1024      6787      15.3    0.2%
   21  1024      6981     23.24    0.3%
   22  1024      7146     29.29    0.4%
   23  1024      7313     24.15    0.3%
   24  1024      7458     18.47    0.2%
   25  1024      7825     19.86    0.2%
   26  1024      8008     30.99    0.3%
   27  1024      8177     20.27    0.2%
   28  1024      8351     20.17    0.2%
   29  1024      8489     20.73    0.2%
   30  1024      8666     9.495    0.1%
   31  1024      9017     7.508    0.0%
   32  1024      8993      18.5    0.2%
   33  1024      9515     26.74    0.2%
   34  1024      9687      20.2    0.2%
   35  1024      9850     30.96    0.3%
   36  1024     10040     33.92    0.3%
   37  1024     10170     21.15    0.2%
   38  1024     10340     28.31    0.2%
   39  1024     10530     36.13    0.3%
   40  1024     10690     23.49    0.2%
   41  1024     10850     23.66    0.2%
   42  1024     11020     30.13    0.2%
   43  1024     11190     27.83    0.2%
   44  1024     11370     24.76    0.2%
   45  1024     11530     25.93    0.2%
   46  1024     11670     36.91    0.3%
   47  1024     11830     30.03    0.2%
   48  1024     12010     26.51    0.2%
   49  1024     12610     37.33    0.2%
   50  1024     12780     33.33    0.2%
   51  1024     13000     56.03    0.4%
   52  1024     13150     40.69    0.3%
   53  1024     13280      28.1    0.2%
   54  1024     13430     31.38    0.2%
   55  1024     13630     21.54    0.1%
   56  1024     13760     22.45    0.1%
   57  1024     13940     22.82    0.1%
   58  1024     14070     18.33    0.1%
   59  1024     14280     31.65    0.2%
   60  1024     14420     31.55    0.2%
   61  1024     14590     23.39    0.1%
   62  1024     14740     17.03    0.1%
   63  1024     14910     26.07    0.1%
   64     0     12740     34.95    0.2%
   64    20     12800     24.74    0.1%
   64    40     12830     29.74    0.2%
   64    60     12870     28.83    0.2%
   64    80     12920     22.71    0.1%
   64   100     12970      33.4    0.2%
   64   120     13010     16.82    0.1%
   64   140     13050     23.98    0.1%
   64   160     13040     31.75    0.2%
   64   180     13150     16.17    0.1%
   64   200     13170     33.56    0.2%
   64   220     13230      26.7    0.2%
   64   240     13270     34.39    0.2%
   64   260     13330     27.14    0.2%
   64   280     13350     37.08    0.2%
   64   300     13450     38.99    0.2%
   64   320     13460     31.17    0.2%
   64   340     13490     37.31    0.2%
   64   360     13540     24.77    0.1%
   64   380     13610     35.66    0.2%
   64   400     13650     34.56    0.2%
   64   420     13690      30.8    0.2%
   64   440     13730     44.94    0.3%
   64   460     13760     20.55    0.1%
   64   480     13840     30.01    0.2%
   64   500     13880     25.39    0.1%
   64   520     13910     22.52    0.1%
   64   540     13950     21.53    0.1%
   64   560     14010     32.28    0.2%
   64   580     14080     29.68    0.2%
   64   600     14110     29.27    0.2%
   64   620     14150     23.95    0.1%
   64   640     14170     25.49    0.1%
   64   660     14250      35.5    0.2%
   64   680     14280      42.1    0.2%
   64   700     14360     48.35    0.3%
   64   720     14390     31.29    0.2%
   64   740     14410     30.03    0.2%
   64   760     14480     28.08    0.1%
   64   780     14500      24.2    0.1%
   64   800     14580     47.27    0.3%
   64   820     14620     51.34    0.3%
   64   840     14640     38.72    0.2%
   64   860     14690     42.47    0.2%
   64   880     14750     36.39    0.2%
   64   900     14780     28.28    0.1%
   64   920     14840     22.82    0.1%
   64   940     14890      27.3    0.1%
   64   960     14910     30.74    0.2%
   64   980     14950     26.11    0.1%
   64  1000     15080     69.14    0.4%
   64  1020     15020     38.65    0.2%
   64  1024     15280     115.2    0.7%

Quality and confidence:
param     error
c         0.166
s          0.01

Model:
Time ~=    452.5
    + c    190.9
    + s     2.47
              µs

Reads = 5 + (0 * c) + (0 * s)
Writes = 4 + (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:0)
Storage: Contracts ContractInfoOf (r:1 w:1)
Storage: Timestamp Now (r:1 w:0)
Storage: System Account (r:1 w:1)

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

Model:
Time ~=    231.9
    + s    2.219
              µs

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

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

Data points distribution:
    s   mean µs  sigma µs       %
    0     228.8     0.244    0.1%
   20     274.5     0.225    0.0%
   40     319.9     0.554    0.1%
   60       364     0.334    0.0%
   80     415.5     11.69    2.8%
  100     452.4     0.261    0.0%
  120     497.7     3.489    0.7%
  140     541.9      5.36    0.9%
  160       593     12.67    2.1%
  180     633.9     8.361    1.3%
  200     673.9     3.868    0.5%
  220     723.7      10.1    1.3%
  240     773.8     15.01    1.9%
  260     808.2     8.938    1.1%
  280     853.8     10.54    1.2%
  300     901.6     12.21    1.3%
  320     938.2     1.551    0.1%
  340     999.9     16.43    1.6%
  360      1043     16.28    1.5%
  380      1077     11.91    1.1%
  400      1131     14.67    1.2%
  420      1176     13.76    1.1%
  440      1209     12.68    1.0%
  460      1267      11.5    0.9%
  480      1296     9.152    0.7%
  500      1351     14.42    1.0%
  520      1406     10.14    0.7%
  540      1430     12.77    0.8%
  560      1490     11.47    0.7%
  580      1536     13.46    0.8%
  600      1587     8.459    0.5%
  620      1638     3.071    0.1%
  640      1668     12.26    0.7%
  660      1712     15.31    0.8%
  680      1744     14.83    0.8%
  700      1796     18.57    1.0%
  720      1837     13.72    0.7%
  740      1897     15.99    0.8%
  760      1934     13.14    0.6%
  780      1986     9.944    0.5%
  800      2025     12.86    0.6%
  820      2055     14.45    0.7%
  840      2109     13.88    0.6%
  860      2157      10.9    0.5%
  880      2210     11.57    0.5%
  900      2250     9.715    0.4%
  920      2289     16.05    0.7%
  940      2335     15.77    0.6%
  960      2383     14.23    0.5%
  980      2425     13.69    0.5%
 1000      2467     14.79    0.5%
 1020      2516     12.72    0.5%

Quality and confidence:
param     error
s         0.001

Model:
Time ~=    230.6
    + s    2.242
              µs

Reads = 5 + (0 * s)
Writes = 3 + (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 ~=    195.3
              µs

Reads = 4
Writes = 2

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

Model:
Time ~=    195.3
              µs

Reads = 4
Writes = 2

Pallet: "pallet_contracts", Extrinsic: "seal_caller", 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)

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

Model:
Time ~=    482.8
    + r      139
              µs

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

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

Data points distribution:
    r   mean µs  sigma µs       %
    0     474.3     4.673    0.9%
    1     622.7     11.24    1.8%
    2     760.1     13.97    1.8%
    3     889.5     10.08    1.1%
    4      1047     14.86    1.4%
    5      1173      12.6    1.0%
    6      1311     15.31    1.1%
    7      1474     3.646    0.2%
    8      1587      14.2    0.8%
    9      1732      12.6    0.7%
   10      1876     6.774    0.3%
   11      1994      17.7    0.8%
   12      2125     12.12    0.5%
   13      2271     11.11    0.4%
   14      2440     14.11    0.5%
   15      2587     6.862    0.2%
   16      2714     9.192    0.3%
   17      2846     12.01    0.4%
   18      2993     7.845    0.2%
   19      3128     12.72    0.4%
   20      3272     19.91    0.6%

Quality and confidence:
param     error
r         0.188

Model:
Time ~=    477.5
    + r    139.5
              µs

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

Pallet: "pallet_contracts", Extrinsic: "seal_address", 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)

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

Model:
Time ~=    474.9
    + r    139.2
              µs

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

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

Data points distribution:
    r   mean µs  sigma µs       %
    0     472.6     0.274    0.0%
    1     614.5     1.597    0.2%
    2     756.8     8.677    1.1%
    3     894.7     12.81    1.4%
    4      1026     0.338    0.0%
    5      1174     15.06    1.2%
    6      1304     13.82    1.0%
    7      1463     14.99    1.0%
    8      1582     8.161    0.5%
    9      1738     12.89    0.7%
   10      1869     14.54    0.7%
   11      2013     11.23    0.5%
   12      2135     13.05    0.6%
   13      2277     8.494    0.3%
   14      2427      12.8    0.5%
   15      2592     14.36    0.5%
   16      2714     20.46    0.7%
   17      2856     10.18    0.3%
   18      2995     10.46    0.3%
   19      3126     10.03    0.3%
   20      3263     6.475    0.1%

Quality and confidence:
param     error
r         0.163

Model:
Time ~=    472.8
    + r    139.8
              µs

Reads = 3 + (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: 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 ~=    478.3
    + r    136.8
              µs

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

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

Data points distribution:
    r   mean µs  sigma µs       %
    0     472.7     0.159    0.0%
    1     615.8     8.429    1.3%
    2     751.5     8.648    1.1%
    3     890.5     17.24    1.9%
    4      1037     14.25    1.3%
    5      1161     14.78    1.2%
    6      1297     16.74    1.2%
    7      1449     13.33    0.9%
    8      1576     15.94    1.0%
    9      1708     14.13    0.8%
   10      1831     10.77    0.5%
   11      1978     15.31    0.7%
   12      2106     11.98    0.5%
   13      2225      13.8    0.6%
   14      2400      13.4    0.5%
   15      2550     5.353    0.2%
   16      2687      19.1    0.7%
   17      2822     16.15    0.5%
   18      2955     10.61    0.3%
   19      3083     13.87    0.4%
   20      3222     20.23    0.6%

Quality and confidence:
param     error
r         0.208

Model:
Time ~=      475
    + r    137.3
              µs

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

Pallet: "pallet_contracts", Extrinsic: "seal_balance", 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:0)

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

Model:
Time ~=      488
    + r    399.4
              µs

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

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

Data points distribution:
    r   mean µs  sigma µs       %
    0     472.5     0.147    0.0%
    1     888.1     13.73    1.5%
    2      1286     12.98    1.0%
    3      1690      12.9    0.7%
    4      2089     16.84    0.8%
    5      2490     7.668    0.3%
    6      2887     12.75    0.4%
    7      3289     5.256    0.1%
    8      3695     12.33    0.3%
    9      4079     13.04    0.3%
   10      4484     13.71    0.3%
   11      4876     14.23    0.2%
   12      5264     24.46    0.4%
   13      5668     19.25    0.3%
   14      6086     17.54    0.2%
   15      6500     15.78    0.2%
   16      6888     23.97    0.3%
   17      7284     28.42    0.3%
   18      7681     18.84    0.2%
   19      8081     17.81    0.2%
   20      8457     15.75    0.1%

Quality and confidence:
param     error
r         0.217

Model:
Time ~=    487.7
    + r    399.5
              µs

Reads = 4 + (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: 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 ~=    478.2
    + r      138
              µs

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

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

Data points distribution:
    r   mean µs  sigma µs       %
    0     472.6      0.68    0.1%
    1     614.5     3.844    0.6%
    2     753.4     8.783    1.1%
    3     892.3     10.48    1.1%
    4      1044     16.66    1.5%
    5      1160     6.193    0.5%
    6      1303     15.48    1.1%
    7      1453     14.19    0.9%
    8      1585     14.12    0.8%
    9      1722     14.12    0.8%
   10      1855     15.03    0.8%
   11      1996     9.295    0.4%
   12      2113     13.18    0.6%
   13      2271     6.129    0.2%
   14      2441      8.12    0.3%
   15      2556     12.07    0.4%
   16      2711     10.76    0.3%
   17      2831     8.446    0.2%
   18      2964     12.65    0.4%
   19      3099     7.688    0.2%
   20      3241     14.11    0.4%

Quality and confidence:
param     error
r         0.174

Model:
Time ~=    476.3
    + r    138.4
              µs

Reads = 3 + (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: 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 ~=    478.3
    + r    138.2
              µs

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

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

Data points distribution:
    r   mean µs  sigma µs       %
    0     472.5     0.192    0.0%
    1       613     1.772    0.2%
    2     757.3     9.475    1.2%
    3     890.4     12.22    1.3%
    4      1048     11.17    1.0%
    5      1173     10.59    0.9%
    6      1302     10.63    0.8%
    7      1455     7.809    0.5%
    8      1591     6.007    0.3%
    9      1722     5.472    0.3%
   10      1842     14.63    0.7%
   11      2001     10.46    0.5%
   12      2125     7.775    0.3%
   13      2254     12.98    0.5%
   14      2424     5.165    0.2%
   15      2570     6.048    0.2%
   16      2712     7.327    0.2%
   17      2837     8.124    0.2%
   18      2964     9.254    0.3%
   19      3110     9.973    0.3%
   20      3238     8.978    0.2%

Quality and confidence:
param     error
r         0.161

Model:
Time ~=    477.6
    + r    138.4
              µs

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

Pallet: "pallet_contracts", Extrinsic: "seal_tombstone_deposit", 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)

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

Model:
Time ~=    474.7
    + r    137.8
              µs

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

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

Data points distribution:
    r   mean µs  sigma µs       %
    0     472.7     0.134    0.0%
    1     612.6     1.752    0.2%
    2     754.2     8.814    1.1%
    3     884.5     4.867    0.5%
    4      1043     14.04    1.3%
    5      1162     11.77    1.0%
    6      1304     15.44    1.1%
    7      1443     13.05    0.9%
    8      1580     13.54    0.8%
    9      1715     14.44    0.8%
   10      1844     12.76    0.6%
   11      1984     13.67    0.6%
   12      2114     14.33    0.6%
   13      2252     14.08    0.6%
   14      2435     7.274    0.2%
   15      2553     13.04    0.5%
   16      2701      8.94    0.3%
   17      2829     11.42    0.4%
   18      2976     7.512    0.2%
   19      3103     8.686    0.2%
   20      3231     9.466    0.2%

Quality and confidence:
param     error
r         0.178

Model:
Time ~=    472.9
    + r    138.4
              µs

Reads = 3 + (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: 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 ~=    478.4
    + r    138.4
              µs

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

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

Data points distribution:
    r   mean µs  sigma µs       %
    0     472.7     0.189    0.0%
    1     620.6     10.76    1.7%
    2     757.2     11.72    1.5%
    3     890.8      13.2    1.4%
    4      1032     12.35    1.1%
    5      1176     14.12    1.2%
    6      1306     14.01    1.0%
    7      1458     14.55    0.9%
    8      1592     14.77    0.9%
    9      1723     13.17    0.7%
   10      1857     15.22    0.8%
   11      1999     7.015    0.3%
   12      2128     11.66    0.5%
   13      2268     13.07    0.5%
   14      2444     10.82    0.4%
   15      2568     8.678    0.3%
   16      2698     12.51    0.4%
   17      2847     10.84    0.3%
   18      2978     12.08    0.4%
   19      3122     14.21    0.4%
   20      3242     14.92    0.4%

Quality and confidence:
param     error
r         0.173

Model:
Time ~=    476.7
    + r    138.9
              µs

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

Pallet: "pallet_contracts", Extrinsic: "seal_now", 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)

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

Model:
Time ~=    480.6
    + r      138
              µs

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

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

Data points distribution:
    r   mean µs  sigma µs       %
    0     472.4      0.37    0.0%
    1     614.2     0.803    0.1%
    2     756.1     7.464    0.9%
    3     892.8     7.194    0.8%
    4      1046     9.561    0.9%
    5      1173     7.521    0.6%
    6      1302     9.365    0.7%
    7      1454     4.314    0.2%
    8      1589     4.572    0.2%
    9      1724     4.994    0.2%
   10      1858     3.563    0.1%
   11      1990     12.01    0.6%
   12      2152      2.43    0.1%
   13      2261     4.145    0.1%
   14      2430     10.84    0.4%
   15      2569     11.71    0.4%
   16      2702     13.81    0.5%
   17      2831     10.68    0.3%
   18      2963     7.017    0.2%
   19      3099     10.85    0.3%
   20      3230     17.25    0.5%

Quality and confidence:
param     error
r         0.144

Model:
Time ~=    480.6
    + r    138.2
              µs

Reads = 3 + (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: 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 ~=    479.7
    + r    329.3
              µs

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

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

Data points distribution:
    r   mean µs  sigma µs       %
    0     472.5      0.24    0.0%
    1     808.3      4.92    0.6%
    2      1153     15.31    1.3%
    3      1479     12.18    0.8%
    4      1795     10.54    0.5%
    5      2127     11.47    0.5%
    6      2454     9.392    0.3%
    7      2767     8.714    0.3%
    8      3108     4.075    0.1%
    9      3455     10.59    0.3%
   10      3753     13.24    0.3%
   11      4131     9.325    0.2%
   12      4437     13.44    0.3%
   13      4784     6.022    0.1%
   14      5100     11.23    0.2%
   15      5435     13.34    0.2%
   16      5744     10.25    0.1%
   17      6087     13.48    0.2%
   18      6396     8.373    0.1%
   19      6734     15.28    0.2%
   20      7072     19.64    0.2%

Quality and confidence:
param     error
r          0.19

Model:
Time ~=    480.9
    + r    329.5
              µs

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

Pallet: "pallet_contracts", Extrinsic: "seal_gas", 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)

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

Model:
Time ~=    170.3
    + r    61.97
              µs

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

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

Data points distribution:
    r   mean µs  sigma µs       %
    0     165.9     0.074    0.0%
    1     230.9     0.241    0.1%
    2     292.2     0.401    0.1%
    3       357     0.195    0.0%
    4       417     0.769    0.1%
    5     478.8     0.877    0.1%
    6     544.7     1.832    0.3%
    7     611.5     8.616    1.4%
    8     662.8     0.666    0.1%
    9     731.3     12.49    1.7%
   10     786.9     10.54    1.3%
   11     863.5     13.78    1.5%
   12     920.3     10.29    1.1%
   13     985.4     14.18    1.4%
   14      1043     12.15    1.1%
   15      1108      12.7    1.1%
   16      1166     12.07    1.0%
   17      1227     14.54    1.1%
   18      1292     10.67    0.8%
   19      1339     8.987    0.6%
   20      1409     14.02    0.9%

Quality and confidence:
param     error
r         0.122

Model:
Time ~=    169.8
    + r    62.23
              µs

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

Pallet: "pallet_contracts", Extrinsic: "seal_input", 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)

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

Model:
Time ~=      473
    + r    3.008
              µs

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

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

Data points distribution:
    r   mean µs  sigma µs       %
    0     473.5     2.117    0.4%
    1     483.3     10.55    2.1%

Quality and confidence:
param     error
r         3.589

Model:
Time ~=    473.5
    + r     9.83
              µs

Reads = 3 + (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: 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 ~=    476.4
    + n    1.202
              µs

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

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

Data points distribution:
    n   mean µs  sigma µs       %
    0     475.1     0.143    0.0%
   20     501.9     3.934    0.7%
   40       525     2.444    0.4%
   60     548.3     0.549    0.1%
   80     575.8      8.44    1.4%
  100     596.9     1.129    0.1%
  120       622     3.015    0.4%
  140     644.5     0.236    0.0%
  160     675.1     11.43    1.6%
  180     692.7     0.346    0.0%
  200     726.6     15.36    2.1%
  220     741.3     2.517    0.3%
  240     767.8     9.274    1.2%
  260     789.3     2.215    0.2%
  280     821.2     13.78    1.6%
  300     838.8     4.167    0.4%
  320     873.6     16.33    1.8%
  340     895.3     15.52    1.7%
  360     910.8     2.472    0.2%
  380     939.4     14.13    1.5%
  400     978.1     17.87    1.8%
  420     995.2     18.19    1.8%
  440      1019     13.61    1.3%
  460      1043     15.63    1.4%
  480      1054     2.762    0.2%
  500      1087     12.73    1.1%
  520      1111     13.87    1.2%
  540      1142     17.24    1.5%
  560      1160     16.78    1.4%
  580      1182     15.71    1.3%
  600      1214     15.45    1.2%
  620      1239     15.63    1.2%
  640      1263     17.51    1.3%
  660      1297     14.61    1.1%
  680      1300     11.92    0.9%
  700      1331     15.66    1.1%
  720      1352     17.67    1.3%
  740      1381        17    1.2%
  760      1403     14.95    1.0%
  780      1434     15.53    1.0%
  800      1457     17.49    1.1%
  820      1474     16.37    1.1%
  840      1505     15.16    1.0%
  860      1528     16.12    1.0%
  880      1547      16.4    1.0%
  900      1581     14.86    0.9%
  920      1594      14.2    0.8%
  940      1628      14.4    0.8%
  960      1645     14.64    0.8%
  980      1679     13.14    0.7%
 1000      1688     15.77    0.9%
 1020      1711      12.5    0.7%

Quality and confidence:
param     error
n         0.002

Model:
Time ~=    477.4
    + n    1.221
              µs

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

Pallet: "pallet_contracts", Extrinsic: "seal_return", 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)

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

Model:
Time ~=    461.7
    + r    2.564
              µs

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

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

Data points distribution:
    r   mean µs  sigma µs       %
    0     461.8     0.293    0.0%
    1     464.4     0.431    0.0%

Quality and confidence:
param     error
r         0.173

Model:
Time ~=    461.8
    + r     2.56
              µs

Reads = 3 + (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: 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 ~=    464.7
    + n    0.742
              µs

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

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

Data points distribution:
    n   mean µs  sigma µs       %
    0     464.4     0.337    0.0%
   20     479.7     0.405    0.0%
   40     494.6     0.198    0.0%
   60     509.1       0.2    0.0%
   80     529.1     9.521    1.7%
  100     538.8     0.294    0.0%
  120     553.6     0.303    0.0%
  140     569.3     1.115    0.1%
  160     583.9     0.458    0.0%
  180     598.6     0.465    0.0%
  200     613.6     1.646    0.2%
  220     630.6     7.408    1.1%
  240     657.5     18.18    2.7%
  260     668.7     16.93    2.5%
  280     672.6     0.361    0.0%
  300     693.3     12.54    1.8%
  320     709.8     12.23    1.7%
  340     723.6     12.91    1.7%
  360     732.1     0.289    0.0%
  380     746.9     0.388    0.0%
  400     761.6      0.36    0.0%
  420     779.2     8.354    1.0%
  440     791.2     0.141    0.0%
  460     822.6     11.53    1.4%
  480     821.3     1.331    0.1%
  500     840.2      9.98    1.1%
  520     859.2     12.78    1.4%
  540     871.5     9.623    1.1%
  560     886.8     11.51    1.2%
  580     903.8     10.64    1.1%
  600     925.4     14.88    1.6%
  620     933.7     13.91    1.4%
  640     952.4     14.26    1.4%
  660     962.6     13.37    1.3%
  680     985.1     13.95    1.4%
  700     990.6     10.79    1.0%
  720      1013     15.36    1.5%
  740      1022     12.59    1.2%
  760      1037     13.28    1.2%
  780      1052     13.64    1.2%
  800      1074      15.1    1.4%
  820      1083     15.07    1.3%
  840      1093      11.3    1.0%
  860      1121     15.94    1.4%
  880      1130     15.83    1.4%
  900      1146     17.71    1.5%
  920      1155     12.96    1.1%
  940      1185     15.01    1.2%
  960      1194     17.02    1.4%
  980      1210     15.93    1.3%
 1000      1225     15.63    1.2%
 1020      1248     14.77    1.1%

Quality and confidence:
param     error
n         0.001

Model:
Time ~=    463.4
    + n     0.76
              µs

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

Pallet: "pallet_contracts", Extrinsic: "seal_terminate", 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: Contracts DeletionQueue (r:1 w:1)
Storage: System Account (r:2 w:2)

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

Model:
Time ~=    473.1
    + r    91.02
              µs

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

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

Data points distribution:
    r   mean µs  sigma µs       %
    0     473.7      1.84    0.3%
    1     578.7     14.95    2.5%

Quality and confidence:
param     error
r         5.021

Model:
Time ~=    473.7
    + r    104.9
              µs

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

Pallet: "pallet_contracts", Extrinsic: "seal_random", 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: RandomnessCollectiveFlip RandomMaterial (r:1 w:0)

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

Model:
Time ~=    478.4
    + r    447.6
              µs

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

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

Data points distribution:
    r   mean µs  sigma µs       %
    0     472.7     0.139    0.0%
    1     930.4     10.21    1.0%
    2      1378     12.94    0.9%
    3      1821     11.97    0.6%
    4      2272     7.006    0.3%
    5      2722     12.49    0.4%
    6      3173     13.73    0.4%
    7      3603     11.41    0.3%
    8      4056     11.55    0.2%
    9      4515     8.739    0.1%
   10      4980     11.39    0.2%
   11      5397     13.96    0.2%
   12      5848     17.41    0.2%
   13      6285     11.75    0.1%
   14      6730     13.11    0.1%
   15      7165      17.2    0.2%
   16      7606     22.19    0.2%
   17      8092     17.76    0.2%
   18      8645     46.16    0.5%
   19      8982     25.18    0.2%
   20      9456     24.15    0.2%

Quality and confidence:
param     error
r         0.367

Model:
Time ~=    474.5
    + r    448.4
              µs

Reads = 4 + (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: 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 ~=    480.3
    + r    755.8
              µs

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

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

Data points distribution:
    r   mean µs  sigma µs       %
    0     462.2     1.194    0.2%
    1      1247     15.02    1.2%
    2      1993     14.47    0.7%
    3      2758     13.07    0.4%
    4      3504     13.77    0.3%
    5      4255     6.814    0.1%
    6      5028     11.55    0.2%
    7      5777     19.54    0.3%
    8      6507     9.515    0.1%
    9      7293      19.7    0.2%
   10      8048      21.3    0.2%
   11      8802     16.38    0.1%
   12      9541      14.6    0.1%
   13     10290     27.03    0.2%
   14     11030     18.35    0.1%
   15     11790     24.05    0.2%
   16     12540     32.13    0.2%
   17     13360      15.7    0.1%
   18     14130      22.7    0.1%
   19     14860     38.39    0.2%
   20     15580     26.56    0.1%

Quality and confidence:
param     error
r         0.317

Model:
Time ~=    478.7
    + r      756
              µs

Reads = 3 + (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: 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 ~=     1342
    + t    545.3
    + n    193.9
              µs

Reads = 3 + (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      4353      11.3    0.2%
    1    16      5026     11.05    0.2%
    2    16      5573     7.196    0.1%
    3    16      6081     16.44    0.2%
    4     0      3477      16.4    0.4%
    4     1      3699     13.09    0.3%
    4     2      3890     20.95    0.5%
    4     3      4092     11.28    0.2%
    4     4      4257     9.112    0.2%
    4     5      4472     22.05    0.4%
    4     6      4656     8.825    0.1%
    4     7      4839     16.36    0.3%
    4     8      5043     15.13    0.3%
    4     9      5255      24.2    0.4%
    4    10      5396     12.23    0.2%
    4    11      5613     18.08    0.3%
    4    12      5816     27.87    0.4%
    4    13      6003     20.62    0.3%
    4    14      6193     23.16    0.3%
    4    15      6417     23.16    0.3%
    4    16      6608     18.09    0.2%

Quality and confidence:
param     error
t         2.328
n         0.459

Model:
Time ~=     1310
    + t    544.3
    + n    194.8
              µs

Reads = 3 + (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: 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 ~=    190.8
    + r    80.01
              µs

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

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

Data points distribution:
    r   mean µs  sigma µs       %
    0       188     0.152    0.0%
    1     273.7     2.586    0.9%
    2     350.3     0.323    0.0%
    3     435.3     4.358    1.0%
    4     508.3     1.007    0.1%
    5     583.8     9.059    1.5%
    6     679.4      13.3    1.9%
    7     749.7     8.844    1.1%
    8     819.7     1.536    0.1%
    9     897.8      1.77    0.1%
   10     982.7     11.71    1.1%
   11      1087     12.77    1.1%
   12      1172      13.8    1.1%
   13      1233     9.157    0.7%
   14      1316     14.37    1.0%
   15      1386     10.36    0.7%
   16      1467     11.95    0.8%
   17      1562     10.82    0.6%
   18      1644     14.53    0.8%
   19      1723     14.68    0.8%
   20      1791     14.24    0.7%

Quality and confidence:
param     error
r         0.151

Model:
Time ~=      188
    + r    80.49
              µs

Reads = 3 + (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 ~=    459.2
    + r    265.7
              µs

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

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

Data points distribution:
    r   mean µs  sigma µs       %
    0     472.9     0.894    0.1%
    1     733.3     1.612    0.2%
    2     991.2     10.98    1.1%
    3      1254     12.99    1.0%
    4      1498      14.3    0.9%
    5      1769     10.55    0.5%
    6      2079     16.11    0.7%
    7      2306     9.535    0.4%
    8      2556     11.88    0.4%
    9      2845      13.5    0.4%
   10      3100     7.148    0.2%
   11      3415     18.89    0.5%
   12      3669      9.18    0.2%
   13      3908     18.21    0.4%
   14      4173     10.88    0.2%
   15      4422     5.603    0.1%
   16      4696      8.08    0.1%
   17      4957     17.14    0.3%
   18      5270     15.85    0.3%
   19      5530     13.71    0.2%
   20      5787     20.55    0.3%

Quality and confidence:
param     error
r         0.257

Model:
Time ~=    455.1
    + r    266.1
              µs

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

Pallet: "pallet_contracts", Extrinsic: "seal_set_storage_per_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: unknown [0x7afa01283080ef247df84e0ba38ea5a587d25ce6633a6bfbba02068c14023441] (r:0 w:1)

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

Model:
Time ~=    726.4
    + n    82.66
              µs

Reads = 3 + (0 * n)
Writes = 2 + (0 * n)

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

Data points distribution:
    n   mean µs  sigma µs       %
    0     685.9     2.278    0.3%
    1     802.1     4.583    0.5%
    2     893.3     11.07    1.2%
    3       973     10.63    1.0%
    4      1084     5.213    0.4%
    5      1167     2.858    0.2%
    6      1227     12.34    1.0%
    7      1318     13.27    1.0%
    8      1379     2.184    0.1%
    9      1476     11.11    0.7%
   10      1555     12.79    0.8%
   11      1654     4.372    0.2%
   12      1689     2.419    0.1%
   13      1823      13.9    0.7%
   14      1899     13.61    0.7%
   15      1972     15.37    0.7%
   16      2032     14.38    0.7%

Quality and confidence:
param     error
n         0.325

Model:
Time ~=    724.6
    + n    83.21
              µs

Reads = 3 + (0 * n)
Writes = 2 + (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 ~=    492.6
    + r    238.4
              µs

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

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

Data points distribution:
    r   mean µs  sigma µs       %
    0     475.3     6.124    1.2%
    1     734.9     1.224    0.1%
    2       976     2.549    0.2%
    3      1221     12.18    0.9%
    4      1435     5.806    0.4%
    5      1675     10.24    0.6%
    6      1921     10.49    0.5%
    7      2156     14.92    0.6%
    8      2373     14.64    0.6%
    9      2631     11.17    0.4%
   10      2867     10.36    0.3%
   11      3137     10.71    0.3%
   12      3361     12.92    0.3%
   13      3588     15.98    0.4%
   14      3819     17.62    0.4%
   15      4063     11.76    0.2%
   16      4288      9.15    0.2%
   17      4515     14.12    0.3%
   18      4808     11.99    0.2%
   19      5036     15.69    0.3%
   20      5272     21.05    0.3%

Quality and confidence:
param     error
r         0.216

Model:
Time ~=      487
    + r    238.7
              µs

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

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 ~=    345.7
    + r    566.1
              µs

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

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

Data points distribution:
    r   mean µs  sigma µs       %
    0       473     0.194    0.0%
    1     977.9     2.144    0.2%
    2      1499     5.372    0.3%
    3      2054     10.55    0.5%
    4      2570     16.59    0.6%
    5      3184     12.95    0.4%
    6      3705      13.6    0.3%
    7      4232     15.72    0.3%
    8      4780     22.88    0.4%
    9      5400     20.73    0.3%
   10      5935     34.52    0.5%
   11      6568      19.3    0.2%
   12      7144     30.81    0.4%
   13      7678     21.63    0.2%
   14      8265     29.12    0.3%
   15      8787     17.45    0.1%
   16      9335     22.09    0.2%
   17     10000     39.03    0.3%
   18     10620     28.49    0.2%
   19     11220     38.93    0.3%
   20     11800     17.09    0.1%

Quality and confidence:
param     error
r         0.813

Model:
Time ~=    332.5
    + r      568
              µs

Reads = 3 + (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: Contracts ContractInfoOf (r:1 w:1)
Storage: Contracts CodeStorage (r:1 w:0)
Storage: Timestamp Now (r:1 w:0)
Storage: unknown [0x7afa01283080ef247df84e0ba38ea5a587d25ce6633a6bfbba02068c14023441] (r:1 w:0)

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

Model:
Time ~=    803.2
    + n    133.5
              µs

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

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

Data points distribution:
    n   mean µs  sigma µs       %
    0     776.7     1.788    0.2%
    1     926.5     1.829    0.1%
    2      1079        16    1.4%
    3      1205     8.473    0.7%
    4      1347     13.26    0.9%
    5      1493     11.33    0.7%
    6      1620     8.736    0.5%
    7      1732     9.724    0.5%
    8      1866     17.18    0.9%
    9      1994     14.63    0.7%
   10      2130     13.68    0.6%
   11      2268     16.99    0.7%
   12      2397      11.5    0.4%
   13      2548     8.131    0.3%
   14      2676     14.19    0.5%
   15      2813     15.65    0.5%
   16      2936     13.32    0.4%

Quality and confidence:
param     error
n         0.265

Model:
Time ~=    800.9
    + n    133.8
              µs

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

Pallet: "pallet_contracts", Extrinsic: "seal_transfer", 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:101 w:101)

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

Model:
Time ~=    394.7
    + r     4892
              µs

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

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

Data points distribution:
    r   mean µs  sigma µs       %
    0     478.1     0.156    0.0%
    1      5327     27.95    0.5%
    2     10160     33.98    0.3%
    3     14990     22.32    0.1%
    4     19910     39.72    0.1%
    5     24810     47.81    0.1%
    6     29670     50.65    0.1%
    7     34640     39.18    0.1%
    8     39440     42.11    0.1%
    9     44380     25.95    0.0%
   10     49350     61.74    0.1%
   11     54440     52.07    0.0%
   12     59180     44.81    0.0%
   13     63890     86.19    0.1%
   14     68690      87.9    0.1%
   15     73800     61.37    0.0%
   16     78260       135    0.1%
   17     84000     69.07    0.0%
   18     88920     104.6    0.1%
   19     93300     70.91    0.0%
   20     98100        90    0.0%

Quality and confidence:
param     error
r         2.266

Model:
Time ~=    369.7
    + r     4895
              µs

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

Pallet: "pallet_contracts", Extrinsic: "seal_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)

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

Model:
Time ~=    86.24
    + r    45230
              µs

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

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

Data points distribution:
    r   mean µs  sigma µs       %
    0       483     9.049    1.8%
    1     45590     60.54    0.1%
    2     90620     92.22    0.1%
    3    135700     92.27    0.0%
    4    180800     163.7    0.0%
    5    226200     88.81    0.0%
    6    271200     157.2    0.0%
    7    316300     169.5    0.0%
    8    361600     101.8    0.0%
    9    407200     147.7    0.0%
   10    452000     180.8    0.0%
   11    497300     222.4    0.0%
   12    542300     222.3    0.0%
   13    588100     192.4    0.0%
   14    633300     287.3    0.0%
   15    678400     226.2    0.0%
   16    723800       388    0.0%
   17    769200     127.3    0.0%
   18    814300     257.8    0.0%
   19    860100     124.5    0.0%
   20    905700     186.3    0.0%

Quality and confidence:
param     error
r         4.422

Model:
Time ~=        0
    + r    45240
              µs

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

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

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

Model:
Time ~=    46340
    + t     4173
    + i    75.12
    + o    121.5
              µs

Reads = 104 + (101 * t) + (0 * i) + (0 * o)
Writes = 101 + (101 * t) + (0 * i) + (0 * o)

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

Data points distribution:
    t     i     o   mean µs  sigma µs       %
    0  1024   960    239900     88.59    0.0%
    1     0   960    166600     85.45    0.0%
    1    20   960    168200     87.01    0.0%
    1    40   960    169600     82.39    0.0%
    1    60   960    171200     67.09    0.0%
    1    80   960    172700     91.22    0.0%
    1   100   960    174300     134.1    0.0%
    1   120   960    175700     101.2    0.0%
    1   140   960    177200     80.28    0.0%
    1   160   960    178800     105.5    0.0%
    1   180   960    180200     97.12    0.0%
    1   200   960    181800     77.71    0.0%
    1   220   960    183500     106.2    0.0%
    1   240   960    184700     47.33    0.0%
    1   260   960    186200     63.55    0.0%
    1   280   960    187600     89.54    0.0%
    1   300   960    189400     97.26    0.0%
    1   320   960    190900     129.3    0.0%
    1   340   960    192600     171.9    0.0%
    1   360   960    193800     62.67    0.0%
    1   380   960    195300      80.7    0.0%
    1   400   960    196900     147.6    0.0%
    1   420   960    198600     152.6    0.0%
    1   440   960    199900     73.82    0.0%
    1   460   960    201200     79.77    0.0%
    1   480   960    202800     62.48    0.0%
    1   500   960    204500     129.4    0.0%
    1   520   960    205800     96.95    0.0%
    1   540   960    207300     158.1    0.0%
    1   560   960    208600     121.7    0.0%
    1   580   960    210300     109.7    0.0%
    1   600   960    211900     48.17    0.0%
    1   620   960    213400     159.2    0.0%
    1   640   960    214800     101.7    0.0%
    1   660   960    216200     98.98    0.0%
    1   680   960    217900       101    0.0%
    1   700   960    219200     139.2    0.0%
    1   720   960    220700     80.81    0.0%
    1   740   960    222200     52.47    0.0%
    1   760   960    223900     81.19    0.0%
    1   780   960    225300     101.3    0.0%
    1   800   960    226800     122.2    0.0%
    1   820   960    228100     78.41    0.0%
    1   840   960    229800     146.4    0.0%
    1   860   960    231200     177.6    0.0%
    1   880   960    232800     114.1    0.0%
    1   900   960    234100     114.4    0.0%
    1   920   960    235800     116.6    0.0%
    1   940   960    237400     55.07    0.0%
    1   960   960    238900     129.9    0.0%
    1   980   960    240500     103.3    0.0%
    1  1000   960    241800     80.79    0.0%
    1  1020   960    243400      64.7    0.0%
    1  1024     0    127100     52.31    0.0%
    1  1024    19    129500     118.4    0.0%
    1  1024    38    131700     69.64    0.0%
    1  1024    57    133900     43.39    0.0%
    1  1024    76    136300     68.05    0.0%
    1  1024    95    138700     83.91    0.0%
    1  1024   114    141000     86.16    0.0%
    1  1024   133    143200     118.3    0.0%
    1  1024   152    145700     100.5    0.0%
    1  1024   171    148000     96.38    0.0%
    1  1024   190    150100     84.47    0.0%
    1  1024   209    152700     124.7    0.0%
    1  1024   228    154900     71.25    0.0%
    1  1024   247    157000     63.36    0.0%
    1  1024   266    159500     78.35    0.0%
    1  1024   285    161800     56.01    0.0%
    1  1024   304    164000      77.5    0.0%
    1  1024   323    166400       120    0.0%
    1  1024   342    168700     75.89    0.0%
    1  1024   361    171000     43.54    0.0%
    1  1024   380    173300     102.9    0.0%
    1  1024   399    175600      52.3    0.0%
    1  1024   418    177900     86.93    0.0%
    1  1024   437    180200     85.87    0.0%
    1  1024   456    182400     87.45    0.0%
    1  1024   475    185200     159.1    0.0%
    1  1024   494    187100     83.07    0.0%
    1  1024<truncated>...

@gilescope
Copy link
Contributor

Less complex sounds good. Smart contract developers already have the hurdle of getting up to speed with rust. It's one less thing for builders to worry about if they can assume things will always be where they put them.

Maybe we should make old state more costly to retrieve than newer state (if it isn't already)?

@athei
Copy link
Member Author

athei commented Sep 1, 2021

If you guys decide to remove rent, I advise to recover put_code
#8671

Yes it can be re-added after this is merged. It is not a priority right now, though.

Maybe we should make old state more costly to retrieve than newer state (if it isn't already)?

We should definitely discuss all the options we have. But this PR is not the right place. FWIW nothing like this is implemented as of right now.

Smart contract developers already have the hurdle of getting up to speed with rust.

For the solidity folks that is true. My hope is that we can get some rustaceans into smart contracts with ink!.

@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 Sep 2, 2021
@athei athei marked this pull request as ready for review September 2, 2021 12:53
Comment on lines -310 to +165
return weight_limit
return 0
Copy link
Member Author

Choose a reason for hiding this comment

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

This is a drive by fix. I think this was a refactoring artifact.

#[derive(Encode, Decode)]
pub struct DeletedContract {
pair_count: u32,
Copy link
Member Author

Choose a reason for hiding this comment

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

The host API was improved. We no longer need to store how many keys we are deleting because the host API tells us how many where removed.

@athei
Copy link
Member Author

athei commented Sep 2, 2021

/benchmark runtime pallet pallet_contracts

@parity-benchapp
Copy link

parity-benchapp bot commented Sep 2, 2021

Benchmark Runtime Pallet for branch "at-remove-rent" with command cargo run --quiet --release --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

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 ~=    3.426
              µs

Reads = 1
Writes = 0

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

Model:
Time ~=    3.426
              µ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 ~=        0
    + k    2.238
              µs

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

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

Data points distribution:
    k   mean µs  sigma µs       %
    0     56.54     0.365    0.6%
   20     62.39     0.411    0.6%
   40     101.7     0.867    0.8%
   60     136.7     0.623    0.4%
   80     174.2     1.442    0.8%
  100     212.9     2.893    1.3%
  120     257.6      2.49    0.9%
  140     295.4     1.299    0.4%
  160     339.3     2.456    0.7%
  180     383.2     4.195    1.0%
  200     429.5     2.409    0.5%
  220     473.6     5.708    1.2%
  240     510.7     3.635    0.7%
  260     559.5     5.551    0.9%
  280     596.4     6.039    1.0%
  300     650.8     8.472    1.3%
  320     687.4     5.785    0.8%
  340     732.8     3.679    0.5%
  360     786.1     11.04    1.4%
  380     825.1     7.806    0.9%
  400     871.5     5.981    0.6%
  420     916.1     9.051    0.9%
  440     961.2     11.21    1.1%
  460     994.8     7.199    0.7%
  480      1059     9.267    0.8%
  500      1108     7.059    0.6%
  520      1176     5.557    0.4%
  540      1173     12.31    1.0%
  560      1229     9.292    0.7%
  580      1260     15.29    1.2%
  600      1321     10.21    0.7%
  620      1394     11.01    0.7%
  640      1404     14.15    1.0%
  660      1457     12.77    0.8%
  680      1497     20.63    1.3%
  700      1560     15.03    0.9%
  720      1582     13.65    0.8%
  740      1624     13.13    0.8%
  760      1680     7.564    0.4%
  780      1739     9.959    0.5%
  800      1792      7.23    0.4%
  820      1846     12.47    0.6%
  840      1863     12.51    0.6%
  860      1932     13.87    0.7%
  880      1984     14.17    0.7%
  900      2039     19.04    0.9%
  920      2094      20.5    0.9%
  940      2094      8.59    0.4%
  960      2167      18.9    0.8%
  980      2190     17.72    0.8%
 1000      2239     18.99    0.8%
 1020      2299     13.68    0.5%

Quality and confidence:
param     error
k         0.003

Model:
Time ~=        0
    + k    2.249
              µ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 ~=    79.86
    + q     0.39
              µs

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

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

Data points distribution:
    q   mean µs  sigma µs       %
    0     3.393     0.033    0.9%
   20     75.05     0.552    0.7%
   40     86.97     0.784    0.9%
   60     97.83     0.364    0.3%
   80     110.4     2.212    2.0%
  100     122.2     3.368    2.7%
  120     131.4     3.067    2.3%
  140     138.7     1.174    0.8%
  160     150.2     1.308    0.8%
  180     160.7     0.588    0.3%
  200     170.9     1.532    0.8%
  220     180.8      0.82    0.4%
  240       200     6.902    3.4%
  260     206.7     7.031    3.4%
  280     209.6     1.651    0.7%
  300       202      8.96    4.4%
  320     224.1     2.253    1.0%
  340     207.1     4.132    1.9%
  360     212.2     1.098    0.5%
  380     252.5     1.124    0.4%
  400     230.6     3.016    1.3%
  420     270.6     1.053    0.3%
  440     246.4     1.448    0.5%
  460     251.5      1.32    0.5%
  480     263.1     2.233    0.8%
  500     270.2     2.398    0.8%
  520     276.5     1.728    0.6%
  540     285.2     2.173    0.7%
  560     297.9     7.367    2.4%
  580     300.4     1.848    0.6%
  600     305.8     1.184    0.3%
  620     316.4      2.02    0.6%
  640     323.8     4.214    1.3%
  660     330.4     1.838    0.5%
  680     337.9     1.347    0.3%
  700     346.9     2.251    0.6%
  720     354.1     7.207    2.0%
  740     370.1     2.728    0.7%
  760     379.8     0.455    0.1%
  780       388     1.441    0.3%
  800     405.9     13.44    3.3%
  820     401.6     1.063    0.2%
  840     410.1     2.261    0.5%
  860     419.5     3.285    0.7%
  880     425.7     2.413    0.5%
  900     431.6     1.066    0.2%
  920       439     1.699    0.3%
  940     445.8     1.876    0.4%
  960     450.4     1.218    0.2%
  980     458.9     0.716    0.1%
 1000     465.1     1.697    0.3%

Quality and confidence:
param     error
q         0.002

Model:
Time ~=    79.79
    + q    0.391
              µs

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

Pallet: "pallet_contracts", Extrinsic: "instrument", 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 ~=    75.23
    + c    81.98
              µs

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

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

Data points distribution:
    c   mean µs  sigma µs       %
    0     85.54     0.062    0.0%
    2       259     0.903    0.3%
    4       413     0.916    0.2%
    6     560.1     5.828    1.0%
    8     735.5     5.714    0.7%
   10       886     13.88    1.5%
   12      1032     15.13    1.4%
   14      1242     13.15    1.0%
   16      1381     14.63    1.0%
   18      1557     14.33    0.9%
   20      1688     13.28    0.7%
   22      1842     9.295    0.5%
   24      1967     13.78    0.7%
   26      2265      9.64    0.4%
   28      2402     14.38    0.5%
   30      2548     14.36    0.5%
   32      2685     16.04    0.5%
   34      2883     15.39    0.5%
   36      3015     13.07    0.4%
   38      3162     5.251    0.1%
   40      3307     11.71    0.3%
   42      3440     6.418    0.1%
   44      3603     14.32    0.3%
   46      3728     13.43    0.3%
   48      3862     3.729    0.0%
   50      4281     16.64    0.3%
   52      4418     13.43    0.3%
   54      4545     2.895    0.0%
   56      4711     19.65    0.4%
   58      4837      13.1    0.2%
   60      4973     17.12    0.3%
   62      5137     16.06    0.3%
   64      5269     22.72    0.4%
   66      5520     10.94    0.1%
   68      5666     11.46    0.2%
   70      5805     12.59    0.2%
   72      5948     13.38    0.2%
   74      6095     21.89    0.3%
   76      6234     16.26    0.2%
   78      6426     34.42    0.5%
   80      6549     28.22    0.4%
   82      6688     28.32    0.4%
   84      6832     24.72    0.3%
   86      6985     20.12    0.2%
   88      7128     44.65    0.6%
   90      7260     42.86    0.5%
   92      7373     34.63    0.4%
   94      7519     20.76    0.2%
   96      7720     44.74    0.5%
   98      8343     38.15    0.4%
  100      8479     25.19    0.2%
  102      8621     24.96    0.2%
  104      8758     28.13    0.3%
  106      8935     30.82    0.3%
  108      9064     37.39    0.4%
  110      9201     38.92    0.4%
  112      9338     22.58    0.2%
  114      9493     19.46    0.2%
  116      9620     31.31    0.3%
  118      9758     28.29    0.2%
  120      9919     37.02    0.3%
  122     10040     29.14    0.2%
  124     10190     35.97    0.3%
  126     10330     10.66    0.1%
  128     10600     71.72    0.6%

Quality and confidence:
param     error
c         0.105

Model:
Time ~=    52.97
    + c    82.15
              µs

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

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

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

Model:
Time ~=    6.931
    + c    2.009
              µs

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

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

Data points distribution:
    c   mean µs  sigma µs       %
    0     5.961     0.059    0.9%
    2     10.81     0.072    0.6%
    4     14.86     0.052    0.3%
    6     18.59     0.057    0.3%
    8     22.96     0.086    0.3%
   10     27.09     0.117    0.4%
   12     31.48     0.101    0.3%
   14     35.52     0.081    0.2%
   16     39.25     0.379    0.9%
   18     43.26     0.154    0.3%
   20     47.16     0.087    0.1%
   22     50.92     0.118    0.2%
   24     55.19     0.297    0.5%
   26     59.47      0.52    0.8%
   28     63.31      0.06    0.0%
   30     67.68     0.657    0.9%
   32     72.34     0.584    0.8%
   34     75.27     0.047    0.0%
   36      79.1     0.189    0.2%
   38     83.14     0.094    0.1%
   40     87.29     0.169    0.1%
   42     91.35     0.124    0.1%
   44     96.29     0.822    0.8%
   46     99.45      0.11    0.1%
   48     103.4      0.14    0.1%
   50     107.5     0.162    0.1%
   52     111.5     0.111    0.0%
   54     115.5     0.079    0.0%
   56     119.4     0.064    0.0%
   58     123.3     0.132    0.1%
   60     127.2     0.117    0.0%
   62     131.4     0.048    0.0%
   64     135.1     0.084    0.0%
   66     139.8     0.149    0.1%
   68     143.5     0.146    0.1%
   70     147.4     0.184    0.1%
   72     151.7     0.345    0.2%
   74     157.3     1.875    1.1%
   76     159.7     0.256    0.1%
   78     163.9     0.187    0.1%
   80     167.8     0.106    0.0%
   82     173.8     1.891    1.0%
   84     175.7     0.261    0.1%
   86     179.4     0.129    0.0%
   88     183.5     0.119    0.0%
   90     187.4     0.113    0.0%
   92     191.6     0.264    0.1%
   94     195.6      0.29    0.1%
   96     199.5     0.085    0.0%
   98     203.8     0.218    0.1%
  100     207.9     0.183    0.0%
  102     212.1     0.183    0.0%
  104     216.4     0.183    0.0%
  106     219.9     0.126    0.0%
  108     225.5     4.359    1.9%
  110     227.6     0.089    0.0%
  112     231.7     0.168    0.0%
  114     235.5     0.192    0.0%
  116     239.9     0.175    0.0%
  118     243.7     0.117    0.0%
  120     248.4     1.662    0.6%
  122       252     0.242    0.0%
  124     256.3     0.227    0.0%
  126       260     0.203    0.0%
  128     264.1      0.22    0.0%

Quality and confidence:
param     error
c             0

Model:
Time ~=    6.996
    + c     2.01
              µs

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

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

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

Model:
Time ~=    11.18
    + c    3.033
              µs

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

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

Data points distribution:
    c   mean µs  sigma µs       %
    0     10.37     0.075    0.7%
    2     17.35     0.051    0.2%
    4     22.99     0.073    0.3%
    6     29.52     0.061    0.2%
    8     35.61     0.107    0.3%
   10     41.52     0.105    0.2%
   12     47.25     0.095    0.2%
   14     53.67     0.082    0.1%
   16     59.67     0.107    0.1%
   18     67.22     0.194    0.2%
   20      71.8     0.145    0.2%
   22     77.85     0.138    0.1%
   24     83.96     0.235    0.2%
   26     90.32     0.163    0.1%
   28     95.92     0.121    0.1%
   30     102.5     0.139    0.1%
   32     107.9     0.154    0.1%
   34     114.3     0.067    0.0%
   36     120.7     0.114    0.0%
   38     126.4     0.222    0.1%
   40     132.4      0.13    0.0%
   42     139.1     0.225    0.1%
   44     145.2      0.61    0.4%
   46     150.4     0.138    0.0%
   48     156.9     0.171    0.1%
   50     162.5     0.108    0.0%
   52     171.9     1.301    0.7%
   54     174.5     0.118    0.0%
   56     181.2     0.141    0.0%
   58     187.4      1.46    0.7%
   60     194.9     2.006    1.0%
   62     198.6     0.329    0.1%
   64     205.3      0.23    0.1%
   66     211.4     0.194    0.0%
   68     217.2     0.286    0.1%
   70     223.8      0.19    0.0%
   72     230.1     0.189    0.0%
   74     235.9     0.684    0.2%
   76     241.7     0.155    0.0%
   78     247.9     0.227    0.0%
   80     253.8     0.095    0.0%
   82     259.8     0.238    0.0%
   84     267.6     3.789    1.4%
   86     271.7     0.174    0.0%
   88     280.2     5.844    2.0%
   90     284.3     0.615    0.2%
   92     290.2     0.139    0.0%
   94     296.3      0.09    0.0%
   96     302.6     0.231    0.0%
   98     311.4     6.752    2.1%
  100     314.7     0.718    0.2%
  102     320.5     0.099    0.0%
  104     334.4     12.57    3.7%
  106     332.7     0.246    0.0%
  108     339.6     0.653    0.1%
  110     344.4       0.5    0.1%
  112     350.8      0.98    0.2%
  114     358.1     4.363    1.2%
  116     362.7     0.744    0.2%
  118     371.2      5.83    1.5%
  120     374.5     0.279    0.0%
  122     383.5     5.575    1.4%
  124     387.9     2.516    0.6%
  126     394.4     3.653    0.9%
  128     400.7     2.587    0.6%

Quality and confidence:
param     error
c         0.002

Model:
Time ~=       11
    + c    3.043
              µs

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

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

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

Model:
Time ~=    782.8
    + c    206.5
    + s    2.492
              µs

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

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

Data points distribution:
    c     s   mean µs  sigma µs       %
    0  1024      3313     12.92    0.3%
    1  1024      3539     12.65    0.3%
    2  1024      3739     11.05    0.2%
    3  1024      3931     12.03    0.3%
    4  1024      4139     22.86    0.5%
    5  1024      4361     19.11    0.4%
    6  1024      4523     13.33    0.2%
    7  1024      4775      11.3    0.2%
    8  1024      4968     14.07    0.2%
    9  1024      5244     18.03    0.3%
   10  1024      5440     18.53    0.3%
   11  1024      5557     20.79    0.3%
   12  1024      5777     11.96    0.2%
   13  1024      6044     29.44    0.4%
   14  1024      6222     21.15    0.3%
   15  1024      6417     25.48    0.3%
   16  1024      6570     22.89    0.3%
   17  1024      6936     13.14    0.1%
   18  1024      7121     16.32    0.2%
   19  1024      7270     24.83    0.3%
   20  1024      7454     22.95    0.3%
   21  1024      7641     27.06    0.3%
   22  1024      7795     7.556    0.0%
   23  1024      8000     27.73    0.3%
   24  1024      8206     31.72    0.3%
   25  1024      8585     19.33    0.2%
   26  1024      8782     29.09    0.3%
   27  1024      8928     24.44    0.2%
   28  1024      9082     17.74    0.1%
   29  1024      9291     41.57    0.4%
   30  1024      9515      45.4    0.4%
   31  1024      9756     43.65    0.4%
   32  1024      9878     29.67    0.3%
   33  1024     10380     44.83    0.4%
   34  1024     10550     31.49    0.2%
   35  1024     10780     35.45    0.3%
   36  1024     10890     17.33    0.1%
   37  1024     11130     24.76    0.2%
   38  1024     11280     44.76    0.3%
   39  1024     11490     39.11    0.3%
   40  1024     11650     56.42    0.4%
   41  1024     11790     44.09    0.3%
   42  1024     12000     55.83    0.4%
   43  1024     12170     56.79    0.4%
   44  1024     12350     25.79    0.2%
   45  1024     12500      27.2    0.2%
   46  1024     12700     47.71    0.3%
   47  1024     12860     25.75    0.2%
   48  1024     13070     45.78    0.3%
   49  1024     13660     41.28    0.3%
   50  1024     13850     60.78    0.4%
   51  1024     14160     62.57    0.4%
   52  1024     14280      44.8    0.3%
   53  1024     14470     36.43    0.2%
   54  1024     14660     43.78    0.2%
   55  1024     14720     37.74    0.2%
   56  1024     14940     42.72    0.2%
   57  1024     15120     55.03    0.3%
   58  1024     15280     25.92    0.1%
   59  1024     15460     40.58    0.2%
   60  1024     15650     32.77    0.2%
   61  1024     15800        26    0.1%
   62  1024     16010     34.76    0.2%
   63  1024     16190     33.56    0.2%
   64     0     13860     39.78    0.2%
   64    20     13850     39.77    0.2%
   64    40     13920     22.38    0.1%
   64    60     13990     46.31    0.3%
   64    80     13990     22.77    0.1%
   64   100     14050     19.44    0.1%
   64   120     14110     49.99    0.3%
   64   140     14170     29.54    0.2%
   64   160     14190      36.8    0.2%
   64   180     14330     83.06    0.5%
   64   200     14350     40.46    0.2%
   64   220     14360     32.21    0.2%
   64   240     14500     90.43    0.6%
   64   260     14440     29.11    0.2%
   64   280     14560        46    0.3%
   64   300     14560     41.63    0.2%
   64   320     14640     37.05    0.2%
   64   340     14650     44.28    0.3%
   64   360     14700     38.84    0.2%
   64   380     14760     44.33    0.3%
   64   400     14790     27.15    0.1%
   64   420     14850     46.31    0.3%
   64   440     14890     27.27    0.1%
   64   460     15000     64.35    0.4%
   64   480     15210     119.4    0.7%
   64   500     15060     55.24    0.3%
   64   520     15080     36.81    0.2%
   64   540     15120     21.85    0.1%
   64   560     15180     49.89    0.3%
   64   580     15250     37.13    0.2%
   64   600     15280     39.97    0.2%
   64   620     15310     33.85    0.2%
   64   640     15380     37.11    0.2%
   64   660     15420     48.91    0.3%
   64   680     15550     43.25    0.2%
   64   700     15630     60.06    0.3%
   64   720     15700     34.94    0.2%
   64   740     15630     33.98    0.2%
   64   760     15680     38.73    0.2%
   64   780     15720     31.24    0.1%
   64   800     15870     66.43    0.4%
   64   820     15880     32.11    0.2%
   64   840     15940     35.28    0.2%
   64   860     16020     36.59    0.2%
   64   880     16120      44.9    0.2%
   64   900     16190      57.9    0.3%
   64   920     16150     53.41    0.3%
   64   940     16200     48.98    0.3%
   64   960     16260     60.96    0.3%
   64   980     16210     47.43    0.2%
   64  1000     16230     25.07    0.1%
   64  1020     16330     43.67    0.2%
   64  1024     16320     49.24    0.3%

Quality and confidence:
param     error
c         0.182
s         0.011

Model:
Time ~=    671.5
    + c    204.7
    + s    2.647
              µs

Reads = 5 + (0 * c) + (0 * s)
Writes = 4 + (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:0)
Storage: Contracts ContractInfoOf (r:1 w:1)
Storage: Timestamp Now (r:1 w:0)
Storage: System Account (r:1 w:1)

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

Model:
Time ~=    254.5
    + s    2.388
              µs

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

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

Data points distribution:
    s   mean µs  sigma µs       %
    0       251      1.65    0.6%
   20     299.6     0.434    0.1%
   40     348.1     0.616    0.1%
   60     404.1     2.607    0.6%
   80     446.6     7.254    1.6%
  100     493.4     4.711    0.9%
  120       541     5.114    0.9%
  140     586.7     0.807    0.1%
  160     642.6     10.99    1.7%
  180     682.1     0.414    0.0%
  200     732.9      9.29    1.2%
  220     789.2     15.08    1.9%
  240     830.8      13.5    1.6%
  260     876.9     7.119    0.8%
  280     935.6     15.81    1.6%
  300       984     14.04    1.4%
  320      1016     4.918    0.4%
  340      1075     15.54    1.4%
  360      1124      13.6    1.2%
  380      1175     16.42    1.3%
  400      1217      15.6    1.2%
  420      1274     16.69    1.3%
  440      1308     17.11    1.3%
  460      1362     16.84    1.2%
  480      1405     12.53    0.8%
  500      1462     14.66    1.0%
  520      1500     13.77    0.9%
  540      1556      15.2    0.9%
  560      1600     17.17    1.0%
  580      1657     13.58    0.8%
  600      1700     14.39    0.8%
  620      1737      10.7    0.6%
  640      1789     11.42    0.6%
  660      1849     9.873    0.5%
  680      1886     13.94    0.7%
  700      1930     12.16    0.6%
  720      1983     13.58    0.6%
  740      2027     12.58    0.6%
  760      2091     20.72    0.9%
  780      2132     13.61    0.6%
  800      2195     4.861    0.2%
  820      2223     16.74    0.7%
  840      2276     13.91    0.6%
  860      2340     11.11    0.4%
  880      2372      15.2    0.6%
  900      2414     14.54    0.6%
  920      2474     15.51    0.6%
  940      2514     10.41    0.4%
  960      2573     5.596    0.2%
  980      2605     18.69    0.7%
 1000      2659     12.16    0.4%
 1020      2704     13.23    0.4%

Quality and confidence:
param     error
s         0.002

Model:
Time ~=    254.1
    + s    2.408
              µs

Reads = 5 + (0 * s)
Writes = 3 + (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 ~=    214.3
              µs

Reads = 4
Writes = 2

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

Model:
Time ~=    214.3
              µs

Reads = 4
Writes = 2

Pallet: "pallet_contracts", Extrinsic: "seal_caller", 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)

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

Model:
Time ~=    691.9
    + r    139.9
              µs

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

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

Data points distribution:
    r   mean µs  sigma µs       %
    0     674.6     0.334    0.0%
    1     824.1     9.668    1.1%
    2     974.6     12.63    1.2%
    3      1105     11.98    1.0%
    4      1256     7.693    0.6%
    5      1389     6.053    0.4%
    6      1523     7.439    0.4%
    7      1682     5.303    0.3%
    8      1821     6.062    0.3%
    9      1949      9.65    0.4%
   10      2093     3.639    0.1%
   11      2228     4.529    0.2%
   12      2404     2.959    0.1%
   13      2509     7.482    0.2%
   14      2661     9.924    0.3%
   15      2795     6.323    0.2%
   16      2943      9.43    0.3%
   17      3072     7.275    0.2%
   18      3200     9.548    0.2%
   19      3342     9.423    0.2%
   20      3477     11.34    0.3%

Quality and confidence:
param     error
r         0.154

Model:
Time ~=    690.8
    + r    140.1
              µs

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

Pallet: "pallet_contracts", Extrinsic: "seal_address", 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)

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

Model:
Time ~=    699.9
    + r      139
              µs

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

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

Data points distribution:
    r   mean µs  sigma µs       %
    0     688.7     7.008    1.0%
    1     836.1     10.31    1.2%
    2     978.3     13.63    1.3%
    3      1095     3.898    0.3%
    4      1251     9.936    0.7%
    5      1385     13.69    0.9%
    6      1523     12.97    0.8%
    7      1685     14.13    0.8%
    8      1820     10.73    0.5%
    9      1964     5.385    0.2%
   10      2101     7.551    0.3%
   11      2234     5.388    0.2%
   12      2361     6.378    0.2%
   13      2500     6.802    0.2%
   14      2660        11    0.4%
   15      2785     8.334    0.2%
   16      2929     7.724    0.2%
   17      3059     7.479    0.2%
   18      3201     13.57    0.4%
   19      3326     8.143    0.2%
   20      3468     5.522    0.1%

Quality and confidence:
param     error
r         0.156

Model:
Time ~=      697
    + r    139.1
              µs

Reads = 3 + (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: 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 ~=    687.9
    + r    137.9
              µs

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

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

Data points distribution:
    r   mean µs  sigma µs       %
    0     678.5     7.453    1.0%
    1     816.4     1.152    0.1%
    2     955.5     2.043    0.2%
    3      1104     11.37    1.0%
    4      1242     10.48    0.8%
    5      1382     9.963    0.7%
    6      1510     13.27    0.8%
    7      1674     12.01    0.7%
    8      1795     13.59    0.7%
    9      1938      10.7    0.5%
   10      2072      6.18    0.2%
   11      2204     19.08    0.8%
   12      2351      11.7    0.4%
   13      2482     7.396    0.2%
   14      2632     2.459    0.0%
   15      2768     11.51    0.4%
   16      2910     12.46    0.4%
   17      3036     11.69    0.3%
   18      3169     8.703    0.2%
   19      3302     8.969    0.2%
   20      3436     5.992    0.1%

Quality and confidence:
param     error
r         0.152

Model:
Time ~=    687.8
    + r    138.2
              µs

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

Pallet: "pallet_contracts", Extrinsic: "seal_balance", 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:0)

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

Model:
Time ~=    702.3
    + r    398.5
              µs

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

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

Data points distribution:
    r   mean µs  sigma µs       %
    0     678.8     9.801    1.4%
    1      1097     8.537    0.7%
    2      1502     10.19    0.6%
    3      1885     16.28    0.8%
    4      2307     12.97    0.5%
    5      2681     10.38    0.3%
    6      3079     11.81    0.3%
    7      3512     14.35    0.4%
    8      3903      11.5    0.2%
    9      4305     19.11    0.4%
   10      4687     16.17    0.3%
   11      5076     16.57    0.3%
   12      5467     10.62    0.1%
   13      5861     12.37    0.2%
   14      6321     13.53    0.2%
   15      6674     14.69    0.2%
   16      7092     15.17    0.2%
   17      7463     17.44    0.2%
   18      7869      24.1    0.3%
   19      8253     35.96    0.4%
   20      8666     22.54    0.2%

Quality and confidence:
param     error
r         0.263

Model:
Time ~=    700.1
    + r    398.5
              µs

Reads = 4 + (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: 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 ~=    694.4
    + r    138.5
              µs

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

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

Data points distribution:
    r   mean µs  sigma µs       %
    0     675.2     0.949    0.1%
    1     826.9     9.639    1.1%
    2     975.5     12.38    1.2%
    3      1099     10.64    0.9%
    4      1245     10.82    0.8%
    5      1379     14.31    1.0%
    6      1516     13.21    0.8%
    7      1676      7.36    0.4%
    8      1804     12.82    0.7%
    9      1949     6.643    0.3%
   10      2087     5.599    0.2%
   11      2219     2.348    0.1%
   12      2352     9.294    0.3%
   13      2492     14.05    0.5%
   14      2642     16.52    0.6%
   15      2773     5.271    0.1%
   16      2917     9.395    0.3%
   17      3055     12.49    0.4%
   18      3178     13.09    0.4%
   19      3324     11.15    0.3%
   20      3450       8.8    0.2%

Quality and confidence:
param     error
r         0.152

Model:
Time ~=    690.3
    + r    138.7
              µs

Reads = 3 + (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: 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 ~=    689.5
    + r    138.1
              µs

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

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

Data points distribution:
    r   mean µs  sigma µs       %
    0     674.9     0.966    0.1%
    1     823.1     11.12    1.3%
    2     956.9     5.402    0.5%
    3      1096     8.788    0.8%
    4      1237        10    0.8%
    5      1381      10.6    0.7%
    6      1519     9.843    0.6%
    7      1668     10.43    0.6%
    8      1804      5.41    0.2%
    9      1933     9.782    0.5%
   10      2060      11.3    0.5%
   11      2207     14.99    0.6%
   12      2353     8.351    0.3%
   13      2487     12.77    0.5%
   14      2634     15.93    0.6%
   15      2761     13.15    0.4%
   16      2908     11.33    0.3%
   17      3037     7.534    0.2%
   18      3183     12.15    0.3%
   19      3305     11.06    0.3%
   20      3446     14.26    0.4%

Quality and confidence:
param     error
r         0.146

Model:
Time ~=    685.2
    + r    138.5
              µs

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

Pallet: "pallet_contracts", Extrinsic: "seal_tombstone_deposit", 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)

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

Model:
Time ~=    689.9
    + r    138.1
              µs

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

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

Data points distribution:
    r   mean µs  sigma µs       %
    0     677.4     7.361    1.0%
    1     817.1     1.289    0.1%
    2     956.8     2.259    0.2%
    3      1111     11.31    1.0%
    4      1235     8.632    0.6%
    5      1380     9.638    0.6%
    6      1528     2.999    0.1%
    7      1663     13.28    0.7%
    8      1814     5.357    0.2%
    9      1941     8.728    0.4%
   10      2081      3.35    0.1%
   11      2209     9.847    0.4%
   12      2341     7.374    0.3%
   13      2468     13.34    0.5%
   14      2641     7.244    0.2%
   15      2765     8.872    0.3%
   16      2900     10.75    0.3%
   17      3036     7.218    0.2%
   18      3181     11.42    0.3%
   19      3305     11.41    0.3%
   20      3439     6.727    0.1%

Quality and confidence:
param     error
r         0.151

Model:
Time ~=    689.6
    + r    138.1
              µs

Reads = 3 + (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: 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 ~=    695.5
    + r    137.3
              µs

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

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

Data points distribution:
    r   mean µs  sigma µs       %
    0     674.8     0.269    0.0%
    1     831.3     8.479    1.0%
    2     969.9     12.46    1.2%
    3      1102     9.933    0.9%
    4      1251     11.25    0.8%
    5      1380      7.91    0.5%
    6      1511     11.97    0.7%
    7      1667     9.059    0.5%
    8      1799     11.28    0.6%
    9      1934      7.46    0.3%
   10      2076     5.887    0.2%
   11      2197     11.14    0.5%
   12      2334      9.06    0.3%
   13      2474     10.04    0.4%
   14      2620     12.57    0.4%
   15      2767     12.42    0.4%
   16      2884     19.63    0.6%
   17      3045     9.438    0.3%
   18      3176     9.281    0.2%
   19      3297     8.825    0.2%
   20      3428     18.23    0.5%

Quality and confidence:
param     error
r         0.163

Model:
Time ~=    692.6
    + r    137.5
              µs

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

Pallet: "pallet_contracts", Extrinsic: "seal_now", 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)

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

Model:
Time ~=    681.9
    + r    137.8
              µs

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

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

Data points distribution:
    r   mean µs  sigma µs       %
    0     677.9     8.449    1.2%
    1     815.6      0.65    0.0%
    2     952.9     1.271    0.1%
    3      1092     8.685    0.7%
    4      1233      3.29    0.2%
    5      1376     14.42    1.0%
    6      1513     10.94    0.7%
    7      1658     10.64    0.6%
    8      1797     12.46    0.6%
    9      1924     14.68    0.7%
   10      2056      10.6    0.5%
   11      2192     8.211    0.3%
   12      2337     10.54    0.4%
   13      2475     8.476    0.3%
   14      2624     10.34    0.3%
   15      2760     13.47    0.4%
   16      2888     16.85    0.5%
   17      3023     8.653    0.2%
   18      3172     10.21    0.3%
   19      3328      16.4    0.4%
   20      3435     8.124    0.2%

Quality and confidence:
param     error
r         0.149

Model:
Time ~=      680
    + r    138.3
              µs

Reads = 3 + (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: 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 ~=    690.9
    + r    331.5
              µs

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

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

Data points distribution:
    r   mean µs  sigma µs       %
    0     678.1      8.13    1.1%
    1      1013     1.667    0.1%
    2      1357      14.3    1.0%
    3      1697     9.569    0.5%
    4      2015      10.9    0.5%
    5      2351     6.394    0.2%
    6      2696     9.849    0.3%
    7      3018     9.258    0.3%
    8      3337     3.966    0.1%
    9      3666     12.91    0.3%
   10      3996     8.459    0.2%
   11      4356     20.14    0.4%
   12      4684     11.49    0.2%
   13      4996     15.73    0.3%
   14      5344     12.98    0.2%
   15      5667     8.671    0.1%
   16      5984     13.35    0.2%
   17      6340      18.2    0.2%
   18      6636     12.04    0.1%
   19      7002     15.15    0.2%
   20      7328     21.89    0.2%

Quality and confidence:
param     error
r         0.192

Model:
Time ~=    690.8
    + r    331.7
              µs

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

Pallet: "pallet_contracts", Extrinsic: "seal_gas", 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)

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

Model:
Time ~=    191.3
    + r    63.15
              µs

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

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

Data points distribution:
    r   mean µs  sigma µs       %
    0     186.5     0.156    0.0%
    1     254.1     0.883    0.3%
    2     314.7     0.329    0.1%
    3     384.4     3.489    0.9%
    4     441.8     4.088    0.9%
    5     506.7     5.549    1.0%
    6     578.1     7.133    1.2%
    7     635.2     6.295    0.9%
    8     705.3     10.98    1.5%
    9       758     8.673    1.1%
   10     822.6     12.19    1.4%
   11     892.7     9.943    1.1%
   12     974.7     5.798    0.5%
   13      1017      12.4    1.2%
   14      1077     12.16    1.1%
   15      1152     7.418    0.6%
   16      1213     11.22    0.9%
   17      1268     11.91    0.9%
   18      1327     10.57    0.7%
   19      1389     11.19    0.8%
   20      1445     11.48    0.7%

Quality and confidence:
param     error
r          0.13

Model:
Time ~=    192.6
    + r    63.33
              µs

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

Pallet: "pallet_contracts", Extrinsic: "seal_input", 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)

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

Model:
Time ~=    674.5
    + r    2.909
              µs

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

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

Data points distribution:
    r   mean µs  sigma µs       %
    0     676.1     4.386    0.6%
    1     678.2     1.558    0.2%

Quality and confidence:
param     error
r         1.551

Model:
Time ~=    676.1
    + r    2.073
              µs

Reads = 3 + (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: 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 ~=    683.3
    + n    1.377
              µs

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

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

Data points distribution:
    n   mean µs  sigma µs       %
    0       683     11.25    1.6%
   20     706.5     1.725    0.2%
   40     737.3     9.862    1.3%
   60     777.2     15.93    2.0%
   80     796.5     13.96    1.7%
  100     825.1     13.14    1.5%
  120     849.1     10.77    1.2%
  140     891.1     17.08    1.9%
  160       901     5.954    0.6%
  180     927.7     6.208    0.6%
  200     965.5     13.78    1.4%
  220     987.7     11.07    1.1%
  240      1017     12.52    1.2%
  260      1039     8.387    0.8%
  280      1076     13.51    1.2%
  300      1103     11.27    1.0%
  320      1122     10.04    0.8%
  340      1164     17.86    1.5%
  360      1179      9.87    0.8%
  380      1207      11.1    0.9%
  400      1234     10.97    0.8%
  420      1266     14.08    1.1%
  440      1291        11    0.8%
  460      1317     10.65    0.8%
  480      1351     16.07    1.1%
  500      1392     10.73    0.7%
  520      1399     11.71    0.8%
  540      1439     14.18    0.9%
  560      1460     13.93    0.9%
  580      1489      13.4    0.8%
  600      1518     16.26    1.0%
  620      1547     15.26    0.9%
  640      1576     12.95    0.8%
  660      1606     13.67    0.8%
  680      1623     12.33    0.7%
  700      1656     16.89    1.0%
  720      1683     13.17    0.7%
  740      1706     13.67    0.8%
  760      1735     13.62    0.7%
  780      1770     12.01    0.6%
  800      1796     15.07    0.8%
  820      1836     13.98    0.7%
  840      1846     12.84    0.6%
  860      1892     4.511    0.2%
  880      1894     9.092    0.4%
  900      1940     11.93    0.6%
  920      1968     8.169    0.4%
  940      1990     18.17    0.9%
  960      2032     5.136    0.2%
  980      2044     14.35    0.7%
 1000      2076     13.76    0.6%
 1020      2116     10.54    0.4%

Quality and confidence:
param     error
n         0.002

Model:
Time ~=    682.4
    + n    1.394
              µs

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

Pallet: "pallet_contracts", Extrinsic: "seal_return", 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)

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

Model:
Time ~=    658.4
    + r    2.725
              µs

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

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

Data points distribution:
    r   mean µs  sigma µs       %
    0     664.1     10.88    1.6%
    1       667     11.47    1.7%

Quality and confidence:
param     error
r         5.273

Model:
Time ~=    664.1
    + r    2.896
              µs

Reads = 3 + (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: 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 ~=    661.9
    + n    0.914
              µs

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

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

Data points distribution:
    n   mean µs  sigma µs       %
    0     661.4     1.205    0.1%
   20     681.1       4.5    0.6%
   40     706.9     11.33    1.6%
   60       720     5.783    0.8%
   80     737.9     8.686    1.1%
  100     760.5     12.35    1.6%
  120     775.9     9.324    1.2%
  140     796.9     11.69    1.4%
  160     813.6     9.983    1.2%
  180     836.8     13.64    1.6%
  200     850.2      11.7    1.3%
  220     866.7     8.671    1.0%
  240     886.6     9.974    1.1%
  260       915     13.48    1.4%
  280     920.4     9.041    0.9%
  300     941.4     12.15    1.2%
  320     964.1     15.58    1.6%
  340     986.9     14.81    1.5%
  360     996.3     11.87    1.1%
  380      1011     7.786    0.7%
  400      1031     10.35    1.0%
  420      1049     11.48    1.0%
  440      1084     15.83    1.4%
  460      1084     6.648    0.6%
  480      1122      17.1    1.5%
  500      1123     11.78    1.0%
  520      1158      17.8    1.5%
  540      1168     14.63    1.2%
  560      1190     15.01    1.2%
  580      1208     17.26    1.4%
  600      1227     15.97    1.3%
  620      1247     16.16    1.2%
  640      1267      14.9    1.1%
  660      1274     14.33    1.1%
  680      1304     16.69    1.2%
  700      1315     14.34    1.0%
  720      1333     13.91    1.0%
  740      1343      10.6    0.7%
  760      1376     16.36    1.1%
  780      1398     18.02    1.2%
  800      1409     17.76    1.2%
  820      1429     15.64    1.0%
  840      1442     15.89    1.1%
  860      1453     11.45    0.7%
  880      1489     13.56    0.9%
  900      1510     13.53    0.8%
  920      1529     13.91    0.9%
  940      1540     16.06    1.0%
  960      1563      16.1    1.0%
  980      1568     14.41    0.9%
 1000      1589     12.76    0.8%
 1020      1618     12.39    0.7%

Quality and confidence:
param     error
n         0.002

Model:
Time ~=    664.9
    + n    0.932
              µs

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

Pallet: "pallet_contracts", Extrinsic: "seal_terminate", 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: Contracts DeletionQueue (r:1 w:1)
Storage: System Account (r:2 w:2)

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

Model:
Time ~=      675
    + r    91.76
              µs

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

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

Data points distribution:
    r   mean µs  sigma µs       %
    0       675     0.404    0.0%
    1     767.3      1.68    0.2%

Quality and confidence:
param     error
r         0.576

Model:
Time ~=      675
    + r    92.24
              µs

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

Pallet: "pallet_contracts", Extrinsic: "seal_random", 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: RandomnessCollectiveFlip RandomMaterial (r:1 w:0)

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

Model:
Time ~=    691.3
    + r    455.6
              µs

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

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

Data points distribution:
    r   mean µs  sigma µs       %
    0     676.4     4.134    0.6%
    1      1139     10.91    0.9%
    2      1614      11.9    0.7%
    3      2055     16.06    0.7%
    4      2507     12.68    0.5%
    5      2977     10.95    0.3%
    6      3443     13.44    0.3%
    7      3865     17.33    0.4%
    8      4323     13.13    0.3%
    9      4795     9.325    0.1%
   10      5268     16.18    0.3%
   11      5688     18.65    0.3%
   12      6129     18.34    0.2%
   13      6688     29.73    0.4%
   14      7037     21.28    0.3%
   15      7485     23.66    0.3%
   16      7936     22.79    0.2%
   17      8469     19.56    0.2%
   18      8931     39.17    0.4%
   19      9356     21.56    0.2%
   20      9806     21.17    0.2%

Quality and confidence:
param     error
r          0.38

Model:
Time ~=    686.9
    + r      456
              µs

Reads = 4 + (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: 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 ~=    673.1
    + r    780.1
              µs

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

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

Data points distribution:
    r   mean µs  sigma µs       %
    0     661.6     7.988    1.2%
    1      1461      15.2    1.0%
    2      2234     8.905    0.3%
    3      3017     11.91    0.3%
    4      3791     16.36    0.4%
    5      4578     11.09    0.2%
    6      5354     15.04    0.2%
    7      6109     14.83    0.2%
    8      6917      25.2    0.3%
    9      7688     21.07    0.2%
   10      8464     23.87    0.2%
   11      9270     26.97    0.2%
   12     10000     39.68    0.3%
   13     10810      24.5    0.2%
   14     11560     59.37    0.5%
   15     12350     39.43    0.3%
   16     13140     35.44    0.2%
   17     13930     35.55    0.2%
   18     14730     30.79    0.2%
   19     15470     37.81    0.2%
   20     16340     49.56    0.3%

Quality and confidence:
param     error
r         0.405

Model:
Time ~=      666
    + r    780.6
              µs

Reads = 3 + (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: 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 ~=     1647
    + t    526.9
    + n      212
              µs

Reads = 3 + (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      4926     12.82    0.2%
    1    16      5609     11.59    0.2%
    2    16      6111     9.948    0.1%
    3    16      6634     18.12    0.2%
    4     0      3698     18.94    0.5%
    4     1      3945     15.75    0.3%
    4     2      4162     11.05    0.2%
    4     3      4355     7.836    0.1%
    4     4      4568     10.64    0.2%
    4     5      4779     17.22    0.3%
    4     6      4976     9.145    0.1%
    4     7      5209      13.3    0.2%
    4     8      5378     6.543    0.1%
    4     9      5589      6.22    0.1%
    4    10      5838      15.8    0.2%
    4    11      6014     9.924    0.1%
    4    12      6236     23.66    0.3%
    4    13      6479     25.81    0.3%
    4    14      6704     8.989    0.1%
    4    15      6950     31.55    0.4%
    4    16      7113     18.41    0.2%

Quality and confidence:
param     error
t         2.679
n         0.528

Model:
Time ~=     1592
    + t    528.3
    + n    213.6
              µs

Reads = 3 + (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: 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 ~=    225.8
    + r    80.83
              µs

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

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

Data points distribution:
    r   mean µs  sigma µs       %
    0     224.8     0.198    0.0%
    1     305.6     1.211    0.3%
    2     382.9     0.447    0.1%
    3     467.7     2.485    0.5%
    4     540.4     0.786    0.1%
    5     627.9     12.55    1.9%
    6     727.2     10.25    1.4%
    7     795.5      10.8    1.3%
    8     864.6     7.792    0.9%
    9     958.6     10.17    1.0%
   10      1041     5.715    0.5%
   11      1139     10.76    0.9%
   12      1220     12.82    1.0%
   13      1295     16.03    1.2%
   14      1372      16.8    1.2%
   15      1442     14.63    1.0%
   16      1507     10.64    0.7%
   17      1619     8.855    0.5%
   18      1688     6.562    0.3%
   19      1762     16.48    0.9%
   20      1823     11.89    0.6%

Quality and confidence:
param     error
r         0.178

Model:
Time ~=    227.4
    + r     81.1
              µs

Reads = 3 + (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 ~=    660.7
    + r    267.1
              µs

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

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

Data points distribution:
    r   mean µs  sigma µs       %
    0     675.6      1.12    0.1%
    1     963.8     10.65    1.1%
    2      1194      2.81    0.2%
    3      1454     3.651    0.2%
    4      1717     12.27    0.7%
    5      1983     10.47    0.5%
    6      2262     8.129    0.3%
    7      2518     8.447    0.3%
    8      2771     16.17    0.5%
    9      3049     8.988    0.2%
   10      3305     14.57    0.4%
   11      3634     11.18    0.3%
   12      3875     12.39    0.3%
   13      4134     18.26    0.4%
   14      4398     22.48    0.5%
   15      4651     9.612    0.2%
   16      4926     14.33    0.2%
   17      5196     10.06    0.1%
   18      5501     14.94    0.2%
   19      5770     7.393    0.1%
   20      6012     9.888    0.1%

Quality and confidence:
param     error
r         0.255

Model:
Time ~=    657.1
    + r    267.6
              µs

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

Pallet: "pallet_contracts", Extrinsic: "seal_set_storage_per_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: unknown [0x7afa01283080ef247df84e0ba38ea5a587d25ce6633a6bfbba02068c14023441] (r:0 w:1)

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

Model:
Time ~=    927.3
    + n    100.4
              µs

Reads = 3 + (0 * n)
Writes = 2 + (0 * n)

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

Data points distribution:
    n   mean µs  sigma µs       %
    0     892.4     10.01    1.1%
    1      1052     14.02    1.3%
    2      1126     9.229    0.8%
    3      1240     12.82    1.0%
    4      1319     1.624    0.1%
    5      1423     3.024    0.2%
    6      1539     12.32    0.8%
    7      1633     12.76    0.7%
    8      1742     15.96    0.9%
    9      1825     13.41    0.7%
   10      1929     12.04    0.6%
   11      2024     14.36    0.7%
   12      2128     13.46    0.6%
   13      2252     9.559    0.4%
   14      2346     11.35    0.4%
   15      2450       6.6    0.2%
   16      2522     20.86    0.8%

Quality and confidence:
param     error
n          0.29

Model:
Time ~=      924
    + n      101
              µs

Reads = 3 + (0 * n)
Writes = 2 + (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 ~=    700.8
    + r    240.3
              µs

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

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

Data points distribution:
    r   mean µs  sigma µs       %
    0       678     8.704    1.2%
    1     943.8     3.951    0.4%
    2      1194     9.294    0.7%
    3      1427     4.247    0.2%
    4      1660     9.767    0.5%
    5      1889     6.742    0.3%
    6      2155     9.837    0.4%
    7      2377     17.43    0.7%
    8      2597     9.853    0.3%
    9      2858     11.98    0.4%
   10      3098     6.697    0.2%
   11      3365     9.928    0.2%
   12      3607      15.2    0.4%
   13      3834     11.03    0.2%
   14      4051     7.142    0.1%
   15      4305     18.67    0.4%
   16      4530     5.254    0.1%
   17      4758      7.88    0.1%
   18      5043     15.41    0.3%
   19      5283      17.9    0.3%
   20      5508        10    0.1%

Quality and confidence:
param     error
r         0.211

Model:
Time ~=    697.2
    + r    240.6
              µs

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

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 ~=    532.5
    + r    560.5
              µs

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

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

Data points distribution:
    r   mean µs  sigma µs       %
    0     678.6     8.032    1.1%
    1      1178     11.66    0.9%
    2      1689     13.75    0.8%
    3      2237     11.59    0.5%
    4      2763     9.447    0.3%
    5      3323     11.12    0.3%
    6      3869     12.92    0.3%
    7      4399     5.397    0.1%
    8      4920     11.51    0.2%
    9      5530     12.56    0.2%
   10      6079      19.1    0.3%
   11      6686     14.59    0.2%
   12      7225     20.45    0.2%
   13      7767     24.12    0.3%
   14      8379     21.36    0.2%
   15      8907     15.91    0.1%
   16      9444     35.89    0.3%
   17     10120     28.74    0.2%
   18     10720     48.78    0.4%
   19     11340     40.02    0.3%
   20     11950     27.13    0.2%

Quality and confidence:
param     error
r         0.943

Model:
Time ~=      522
    + r    563.1
              µs

Reads = 3 + (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: Contracts ContractInfoOf (r:1 w:1)
Storage: Contracts CodeStorage (r:1 w:0)
Storage: Timestamp Now (r:1 w:0)
Storage: unknown [0x7afa01283080ef247df84e0ba38ea5a587d25ce6633a6bfbba02068c14023441] (r:1 w:0)

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

Model:
Time ~=     1005
    + n    151.9
              µs

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

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

Data points distribution:
    n   mean µs  sigma µs       %
    0     981.9     7.919    0.8%
    1      1160     11.39    0.9%
    2      1311     1.247    0.0%
    3      1464     11.27    0.7%
    4      1613     11.17    0.6%
    5      1769     14.99    0.8%
    6      1921     16.38    0.8%
    7      2074     16.24    0.7%
    8      2211     16.08    0.7%
    9      2379     16.91    0.7%
   10      2528     12.56    0.4%
   11      2677     16.24    0.6%
   12      2823     13.46    0.4%
   13      2986     11.64    0.3%
   14      3147     13.88    0.4%
   15      3293     15.12    0.4%
   16      3427     16.27    0.4%

Quality and confidence:
param     error
n         0.249

Model:
Time ~=     1002
    + n    152.4
              µs

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

Pallet: "pallet_contracts", Extrinsic: "seal_transfer", 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:101 w:101)

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

Model:
Time ~=    550.6
    + r     4925
              µs

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

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

Data points distribution:
    r   mean µs  sigma µs       %
    0     691.5     9.557    1.3%
    1      5548     15.09    0.2%
    2     10450     18.75    0.1%
    3     15330        18    0.1%
    4     20170     34.41    0.1%
    5     25070      44.6    0.1%
    6     29930     49.68    0.1%
    7     34840     53.64    0.1%
    8     39830     47.26    0.1%
    9     44790     55.93    0.1%
   10     49890     69.42    0.1%
   11     54850     91.73    0.1%
   12     59570        84    0.1%
   13     64590     50.57    0.0%
   14     69540     109.4    0.1%
   15     74350     56.19    0.0%
   16     79080     89.15    0.1%
   17     84610     70.16    0.0%
   18     89600     111.8    0.1%
   19     94020     75.12    0.0%
   20     99110     126.1    0.1%

Quality and confidence:
param     error
r         1.957

Model:
Time ~=      512
    + r     4929
              µs

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

Pallet: "pallet_contracts", Extrinsic: "seal_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)

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

Model:
Time ~=    470.8
    + r    65010
              µs

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

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

Data points distribution:
    r   mean µs  sigma µs       %
    0     689.6     9.046    1.3%
    1     65640     54.28    0.0%
    2    130500     76.74    0.0%
    3    195500     120.3    0.0%
    4    260400     103.5    0.0%
    5    325100     166.4    0.0%
    6    390400     82.01    0.0%
    7    455300     157.6    0.0%
    8    520400     173.1    0.0%
    9    585300     109.6    0.0%
   10    650300       320    0.0%
   11    715300     165.2    0.0%
   12    780300     257.1    0.0%
   13    845400     311.7    0.0%
   14    910400     273.8    0.0%
   15    975400     265.7    0.0%
   16   1040800     250.3    0.0%
   17   1108100       287    0.0%
   18   1170600     290.7    0.0%
   19   1236200     316.3    0.0%
   20   1301200     369.3    0.0%

Quality and confidence:
param     error
r         6.827

Model:
Time ~=    250.4
    + r    65040
              µs

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

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

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

Model:
Time ~=    66270
    + t     3953
    + i    92.58
    + o    138.7
              µs

Reads = 104 + (101 * t) + (0 * i) + (0 * o)
Writes = 101 + (101 * t) + (0 * i) + (0 * o)

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

Data points distribution:
    t     i     o   mean µs  sigma µs       %
    0  1024   960    294200     179.2    0.0%
    1     0   960    203500     114.2    0.0%
    1    20   960    205300     83.12    0.0%
    1    40   960    207300     96.32    0.0%
    1    60   960    209100     61.85    0.0%
    1    80   960    210700     90.03    0.0%
    1   100   960    213000     140.8    0.0%
    1   120   960    214600     92.14    0.0%
    1   140   960    220900      1542    0.6%
    1   160   960    218500     70.27    0.0%
    1   180   960    220100     125.9    0.0%
    1   200   960    221800     148.7    0.0%
    1   220   960    223700     133.8    0.0%
    1   240   960    225900     91.76    0.0%
    1   260   960    227600     46.02    0.0%
    1   280   960    229200     107.7    0.0%
    1   300   960    231300     114.6    0.0%
    1   320   960    232800     77.86    0.0%
    1   340   960    234900     82.05    0.0%
    1   360   960    241800     834.3    0.3%
    1   380   960    238700     84.84    0.0%
    1   400   960    240400     92.39    0.0%
    1   420   960    242700     71.36    0.0%
    1   440   960    244200      96.7    0.0%
    1   460   960    246000       126    0.0%
    1   480   960    248000     66.09    0.0%
    1   500   960    249800     64.41    0.0%
    1   520   960    252500      1102    0.4%
    1   540   960    254600      1837    0.7%
    1   560   960    255400     131.9    0.0%
    1   580   960    257300     58.98    0.0%
    1   600   960    259100     90.63    0.0%
    1   620   960    261100     150.3    0.0%
    1   640   960    262900     123.6    0.0%
    1   660   960    264700     113.4    0.0%
    1   680   960    266600     79.01    0.0%
    1   700   960    268200     114.8    0.0%
    1   720   960    270400     176.1    0.0%
    1   740   960    272100     145.9    0.0%
    1   760   960    273900     139.2    0.0%
    1   780   960    275700     87.32    0.0%
    1   800   960    277600     129.7    0.0%
    1   820   960    279500     129.1    0.0%
    1   840   960    281400     117.5    0.0%
    1   860   960    283000     216.5    0.0%
    1   880   960    284700     106.1    0.0%
    1   900   960    286900     149.8    0.0%
    1   920   960    288600     127.1    0.0%
    1   940   960    290700     160.1    0.0%
    1   960   960    292800      1396    0.4%
    1   980   960    294300     212.3    0.0%
    1  1000   960    296200     70.09    0.0%
    1  1020   960    298100     242.7    0.0%
    1  1024     0    165100     54.34    0.0%
    1  1024    19    168000     141.9    0.0%
    1  1024    38    170300     107.8    0.0%
    1  1024    57    173000       106    0.0%
    1  1024    76    175500     60.52    0.0%
    1  1024    95    178300     57.95    0.0%
    1  1024   114    181000     73.91    0.0%
    1  1024   133    183400     79.34    0.0%
    1  1024   152    186100      43.9    0.0%
    1  1024   171    188800     87.74    0.0%
    1  1024   190    191400     95.46    0.0%
    1  1024   209    194100     140.4    0.0%
    1  1024   228    196700     86.56    0.0%
    1  1024   247    199400     81.09    0.0%
    1  1024   266    201900     75.09    0.0%
    1  1024   285    205200     489.7    0.2%
    1  1024   304    207200     78.29    0.0%
    1  1024   323    209900     127.7    0.0%
    1  1024   342    212600     128.9    0.0%
    1  1024   361    215100     124.3    0.0%
    1  1024   380    217900     181.8    0.0%
    1  1024   399    220400     141.9    0.0%
    1  1024   418    223100     94.64    0.0%
    1  1024   437    225600     84.74    0.0%
    1  1024   456    228400     65.54    0.0%
    1  1024   475    231000     107.1    0.0%
    1  1024   494    233700     92.19    0.0%
    1  1024<truncated>...

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

@cmichi cmichi left a comment

Choose a reason for hiding this comment

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

Looks good to me.

Would be great if you could create a follow-up issue for polkadot-js. AFAIK that's the only UI which displays state rent info.

I propose setting the maximum value size per key to 512 bytes as an initial value (ethereum uses 32 bytes for various reasons).

We should think about warning developers at compile time when using bigger values in ink!. I'll create a follow-up issue once this one is merged.

Copy link
Contributor

@ascjones ascjones left a comment

Choose a reason for hiding this comment

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

Simplifying and deleting code FTW

.saturating_add((39_799_000 as Weight).saturating_mul(q as Weight))
(79_790_000 as Weight)
// Standard Error: 2_000
.saturating_add((391_000 as Weight).saturating_mul(q as Weight))
Copy link
Member Author

Choose a reason for hiding this comment

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

Reducing the item size by 4 byte really decreased the decoding time by a lot.

@ghost ghost merged commit 1309f52 into master Sep 6, 2021
Smart Contracts automation moved this from In Progress to Done Sep 6, 2021
@ghost ghost deleted the at-remove-rent branch September 6, 2021 16:41
atenjin added a commit to patractlabs/europa that referenced this pull request Sep 18, 2021
substrate have removed the rent in pallet-contracts in newest substrate after this pr paritytech/substrate#9669. 

but we do not wanna update current substrate to new version, for we are waiting substrate to release 4.0.0.

thus, we just change the rent parameters to zero, it will cause the same result compared with removed rent pallet-contracts.
atenjin added a commit to patractlabs/europa that referenced this pull request Sep 18, 2021
substrate have removed the rent in pallet-contracts in newest substrate after this pr paritytech/substrate#9669. 

but we do not wanna update current substrate to new version, for we are waiting substrate to release 4.0.0.

thus, we just change the rent parameters to zero, it will cause the same result compared with removed rent pallet-contracts.
DrW3RK added a commit to w3f/polkadot-wiki that referenced this pull request Jun 1, 2022
paritytech/substrate#9669

The concept of paying rent to keep a contract active has been eliminated and the deployer of the Smart Contract just needs to make an extra deposit on trop of the existential deposit.
emresurmeli pushed a commit to w3f/polkadot-wiki that referenced this pull request Jun 27, 2022
* Remove ref to Tombstone

paritytech/substrate#9669

The concept of paying rent to keep a contract active has been eliminated and the deployer of the Smart Contract just needs to make an extra deposit on trop of the existential deposit.

* minor fixes
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A0-please_review Pull request needs code review. 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
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

7 participants