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

Fix lazy batch contract removal #10728

Conversation

pmikolajczyk41
Copy link
Contributor

This PR fixes a minor bug in lazy removal of smart contracts.

A contract is removed in two steps. Firstly, it disappears from contract lookup (its info is gone). This phase is cheap and thus immediately performed. However, cleaning a storage may be an expensive operation, hence it is done lazily. We keep a (bounded) queue of the contracts to be removed and in the beginning of each block we try to remove as many as possible. The method process_deletion_queue_batch in frame/contracts/src/storage.rs is supposed to do so. However, PR #9669 has changed semantics a little bit (while -> if), which resulted in removing at most one contract at a time.

@cla-bot-2021
Copy link

cla-bot-2021 bot commented Jan 24, 2022

User @pmikolajczyk41, please sign the CLA here.

Copy link
Member

@athei athei left a comment

Choose a reason for hiding this comment

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

Thanks for spotting this. You need to make the CI happy, though :)

frame/contracts/src/tests.rs Outdated Show resolved Hide resolved
frame/contracts/src/tests.rs Outdated Show resolved Hide resolved
@athei athei added A0-please_review Pull request needs code review. 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 Jan 24, 2022
@athei athei requested a review from kianenigma January 24, 2022 19:49
Copy link
Member

@athei athei left a comment

Choose a reason for hiding this comment

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

Thanks for catching this!

@athei athei requested review from HCastano and cmichi and removed request for athei January 26, 2022 17:23
Copy link
Contributor

@HCastano HCastano left a comment

Choose a reason for hiding this comment

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

Fix looks fine, but I have a question about the details behind actual contract termination

Comment on lines +1544 to +1551
assert_ok!(Contracts::call(
Origin::signed(ALICE),
addr.clone(),
0,
GAS_LIMIT,
None,
vec![]
));
Copy link
Contributor

Choose a reason for hiding this comment

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

How does this end up terminating the contract?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If you look at the code in fixtures/self_destruct.wat then you should find the information, that by passing empty input to thte contract, it will call seal_terminate. And as far as I can understand text wasm format it does so :)

Copy link
Member

Choose a reason for hiding this comment

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

Correct. The contract terminates if called with an empty input.

@athei
Copy link
Member

athei commented Jan 28, 2022

/benchmark runtime pallet pallet_contracts

@parity-benchapp
Copy link

parity-benchapp bot commented Jan 28, 2022

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

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

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

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

Model:
Time ~=    1.601
              µs

Reads = 1
Writes = 0

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

Model:
Time ~=    1.601
              µs

Reads = 1
Writes = 0

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

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

Model:
Time ~=    9.248
    + k    0.741
              µs

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

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

Data points distribution:
    k   mean µs  sigma µs       %
    0     10.15     0.079    0.7%
   20     27.23     0.137    0.5%
   40     40.55     0.153    0.3%
   60     52.93     0.213    0.4%
   80     65.27     0.177    0.2%
  100     79.59     0.327    0.4%
  120     94.08     0.702    0.7%
  140     109.2     0.278    0.2%
  160     123.5     0.245    0.1%
  180     138.4     0.257    0.1%
  200     153.7     0.475    0.3%
  220     169.4     0.457    0.2%
  240     183.8     0.609    0.3%
  260     200.5     1.303    0.6%
  280     215.9     1.858    0.8%
  300       229     0.936    0.4%
  320     278.9     3.632    1.3%
  340     259.6     0.443    0.1%
  360     277.8      0.92    0.3%
  380     293.7     0.555    0.1%
  400     308.5     0.887    0.2%
  420     322.3     1.655    0.5%
  440       338     0.886    0.2%
  460     351.3      0.74    0.2%
  480     367.6     1.316    0.3%
  500     383.5      1.53    0.3%
  520     401.3     0.893    0.2%
  540     415.5     2.594    0.6%
  560     428.5      1.52    0.3%
  580     443.7     1.007    0.2%
  600     458.4     1.394    0.3%
  620     472.9      1.68    0.3%
  640     483.5     1.515    0.3%
  660     500.2     1.539    0.3%
  680     515.4     2.002    0.3%
  700     529.4     2.236    0.4%
  720     542.1     1.724    0.3%
  740     558.2     3.155    0.5%
  760     571.9     1.524    0.2%
  780     583.8      1.18    0.2%
  800     601.8     2.573    0.4%
  820     617.6     1.555    0.2%
  840     633.5     1.819    0.2%
  860     648.8     1.444    0.2%
  880     660.5     1.643    0.2%
  900     673.3      2.96    0.4%
  920     686.1     1.406    0.2%
  940     700.2     2.604    0.3%
  960       714     2.358    0.3%
  980     731.9     2.074    0.2%
 1000     749.4     7.522    1.0%
 1020     759.9     2.244    0.2%

Quality and confidence:
param     error
k             0

Model:
Time ~=    10.54
    + k    0.739
              µ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 ~=    5.784
    + q    2.263
              µs

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

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

Data points distribution:
    q   mean µs  sigma µs       %
    0     1.706     0.018    1.0%
   20     56.82     0.306    0.5%
   40     100.9     0.457    0.4%
   60     150.8     0.557    0.3%
   80     191.6     1.551    0.8%
  100     234.1     1.561    0.6%
  120     282.9     1.156    0.4%
  140     334.9     1.833    0.5%
  160       369     1.588    0.4%
  180     411.1     3.752    0.9%
  200     454.7     4.861    1.0%
  220     492.6     3.713    0.7%
  240     541.8     4.128    0.7%
  260       603     6.462    1.0%
  280     641.7     3.894    0.6%
  300     668.3      5.28    0.7%
  320       745     6.202    0.8%
  340       758     5.005    0.6%
  360     812.1     9.764    1.2%
  380       828     6.124    0.7%
  400     905.6     5.118    0.5%
  420     944.9     11.25    1.1%
  440      1003     13.48    1.3%
  460      1047     6.563    0.6%
  480      1076     13.41    1.2%
  500      1118     8.791    0.7%
  520      1156     9.801    0.8%
  540      1207     14.84    1.2%
  560      1258     11.73    0.9%
  580      1308     11.28    0.8%
  600      1343     11.29    0.8%
  620      1374     6.794    0.4%
  640      1439     7.123    0.4%
  660      1495     17.15    1.1%
  680      1543      8.02    0.5%
  700      1566     14.45    0.9%
  720      1628     18.01    1.1%
  740      1680     26.34    1.5%
  760      1723      14.9    0.8%
  780      1772     8.918    0.5%
  800      1784      16.6    0.9%
  820      1873     21.55    1.1%
  840      1868     16.93    0.9%
  860      1932     21.17    1.0%
  880      1972      16.2    0.8%
  900      2062     14.92    0.7%
  920      2132     16.27    0.7%
  940      2147     16.73    0.7%
  960      2236     27.77    1.2%
  980      2314     28.38    1.2%
 1000      2326     15.22    0.6%
 1020      2361     23.41    0.9%

Quality and confidence:
param     error
q         0.003

Model:
Time ~=        0
    + q    2.285
              µs

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

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

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

