Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Polkadot v0.9.22 #2147

Merged
merged 30 commits into from
May 28, 2022
Merged

Polkadot v0.9.22 #2147

merged 30 commits into from
May 28, 2022

Conversation

zqhxuyuan
Copy link
Contributor

@zqhxuyuan zqhxuyuan commented May 21, 2022

@zqhxuyuan zqhxuyuan mentioned this pull request May 25, 2022
@zqhxuyuan zqhxuyuan marked this pull request as ready for review May 25, 2022 06:56
@zqhxuyuan zqhxuyuan requested review from xlc and zjb0807 May 25, 2022 06:57
modules/evm/rpc/src/lib.rs Outdated Show resolved Hide resolved
modules/evm/rpc/src/lib.rs Outdated Show resolved Hide resolved
modules/evm/rpc/src/lib.rs Outdated Show resolved Hide resolved
zqhxuyuan and others added 2 commits May 25, 2022 19:40
* fix bench evm

* update makefile

* update makefile
@zqhxuyuan
Copy link
Contributor Author

@ermalkaleci could you help fix the bench error?

@ermalkaleci
Copy link
Contributor

/bench evm

@ghost
Copy link

ghost commented May 26, 2022

Finished benchmark for branch: polkadot-v0.9.22

Benchmark: EVM

make bench-evm

Results

cargo bench -p runtime-common --features bench | cargo run --bin weight-gen -- --template ./templates/precompile-weight-template.hbs --output runtime/common/src/precompile/weights.rs

Weights file runtime/common/src/precompile/weights.rs was generated.
cargo bench -p module-evm --features bench | evm-bench/analyze_benches.js runtime/common/src/gas_to_weight_ratio.rs
┌─────────┬───────────────────────┬───────┬────────┬─────────────┬──────────────┬──────────┬───────┐
│ (index) │ name │ reads │ writes │ weight │ total_weight │ used_gas │ ratio │
├─────────┼───────────────────────┼───────┼────────┼─────────────┼──────────────┼──────────┼───────┤
│ 0 │ 'erc20_transfer' │ 3 │ 3 │ 332853000 │ 707853000 │ 52082 │ 13591 │
│ 1 │ 'ballot_vote' │ 6 │ 4 │ 345482000 │ 895482000 │ 75812 │ 11811 │
│ 2 │ 'erc20_approve' │ 2 │ 2 │ 253459000 │ 503459000 │ 46593 │ 10805 │
│ 3 │ 'ballot_delegate' │ 5 │ 3 │ 377385000 │ 802385000 │ 74340 │ 10793 │
│ 4 │ 'empty_noop' │ 1 │ 1 │ 101390000 │ 226390000 │ 21186 │ 10685 │
│ 5 │ 'storage_store' │ 2 │ 2 │ 207581000 │ 457581000 │ 43724 │ 10465 │
│ 6 │ 'erc20_transfer_many' │ 102 │ 102 │ 10638744000 │ 23388744000 │ 2856492 │ 8187 │
│ 7 │ 'erc20_approve_many' │ 101 │ 101 │ 7221337000 │ 19846337000 │ 2511136 │ 7903 │
│ 8 │ 'storage_store_many' │ 102 │ 102 │ 5577359000 │ 18327359000 │ 2581277 │ 7100 │
│ 9 │ 'empty_deploy' │ 1 │ 1 │ 185250000 │ 310250000 │ 76975 │ 4030 │
│ 10 │ 'storage_deploy' │ 1 │ 1 │ 192482000 │ 317482000 │ 187075 │ 1697 │
│ 11 │ 'ballot_deploy' │ 6 │ 6 │ 461802000 │ 1211802000 │ 1060480 │ 1142 │
│ 12 │ 'erc20_deploy' │ 5 │ 5 │ 505094000 │ 1130094000 │ 1338700 │ 844 │
└─────────┴───────────────────────┴───────┴────────┴─────────────┴──────────────┴──────────┴───────┘
Ratio 14000

