Skip to content

Commit

Permalink
Integration test fix & new weights
Browse files Browse the repository at this point in the history
  • Loading branch information
Dinonard committed Sep 28, 2023
1 parent 79a21a4 commit 43d73b9
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 15 deletions.
40 changes: 27 additions & 13 deletions pallets/dynamic-evm-base-fee/src/weights.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
//! Autogenerated weights for pallet_dynamic_evm_base_fee
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-09-27, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2023-09-28, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `Dinos-MBP.fritz.box`, CPU: `<UNKNOWN>`
//! HOSTNAME: `devserver-01`, CPU: `Intel(R) Xeon(R) E-2236 CPU @ 3.40GHz`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("shibuya-dev"), DB CACHE: 1024
// Executed Command:
Expand All @@ -37,7 +37,7 @@
// --execution=wasm
// --wasm-execution=compiled
// --heap-pages=4096
// --output=temp.rs
// --output=./benchmark-results/dynamic_evm_base_fee_weights.rs
// --template=./scripts/templates/weight-template.hbs

#![cfg_attr(rustfmt, rustfmt_skip)]
Expand Down Expand Up @@ -65,8 +65,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `165`
// Estimated: `1517`
// Minimum execution time: 9_000_000 picoseconds.
Weight::from_parts(9_000_000, 1517)
// Minimum execution time: 8_560_000 picoseconds.
Weight::from_parts(8_778_000, 1517)
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
Expand All @@ -76,12 +76,19 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 8_000_000 picoseconds.
Weight::from_parts(9_000_000, 0)
// Minimum execution time: 7_883_000 picoseconds.
Weight::from_parts(8_060_000, 0)
.saturating_add(T::DbWeight::get().writes(1_u64))
}
/// Storage: DynamicEvmBaseFee BaseFeePerGas (r:1 w:0)
/// Proof: DynamicEvmBaseFee BaseFeePerGas (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen)
fn min_gas_price() -> Weight {
Weight::from_parts(0, 0)
// Proof Size summary in bytes:
// Measured: `98`
// Estimated: `1517`
// Minimum execution time: 4_201_000 picoseconds.
Weight::from_parts(4_399_000, 1517)
.saturating_add(T::DbWeight::get().reads(1_u64))
}
}

Expand All @@ -95,8 +102,8 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `165`
// Estimated: `1517`
// Minimum execution time: 9_000_000 picoseconds.
Weight::from_parts(9_000_000, 1517)
// Minimum execution time: 8_560_000 picoseconds.
Weight::from_parts(8_778_000, 1517)
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
Expand All @@ -106,11 +113,18 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 8_000_000 picoseconds.
Weight::from_parts(9_000_000, 0)
// Minimum execution time: 7_883_000 picoseconds.
Weight::from_parts(8_060_000, 0)
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
/// Storage: DynamicEvmBaseFee BaseFeePerGas (r:1 w:0)
/// Proof: DynamicEvmBaseFee BaseFeePerGas (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen)
fn min_gas_price() -> Weight {
Weight::from_parts(0, 0)
// Proof Size summary in bytes:
// Measured: `98`
// Estimated: `1517`
// Minimum execution time: 4_201_000 picoseconds.
Weight::from_parts(4_399_000, 1517)
.saturating_add(RocksDbWeight::get().reads(1_u64))
}
}
4 changes: 2 additions & 2 deletions tests/integration/src/xvm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -772,8 +772,8 @@ fn calling_wasm_from_evm_works_if_sufficient_storage_deposit_limit() {
// to: 0x0e0ddb5a5f0b99d7be468a3051a94073ec6b1900178316401a52b93415026999
// input: 0x0000002a (store)
// value: 0
// storage_deposit_limit: 1_000_000_000_000
hex::decode("2d9338da000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000e8d4a5100000000000000000000000000000000000000000000000000000000000000000200e0ddb5a5f0b99d7be468a3051a94073ec6b1900178316401a52b9341502699900000000000000000000000000000000000000000000000000000000000000040000002a00000000000000000000000000000000000000000000000000000000").expect("invalid call input hex"),
// storage_deposit_limit: 1_000_000_000_000_000
hex::decode("2d9338da000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000038d7ea4c6800000000000000000000000000000000000000000000000000000000000000000200e0ddb5a5f0b99d7be468a3051a94073ec6b1900178316401a52b9341502699900000000000000000000000000000000000000000000000000000000000000040000002a00000000000000000000000000000000000000000000000000000000").expect("invalid call input hex"),
U256::zero(),
1_000_000,
U256::from(DefaultBaseFeePerGas::get()),
Expand Down

0 comments on commit 43d73b9

Please sign in to comment.