Model:
Time ~=    22.56
    + c    71.54
              µs

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

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

Data points distribution:
    c   mean µs  sigma µs       %
    0     22.81     0.114    0.4%
    2     166.2     0.194    0.1%
    4     308.4     0.703    0.2%
    6     444.5       0.6    0.1%
    8       588     0.788    0.1%
   10     731.6     0.784    0.1%
   12     879.1     10.56    1.2%
   14      1021     2.062    0.2%
   16      1172     12.31    1.0%
   18      1311     13.96    1.0%
   20      1449     13.14    0.9%
   22      1578     11.86    0.7%
   24      1728     12.28    0.7%
   26      1885     13.02    0.6%
   28      2027     15.59    0.7%
   30      2172     9.656    0.4%
   32      2305     10.47    0.4%
   34      2461     12.59    0.5%
   36      2589     15.25    0.5%
   38      2750     13.33    0.4%
   40      2923     4.116    0.1%
   42      3012     11.57    0.3%
   44      3157     10.51    0.3%
   46      3286     7.077    0.2%
   48      3434     19.98    0.5%
   50      3626     13.44    0.3%
   52      3757     7.818    0.2%
   54      3902     10.74    0.2%
   56      4039     10.54    0.2%
   58      4174      10.8    0.2%
   60      4319     15.55    0.3%
   62      4456     13.55    0.3%
   64      4588     12.78    0.2%
   66      4758     12.74    0.2%
   68      4900      5.61    0.1%
   70      5026     15.04    0.2%
   72      5165     17.09    0.3%
   74      5312     25.48    0.4%
   76      5453     24.68    0.4%
   78      5602     19.16    0.3%
   80      5726     21.74    0.3%
   82      5863     16.95    0.2%
   84      6001     19.09    0.3%
   86      6145     17.12    0.2%
   88      6258     15.06    0.2%
   90      6401     18.56    0.2%
   92      6542     14.85    0.2%
   94      6697     20.49    0.3%
   96      6816     18.38    0.2%
   98      7100     24.68    0.3%
  100      7226     22.63    0.3%
  102      7368     24.89    0.3%
  104      7514     29.37    0.3%
  106      7667      31.7    0.4%
  108      7766     23.38    0.3%
  110      7935     23.33    0.2%
  112      8087     24.47    0.3%
  114      8188     15.09    0.1%
  116      8334     18.95    0.2%
  118      8471     17.09    0.2%
  120      8603     23.13    0.2%
  122      8744     25.17    0.2%
  124      8893     16.21    0.1%
  126      9048     23.98    0.2%
  128      9170     16.12    0.1%

Quality and confidence:
param     error
c         0.033

Model:
Time ~=    16.84
    + c    71.62
              µs

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

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

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

Model:
Time ~=    172.5
    + c    59.89
              µs

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

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

Data points distribution:
    c   mean µs  sigma µs       %
    0     193.4     2.385    1.2%
    2     310.4     0.438    0.1%
    4     415.3      0.54    0.1%
    6     530.7     5.067    0.9%
    8     650.3     0.905    0.1%
   10     769.8     10.36    1.3%
   12     885.7     12.65    1.4%
   14      1019     13.96    1.3%
   16      1159     15.31    1.3%
   18      1250      12.5    1.0%
   20      1370     12.74    0.9%
   22      1469     13.92    0.9%
   24      1577     13.14    0.8%
   26      1775      12.1    0.6%
   28      1860     12.06    0.6%
   30      1974      11.7    0.5%
   32      2095     18.58    0.8%
   34      2204     12.31    0.5%
   36      2330     19.16    0.8%
   38      2442     11.97    0.4%
   40      2544     10.15    0.3%
   42      2660     20.83    0.7%
   44      2784       8.9    0.3%
   46      2887     13.22    0.4%
   48      3001      10.9    0.3%
   50      3196     12.49    0.3%
   52      3307     24.02    0.7%
   54      3402     14.05    0.4%
   56      3535     27.41    0.7%
   58      3645     15.18    0.4%
   60      3759     13.61    0.3%
   62      3856     21.13    0.5%
   64      3993     5.373    0.1%
   66      4126     10.38    0.2%
   68      4222     13.06    0.3%
   70      4342     12.33    0.2%
   72      4442     11.72    0.2%
   74      4561     16.86    0.3%
   76      4704     23.27    0.4%
   78      4805     20.11    0.4%
   80      4911     7.071    0.1%
   82      5019     16.11    0.3%
   84      5147     30.97    0.6%
   86      5252     17.49    0.3%
   88      5358     15.41    0.2%
   90      5459     12.49    0.2%
   92      5589     12.93    0.2%
   94      5696     6.915    0.1%
   96      5824     10.26    0.1%
   98      6148     24.12    0.3%
  100      6244     15.25    0.2%
  102      6376      18.7    0.2%
  104      6496     23.78    0.3%
  106      6580        18    0.2%
  108      6709     17.23    0.2%
  110      6818     18.19    0.2%
  112      6943     16.13    0.2%
  114      7035     22.32    0.3%
  116      7169     27.14    0.3%
  118      7256     11.79    0.1%
  120      7376     24.16    0.3%
  122      7506      18.5    0.2%
  124      7618     22.12    0.2%
  126      7732     19.73    0.2%
  128      7825     19.07    0.2%

Quality and confidence:
param     error
c         0.051

Model:
Time ~=    160.6
    + c    60.02
              µs

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

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

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

Model:
Time ~=    222.6
    + c    155.6
    + s    1.759
              µs

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

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