@ermalkaleci
Copy link
Contributor

/bench evm

@ghost
Copy link

ghost commented May 26, 2022

Finished benchmark for branch: polkadot-v0.9.22

Benchmark: EVM

make bench-evm

Results

cargo bench -p runtime-common --features bench | cargo run --bin weight-gen -- --template ./templates/precompile-weight-template.hbs --output runtime/common/src/precompile/weights.rs

Weights file runtime/common/src/precompile/weights.rs was generated.
cargo bench -p module-evm --features bench | evm-bench/analyze_benches.js runtime/common/src/gas_to_weight_ratio.rs
┌─────────┬───────────────────────┬───────┬────────┬────────────┬──────────────┬──────────┬───────┐
│ (index) │ name │ reads │ writes │ weight │ total_weight │ used_gas │ ratio │
├─────────┼───────────────────────┼───────┼────────┼────────────┼──────────────┼──────────┼───────┤
│ 0 │ 'ballot_vote' │ 5 │ 3 │ 341925000 │ 766925000 │ 75812 │ 10116 │
│ 1 │ 'ballot_delegate' │ 4 │ 2 │ 361954000 │ 661954000 │ 74340 │ 8904 │
│ 2 │ 'erc20_transfer' │ 2 │ 2 │ 194241000 │ 444241000 │ 52082 │ 8529 │
│ 3 │ 'storage_store' │ 1 │ 1 │ 214703000 │ 339703000 │ 43724 │ 7769 │
│ 4 │ 'erc20_approve' │ 1 │ 1 │ 217055000 │ 342055000 │ 46593 │ 7341 │
│ 5 │ 'storage_store_many' │ 101 │ 101 │ 5624879000 │ 18249879000 │ 2581277 │ 7070 │
│ 6 │ 'erc20_approve_many' │ 100 │ 100 │ 4184789000 │ 16684789000 │ 2511136 │ 6644 │
│ 7 │ 'erc20_transfer_many' │ 101 │ 101 │ 5712054000 │ 18337054000 │ 2856492 │ 6419 │
│ 8 │ 'empty_noop' │ 0 │ 0 │ 101422000 │ 101422000 │ 21186 │ 4787 │
│ 9 │ 'empty_deploy' │ 0 │ 0 │ 115140000 │ 115140000 │ 76975 │ 1495 │
│ 10 │ 'storage_deploy' │ 0 │ 0 │ 224518000 │ 224518000 │ 187075 │ 1200 │
│ 11 │ 'ballot_deploy' │ 5 │ 5 │ 446771000 │ 1071771000 │ 1060480 │ 1010 │
│ 12 │ 'erc20_deploy' │ 4 │ 4 │ 515418000 │ 1015418000 │ 1338700 │ 758 │
└─────────┴───────────────────────┴───────┴────────┴────────────┴──────────────┴──────────┴───────┘
Ratio 11000

Acala Benchmarking Bot and others added 2 commits May 26, 2022 19:34
@ermalkaleci
Copy link
Contributor

/bench runtime mandala module_evm

@ghost
Copy link

ghost commented May 26, 2022

Finished benchmark for branch: polkadot-v0.9.22

Benchmark: Benchmark Runtime Mandala Module

cargo run --profile production --color=never --bin=acala --features=runtime-benchmarks --features=with-mandala-runtime -- benchmark pallet --chain=dev --steps=50 --repeat=20 --pallet=module_evm --extrinsic="*" --execution=wasm --wasm-execution=compiled --heap-pages=4096 --template=./templates/runtime-weight-template.hbs --output=./runtime/mandala/src/weights/

Results

Pallet: "module_evm", Extrinsic: "create", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info

