Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 2 additions & 2 deletions runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down Expand Up @@ -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)
Expand Down
39 changes: 39 additions & 0 deletions runtime/src/weights/pallet_teeracle.rs
Original file line number Diff line number Diff line change
@@ -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<T>(PhantomData<T>);
impl<T: frame_system::Config> pallet_teeracle::WeightInfo for WeightInfo<T> {
// 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))
}
}
4 changes: 3 additions & 1 deletion scripts/benchmark_all_pallets.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down