Data points distribution:
    c     s   mean µs  sigma µs       %
    0  1024      2047     17.42    0.8%
    1  1024      2207     5.923    0.2%
    2  1024      2344     13.36    0.5%
    3  1024      2337     12.32    0.5%
    4  1024      2669      19.6    0.7%
    5  1024      2827     16.24    0.5%
    6  1024      2798     11.11    0.3%
    7  1024      3150     16.55    0.5%
    8  1024      3284     8.154    0.2%
    9  1024      3264     8.896    0.2%
   10  1024      3604     14.23    0.3%
   11  1024      3786      11.2    0.2%
   12  1024      3724     19.86    0.5%
   13  1024      4073     13.82    0.3%
   14  1024      4219     11.86    0.2%
   15  1024      4192     14.24    0.3%
   16  1024      4528     18.51    0.4%
   17  1024      4698     14.06    0.2%
   18  1024      4675     16.34    0.3%
   19  1024      5011     7.352    0.1%
   20  1024      5153     17.73    0.3%
   21  1024      5211     13.05    0.2%
   22  1024      5462      22.9    0.4%
   23  1024      5594     11.89    0.2%
   24  1024      5597     25.79    0.4%
   25  1024      5937      25.3    0.4%
   26  1024      6095     18.19    0.2%
   27  1024      6071     19.85    0.3%
   28  1024      6419     27.47    0.4%
   29  1024      6563     26.35    0.4%
   30  1024      6511     19.12    0.2%
   31  1024      6842     14.99    0.2%
   32  1024      6986     20.13    0.2%
   33  1024      7041     18.96    0.2%
   34  1024      7346     11.46    0.1%
   35  1024      7508     17.52    0.2%
   36  1024      7487     20.93    0.2%
   37  1024      7959      44.6    0.5%
   38  1024      7976     14.84    0.1%
   39  1024      8092     19.07    0.2%
   40  1024      8260     37.36    0.4%
   41  1024      8470     52.89    0.6%
   42  1024      8426      37.9    0.4%
   43  1024      8740     28.77    0.3%
   44  1024      8865     18.05    0.2%
   45  1024      8858     39.72    0.4%
   46  1024      9163     13.95    0.1%
   47  1024      9328     46.35    0.4%
   48  1024      9482     24.26    0.2%
   49  1024      9816     46.66    0.4%
   50  1024      9875      35.2    0.3%
   51  1024      9850     24.81    0.2%
   52  1024     10150     33.48    0.3%
   53  1024     10290     13.47    0.1%
   54  1024     10280     32.67    0.3%
   55  1024     10600     14.02    0.1%
   56  1024     10760     36.65    0.3%
   57  1024     10760      16.4    0.1%
   58  1024     11880     37.96    0.3%
   59  1024     11190     30.45    0.2%
   60  1024     11200        32    0.2%
   61  1024     11530     38.35    0.3%
   62  1024     11670     37.78    0.3%
   63  1024     11640     21.14    0.1%
   64     0     10120     22.02    0.2%
   64    20     10170     15.75    0.1%
   64    40     10210     37.85    0.3%
   64    60     10220     19.24    0.1%
   64    80     10270     16.04    0.1%
   64   100     10300     26.04    0.2%
   64   120     10330      28.2    0.2%
   64   140     10380      36.9    0.3%
   64   160     10440      41.8    0.4%
   64   180     10440     20.29    0.1%
   64   200     10510     45.41    0.4%
   64   220     10800     52.69    0.4%
   64   240     10560     46.94    0.4%
   64   260     10810     37.88    0.3%
   64   280     10630      26.9    0.2%
   64   300     10650     29.56    0.2%
   64   320     10700     26.49    0.2%
   64   340     10760     29.91    0.2%
   64   360     10770     12.86    0.1%
   64   380     10800     45.37    0.4%
   64   400     10830     29.44    0.2%
   64   420     10860     22.23    0.2%
   64   440     11220     38.48    0.3%
   64   460     10930     11.05    0.1%
   64   480     11000     44.38    0.4%
   64   500     11020      32.5    0.2%
   64   520     11060     34.44    0.3%
   64   540     11090     29.79    0.2%
   64   560     11250     48.39    0.4%
   64   580     11150     33.03    0.2%
   64   600     11180     10.68    0.0%
   64   620     11250     36.77    0.3%
   64   640     11260     25.29    0.2%
   64   660     11290     22.41    0.1%
   64   680     11320     24.77    0.2%
   64   700     11360     14.77    0.1%
   64   720     11380     21.92    0.1%
   64   740     11430      34.2    0.2%
   64   760     11720     26.18    0.2%
   64   780     11680      7.01    0.0%
   64   800     11530     38.87    0.3%
   64   820     11570      47.6    0.4%
   64   840     11620     32.67    0.2%
   64   860     11630     15.17    0.1%
   64   880     11690     29.44    0.2%
   64   900     11720     46.99    0.4%
   64   920     11760     31.54    0.2%
   64   940     11810     32.98    0.2%
   64   960     11830      30.9    0.2%
   64   980     11870     44.72    0.3%
   64  1000     11910     31.64    0.2%
   64  1020     11930     45.22    0.3%
   64  1024     11940     41.77    0.3%

Quality and confidence:
param     error
c           0.2
s         0.013

Model:
Time ~=    160.7
    + c    156.1
    + s    1.785
              µs

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

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

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

Model:
Time ~=    147.4
    + s    1.721
              µs

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

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

Data points distribution:
    s   mean µs  sigma µs       %
    0     146.9     1.125    0.7%
   20     180.7     0.299    0.1%
   40     216.2     0.481    0.2%
   60     251.1      0.31    0.1%
   80     287.5     3.845    1.3%
  100       320     1.012    0.3%
  120     353.5     0.181    0.0%
  140     392.7     6.681    1.7%
  160       423     0.706    0.1%
  180     463.9     6.463    1.3%
  200     491.2     0.364    0.0%
  220     531.5      11.2    2.1%
  240     559.5     0.768    0.1%
  260     595.3     0.748    0.1%
  280     629.1     4.383    0.6%
  300     678.2     17.76    2.6%
  320     698.8      4.72    0.6%
  340     737.6     10.67    1.4%
  360     769.1      9.71    1.2%
  380     807.1     11.62    1.4%
  400     843.3     15.15    1.7%
  420     882.3     15.27    1.7%
  440     910.5     14.26    1.5%
  460       940     9.935    1.0%
  480     995.9     13.72    1.3%
  500      1015      14.3    1.4%
  520      1054     11.87    1.1%
  540      1095     12.76    1.1%
  560      1119     14.52    1.2%
  580      1159     15.42    1.3%
  600      1197     14.75    1.2%
  620      1222     12.56    1.0%
  640      1260     16.42    1.3%
  660      1296     15.12    1.1%
  680      1326     15.43    1.1%
  700      1360     12.89    0.9%
  720      1418     4.853    0.3%
  740      1432      14.3    0.9%
  760      1462     13.33    0.9%
  780      1500     12.23    0.8%
  800      1540     13.94    0.9%
  820      1565      12.4    0.7%
  840      1602     14.78    0.9%
  860      1642      15.2    0.9%
  880      1675     16.22    0.9%
  900      1712      16.4    0.9%
  920      1753     12.34    0.7%
  940      1780     13.99    0.7%
  960      1816     14.02    0.7%
  980      1856     15.45    0.8%
 1000      1908     13.15    0.6%
 1020      1923     13.52    0.7%

Quality and confidence:
param     error
s         0.001

Model:
Time ~=    145.9
    + s    1.743
              µs

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

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

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

Model:
Time ~=    114.2
              µs

Reads = 4
Writes = 2

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

Model:
Time ~=    114.2
              µs

Reads = 4
Writes = 2

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

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

Model:
Time ~=    52.27
    + c    70.31
              µs

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

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

Data points distribution:
    c   mean µs  sigma µs       %
    0     46.86     0.154    0.3%
    1     121.1     0.224    0.1%
    2     189.2     1.919    1.0%
    3     257.3      0.25    0.0%
    4     327.4     0.403    0.1%
    5     404.2     0.868    0.2%
    6     461.8     0.312    0.0%
    7     542.5     12.16    2.2%
    8     609.8     10.92    1.7%
    9     686.8     17.46    2.5%
   10     748.8     12.73    1.6%
   11     818.4     12.95    1.5%
   12     895.8     15.27    1.7%
   13     973.9     17.32    1.7%
   14      1037     14.49    1.3%
   15      1123     11.39    1.0%
   16      1177     14.96    1.2%
   17      1245     12.32    0.9%
   18      1313      13.8    1.0%
   19      1377     10.99    0.7%
   20      1444     12.93    0.8%
   21      1532      9.37    0.6%
   22      1589      12.9    0.8%
   23      1669     3.638    0.2%
   24      1727     14.42    0.8%
   25      1825     13.72    0.7%
   26      1892     10.98    0.5%
   27      1963     7.612    0.3%
   28      2027     11.95    0.5%
   29      2082     15.14    0.7%
   30      2162     12.03    0.5%
   31      2255     3.502    0.1%
   32      2322     1.275    0.0%
   33      2407     1.905    0.0%
   34      2474     2.187    0.0%
   35      2552     4.183    0.1%
   36      2614     2.746    0.1%
   37      2675     9.277    0.3%
   38      2707     11.12    0.4%
   39      2793      15.5    0.5%
   40      2853     14.68    0.5%
   41      2915     19.57    0.6%
   42      2994     8.291    0.2%
   43      3062      18.1    0.5%
   44      3113     13.27    0.4%
   45      3185     6.818    0.2%
   46      3269     14.17    0.4%
   47      3333     12.79    0.3%
   48      3383     18.91    0.5%
   49      3525     15.61    0.4%
   50      3594     17.03    0.4%
   51      3722     8.782    0.2%
   52      3728     20.16    0.5%
   53      3794     9.355    0.2%
   54      3848     7.099    0.1%
   55      3926     11.64    0.2%
   56      3998     13.56    0.3%
   57      4073      19.2    0.4%
   58      4128      18.6    0.4%
   59      4198     19.42    0.4%
   60      4268     12.25    0.2%
   61      4343     16.67    0.3%
   62      4398     22.32    0.5%
   63      4477     21.63    0.4%
   64      4546     27.16    0.5%

Quality and confidence:
param     error
c         0.048

Model:
Time ~=    51.13
    + c     70.4
              µs

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

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

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

Model:
Time ~=    24.45
              µs

Reads = 1
Writes = 3

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

Model:
Time ~=    24.45
              µs

Reads = 1
Writes = 3

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

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

Model:
Time ~=    169.1
    + r    55.98
              µs

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

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

Data points distribution:
    r   mean µs  sigma µs       %
    0     177.3     0.133    0.0%
    1     221.1     0.278    0.1%
    2     277.5     0.358    0.1%
    3       332     0.282    0.0%
    4     388.5     0.382    0.0%
    5     443.1     1.627    0.3%
    6     499.3     4.966    0.9%
    7     574.3     10.17    1.7%
    8       628     9.371    1.4%
    9     677.2     3.932    0.5%
   10     736.5     10.95    1.4%
   11     791.4     11.69    1.4%
   12     846.1     12.15    1.4%
   13     903.1     12.72    1.4%
   14     961.5     13.37    1.3%
   15      1007     1.677    0.1%
   16      1064     10.05    0.9%
   17      1117     3.214    0.2%
   18      1180     12.86    1.0%
   19      1236     13.79    1.1%
   20      1297     12.61    0.9%

Quality and confidence:
param     error
r         0.119

Model:
Time ~=    168.8
    + r    56.27
              µs

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

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

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

Model:
Time ~=    172.7
    + r    56.64
              µs

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

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

Data points distribution:
    r   mean µs  sigma µs       %
    0     177.2     0.174    0.0%
    1       222     0.217    0.0%
    2     278.5     0.349    0.1%
    3     333.6     0.204    0.0%
    4     391.4     1.945    0.4%
    5     445.5     2.203    0.4%
    6       502     1.963    0.3%
    7       592     15.76    2.6%
    8     626.6     0.558    0.0%
    9     687.4     7.467    1.0%
   10     738.6     8.343    1.1%
   11     818.2     6.544    0.7%
   12     864.3     0.753    0.0%
   13     925.8     4.626    0.4%
   14     975.7     12.96    1.3%
   15      1016       2.4    0.2%
   16      1081     13.46    1.2%
   17      1145      11.7    1.0%
   18      1186     12.71    1.0%
   19      1243      12.5    1.0%
   20      1299     14.01    1.0%

Quality and confidence:
param     error
r          0.15

Model:
Time ~=    170.9
    + r    56.97
              µs

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

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

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

Model:
Time ~=    169.5
    + r    55.73
              µs

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

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

Data points distribution:
    r   mean µs  sigma µs       %
    0     177.2     0.213    0.1%
    1     220.9      0.21    0.0%
    2     277.2     0.247    0.0%
    3       331     0.334    0.1%
    4     389.5     1.228    0.3%
    5     442.1     0.463    0.1%
    6     496.3     2.287    0.4%
    7     565.3     0.519    0.0%
    8     625.5     9.157    1.4%
    9     674.3     1.057    0.1%
   10     728.6     3.613    0.4%
   11     784.1     4.702    0.5%
   12     852.3     9.813    1.1%
   13     903.3     11.06    1.2%
   14     959.5     12.96    1.3%
   15      1020     14.59    1.4%
   16      1065     10.96    1.0%
   17      1125     12.84    1.1%
   18      1167     3.969    0.3%
   19      1230     10.19    0.8%
   20      1276     6.833    0.5%

Quality and confidence:
param     error
r         0.116

Model:
Time ~=    168.9
    + r    56.03
              µs

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

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

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

Model:
Time ~=    174.9
    + r    151.5
              µs

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

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

Data points distribution:
    r   mean µs  sigma µs       %
    0     177.3     0.242    0.1%
    1     318.8     0.438    0.1%
    2     469.1     1.016    0.2%
    3     618.3     1.238    0.2%
    4     782.1     11.52    1.4%
    5     927.7     12.04    1.2%
    6      1072     9.111    0.8%
    7      1232      2.49    0.2%
    8      1392      14.8    1.0%
    9      1549     14.48    0.9%
   10      1700     16.64    0.9%
   11      1847     10.91    0.5%
   12      1998     13.64    0.6%
   13      2137     16.19    0.7%
   14      2297      10.9    0.4%
   15      2444     13.07    0.5%
   16      2602     13.86    0.5%
   17      2751     9.739    0.3%
   18      2917     9.413    0.3%
   19      3053      15.6    0.5%
   20      3207     7.182    0.2%

Quality and confidence:
param     error
r         0.147

Model:
Time ~=      170
    + r      152
              µs

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

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

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

Model:
Time ~=    182.7
    + r    54.68
              µs

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

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

Data points distribution:
    r   mean µs  sigma µs       %
    0     176.2     0.141    0.0%
    1     233.5     0.309    0.1%
    2     291.6     4.044    1.3%
    3     344.6     0.388    0.1%
    4     402.1     2.424    0.6%
    5     456.3     2.411    0.5%
    6       512     5.078    0.9%
    7       575      12.2    2.1%
    8     628.7     8.737    1.3%
    9     680.8     7.491    1.1%
   10     733.8     4.908    0.6%
   11     791.5     11.22    1.4%
   12     850.1     11.49    1.3%
   13     894.9     4.714    0.5%
   14     950.4     13.89    1.4%
   15      1003     10.28    1.0%
   16      1056     10.99    1.0%
   17      1110     9.283    0.8%
   18      1164     13.27    1.1%
   19      1221     9.555    0.7%
   20      1278      13.6    1.0%

Quality and confidence:
param     error
r         0.111

Model:
Time ~=    183.3
    + r    54.79
              µs

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

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

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

Model:
Time ~=    181.1
    + r    54.45
              µs

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

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

Data points distribution:
    r   mean µs  sigma µs       %
    0     176.1     0.329    0.1%
    1     233.9     0.311    0.1%
    2       289     0.257    0.0%
    3     343.7     0.334    0.0%
    4     398.9      0.32    0.0%
    5     453.4      2.48    0.5%
    6     506.4     0.571    0.1%
    7     580.3     14.66    2.5%
    8     619.1     0.847    0.1%
    9     674.2     2.672    0.3%
   10     733.3     8.516    1.1%
   11       784     8.385    1.0%
   12     837.7     7.325    0.8%
   13     911.2     14.67    1.6%
   14     945.7     11.54    1.2%
   15     988.9     3.712    0.3%
   16      1054     12.89    1.2%
   17      1113     12.95    1.1%
   18      1156      9.71    0.8%
   19      1215     13.67    1.1%
   20      1275     14.37    1.1%

Quality and confidence:
param     error
r         0.127

Model:
Time ~=    181.9
    + r    54.61
              µs

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

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

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

Model:
Time ~=    181.1
    + r    54.14
              µs

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

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

Data points distribution:
    r   mean µs  sigma µs       %
    0     176.3     0.169    0.0%
    1     233.2     0.252    0.1%
    2     288.8     0.299    0.1%
    3     342.7     0.465    0.1%
    4     399.3     0.712    0.1%
    5     452.3     0.666    0.1%
    6     508.7     3.191    0.6%
    7     562.7     0.715    0.1%
    8     615.6     0.531    0.0%
    9     670.8     4.869    0.7%
   10     725.3      5.43    0.7%
   11       779     8.878    1.1%
   12     832.1     5.882    0.7%
   13     889.9     8.707    0.9%
   14     941.3     12.87    1.3%
   15     999.2     14.42    1.4%
   16      1049     8.055    0.7%
   17      1102     12.77    1.1%
   18      1172     8.942    0.7%
   19      1214     13.06    1.0%
   20      1264     12.92    1.0%

Quality and confidence:
param     error
r         0.096

Model:
Time ~=    179.5
    + r    54.52
              µs

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

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

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

Model:
Time ~=    174.9
    + r    54.14
              µs

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

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

Data points distribution:
    r   mean µs  sigma µs       %
    0     176.8     0.225    0.1%
    1       233     0.213    0.0%
    2     289.1     0.581    0.2%
    3     347.3     4.228    1.2%
    4     386.5     2.295    0.5%
    5     439.7      0.84    0.1%
    6     495.9     7.794    1.5%
    7     549.8      0.62    0.1%
    8     607.1     8.099    1.3%
    9     664.5     11.49    1.7%
   10     718.4      13.4    1.8%
   11       773     13.09    1.6%
   12       826     12.03    1.4%
   13     882.3     14.75    1.6%
   14     931.2     0.996    0.1%
   15     984.4     0.868    0.0%
   16      1054        12    1.1%
   17      1096     8.509    0.7%
   18      1153     11.47    0.9%
   19      1216     12.41    1.0%
   20      1264     12.95    1.0%

Quality and confidence:
param     error
r         0.117

Model:
Time ~=    174.3
    + r    54.43
              µs

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

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

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

Model:
Time ~=    185.2
    + r    133.2
              µs

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

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

Data points distribution:
    r   mean µs  sigma µs       %
    0     176.9     0.206    0.1%
    1     317.4     1.734    0.5%
    2     450.3     0.759    0.1%
    3     586.8     5.106    0.8%
    4     713.6     12.36    1.7%
    5     855.2     12.25    1.4%
    6     989.9     10.46    1.0%
    7      1145     8.699    0.7%
    8      1270     13.81    1.0%
    9      1402     14.48    1.0%
   10      1530      13.1    0.8%
   11      1647      14.1    0.8%
   12      1784     17.79    0.9%
   13      1910     13.27    0.6%
   14      2029     8.437    0.4%
   15      2183     15.23    0.6%
   16      2321     13.23    0.5%
   17      2471     12.14    0.4%
   18      2586     15.94    0.6%
   19      2728     15.09    0.5%
   20      2867     12.27    0.4%

Quality and confidence:
param     error
r         0.187

Model:
Time ~=      186
    + r    133.6
              µs

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

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

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

Model:
Time ~=    90.85
    + r    28.07
              µs

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

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

Data points distribution:
    r   mean µs  sigma µs       %
    0     85.39     0.111    0.1%
    1     116.7     1.152    0.9%
    2       145     0.272    0.1%
    3     170.5      0.31    0.1%
    4     201.1     0.526    0.2%
    5     237.1     0.507    0.2%
    6     265.1     0.709    0.2%
    7     291.9     1.486    0.5%
    8     316.7     0.776    0.2%
    9     343.4     0.703    0.2%
   10     369.7     0.608    0.1%
   11     407.8     6.736    1.6%
   12     432.5     2.476    0.5%
   13       465     12.58    2.7%
   14     486.2     2.576    0.5%
   15     511.6     2.156    0.4%
   16     540.2     6.811    1.2%
   17     565.2     3.236    0.5%
   18     590.3     2.321    0.3%
   19       619     2.442    0.3%
   20     646.3     3.686    0.5%

Quality and confidence:
param     error
r         0.068

Model:
Time ~=    91.77
    + r       28
              µs

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

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

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

Model:
Time ~=    172.6
    + r    53.64
              µs

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

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

Data points distribution:
    r   mean µs  sigma µs       %
    0     176.9     0.269    0.1%
    1     219.1     0.377    0.1%
    2     277.1     3.555    1.2%
    3     326.2     1.429    0.4%
    4     385.6      6.19    1.6%
    5     432.8     2.092    0.4%
    6     489.2     6.432    1.3%
    7     552.5     0.815    0.1%
    8     604.7     0.783    0.1%
    9     659.7     3.531    0.5%
   10     709.2     2.605    0.3%
   11     770.2     13.64    1.7%
   12     816.5     7.775    0.9%
   13     870.3      10.6    1.2%
   14     924.7      1.62    0.1%
   15     983.5     12.43    1.2%
   16      1038     14.22    1.3%
   17      1089     10.94    1.0%
   18      1141     13.77    1.2%
   19      1192     10.53    0.8%
   20      1238     7.655    0.6%

Quality and confidence:
param     error
r         0.104

Model:
Time ~=    170.1
    + r    53.93
              µs

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

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

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

Model:
Time ~=    250.6
    + n    10.59
              µs

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

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

Data points distribution:
    n   mean µs  sigma µs       %
    0       219     0.203    0.0%
   20     435.2     2.029    0.4%
   40     660.3     14.48    2.1%
   60       881     8.607    0.9%
   80      1090     11.51    1.0%
  100      1307     14.85    1.1%
  120      1514     15.67    1.0%
  140      1753     26.28    1.4%
  160      1974     39.74    2.0%
  180      2156     8.884    0.4%
  200      2379     23.25    0.9%
  220      2582     12.47    0.4%
  240      2840     34.59    1.2%
  260      3011     14.69    0.4%
  280      3216     16.61    0.5%
  300      3451      31.4    0.9%
  320      3686     79.98    2.1%
  340      3858     25.96    0.6%
  360      4071     34.52    0.8%
  380      4286     44.98    1.0%
  400      4526     34.78    0.7%
  420      4690     13.37    0.2%
  440      4900     8.972    0.1%
  460      5141     18.96    0.3%
  480      5319     28.48    0.5%
  500      5532     31.88    0.5%
  520      5757     14.74    0.2%
  540      6016     28.65    0.4%
  560      6289     123.2    1.9%
  580      6422     49.68    0.7%
  600      6623     36.07    0.5%
  620      6799     16.48    0.2%
  640      7007     27.04    0.3%
  660      7229     29.21    0.4%
  680      7492     46.21    0.6%
  700      7677     28.92    0.3%
  720      7994     113.2    1.4%
  740      8102     53.89    0.6%
  760      8337     48.47    0.5%
  780      8489     26.66    0.3%
  800      8691     21.99    0.2%
  820      8975      57.2    0.6%
  840      9192     27.86    0.3%
  860      9379     88.57    0.9%
  880      9542     63.91    0.6%
  900      9761      33.6    0.3%
  920      9983     37.99    0.3%
  940     10170     40.66    0.3%
  960     10480       173    1.6%
  980     10690     166.9    1.5%
 1000     10820     40.19    0.3%
 1020     11110     94.92    0.8%

Quality and confidence:
param     error
n         0.009

Model:
Time ~=    251.5
    + n    10.61
              µs

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

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

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

Model:
Time ~=    176.8
    + r    3.081
              µs

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

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

Data points distribution:
    r   mean µs  sigma µs       %
    0     176.8     0.227    0.1%
    1     179.9     0.276    0.1%

Quality and confidence:
param     error
r         0.119

Model:
Time ~=    176.8
    + r    3.095
              µs

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

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

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

Model:
Time ~=    162.9
    + n     0.18
              µs

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

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

Data points distribution:
    n   mean µs  sigma µs       %
    0     165.4     0.136    0.0%
   20       169     0.279    0.1%
   40       169     0.188    0.1%
   60     176.1      0.24    0.1%
   80     175.9     0.474    0.2%
  100     179.8     0.465    0.2%
  120     182.7     0.725    0.3%
  140     187.6     0.513    0.2%
  160     192.5     1.316    0.6%
  180     193.6     0.981    0.5%
  200     195.3     0.116    0.0%
  220       202     0.385    0.1%
  240     205.6     1.817    0.8%
  260       208     1.778    0.8%
  280     211.5     1.659    0.7%
  300     214.9      2.01    0.9%
  320       217     2.018    0.9%
  340       222     2.621    1.1%
  360     225.6      1.98    0.8%
  380     229.5     2.974    1.2%
  400     237.7     2.923    1.2%
  420     240.5     3.041    1.2%
  440     247.7     3.294    1.3%
  460     249.6     4.882    1.9%
  480     250.1     5.552    2.2%
  500     251.8     3.944    1.5%
  520     260.6     4.701    1.8%
  540     260.9     4.347    1.6%
  560     266.3     3.661    1.3%
  580       270     7.978    2.9%
  600     274.9      2.49    0.9%
  620     274.3     5.135    1.8%
  640       281     4.237    1.5%
  660     281.5     4.738    1.6%
  680     285.9     7.115    2.4%
  700     289.8     7.154    2.4%
  720     291.2     5.172    1.7%
  740     300.5     6.904    2.2%
  760     297.5     5.737    1.9%
  780     300.8     5.693    1.8%
  800     310.8     4.752    1.5%
  820     315.1     5.515    1.7%
  840     318.9      5.64    1.7%
  860     321.4     6.671    2.0%
  880     318.6     5.335    1.6%
  900     326.5     1.725    0.5%
  920     341.6     8.729    2.5%
  940     333.6     1.388    0.4%
  960     340.1     6.473    1.9%
  980     342.5     4.683    1.3%
 1000     351.2     1.088    0.3%
 1020       343      8.85    2.5%

Quality and confidence:
param     error
n             0

Model:
Time ~=    161.8
    + n    0.184
              µs

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

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

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

Model:
Time ~=    163.1
    + r    64.31
              µs

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

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

Data points distribution:
    r   mean µs  sigma µs       %
    0     163.2     0.206    0.1%
    1     228.4     2.759    1.2%

Quality and confidence:
param     error
r         0.922

Model:
Time ~=    163.2
    + r    65.24
              µs

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

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

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

Model:
Time ~=      179
    + r    165.6
              µs

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

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

Data points distribution:
    r   mean µs  sigma µs       %
    0     177.6     0.163    0.0%
    1       336     5.605    1.6%
    2     510.5     0.503    0.0%
    3     673.2     12.77    1.8%
    4     840.8      8.71    1.0%
    5      1019     13.36    1.3%
    6      1190     13.46    1.1%
    7      1341     15.13    1.1%
    8      1493     6.324    0.4%
    9      1683     13.78    0.8%
   10      1843     21.01    1.1%
   11      2006     11.95    0.5%
   12      2168     10.78    0.4%
   13      2328     16.82    0.7%
   14      2482     17.98    0.7%
   15      2667     12.19    0.4%
   16      2831      17.4    0.6%
   17      3031     20.05    0.6%
   18      3159     9.354    0.2%
   19      3329      4.11    0.1%
   20      3497     11.52    0.3%

Quality and confidence:
param     error
r         0.189

Model:
Time ~=    178.6
    + r      166
              µs

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

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

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

Model:
Time ~=    185.7
    + r      289
              µs

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

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

Data points distribution:
    r   mean µs  sigma µs       %
    0     174.3     0.147    0.0%
    1     462.6     2.067    0.4%
    2     761.1     10.88    1.4%
    3      1045     6.033    0.5%
    4      1348     4.984    0.3%
    5      1634     12.03    0.7%
    6      1919     10.15    0.5%
    7      2213     14.14    0.6%
    8      2499     10.87    0.4%
    9      2816     7.704    0.2%
   10      3091      8.14    0.2%
   11      3384     16.11    0.4%
   12      3662     8.419    0.2%
   13      3954     12.66    0.3%
   14      4232     15.51    0.3%
   15      4521     16.72    0.3%
   16      4794     15.09    0.3%
   17      5098     9.876    0.1%
   18      5387     14.61    0.2%
   19      5674     11.09    0.1%
   20      5950     22.99    0.3%

Quality and confidence:
param     error
r         0.186

Model:
Time ~=    187.3
    + r      289
              µs

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

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

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

Model:
Time ~=      506
    + t    295.3
    + n    78.11
              µs

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

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

Data points distribution:
    t     n   mean µs  sigma µs       %
    0    16      1701     10.64    0.6%
    1    16      2070      15.6    0.7%
    2    16      2379     5.707    0.2%
    3    16      2648     9.825    0.3%
    4     0      1672     11.56    0.6%
    4     1      1769     12.84    0.7%
    4     2      1835      12.6    0.6%
    4     3      1863     7.187    0.3%
    4     4      1979     14.51    0.7%
    4     5      2046     11.56    0.5%
    4     6      2107     15.48    0.7%
    4     7      2175     13.85    0.6%
    4     8      2266     13.81    0.6%
    4     9      2376     9.574    0.4%
    4    10      2435     12.18    0.5%
    4    11      2495     22.46    0.9%
    4    12      2589     8.331    0.3%
    4    13      2673     20.79    0.7%
    4    14      2747     14.82    0.5%
    4    15      2859     19.45    0.6%
    4    16      2923     15.86    0.5%

Quality and confidence:
param     error
t          1.98
n          0.39

Model:
Time ~=    487.7
    + t    291.7
    + n    78.95
              µs

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

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

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

Model:
Time ~=    108.1
    + r    44.93
              µs

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

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

Data points distribution:
    r   mean µs  sigma µs       %
    0     91.85     0.193    0.2%
    1     154.1      0.14    0.0%
    2     197.8     0.257    0.1%
    3     245.6     0.429    0.1%
    4     287.8     0.632    0.2%
    5     332.5     0.582    0.1%
    6     380.8     0.718    0.1%
    7     423.3     0.712    0.1%
    8     466.6      0.82    0.1%
    9     509.5     0.751    0.1%
   10     552.9     1.566    0.2%
   11     607.3     8.927    1.4%
   12     647.5      0.69    0.1%
   13     691.9     0.868    0.1%
   14       750     14.29    1.9%
   15     780.8     3.033    0.3%
   16     823.7      2.74    0.3%
   17     876.9     7.514    0.8%
   18     921.5     8.211    0.8%
   19       966     11.08    1.1%
   20      1006     3.031    0.3%

Quality and confidence:
param     error
r          0.08

Model:
Time ~=    105.1
    + r    45.27
              µs

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

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

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

Model:
Time ~=    7.284
    + r    420.3
              µs

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

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

Data points distribution:
    r   mean µs  sigma µs       %
    0     163.4     0.159    0.0%
    1     531.3     4.085    0.7%
    2       901      10.1    1.1%
    3      1278     9.401    0.7%
    4      1686     9.173    0.5%
    5      2093      15.1    0.7%
    6      2475     17.45    0.7%
    7      2858     15.97    0.5%
    8      3238     14.36    0.4%
    9      3766     13.57    0.3%
   10      4163     30.91    0.7%
   11      4585     16.54    0.3%
   12      5014     23.14    0.4%
   13      5425     28.26    0.5%
   14      5829     29.98    0.5%
   15      6258     32.78    0.5%
   16      6739     45.34    0.6%
   17      7157     19.64    0.2%
   18      7738     43.54    0.5%
   19      8145     31.21    0.3%
   20      8642     38.29    0.4%

Quality and confidence:
param     error
r         1.084

Model:
Time ~=        0
    + r    423.1
              µs

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

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

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

Model:
Time ~=    574.7
    + n     25.2
              µs

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

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

Data points distribution:
    n   mean µs  sigma µs       %
    0     518.5     2.011    0.3%
    1     601.9     1.691    0.2%
    2     634.9     9.054    1.4%
    3     652.8     1.926    0.2%
    4     676.6     2.018    0.2%
    5       700     1.862    0.2%
    6     726.3     11.56    1.5%
    7     753.5      6.67    0.8%
    8     773.2      3.54    0.4%
    9     799.9      7.27    0.9%
   10     827.6      12.7    1.5%
   11     858.3      15.5    1.8%
   12     885.9     9.706    1.0%
   13     894.7     6.968    0.7%
   14     923.6     17.44    1.8%
   15     963.3      3.17    0.3%
   16     972.2     11.46    1.1%

Quality and confidence:
param     error
n         0.257

Model:
Time ~=    565.2
    + n    26.13
              µs

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

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

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

Model:
Time ~=    596.7
    + n    10.81
              µs

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

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

Data points distribution:
    n   mean µs  sigma µs       %
    0     520.8     3.988    0.7%
    1     597.8     4.658    0.7%
    2     631.1     7.018    1.1%
    3     638.3     1.226    0.1%
    4     649.4     0.941    0.1%
    5     655.3     4.145    0.6%
    6     660.7     2.687    0.4%
    7     675.3     5.857    0.8%
    8       679     2.283    0.3%
    9       689     7.193    1.0%
   10     696.3     1.509    0.2%
   11     706.3      6.52    0.9%
   12     719.6     7.153    0.9%
   13       727      5.48    0.7%
   14     748.6      3.57    0.4%
   15     775.2     11.67    1.5%
   16     768.8     2.604    0.3%

Quality and confidence:
param     error
n         0.306

Model:
Time ~=    582.8
    + n    11.99
              µs

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

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

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

Model:
Time ~=    75.67
    + r    391.7
              µs

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

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

Data points distribution:
    r   mean µs  sigma µs       %
    0     175.8      0.18    0.1%
    1     532.3     1.482    0.2%
    2     870.9     2.724    0.3%
    3      1255     8.402    0.6%
    4      1654     15.67    0.9%
    5      2001     11.28    0.5%
    6      2370     15.53    0.6%
    7      2753     13.24    0.4%
    8      3089     9.128    0.2%
    9      3592      24.5    0.6%
   10      3930      10.4    0.2%
   11      4376     14.53    0.3%
   12      4735     39.73    0.8%
   13      5136     23.98    0.4%
   14      5535     22.66    0.4%
   15      5858     20.11    0.3%
   16      6326     28.13    0.4%
   17      6727     28.13    0.4%
   18      7282     48.67    0.6%
   19      7647     42.04    0.5%
   20      8070     17.91    0.2%

Quality and confidence:
param     error
r         0.883

Model:
Time ~=    51.27
    + r    394.5
              µs

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

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

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

Model:
Time ~=    593.5
    + n    10.21
              µs

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

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

Data points distribution:
    n   mean µs  sigma µs       %
    0     535.9     2.432    0.4%
    1     593.5      5.99    1.0%
    2     628.2     9.001    1.4%
    3     630.9     3.647    0.5%
    4     646.5      6.05    0.9%
    5     645.8     1.439    0.2%
    6     665.1     13.55    2.0%
    7     663.9     1.639    0.2%
    8     675.3     7.403    1.0%
    9     685.6     11.32    1.6%
   10     691.4     9.829    1.4%
   11     698.2     6.185    0.8%
   12     698.9     2.212    0.3%
   13     719.6     3.214    0.4%
   14     736.7     2.233    0.3%
   15     753.4      0.93    0.1%
   16     757.6     2.882    0.3%

Quality and confidence:
param     error
n         0.263

