Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
fc89e7d
upgrade v0.9.22
zqhxuyuan May 21, 2022
d7ca928
migrate jsonrpc to jsonrpsee
zqhxuyuan May 21, 2022
ebce4d7
update orml
zqhxuyuan May 21, 2022
fe73322
fix xcm test
zqhxuyuan May 22, 2022
87f92e6
fix e2e test
zqhxuyuan May 22, 2022
4977267
update stable-asset and orml
zqhxuyuan May 24, 2022
1641de0
update orml fmt
zqhxuyuan May 24, 2022
b1953ae
update evm-tests and merge orml master
zqhxuyuan May 24, 2022
0e35305
fix xcm-interface test
zqhxuyuan May 24, 2022
17379fc
fix polkadot xcm test
zqhxuyuan May 24, 2022
4c25e52
fix ci
zjb0807 May 25, 2022
e935ba9
update evm logger
zqhxuyuan May 25, 2022
af10556
Merge branch 'polkadot-v0.9.22' of https://github.com/AcalaNetwork/Ac…
zqhxuyuan May 25, 2022
78d020d
update deps
zqhxuyuan May 25, 2022
944ecb9
update predeploy contracts
zqhxuyuan May 25, 2022
2e00c5e
revert predeploy contracts
zqhxuyuan May 25, 2022
f450f0a
evm internal_error
zqhxuyuan May 25, 2022
e6d0448
fix bench evm (#2162)
ermalkaleci May 26, 2022
d38c778
update orml
ermalkaleci May 26, 2022
7b87217
fix bench
ermalkaleci May 26, 2022
8a9c69e
Merge remote-tracking branch 'origin/master' into polkadot-v0.9.22
May 26, 2022
2c89e3b
make bench-evm
May 26, 2022
5a1009a
ignore unknown key. will be counted by entry call
ermalkaleci May 26, 2022
94490da
make bench-evm
May 26, 2022
bb179ca
update tests
ermalkaleci May 26, 2022
759a926
cargo run --profile production --color=never --bin=acala --features=r…
May 26, 2022
5114efc
make bench-evm
May 27, 2022
5bea6b9
cargo run --profile production --color=never --bin=acala --features=r…
May 27, 2022
9eeec31
Revert "update tests"
ermalkaleci May 27, 2022
6bffbe0
udpate ts-test
ermalkaleci May 27, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
cargo run --profile production --color=never --bin=acala --features=r…
…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/
  • Loading branch information
Acala Benchmarking Bot committed May 26, 2022
commit 759a92658f82ada4ed8e4b1f9dedf90a5e113f88
99 changes: 56 additions & 43 deletions runtime/mandala/src/weights/module_evm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,17 @@
//! Autogenerated weights for module_evm
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2022-03-16, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2022-05-26, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024

// Executed Command:
// target/production/acala
// benchmark
// pallet
// --chain=dev
// --steps=50
// --repeat=20
// --pallet=*
// --pallet=module_evm
// --extrinsic=*
// --execution=wasm
// --wasm-execution=compiled
Expand All @@ -46,32 +47,35 @@ use sp_std::marker::PhantomData;
/// Weight functions for module_evm.
pub struct WeightInfo<T>(PhantomData<T>);
impl<T: frame_system::Config> module_evm::WeightInfo for WeightInfo<T> {
// Storage: unknown [0x3a7472616e73616374696f6e5f6c6576656c3a] (r:1 w:1)
// Storage: EvmAccounts EvmAddresses (r:1 w:0)
// Storage: EvmAccounts Accounts (r:2 w:0)
// Storage: Balances Reserves (r:2 w:2)
// 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)
fn create() -> Weight {
(125_598_000 as Weight)
.saturating_add(T::DbWeight::get().reads(12 as Weight))
.saturating_add(T::DbWeight::get().writes(9 as Weight))
(260_966_000 as Weight)
.saturating_add(T::DbWeight::get().reads(13 as Weight))
.saturating_add(T::DbWeight::get().writes(10 as Weight))
}
// Storage: unknown [0x3a7472616e73616374696f6e5f6c6576656c3a] (r:1 w:1)
// Storage: EvmAccounts EvmAddresses (r:1 w:0)
// Storage: EvmAccounts Accounts (r:2 w:0)
// Storage: Balances Reserves (r:2 w:2)
// 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)
fn create2() -> Weight {
(126_721_000 as Weight)
.saturating_add(T::DbWeight::get().reads(12 as Weight))
.saturating_add(T::DbWeight::get().writes(9 as Weight))
(250_184_000 as Weight)
.saturating_add(T::DbWeight::get().reads(13 as Weight))
.saturating_add(T::DbWeight::get().writes(10 as Weight))
}
// 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)
Expand All @@ -81,67 +85,75 @@ impl<T: frame_system::Config> module_evm::WeightInfo for WeightInfo<T> {
// Storage: EVM CodeInfos (r:1 w:1)
// Storage: EVM ContractStorageSizes (r:1 w:1)
fn create_nft_contract() -> Weight {
(141_679_000 as Weight)
.saturating_add(T::DbWeight::get().reads(13 as Weight))
.saturating_add(T::DbWeight::get().writes(11 as Weight))
(287_315_000 as Weight)
.saturating_add(T::DbWeight::get().reads(14 as Weight))
.saturating_add(T::DbWeight::get().writes(12 as Weight))
}
// 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: EVM Accounts (r:2 w:2)
// 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)
fn create_predeploy_contract() -> Weight {
(142_795_000 as Weight)
.saturating_add(T::DbWeight::get().reads(12 as Weight))
.saturating_add(T::DbWeight::get().writes(10 as Weight))
(286_502_000 as Weight)
.saturating_add(T::DbWeight::get().reads(13 as Weight))
.saturating_add(T::DbWeight::get().writes(11 as Weight))
}
// 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: Balances Reserves (r:2 w:2)
// 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)
fn call() -> Weight {
(111_342_000 as Weight)
.saturating_add(T::DbWeight::get().reads(11 as Weight))
.saturating_add(T::DbWeight::get().writes(6 as Weight))
(226_210_000 as Weight)
.saturating_add(T::DbWeight::get().reads(12 as Weight))
.saturating_add(T::DbWeight::get().writes(7 as Weight))
}
// Storage: unknown [0x3a7472616e73616374696f6e5f6c6576656c3a] (r:1 w:1)
// Storage: EVM Accounts (r:1 w:1)
// Storage: EvmAccounts EvmAddresses (r:1 w:0)
fn transfer_maintainer() -> Weight {
(93_308_000 as Weight)
.saturating_add(T::DbWeight::get().reads(2 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
(177_179_000 as Weight)
.saturating_add(T::DbWeight::get().reads(3 as Weight))
.saturating_add(T::DbWeight::get().writes(2 as Weight))
}
// 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)
fn publish_contract() -> Weight {
(111_690_000 as Weight)
.saturating_add(T::DbWeight::get().reads(3 as Weight))
.saturating_add(T::DbWeight::get().writes(2 as Weight))
(212_817_000 as Weight)
.saturating_add(T::DbWeight::get().reads(4 as Weight))
.saturating_add(T::DbWeight::get().writes(3 as Weight))
}
// Storage: unknown [0x3a7472616e73616374696f6e5f6c6576656c3a] (r:1 w:1)
// Storage: EVM Accounts (r:1 w:1)
fn publish_free() -> Weight {
(17_746_000 as Weight)
.saturating_add(T::DbWeight::get().reads(1 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
(38_755_000 as Weight)
.saturating_add(T::DbWeight::get().reads(2 as Weight))
.saturating_add(T::DbWeight::get().writes(2 as Weight))
}
// Storage: unknown [0x3a7472616e73616374696f6e5f6c6576656c3a] (r:1 w:1)
// Storage: Balances Reserves (r:1 w:1)
fn enable_contract_development() -> Weight {
(97_114_000 as Weight)
.saturating_add(T::DbWeight::get().reads(1 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
(193_031_000 as Weight)
.saturating_add(T::DbWeight::get().reads(2 as Weight))
.saturating_add(T::DbWeight::get().writes(2 as Weight))
}
// Storage: unknown [0x3a7472616e73616374696f6e5f6c6576656c3a] (r:1 w:1)
// Storage: Balances Reserves (r:1 w:1)
fn disable_contract_development() -> Weight {
(98_584_000 as Weight)
.saturating_add(T::DbWeight::get().reads(1 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
(192_794_000 as Weight)
.saturating_add(T::DbWeight::get().reads(2 as Weight))
.saturating_add(T::DbWeight::get().writes(2 as Weight))
}
// 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)
Expand All @@ -151,12 +163,13 @@ impl<T: frame_system::Config> module_evm::WeightInfo for WeightInfo<T> {
// Storage: EVM ContractStorageSizes (r:1 w:1)
// Storage: EVM Codes (r:0 w:2)
fn set_code(c: u32, ) -> Weight {
(143_041_000 as Weight)
(293_130_000 as Weight)
// Standard Error: 0
.saturating_add((8_000 as Weight).saturating_mul(c as Weight))
.saturating_add(T::DbWeight::get().reads(10 as Weight))
.saturating_add(T::DbWeight::get().writes(9 as Weight))
.saturating_add((14_000 as Weight).saturating_mul(c as Weight))
.saturating_add(T::DbWeight::get().reads(11 as Weight))
.saturating_add(T::DbWeight::get().writes(10 as Weight))
}
// 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)
Expand All @@ -167,8 +180,8 @@ impl<T: frame_system::Config> module_evm::WeightInfo for WeightInfo<T> {
// Storage: IdleScheduler Tasks (r:0 w:1)
// Storage: EVM Codes (r:0 w:1)
fn selfdestruct() -> Weight {
(121_209_000 as Weight)
.saturating_add(T::DbWeight::get().reads(7 as Weight))
.saturating_add(T::DbWeight::get().writes(7 as Weight))
(224_056_000 as Weight)
.saturating_add(T::DbWeight::get().reads(8 as Weight))
.saturating_add(T::DbWeight::get().writes(8 as Weight))
}
}