1
// Copyright (C) Parity Technologies (UK) Ltd.
2
// This file is part of Parity Bridges Common.
3

            
4
// Parity Bridges Common is free software: you can redistribute it and/or modify
5
// it under the terms of the GNU General Public License as published by
6
// the Free Software Foundation, either version 3 of the License, or
7
// (at your option) any later version.
8

            
9
// Parity Bridges Common is distributed in the hope that it will be useful,
10
// but WITHOUT ANY WARRANTY; without even the implied warranty of
11
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
// GNU General Public License for more details.
13

            
14
// You should have received a copy of the GNU General Public License
15
// along with Parity Bridges Common.  If not, see <http://www.gnu.org/licenses/>.
16

            
17
//! Autogenerated weights for pallet_xcm_bridge_hub_router
18
//!
19
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
20
//! DATE: 2023-08-03, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
21
//! WORST CASE MAP SIZE: `1000000`
22
//! HOSTNAME: `covid`, CPU: `11th Gen Intel(R) Core(TM) i7-11800H @ 2.30GHz`
23
//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
24

            
25
// Executed Command:
26
// target/release/rip-bridge-node
27
// benchmark
28
// pallet
29
// --chain=dev
30
// --steps=50
31
// --repeat=20
32
// --pallet=pallet_xcm_bridge_hub_router
33
// --extrinsic=*
34
// --execution=wasm
35
// --wasm-execution=Compiled
36
// --heap-pages=4096
37
// --output=./modules/xcm-bridge-hub-router/src/weights.rs
38
// --template=./.maintain/bridge-weight-template.hbs
39

            
40
#![allow(clippy::all)]
41
#![allow(unused_parens)]
42
#![allow(unused_imports)]
43
#![allow(missing_docs)]
44

            
45
use frame_support::{
46
	traits::Get,
47
	weights::{constants::RocksDbWeight, Weight},
48
};
49
use sp_std::marker::PhantomData;
50

            
51
/// Weight functions needed for pallet_xcm_bridge_hub_router.
52
pub trait WeightInfo {
53
	fn update_bridge_status() -> Weight;
54
}
55

            
56
// For backwards compatibility and tests
57
impl WeightInfo for () {
58
	/// Storage: `ToUnknownXcmRouter::Bridges` (r:1 w:1)
59
	/// Proof: `ToUnknownXcmRouter::Bridges` (`max_values`: None, `max_size`: Some(65), added: 2540,
60
	/// mode: `MaxEncodedLen`)
61
4
	fn update_bridge_status() -> Weight {
62
4
		// Proof Size summary in bytes:
63
4
		//  Measured:  `109`
64
4
		//  Estimated: `3530`
65
4
		// Minimum execution time: 12_179_000 picoseconds.
66
4
		Weight::from_parts(12_679_000, 0)
67
4
			.saturating_add(Weight::from_parts(0, 3530))
68
4
			.saturating_add(RocksDbWeight::get().reads(1))
69
4
			.saturating_add(RocksDbWeight::get().writes(1))
70
4
	}
71
}