Model:
Time ~=    585.3
    + n    10.85
              µs

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

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

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

Model:
Time ~=    76.96
    + r    332.9
              µs

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

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

Data points distribution:
    r   mean µs  sigma µs       %
    0     164.8     0.239    0.1%
    1     453.4     0.402    0.0%
    2     767.4     6.104    0.7%
    3      1078     11.14    1.0%
    4      1391     6.736    0.4%
    5      1728     11.28    0.6%
    6      2035     14.72    0.7%
    7      2364     16.76    0.7%
    8      2668     14.41    0.5%
    9      3061     12.29    0.4%
   10      3366     18.16    0.5%
   11      3730     11.24    0.3%
   12      4035     13.69    0.3%
   13      4389     21.93    0.4%
   14      4692     30.31    0.6%
   15      5041      21.8    0.4%
   16      5385     35.53    0.6%
   17      5732     19.58    0.3%
   18      6166     27.46    0.4%
   19      6516     32.71    0.5%
   20      6872     36.63    0.5%

Quality and confidence:
param     error
r         0.667

Model:
Time ~=     60.4
    + r    335.1
              µs

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

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

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

Model:
Time ~=    554.1
    + n    61.66
              µs

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

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

Data points distribution:
    n   mean µs  sigma µs       %
    0     470.4     1.295    0.2%
    1       593     1.923    0.3%
    2     699.4     13.06    1.8%
    3     750.2      8.17    1.0%
    4     810.2     7.191    0.8%
    5     875.7     13.82    1.5%
    6     925.8     3.133    0.3%
    7     990.3     7.873    0.7%
    8      1045     12.06    1.1%
    9      1103      11.8    1.0%
   10      1155     11.27    0.9%
   11      1213     5.798    0.4%
   12      1281     14.22    1.1%
   13      1362      4.74    0.3%
   14      1415     8.899    0.6%
   15      1481     9.006    0.6%
   16      1544     13.26    0.8%

Quality and confidence:
param     error
n         0.378

Model:
Time ~=    539.5
    + n    62.85
              µs

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

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

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

Model:
Time ~=    68.56
    + r    299.7
              µs

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

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

Data points distribution:
    r   mean µs  sigma µs       %
    0     176.6     0.201    0.1%
    1       434     1.975    0.4%
    2     686.3     1.741    0.2%
    3     989.7     8.491    0.8%
    4      1245     3.802    0.3%
    5      1548     4.645    0.3%
    6      1824     9.701    0.5%
    7      2127     15.34    0.7%
    8      2385     12.65    0.5%
    9      2744     12.25    0.4%
   10      3012     19.77    0.6%
   11      3364     33.77    1.0%
   12      3645     24.51    0.6%
   13      3934     19.58    0.4%
   14      4236     27.45    0.6%
   15      4551     21.02    0.4%
   16      4858     27.16    0.5%
   17      5156      29.1    0.5%
   18      5531      33.5    0.6%
   19      5880     25.03    0.4%
   20      6207     45.35    0.7%

Quality and confidence:
param     error
r         0.701

Model:
Time ~=     58.3
    + r    301.5
              µs

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

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

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

Model:
Time ~=    492.9
    + n    9.735
              µs

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

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

Data points distribution:
    n   mean µs  sigma µs       %
    0     436.2     3.049    0.6%
    1     490.2     1.238    0.2%
    2     533.7     2.447    0.4%
    3     530.5     2.162    0.4%
    4     546.3     11.41    2.0%
    5       547     2.372    0.4%
    6     552.9     2.352    0.4%
    7     560.3      4.71    0.8%
    8     575.6     9.535    1.6%
    9     577.4     10.11    1.7%
   10       585     6.888    1.1%
   11     589.7     1.499    0.2%
   12     602.2     6.961    1.1%
   13     612.5      2.29    0.3%
   14       630     6.749    1.0%
   15     641.9      3.31    0.5%
   16     651.9     10.82    1.6%

Quality and confidence:
param     error
n         0.266

Model:
Time ~=    485.9
    + n    10.31
              µs

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

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

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

Model:
Time ~=    55.76
    + r    434.8
              µs

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

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

Data points distribution:
    r   mean µs  sigma µs       %
    0     180.2     0.117    0.0%
    1     572.2     4.315    0.7%
    2     964.4     9.388    0.9%
    3      1382     11.88    0.8%
    4      1778     10.75    0.6%
    5      2202     12.55    0.5%
    6      2625     14.58    0.5%
    7      3015     16.05    0.5%
    8      3442     22.45    0.6%
    9      3964     14.22    0.3%
   10      4348     16.08    0.3%
   11      4806     15.46    0.3%
   12      5246     23.94    0.4%
   13      5643     24.89    0.4%
   14      6112     19.44    0.3%
   15      6518      35.6    0.5%
   16      6981     39.44    0.5%
   17      7489     18.87    0.2%
   18      7985     27.07    0.3%
   19      8500     24.83    0.2%
   20      8888     45.76    0.5%

Quality and confidence:
param     error
r         0.889

Model:
Time ~=    42.68
    + r    436.9
              µs

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

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

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

Model:
Time ~=    652.5
    + n    63.17
              µs

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

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

Data points distribution:
    n   mean µs  sigma µs       %
    0     570.9     5.104    0.8%
    1    <truncated>...

Parity Bot added 2 commits January 28, 2022 16:28
…--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
Comment on lines -173 to +175
(31_915_000 as Weight)
// Standard Error: 1_000
.saturating_add((98_000 as Weight).saturating_mul(q as Weight))
(0 as Weight)
// Standard Error: 3_000
.saturating_add((2_285_000 as Weight).saturating_mul(q as Weight))
Copy link
Member

Choose a reason for hiding this comment

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

This increase is expected as the buggy code before wasn't doing doing much per queue item.

@athei
Copy link
Member

athei commented Jan 28, 2022

bot merge

@paritytech-processbot
Copy link

Waiting for commit status.

@paritytech-processbot paritytech-processbot bot merged commit fb4f3ec into paritytech:master Jan 28, 2022
@pmikolajczyk41 pmikolajczyk41 deleted the piomiko/fix-batch-deletion branch January 31, 2022 19:32
Wizdave97 pushed a commit to ComposableFi/substrate that referenced this pull request Feb 4, 2022
* Fix lazy batch contract removal

* Apply suggestions

* Qualify ChildInfo

* Negligible change to restart pipeline

* Revert "Negligible change to restart pipeline"

This reverts commit b38abb6.

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

Co-authored-by: Parity Bot <[email protected]>
grishasobol pushed a commit to gear-tech/substrate that referenced this pull request Mar 28, 2022
* Fix lazy batch contract removal

* Apply suggestions

* Qualify ChildInfo

* Negligible change to restart pipeline

* Revert "Negligible change to restart pipeline"

This reverts commit b38abb6.

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

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

* Apply suggestions

* Qualify ChildInfo

* Negligible change to restart pipeline

* Revert "Negligible change to restart pipeline"

This reverts commit b38abb6.

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

Co-authored-by: Parity Bot <[email protected]>
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.

3 participants