diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index 03e3772..b8799ea 100644 --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -779,7 +779,7 @@ impl_runtime_apis! { list_benchmark!(list, extra, pallet_treasury, Treasury); list_benchmark!(list, extra, pallet_vesting, Vesting); list_benchmark!(list, extra, pallet_utility, Utility); - list_benchmark!(list, extra, pallet_teeracle, teeracle); + list_benchmark!(list, extra, pallet_teeracle, Teeracle); let storage_info = AllPalletsWithSystem::storage_info(); @@ -823,7 +823,7 @@ impl_runtime_apis! { add_benchmark!(params, batches, pallet_treasury, Treasury); add_benchmark!(params, batches, pallet_vesting, Vesting); add_benchmark!(params, batches, pallet_utility, Utility); - add_benchmark!(params, batches, pallet_teeracle, teeracle); + add_benchmark!(params, batches, pallet_teeracle, Teeracle); if batches.is_empty() { return Err("Benchmark not found for this pallet.".into()) } Ok(batches) diff --git a/runtime/src/weights/pallet_teeracle.rs b/runtime/src/weights/pallet_teeracle.rs new file mode 100644 index 0000000..5dfdcf9 --- /dev/null +++ b/runtime/src/weights/pallet_teeracle.rs @@ -0,0 +1,39 @@ + +//! Autogenerated weights for `pallet_teeracle` +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev +//! DATE: 2021-11-10, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("integritee-solo-fresh"), DB CACHE: 128 + +// Executed Command: +// target/release/integritee-node +// benchmark +// --chain=integritee-solo-fresh +// --steps=50 +// --repeat=20 +// --pallet=pallet_teeracle +// --extrinsic=* +// --execution=wasm +// --wasm-execution=compiled +// --heap-pages=4096 +// --output=runtime/src/weights/pallet_teeracle.rs + + +#![cfg_attr(rustfmt, rustfmt_skip)] +#![allow(unused_parens)] +#![allow(unused_imports)] + +use frame_support::{traits::Get, weights::Weight}; +use sp_std::marker::PhantomData; + +/// Weight functions for pallet_teeracle. +pub struct WeightInfo(PhantomData); +impl pallet_teeracle::WeightInfo for WeightInfo { + // Storage: Teerex EnclaveIndex (r:1 w:0) + // Storage: Teeracle ExchangeRates (r:1 w:1) + fn update_exchange_rate() -> Weight { + (32_807_000 as Weight) + .saturating_add(T::DbWeight::get().reads(2 as Weight)) + .saturating_add(T::DbWeight::get().writes(1 as Weight)) + } +} diff --git a/scripts/benchmark_all_pallets.sh b/scripts/benchmark_all_pallets.sh index 7e3bb1f..4c8cc29 100755 --- a/scripts/benchmark_all_pallets.sh +++ b/scripts/benchmark_all_pallets.sh @@ -19,11 +19,13 @@ pallets=( "pallet_multisig" \ "pallet_proxy" \ "pallet_scheduler" \ - "pallet_timestamp" \ "pallet_teerex" \ + "pallet_claims" \ + "pallet_timestamp" \ "pallet_treasury" \ "pallet_vesting" \ "pallet_utility" \ + "pallet_teeracle" \ ) for pallet in ${pallets[*]}; do