Storage: unknown [0x3a7472616e73616374696f6e5f6c6576656c3a] (r:1 w:1)
Storage: EvmAccounts EvmAddresses (r:1 w:0)
Storage: EvmAccounts Accounts (r:2 w:0)
Storage: System Account (r:2 w:2)
Storage: Balances Reserves (r:2 w:2)
Storage: EVM Accounts (r:2 w:2)
Storage: EVM Codes (r:1 w:1)
Storage: EVM CodeInfos (r:1 w:1)
Storage: EVM ContractStorageSizes (r:1 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 260.9
µs

Reads = 13
Writes = 10

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 260.9
µs

Reads = 13
Writes = 10

Pallet: "module_evm", Extrinsic: "create2", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info

Storage: unknown [0x3a7472616e73616374696f6e5f6c6576656c3a] (r:1 w:1)
Storage: EvmAccounts EvmAddresses (r:1 w:0)
Storage: EvmAccounts Accounts (r:2 w:0)
Storage: System Account (r:2 w:2)
Storage: Balances Reserves (r:2 w:2)
Storage: EVM Accounts (r:2 w:2)
Storage: EVM Codes (r:1 w:1)
Storage: EVM CodeInfos (r:1 w:1)
Storage: EVM ContractStorageSizes (r:1 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 250.1
µs

Reads = 13
Writes = 10

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 250.1
µs

Reads = 13
Writes = 10

Pallet: "module_evm", Extrinsic: "create_nft_contract", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info

Storage: unknown [0x3a7472616e73616374696f6e5f6c6576656c3a] (r:1 w:1)
Storage: EvmAccounts Accounts (r:2 w:0)
Storage: EVM NetworkContractIndex (r:1 w:1)
Storage: System Account (r:3 w:3)
Storage: Balances Reserves (r:2 w:2)
Storage: EVM Accounts (r:2 w:2)
Storage: EVM Codes (r:1 w:1)
Storage: EVM CodeInfos (r:1 w:1)
Storage: EVM ContractStorageSizes (r:1 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 287.3
µs

Reads = 14
Writes = 12

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 287.3
µs

Reads = 14
Writes = 12

Pallet: "module_evm", Extrinsic: "create_predeploy_contract", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info

Storage: unknown [0x3a7472616e73616374696f6e5f6c6576656c3a] (r:1 w:1)
Storage: EVM Accounts (r:2 w:2)
Storage: EvmAccounts Accounts (r:2 w:0)
Storage: System Account (r:3 w:3)
Storage: Balances Reserves (r:2 w:2)
Storage: EVM Codes (r:1 w:1)
Storage: EVM CodeInfos (r:1 w:1)
Storage: EVM ContractStorageSizes (r:1 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 286.5
µs

Reads = 13
Writes = 11

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 286.5
µs

Reads = 13
Writes = 11

Pallet: "module_evm", Extrinsic: "call", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info

Storage: unknown [0x3a7472616e73616374696f6e5f6c6576656c3a] (r:1 w:1)
Storage: EvmAccounts EvmAddresses (r:1 w:0)
Storage: EVM Accounts (r:2 w:1)
Storage: EvmAccounts Accounts (r:2 w:0)
Storage: System Account (r:2 w:2)
Storage: Balances Reserves (r:2 w:2)
Storage: EVM Codes (r:1 w:0)
Storage: EVM ContractStorageSizes (r:1 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 226.2
µs

Reads = 12
Writes = 7

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 226.2
µs

Reads = 12
Writes = 7

Pallet: "module_evm", Extrinsic: "transfer_maintainer", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info

Storage: unknown [0x3a7472616e73616374696f6e5f6c6576656c3a] (r:1 w:1)
Storage: EVM Accounts (r:1 w:1)
Storage: EvmAccounts EvmAddresses (r:1 w:0)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 177.1
µs

Reads = 3
Writes = 2

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 177.1
µs

Reads = 3
Writes = 2

Pallet: "module_evm", Extrinsic: "publish_contract", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info

Storage: unknown [0x3a7472616e73616374696f6e5f6c6576656c3a] (r:1 w:1)
Storage: EvmAccounts EvmAddresses (r:1 w:0)
Storage: System Account (r:1 w:1)
Storage: EVM Accounts (r:1 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 212.8
µs

Reads = 4
Writes = 3

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 212.8
µs

Reads = 4
Writes = 3

Pallet: "module_evm", Extrinsic: "publish_free", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info

Storage: unknown [0x3a7472616e73616374696f6e5f6c6576656c3a] (r:1 w:1)
Storage: EVM Accounts (r:1 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 38.75
µs

Reads = 2
Writes = 2

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 38.75
µs

Reads = 2
Writes = 2

Pallet: "module_evm", Extrinsic: "enable_contract_development", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info

Storage: unknown [0x3a7472616e73616374696f6e5f6c6576656c3a] (r:1 w:1)
Storage: Balances Reserves (r:1 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 193
µs

Reads = 2
Writes = 2

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 193
µs

Reads = 2
Writes = 2

Pallet: "module_evm", Extrinsic: "disable_contract_development", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info

Storage: unknown [0x3a7472616e73616374696f6e5f6c6576656c3a] (r:1 w:1)
Storage: Balances Reserves (r:1 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 192.7
µs

Reads = 2
Writes = 2

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 192.7
µs

Reads = 2
Writes = 2

Pallet: "module_evm", Extrinsic: "set_code", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info

Storage: unknown [0x3a7472616e73616374696f6e5f6c6576656c3a] (r:1 w:1)
Storage: EVM Accounts (r:1 w:1)
Storage: EvmAccounts EvmAddresses (r:1 w:0)
Storage: EVM CodeInfos (r:2 w:2)
Storage: EvmAccounts Accounts (r:2 w:0)
Storage: Balances Reserves (r:2 w:2)
Storage: System Account (r:1 w:1)
Storage: EVM ContractStorageSizes (r:1 w:1)
Storage: EVM Codes (r:0 w:2)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 296.4
+ c 0.014
µs

Reads = 11 + (0 * c)
Writes = 10 + (0 * c)

Min Squares Analysis

-- Extrinsic Time --

Data points distribution:
c mean µs sigma µs %
0 305 1.737 0.5%
1228 323.4 1.861 0.5%
2456 340.5 0.554 0.1%
3684 356.7 1.568 0.4%
4912 378.1 3.442 0.9%
6140 376.4 1.096 0.2%
7368 401 1.511 0.3%
8596 419.4 4.79 1.1%
9824 447.3 3.738 0.8%
11052 460.3 3.58 0.7%
12280 477.5 1.66 0.3%
13508 495.6 2.119 0.4%
14736 511.4 4.748 0.9%
15964 536.1 5.005 0.9%
17192 532.2 6.69 1.2%
18420 548.3 2.392 0.4%
19648 573.5 5.048 0.8%
20876 590.3 4.81 0.8%
22104 599.2 5.22 0.8%
23332 628.3 11.06 1.7%
24560 642.8 7.142 1.1%
25788 670 5.793 0.8%
27016 688.1 4.521 0.6%
28244 702.2 5.083 0.7%
29472 726.2 6.583 0.9%
30700 728.6 16.22 2.2%
31928 756.1 3.985 0.5%
33156 824.4 49.17 5.9%
34384 829.7 11.46 1.3%
35612 868.8 41.86 4.8%
36840 860.8 3.912 0.4%
38068 871.8 6.933 0.7%
39296 466.4 1.616 0.3%
40524 478.2 6.269 1.3%
41752 491.2 6.605 1.3%
42980 502 7.528 1.4%
44208 964.4 9.966 1.0%
45436 973.3 22.32 2.2%
46664 887.5 30.23 3.4%
47892 1016 4.411 0.4%
49120 1024 8.084 0.7%
50348 1050 4.404 0.4%
51576 1068 10.61 0.9%
52804 1062 26.29 2.4%
54032 1107 8.766 0.7%
55260 1109 7.357 0.6%
56488 1135 6.385 0.5%
57716 1149 12.06 1.0%
58944 1180 6.316 0.5%
60172 1188 3.814 0.3%
61400 1208 7.237 0.5%

Quality and confidence:
param error
c 0

Model:
Time ~= 293.1
+ c 0.014
µs

Reads = 11 + (0 * c)
Writes = 10 + (0 * c)

Pallet: "module_evm", Extrinsic: "selfdestruct", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info

Storage: unknown [0x3a7472616e73616374696f6e5f6c6576656c3a] (r:1 w:1)
Storage: EvmAccounts EvmAddresses (r:1 w:0)
Storage: EVM Accounts (r:1 w:1)
Storage: EvmAccounts Accounts (r:1 w:0)
Storage: EVM CodeInfos (r:1 w:1)
Storage: EVM ContractStorageSizes (r:1 w:1)
Storage: IdleScheduler NextTaskId (r:1 w:1)
Storage: System Account (r:1 w:1)
Storage: IdleScheduler Tasks (r:0 w:1)
Storage: EVM Codes (r:0 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 224
µs

Reads = 8
Writes = 8

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 224
µs

Reads = 8
Writes = 8

…untime-benchmarks --features=with-mandala-runtime -- benchmark pallet --chain=dev --steps=50 --repeat=20 --pallet=module_evm --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --template=./templates/runtime-weight-template.hbs --output=./runtime/mandala/src/weights/
xlc
xlc previously approved these changes May 26, 2022
@zqhxuyuan
Copy link
Contributor Author

@ermalkaleci need fix evm_gas_limit_test e2e test as bench changed the weight.

@ermalkaleci
Copy link
Contributor

@ermalkaleci need fix evm_gas_limit_test e2e test as bench changed the weight.

we will need to run this again

@ermalkaleci
Copy link
Contributor

/bench evm

@ghost
Copy link

ghost commented May 27, 2022

Finished benchmark for branch: polkadot-v0.9.22

Benchmark: EVM

make bench-evm

Results

cargo bench -p runtime-common --features bench | cargo run --bin weight-gen -- --template ./templates/precompile-weight-template.hbs --output runtime/common/src/precompile/weights.rs

Weights file runtime/common/src/precompile/weights.rs was generated.
cargo bench -p module-evm --features bench | evm-bench/analyze_benches.js runtime/common/src/gas_to_weight_ratio.rs
┌─────────┬───────────────────────┬───────┬────────┬────────────┬──────────────┬──────────┬───────┐
│ (index) │ name │ reads │ writes │ weight │ total_weight │ used_gas │ ratio │
├─────────┼───────────────────────┼───────┼────────┼────────────┼──────────────┼──────────┼───────┤
│ 0 │ 'erc20_transfer' │ 2 │ 2 │ 196924000 │ 446924000 │ 52082 │ 8581 │
│ 1 │ 'ballot_vote' │ 5 │ 3 │ 201614000 │ 626614000 │ 75812 │ 8265 │
│ 2 │ 'ballot_delegate' │ 4 │ 2 │ 205637000 │ 505637000 │ 74340 │ 6801 │
│ 3 │ 'erc20_transfer_many' │ 101 │ 101 │ 6256251000 │ 18881251000 │ 2856492 │ 6609 │
│ 4 │ 'erc20_approve_many' │ 100 │ 100 │ 4049941000 │ 16549941000 │ 2511136 │ 6590 │
│ 5 │ 'erc20_approve' │ 1 │ 1 │ 165283000 │ 290283000 │ 46593 │ 6230 │
│ 6 │ 'storage_store_many' │ 101 │ 101 │ 3451737000 │ 16076737000 │ 2581277 │ 6228 │
│ 7 │ 'storage_store' │ 1 │ 1 │ 119729000 │ 244729000 │ 43724 │ 5597 │
│ 8 │ 'empty_noop' │ 0 │ 0 │ 58146000 │ 58146000 │ 21186 │ 2744 │
│ 9 │ 'empty_deploy' │ 0 │ 0 │ 113450000 │ 113450000 │ 76975 │ 1473 │
│ 10 │ 'ballot_deploy' │ 5 │ 5 │ 266327000 │ 891327000 │ 1060480 │ 840 │
│ 11 │ 'storage_deploy' │ 0 │ 0 │ 133259000 │ 133259000 │ 187075 │ 712 │
│ 12 │ 'erc20_deploy' │ 4 │ 4 │ 294077000 │ 794077000 │ 1338700 │ 593 │
└─────────┴───────────────────────┴───────┴────────┴────────────┴──────────────┴──────────┴───────┘
Ratio 9000

@ermalkaleci
Copy link
Contributor

/bench runtime mandala module_evm

@ghost
Copy link

ghost commented May 27, 2022

Finished benchmark for branch: polkadot-v0.9.22

Benchmark: Benchmark Runtime Mandala Module

cargo run --profile production --color=never --bin=acala --features=runtime-benchmarks --features=with-mandala-runtime -- benchmark pallet --chain=dev --steps=50 --repeat=20 --pallet=module_evm --extrinsic="*" --execution=wasm --wasm-execution=compiled --heap-pages=4096 --template=./templates/runtime-weight-template.hbs --output=./runtime/mandala/src/weights/

Results

Pallet: "module_evm", Extrinsic: "create", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info

Storage: unknown [0x3a7472616e73616374696f6e5f6c6576656c3a] (r:1 w:1)
Storage: EvmAccounts EvmAddresses (r:1 w:0)
Storage: EvmAccounts Accounts (r:2 w:0)
Storage: System Account (r:2 w:2)
Storage: Balances Reserves (r:2 w:2)
Storage: EVM Accounts (r:2 w:2)
Storage: EVM Codes (r:1 w:1)
Storage: EVM CodeInfos (r:1 w:1)
Storage: EVM ContractStorageSizes (r:1 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 255.9
µs

Reads = 13
Writes = 10

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 255.9
µs

Reads = 13
Writes = 10

Pallet: "module_evm", Extrinsic: "create2", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info

Storage: unknown [0x3a7472616e73616374696f6e5f6c6576656c3a] (r:1 w:1)
Storage: EvmAccounts EvmAddresses (r:1 w:0)
Storage: EvmAccounts Accounts (r:2 w:0)
Storage: System Account (r:2 w:2)
Storage: Balances Reserves (r:2 w:2)
Storage: EVM Accounts (r:2 w:2)
Storage: EVM Codes (r:1 w:1)
Storage: EVM CodeInfos (r:1 w:1)
Storage: EVM ContractStorageSizes (r:1 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 250
µs

Reads = 13
Writes = 10

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 250
µs

Reads = 13
Writes = 10

Pallet: "module_evm", Extrinsic: "create_nft_contract", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info

Storage: unknown [0x3a7472616e73616374696f6e5f6c6576656c3a] (r:1 w:1)
Storage: EvmAccounts Accounts (r:2 w:0)
Storage: EVM NetworkContractIndex (r:1 w:1)
Storage: System Account (r:3 w:3)
Storage: Balances Reserves (r:2 w:2)
Storage: EVM Accounts (r:2 w:2)
Storage: EVM Codes (r:1 w:1)
Storage: EVM CodeInfos (r:1 w:1)
Storage: EVM ContractStorageSizes (r:1 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 284.2
µs

Reads = 14
Writes = 12

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 284.2
µs

Reads = 14
Writes = 12

Pallet: "module_evm", Extrinsic: "create_predeploy_contract", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info

Storage: unknown [0x3a7472616e73616374696f6e5f6c6576656c3a] (r:1 w:1)
Storage: EVM Accounts (r:2 w:2)
Storage: EvmAccounts Accounts (r:2 w:0)
Storage: System Account (r:3 w:3)
Storage: Balances Reserves (r:2 w:2)
Storage: EVM Codes (r:1 w:1)
Storage: EVM CodeInfos (r:1 w:1)
Storage: EVM ContractStorageSizes (r:1 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 292.9
µs

Reads = 13
Writes = 11

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 292.9
µs

Reads = 13
Writes = 11

Pallet: "module_evm", Extrinsic: "call", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info

Storage: unknown [0x3a7472616e73616374696f6e5f6c6576656c3a] (r:1 w:1)
Storage: EvmAccounts EvmAddresses (r:1 w:0)
Storage: EVM Accounts (r:2 w:1)
Storage: EvmAccounts Accounts (r:2 w:0)
Storage: System Account (r:2 w:2)
Storage: Balances Reserves (r:2 w:2)
Storage: EVM Codes (r:1 w:0)
Storage: EVM ContractStorageSizes (r:1 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 224.6
µs

Reads = 12
Writes = 7

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 224.6
µs

Reads = 12
Writes = 7

Pallet: "module_evm", Extrinsic: "transfer_maintainer", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info

Storage: unknown [0x3a7472616e73616374696f6e5f6c6576656c3a] (r:1 w:1)
Storage: EVM Accounts (r:1 w:1)
Storage: EvmAccounts EvmAddresses (r:1 w:0)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 182.1
µs

Reads = 3
Writes = 2

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 182.1
µs

Reads = 3
Writes = 2

Pallet: "module_evm", Extrinsic: "publish_contract", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info

Storage: unknown [0x3a7472616e73616374696f6e5f6c6576656c3a] (r:1 w:1)
Storage: EvmAccounts EvmAddresses (r:1 w:0)
Storage: System Account (r:1 w:1)
Storage: EVM Accounts (r:1 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 215.1
µs

Reads = 4
Writes = 3

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 215.1
µs

Reads = 4
Writes = 3

Pallet: "module_evm", Extrinsic: "publish_free", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info

Storage: unknown [0x3a7472616e73616374696f6e5f6c6576656c3a] (r:1 w:1)
Storage: EVM Accounts (r:1 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 38.15
µs

Reads = 2
Writes = 2

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 38.15
µs

Reads = 2
Writes = 2

Pallet: "module_evm", Extrinsic: "enable_contract_development", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info

Storage: unknown [0x3a7472616e73616374696f6e5f6c6576656c3a] (r:1 w:1)
Storage: Balances Reserves (r:1 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 192.3
µs

Reads = 2
Writes = 2

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 192.3
µs

Reads = 2
Writes = 2

Pallet: "module_evm", Extrinsic: "disable_contract_development", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info

Storage: unknown [0x3a7472616e73616374696f6e5f6c6576656c3a] (r:1 w:1)
Storage: Balances Reserves (r:1 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 193.3
µs

Reads = 2
Writes = 2

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 193.3
µs

Reads = 2
Writes = 2

Pallet: "module_evm", Extrinsic: "set_code", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info

Storage: unknown [0x3a7472616e73616374696f6e5f6c6576656c3a] (r:1 w:1)
Storage: EVM Accounts (r:1 w:1)
Storage: EvmAccounts EvmAddresses (r:1 w:0)
Storage: EVM CodeInfos (r:2 w:2)
Storage: EvmAccounts Accounts (r:2 w:0)
Storage: Balances Reserves (r:2 w:2)
Storage: System Account (r:1 w:1)
Storage: EVM ContractStorageSizes (r:1 w:1)
Storage: EVM Codes (r:0 w:2)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 300
+ c 0.013
µs

Reads = 11 + (0 * c)
Writes = 10 + (0 * c)

Min Squares Analysis

-- Extrinsic Time --

Data points distribution:
c mean µs sigma µs %
0 303.2 2.449 0.8%
1228 321.8 1.576 0.4%
2456 338.3 2.592 0.7%
3684 349.1 5.096 1.4%
4912 376.7 4.708 1.2%
6140 378.1 4.384 1.1%
7368 398.5 3.101 0.7%
8596 423.8 4.29 1.0%
9824 436.4 1.829 0.4%
11052 446.9 3.206 0.7%
12280 438.1 3.545 0.8%
13508 473.3 4.519 0.9%
14736 486.1 2.677 0.5%
15964 504.3 4.96 0.9%
17192 534.8 4.087 0.7%
18420 549.3 4.877 0.8%
19648 573.3 4.924 0.8%
20876 591.6 4.652 0.7%
22104 605 5.454 0.9%
23332 617.3 6.557 1.0%
24560 638 6.976 1.0%
25788 649.3 2.95 0.4%
27016 673.9 5.886 0.8%
28244 634.4 21.14 3.3%
29472 383.9 10.79 2.8%
30700 393.8 6.542 1.6%
31928 394.8 4.883 1.2%
33156 784.3 4.299 0.5%
34384 803 7.426 0.9%
35612 814.1 5.341 0.6%
36840 846.6 11.27 1.3%
38068 859.3 11.79 1.3%
39296 871 7.884 0.9%
40524 865.4 9.504 1.0%
41752 875.9 11.63 1.3%
42980 904.3 13.79 1.5%
44208 944.1 6.364 0.6%
45436 911.9 19.96 2.1%
46664 929.4 11.21 1.2%
47892 982.5 10.8 1.0%
49120 1003 8.032 0.8%
50348 963.5 4.77 0.4%
51576 1015 21.18 2.0%
52804 997.1 14.38 1.4%
54032 1020 12.97 1.2%
55260 1017 6.758 0.6%
56488 1056 6.882 0.6%
57716 1029 5.735 0.5%
58944 1012 12.22 1.2%
60172 1153 11.85 1.0%
61400 1179 12.91 1.0%

Quality and confidence:
param error
c 0

Model:
Time ~= 283.4
+ c 0.014
µs

Reads = 11 + (0 * c)
Writes = 10 + (0 * c)

Pallet: "module_evm", Extrinsic: "selfdestruct", Lowest values: [], Highest values: [], Steps: 50, Repeat: 20
Raw Storage Info

Storage: unknown [0x3a7472616e73616374696f6e5f6c6576656c3a] (r:1 w:1)
Storage: EvmAccounts EvmAddresses (r:1 w:0)
Storage: EVM Accounts (r:1 w:1)
Storage: EvmAccounts Accounts (r:1 w:0)
Storage: EVM CodeInfos (r:1 w:1)
Storage: EVM ContractStorageSizes (r:1 w:1)
Storage: IdleScheduler NextTaskId (r:1 w:1)
Storage: System Account (r:1 w:1)
Storage: IdleScheduler Tasks (r:0 w:1)
Storage: EVM Codes (r:0 w:1)

Median Slopes Analysis

-- Extrinsic Time --

Model:
Time ~= 224.8
µs

Reads = 8
Writes = 8

Min Squares Analysis

-- Extrinsic Time --

Model:
Time ~= 224.8
µs

Reads = 8
Writes = 8

Acala Benchmarking Bot and others added 3 commits May 27, 2022 10:54
…untime-benchmarks --features=with-mandala-runtime -- benchmark pallet --chain=dev --steps=50 --repeat=20 --pallet=module_evm --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --template=./templates/runtime-weight-template.hbs --output=./runtime/mandala/src/weights/
This reverts commit bb179ca.
@zqhxuyuan zqhxuyuan merged commit ded6de5 into master May 28, 2022
@zqhxuyuan zqhxuyuan deleted the polkadot-v0.9.22 branch May 28, 2022 06:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants