diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 984dd6784d7..70a8233f4f4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -78,23 +78,24 @@ jobs: - name: "Build: Production `vara-runtime`" run: cargo build -p vara-runtime --profile production --no-default-features --features std + - name: "Test: Production `vara-runtime`" + run: ./wasm-proc --check-runtime-imports --check-runtime-is-dev false target/production/wbuild/vara-runtime/vara_runtime.compact.wasm + - name: "Artifact: Production `vara-runtime`" run: cp target/production/wbuild/vara-runtime/vara_runtime.compact.compressed.wasm "artifact/vara_runtime_v$VARA_SPEC.wasm" - - name: "Build: Production node with development runtimes" + - name: "Build: Production node client and development `vara-runtime`" run: cargo build -p gear-cli --profile production + - name: "Test: Development `vara-runtime`" + run: ./wasm-proc --check-runtime-imports --check-runtime-is-dev true target/production/wbuild/vara-runtime/vara_runtime.compact.wasm + - name: "Artifact: Production node client and development `vara-runtime`" run: | cp target/production/wbuild/vara-runtime/vara_runtime.compact.compressed.wasm "artifact/vara_devruntime_v$VARA_SPEC.wasm" cp target/production/gear artifact/gear strip artifact/gear || true - - name: "Test: Runtimes" - run: | - ./wasm-proc --check-runtime-imports --check-runtime-is-dev false "artifact/vara_runtime_v$VARA_SPEC.wasm" - ./wasm-proc --check-runtime-imports --check-runtime-is-dev true "artifact/vara_devruntime_v$VARA_SPEC.wasm" - - name: Publish uses: softprops/action-gh-release@v1 with: diff --git a/Cargo.lock b/Cargo.lock index 8b3ed42dba6..53af44bb54b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3795,14 +3795,14 @@ dependencies = [ [[package]] name = "galloc" -version = "1.0.1" +version = "1.0.2" dependencies = [ "dlmalloc", ] [[package]] name = "gcli" -version = "1.0.1" +version = "1.0.2" dependencies = [ "anyhow", "base64 0.21.3", @@ -3844,7 +3844,7 @@ dependencies = [ [[package]] name = "gclient" -version = "1.0.1" +version = "1.0.2" dependencies = [ "anyhow", "async-trait", @@ -3888,7 +3888,7 @@ dependencies = [ [[package]] name = "gcore" -version = "1.0.1" +version = "1.0.2" dependencies = [ "galloc", "gear-core-errors", @@ -3901,7 +3901,7 @@ dependencies = [ [[package]] name = "gear-authorship" -version = "1.0.1" +version = "1.0.2" dependencies = [ "demo-mul-by-const", "env_logger", @@ -3969,7 +3969,7 @@ dependencies = [ [[package]] name = "gear-cli" -version = "1.0.1" +version = "1.0.2" dependencies = [ "clap 4.4.2", "frame-benchmarking", @@ -4002,7 +4002,7 @@ dependencies = [ [[package]] name = "gear-common" -version = "1.0.1" +version = "1.0.2" dependencies = [ "derive_more", "enum-iterator 1.4.1", @@ -4030,7 +4030,7 @@ dependencies = [ [[package]] name = "gear-common-codegen" -version = "1.0.1" +version = "1.0.2" dependencies = [ "quote", "syn 2.0.31", @@ -4038,7 +4038,7 @@ dependencies = [ [[package]] name = "gear-core" -version = "1.0.1" +version = "1.0.2" dependencies = [ "blake2-rfc", "byteorder", @@ -4064,7 +4064,7 @@ dependencies = [ [[package]] name = "gear-core-backend" -version = "1.0.1" +version = "1.0.2" dependencies = [ "actor-system-error", "blake2-rfc", @@ -4082,7 +4082,7 @@ dependencies = [ [[package]] name = "gear-core-errors" -version = "1.0.1" +version = "1.0.2" dependencies = [ "derive_more", "enum-iterator 1.4.1", @@ -4091,7 +4091,7 @@ dependencies = [ [[package]] name = "gear-core-processor" -version = "1.0.1" +version = "1.0.2" dependencies = [ "actor-system-error", "derive_more", @@ -4110,7 +4110,7 @@ dependencies = [ [[package]] name = "gear-key-finder" -version = "1.0.1" +version = "1.0.2" dependencies = [ "directories 5.0.1", "hex", @@ -4118,7 +4118,7 @@ dependencies = [ [[package]] name = "gear-lazy-pages" -version = "1.0.1" +version = "1.0.2" dependencies = [ "cfg-if", "derive_more", @@ -4143,7 +4143,7 @@ dependencies = [ [[package]] name = "gear-lazy-pages-common" -version = "1.0.1" +version = "1.0.2" dependencies = [ "gear-core", "num_enum", @@ -4152,7 +4152,7 @@ dependencies = [ [[package]] name = "gear-lazy-pages-interface" -version = "1.0.1" +version = "1.0.2" dependencies = [ "byteorder", "derive_more", @@ -4167,7 +4167,7 @@ dependencies = [ [[package]] name = "gear-node-loader" -version = "1.0.1" +version = "1.0.2" dependencies = [ "anyhow", "arbitrary", @@ -4199,7 +4199,7 @@ dependencies = [ [[package]] name = "gear-node-testing" -version = "1.0.1" +version = "1.0.2" dependencies = [ "frame-benchmarking", "frame-support", @@ -4266,7 +4266,7 @@ dependencies = [ [[package]] name = "gear-runtime-common" -version = "1.0.1" +version = "1.0.2" dependencies = [ "frame-benchmarking", "frame-support", @@ -4292,7 +4292,7 @@ dependencies = [ [[package]] name = "gear-runtime-interface" -version = "1.0.1" +version = "1.0.2" dependencies = [ "byteorder", "derive_more", @@ -4314,7 +4314,7 @@ dependencies = [ [[package]] name = "gear-runtime-primitives" -version = "1.0.1" +version = "1.0.2" dependencies = [ "sp-core", "sp-runtime", @@ -4367,7 +4367,7 @@ dependencies = [ [[package]] name = "gear-service" -version = "1.0.1" +version = "1.0.2" dependencies = [ "frame-benchmarking", "frame-benchmarking-cli", @@ -4447,7 +4447,7 @@ dependencies = [ [[package]] name = "gear-stack-buffer" -version = "1.0.1" +version = "1.0.2" dependencies = [ "cc", ] @@ -4540,7 +4540,7 @@ dependencies = [ [[package]] name = "gear-wasm-instrument" -version = "1.0.1" +version = "1.0.2" dependencies = [ "enum-iterator 1.4.1", "gear-core", @@ -4706,7 +4706,7 @@ dependencies = [ [[package]] name = "gmeta" -version = "1.0.1" +version = "1.0.2" dependencies = [ "blake2-rfc", "derive_more", @@ -4720,7 +4720,7 @@ dependencies = [ [[package]] name = "gmeta-codegen" -version = "1.0.1" +version = "1.0.2" dependencies = [ "gmeta", "gstd", @@ -4744,7 +4744,7 @@ dependencies = [ [[package]] name = "gsdk" -version = "1.0.1" +version = "1.0.2" dependencies = [ "anyhow", "base64 0.21.3", @@ -4797,7 +4797,7 @@ dependencies = [ [[package]] name = "gsdk-codegen" -version = "1.0.1" +version = "1.0.2" dependencies = [ "proc-macro2", "quote", @@ -4806,7 +4806,7 @@ dependencies = [ [[package]] name = "gstd" -version = "1.0.1" +version = "1.0.2" dependencies = [ "bs58 0.4.0", "futures", @@ -4835,7 +4835,7 @@ dependencies = [ [[package]] name = "gsys" -version = "1.0.1" +version = "1.0.2" [[package]] name = "gtest" @@ -7520,7 +7520,7 @@ dependencies = [ [[package]] name = "pallet-gear" -version = "1.0.1" +version = "1.0.2" dependencies = [ "blake2-rfc", "demo-async", @@ -7618,7 +7618,7 @@ dependencies = [ [[package]] name = "pallet-gear-bank" -version = "1.0.1" +version = "1.0.2" dependencies = [ "frame-benchmarking", "frame-support", @@ -7636,7 +7636,7 @@ dependencies = [ [[package]] name = "pallet-gear-debug" -version = "1.0.1" +version = "1.0.2" dependencies = [ "demo-vec", "env_logger", @@ -7672,7 +7672,7 @@ dependencies = [ [[package]] name = "pallet-gear-gas" -version = "1.0.1" +version = "1.0.2" dependencies = [ "env_logger", "frame-benchmarking", @@ -7701,7 +7701,7 @@ dependencies = [ [[package]] name = "pallet-gear-messenger" -version = "1.0.1" +version = "1.0.2" dependencies = [ "env_logger", "frame-benchmarking", @@ -7725,7 +7725,7 @@ dependencies = [ [[package]] name = "pallet-gear-payment" -version = "1.0.1" +version = "1.0.2" dependencies = [ "env_logger", "frame-benchmarking", @@ -7759,7 +7759,7 @@ dependencies = [ [[package]] name = "pallet-gear-proc-macro" -version = "1.0.1" +version = "1.0.2" dependencies = [ "proc-macro2", "quote", @@ -7768,7 +7768,7 @@ dependencies = [ [[package]] name = "pallet-gear-program" -version = "1.0.1" +version = "1.0.2" dependencies = [ "frame-support", "frame-system", @@ -7793,7 +7793,7 @@ dependencies = [ [[package]] name = "pallet-gear-rpc" -version = "1.0.1" +version = "1.0.2" dependencies = [ "gear-common", "gear-core", @@ -7809,7 +7809,7 @@ dependencies = [ [[package]] name = "pallet-gear-rpc-runtime-api" -version = "1.0.1" +version = "1.0.2" dependencies = [ "pallet-gear", "sp-api", @@ -7820,7 +7820,7 @@ dependencies = [ [[package]] name = "pallet-gear-scheduler" -version = "1.0.1" +version = "1.0.2" dependencies = [ "env_logger", "frame-benchmarking", @@ -7851,7 +7851,7 @@ dependencies = [ [[package]] name = "pallet-gear-staking-rewards" -version = "1.0.1" +version = "1.0.2" dependencies = [ "env_logger", "frame-benchmarking", @@ -7905,7 +7905,7 @@ dependencies = [ [[package]] name = "pallet-gear-voucher" -version = "1.0.1" +version = "1.0.2" dependencies = [ "env_logger", "frame-benchmarking", @@ -13637,7 +13637,7 @@ checksum = "830b7e5d4d90034032940e4ace0d9a9a057e7a45cd94e6c007832e39edb82f6d" [[package]] name = "vara-runtime" -version = "1.0.1" +version = "1.0.2" dependencies = [ "const-str", "env_logger", @@ -13893,17 +13893,17 @@ checksum = "ca6ad05a4870b2bf5fe995117d3728437bd27d7cd5f06f13c17443ef369775a1" [[package]] name = "wasm-encoder" -version = "0.16.0" -source = "git+https://github.com/gear-tech/wasm-tools.git?branch=gear-stable#9942645b3891607e13f11f6444ca320ba36a6a1f" +version = "0.32.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1ba64e81215916eaeb48fee292f29401d69235d62d8b8fd92a7b2844ec5ae5f7" dependencies = [ "leb128", ] [[package]] name = "wasm-encoder" -version = "0.32.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1ba64e81215916eaeb48fee292f29401d69235d62d8b8fd92a7b2844ec5ae5f7" +version = "0.35.0" +source = "git+https://github.com/gear-tech/wasm-tools.git?branch=gear-stable#b5ee21ec07edc43b7e03edc3b9138bf78b3fd332" dependencies = [ "leb128", ] @@ -13980,15 +13980,15 @@ dependencies = [ [[package]] name = "wasm-smith" -version = "0.11.4" -source = "git+https://github.com/gear-tech/wasm-tools.git?branch=gear-stable#9942645b3891607e13f11f6444ca320ba36a6a1f" +version = "0.12.21" +source = "git+https://github.com/gear-tech/wasm-tools.git?branch=gear-stable#b5ee21ec07edc43b7e03edc3b9138bf78b3fd332" dependencies = [ "arbitrary", "flagset", - "indexmap 1.9.3", + "indexmap 2.0.0", "leb128", - "wasm-encoder 0.16.0", - "wasmparser 0.90.0", + "wasm-encoder 0.35.0", + "wasmparser 0.115.0", ] [[package]] @@ -14392,14 +14392,6 @@ version = "0.83.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "718ed7c55c2add6548cca3ddd6383d738cd73b892df400e96b9aa876f0141d7a" -[[package]] -name = "wasmparser" -version = "0.90.0" -source = "git+https://github.com/gear-tech/wasm-tools.git?branch=gear-stable#9942645b3891607e13f11f6444ca320ba36a6a1f" -dependencies = [ - "indexmap 1.9.3", -] - [[package]] name = "wasmparser" version = "0.100.0" @@ -14420,6 +14412,15 @@ dependencies = [ "semver 1.0.18", ] +[[package]] +name = "wasmparser" +version = "0.115.0" +source = "git+https://github.com/gear-tech/wasm-tools.git?branch=gear-stable#b5ee21ec07edc43b7e03edc3b9138bf78b3fd332" +dependencies = [ + "indexmap 2.0.0", + "semver 1.0.18", +] + [[package]] name = "wasmparser-nostd" version = "0.83.0" diff --git a/Cargo.toml b/Cargo.toml index d257d2805c8..77dda8cb2c1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,5 +1,5 @@ [workspace.package] -version = "1.0.1" +version = "1.0.2" authors = ["Gear Technologies"] edition = "2021" license = "GPL-3.0" @@ -238,7 +238,7 @@ runtime-primitives = { package = "gear-runtime-primitives", path = "runtime/prim service = { package = "gear-service", path = "node/service", default-features = false } testing = { package = "gear-node-testing", path = "node/testing" } vara-runtime = { path = "runtime/vara", default-features = false } -wasm-smith = { version = "0.11.4", git = "https://github.com/gear-tech/wasm-tools.git", branch = "gear-stable" } +wasm-smith = { version = "0.12.21", git = "https://github.com/gear-tech/wasm-tools.git", branch = "gear-stable" } validator-set = { package = 'substrate-validator-set', git = 'https://github.com/gear-tech/substrate-validator-set.git', branch = 'gear-polkadot-v0.9.41-canary-revert-oom-changes', default-features = false } # Substrate deps diff --git a/gcli/Cargo.toml b/gcli/Cargo.toml index 16f0dc1850a..ba5b8806ba1 100644 --- a/gcli/Cargo.toml +++ b/gcli/Cargo.toml @@ -46,7 +46,6 @@ reqwest = { workspace = true, default-features = false, features = [ "json", "ru etc.workspace = true sp-io = { workspace = true, features = [ "std" ] } sp-core = { workspace = true, features = [ "std" ] } -vara-runtime = { workspace = true, features = [ "std", "dev" ] } [dev-dependencies] rand.workspace = true @@ -54,6 +53,7 @@ demo-messager.workspace = true demo-new-meta.workspace = true demo-waiter.workspace = true gsdk = { workspace = true, features = ["testing"] } +vara-runtime = { workspace = true, features = [ "std", "dev" ] } [build-dependencies] which.workspace = true diff --git a/gcli/bin/gcli.rs b/gcli/bin/gcli.rs index 02fa6f9385c..178aa739dea 100644 --- a/gcli/bin/gcli.rs +++ b/gcli/bin/gcli.rs @@ -23,7 +23,7 @@ use color_eyre::eyre::Result; async fn main() -> Result<()> { color_eyre::install()?; - sp_core::crypto::set_default_ss58_version(vara_runtime::SS58Prefix::get().try_into().unwrap()); + sp_core::crypto::set_default_ss58_version(gcli::VARA_SS58_PREFIX.into()); if let Err(e) = gcli::cmd::Opt::run().await { log::error!("{}", e); diff --git a/gcli/src/lib.rs b/gcli/src/lib.rs index 0617081f062..569987e692c 100644 --- a/gcli/src/lib.rs +++ b/gcli/src/lib.rs @@ -128,3 +128,6 @@ pub mod meta; pub mod result; pub mod template; pub mod utils; + +/// SS58 prefix for vara network. +pub const VARA_SS58_PREFIX: u8 = 137; diff --git a/gcli/tests/gear.rs b/gcli/tests/gear.rs index a815d2d96d5..9793fc60be5 100644 --- a/gcli/tests/gear.rs +++ b/gcli/tests/gear.rs @@ -46,3 +46,8 @@ fn paths() { } }) } + +#[test] +fn ss58_prefix() { + assert_eq!(gcli::VARA_SS58_PREFIX, vara_runtime::SS58Prefix::get()); +} diff --git a/gclient/src/api/calls.rs b/gclient/src/api/calls.rs index a8733d8d375..c31533e4901 100644 --- a/gclient/src/api/calls.rs +++ b/gclient/src/api/calls.rs @@ -204,6 +204,7 @@ impl GearApi { init_payload: payload.as_ref().to_vec(), gas_limit, value, + keep_alive: false, }) }) .collect(); @@ -765,6 +766,7 @@ impl GearApi { payload: payload.as_ref().to_vec(), gas_limit, value, + keep_alive: false, }) }) .collect(); @@ -898,6 +900,7 @@ impl GearApi { payload: payload.as_ref().to_vec(), gas_limit, value, + keep_alive: false, }) }) .collect(); @@ -1127,6 +1130,7 @@ impl GearApi { init_payload: payload.as_ref().to_vec(), gas_limit, value, + keep_alive: false, }) }) .collect(); diff --git a/gsdk/src/lib.rs b/gsdk/src/lib.rs index 3eff02f20a5..d97f0c4cff5 100644 --- a/gsdk/src/lib.rs +++ b/gsdk/src/lib.rs @@ -19,24 +19,23 @@ //! Gear api pub use crate::{ api::Api, + config::GearConfig, metadata::Event, result::{Error, Result}, signer::PairSigner, subscription::{Blocks, Events}, }; -use crate::{ - config::GearConfig, - metadata::runtime_types::gear_common::{ - gas_provider::node::{GasNode, GasNodeId}, - ActiveProgram, - }, -}; pub use gear_core::gas::GasInfo; +pub use subxt::dynamic::Value; + +use crate::metadata::runtime_types::gear_common::{ + gas_provider::node::{GasNode, GasNodeId}, + ActiveProgram, +}; use gear_core::ids::{MessageId, ReservationId}; use parity_scale_codec::Decode; use sp_runtime::AccountId32; use std::collections::HashMap; -pub use subxt::dynamic::Value; use subxt::{ tx::{TxInBlock as SubxtTxInBlock, TxStatus as SubxtTxStatus}, OnlineClient, diff --git a/gsdk/src/metadata/generated.rs b/gsdk/src/metadata/generated.rs index 2def1259e6c..681bb7f4122 100644 --- a/gsdk/src/metadata/generated.rs +++ b/gsdk/src/metadata/generated.rs @@ -2450,6 +2450,7 @@ pub mod runtime_types { init_payload: ::std::vec::Vec<::core::primitive::u8>, gas_limit: ::core::primitive::u64, value: ::core::primitive::u128, + keep_alive: ::core::primitive::bool, }, #[codec(index = 2)] #[doc = "Creates program via `code_id` from storage."] @@ -2474,6 +2475,7 @@ pub mod runtime_types { init_payload: ::std::vec::Vec<::core::primitive::u8>, gas_limit: ::core::primitive::u64, value: ::core::primitive::u128, + keep_alive: ::core::primitive::bool, }, #[codec(index = 3)] #[doc = "Sends a message to a program or to another account."] @@ -2498,6 +2500,7 @@ pub mod runtime_types { payload: ::std::vec::Vec<::core::primitive::u8>, gas_limit: ::core::primitive::u64, value: ::core::primitive::u128, + keep_alive: ::core::primitive::bool, }, #[codec(index = 4)] #[doc = "Send reply on message in `Mailbox`."] @@ -2518,6 +2521,7 @@ pub mod runtime_types { payload: ::std::vec::Vec<::core::primitive::u8>, gas_limit: ::core::primitive::u64, value: ::core::primitive::u128, + keep_alive: ::core::primitive::bool, }, #[codec(index = 5)] #[doc = "Claim value from message in `Mailbox`."] @@ -3250,6 +3254,8 @@ pub mod runtime_types { to: ::subxt::utils::MultiAddress<::subxt::utils::AccountId32, ()>, value: ::core::primitive::u128, }, + #[codec(index = 3)] + align_supply { target: ::core::primitive::u128 }, } #[derive(Debug, crate::gp::Decode, crate::gp::DecodeAsType, crate::gp::Encode)] #[doc = "Error for the staking rewards pallet."] @@ -3273,6 +3279,9 @@ pub mod runtime_types { #[codec(index = 2)] #[doc = "Burned from the pool."] Burned { amount: ::core::primitive::u128 }, + #[codec(index = 3)] + #[doc = "Minted to the pool."] + Minted { amount: ::core::primitive::u128 }, } } } @@ -3338,6 +3347,7 @@ pub mod runtime_types { payload: ::std::vec::Vec<::core::primitive::u8>, gas_limit: ::core::primitive::u64, value: _0, + keep_alive: ::core::primitive::bool, }, #[codec(index = 1)] SendReply { @@ -3345,6 +3355,7 @@ pub mod runtime_types { payload: ::std::vec::Vec<::core::primitive::u8>, gas_limit: ::core::primitive::u64, value: _0, + keep_alive: ::core::primitive::bool, }, } } @@ -9792,6 +9803,7 @@ pub mod calls { Refill, ForceRefill, Withdraw, + AlignSupply, } impl CallInfo for StakingRewardsCall { const PALLET: &'static str = "StakingRewards"; @@ -9800,6 +9812,7 @@ pub mod calls { Self::Refill => "refill", Self::ForceRefill => "force_refill", Self::Withdraw => "withdraw", + Self::AlignSupply => "align_supply", } } } diff --git a/gsdk/src/metadata/impls.rs b/gsdk/src/metadata/impls.rs index f695436da7d..34a3a4d637f 100644 --- a/gsdk/src/metadata/impls.rs +++ b/gsdk/src/metadata/impls.rs @@ -188,6 +188,7 @@ fn gear_call_to_scale_value(call: GearCall) -> Value { init_payload, gas_limit, value, + keep_alive, } => Value::named_variant( "upload_program", [ @@ -196,6 +197,7 @@ fn gear_call_to_scale_value(call: GearCall) -> Value { ("init_payload", Value::from_bytes(init_payload)), ("gas_limit", Value::u128(gas_limit as u128)), ("value", Value::u128(value as u128)), + ("keep_alive", Value::bool(keep_alive)), ], ), GearCall::create_program { @@ -204,6 +206,7 @@ fn gear_call_to_scale_value(call: GearCall) -> Value { init_payload, gas_limit, value, + keep_alive, } => Value::named_variant( "create_program", [ @@ -212,6 +215,7 @@ fn gear_call_to_scale_value(call: GearCall) -> Value { ("init_payload", Value::from_bytes(init_payload)), ("gas_limit", Value::u128(gas_limit as u128)), ("value", Value::u128(value as u128)), + ("keep_alive", Value::bool(keep_alive)), ], ), GearCall::send_message { @@ -219,6 +223,7 @@ fn gear_call_to_scale_value(call: GearCall) -> Value { payload, gas_limit, value, + keep_alive, } => Value::named_variant( "send_message", [ @@ -226,6 +231,7 @@ fn gear_call_to_scale_value(call: GearCall) -> Value { ("payload", Value::from_bytes(payload)), ("gas_limit", Value::u128(gas_limit as u128)), ("value", Value::u128(value as u128)), + ("keep_alive", Value::bool(keep_alive)), ], ), GearCall::send_reply { @@ -233,6 +239,7 @@ fn gear_call_to_scale_value(call: GearCall) -> Value { payload, gas_limit, value, + keep_alive, } => Value::named_variant( "send_reply", [ @@ -240,6 +247,7 @@ fn gear_call_to_scale_value(call: GearCall) -> Value { ("payload", Value::from_bytes(payload)), ("gas_limit", Value::u128(gas_limit as u128)), ("value", Value::u128(value as u128)), + ("keep_alive", Value::bool(keep_alive)), ], ), GearCall::claim_value { message_id } => Value::named_variant( diff --git a/gsdk/src/signer/calls.rs b/gsdk/src/signer/calls.rs index 061cdf0caad..de69b87e4f7 100644 --- a/gsdk/src/signer/calls.rs +++ b/gsdk/src/signer/calls.rs @@ -74,6 +74,7 @@ impl SignerCalls { Value::from_bytes(payload), Value::u128(gas_limit as u128), Value::u128(value), + Value::bool(false), ], ) .await @@ -102,6 +103,7 @@ impl SignerCalls { Value::from_bytes(payload), Value::u128(gas_limit as u128), Value::u128(value), + Value::bool(false), ], ) .await @@ -123,6 +125,7 @@ impl SignerCalls { Value::from_bytes(payload), Value::u128(gas_limit as u128), Value::u128(value), + Value::bool(false), ], ) .await @@ -153,6 +156,7 @@ impl SignerCalls { Value::from_bytes(payload), Value::u128(gas_limit as u128), Value::u128(value), + Value::bool(false), ], ) .await diff --git a/gsdk/src/signer/mod.rs b/gsdk/src/signer/mod.rs index f7a362c59f6..f2fadb50533 100644 --- a/gsdk/src/signer/mod.rs +++ b/gsdk/src/signer/mod.rs @@ -150,6 +150,10 @@ impl Inner { pub fn api(&self) -> &Api { &self.api } + + pub fn signer(&self) -> &PairSigner { + &self.signer + } } impl From<(Api, PairSigner)> for Signer { diff --git a/gstd/src/sync/mutex.rs b/gstd/src/sync/mutex.rs index f978cc21d7a..49de9615610 100644 --- a/gstd/src/sync/mutex.rs +++ b/gstd/src/sync/mutex.rs @@ -102,6 +102,18 @@ pub struct Mutex { queue: AccessQueue, } +impl From for Mutex { + fn from(t: T) -> Self { + Mutex::new(t) + } +} + +impl Default for Mutex { + fn default() -> Self { + ::default().into() + } +} + impl Mutex { /// Create a new mutex in an unlocked state ready for use. pub const fn new(t: T) -> Mutex { diff --git a/gstd/src/sync/rwlock.rs b/gstd/src/sync/rwlock.rs index f2f701954ec..d1ac8638261 100644 --- a/gstd/src/sync/rwlock.rs +++ b/gstd/src/sync/rwlock.rs @@ -115,6 +115,18 @@ pub struct RwLock { queue: AccessQueue, } +impl From for RwLock { + fn from(t: T) -> Self { + RwLock::new(t) + } +} + +impl Default for RwLock { + fn default() -> Self { + ::default().into() + } +} + impl RwLock { /// Limit of readers for `RwLock` pub const READERS_LIMIT: ReadersCount = READERS_LIMIT; diff --git a/node/authorship/src/tests.rs b/node/authorship/src/tests.rs index 8a403f9ec22..d058f329bfa 100644 --- a/node/authorship/src/tests.rs +++ b/node/authorship/src/tests.rs @@ -96,6 +96,7 @@ fn checked_extrinsics(n: u32, signer: AccountId, nonce: &mut u32) -> Vec Pallet { /// Transfers value from `account_id` to bank address. - fn deposit(account_id: &AccountIdOf, value: BalanceOf) -> Result<(), Error> { + fn deposit( + account_id: &AccountIdOf, + value: BalanceOf, + keep_alive: bool, + ) -> Result<(), Error> { let bank_address = T::BankAddress::get(); ensure!( @@ -166,14 +170,15 @@ pub mod pallet { Error::InsufficientDeposit ); + let existence_requirement = if keep_alive { + ExistenceRequirement::KeepAlive + } else { + ExistenceRequirement::AllowDeath + }; + // Check on zero value is inside `pallet_balances` implementation. - CurrencyOf::::transfer( - account_id, - &bank_address, - value, - ExistenceRequirement::AllowDeath, - ) - .map_err(|_| Error::::InsufficientBalance) + CurrencyOf::::transfer(account_id, &bank_address, value, existence_requirement) + .map_err(|_| Error::::InsufficientBalance) } /// Ensures that bank account is able to transfer requested value. @@ -233,14 +238,18 @@ pub mod pallet { Self::withdraw(&block_author, value) } - pub fn deposit_gas(account_id: &AccountIdOf, amount: u64) -> Result<(), Error> { + pub fn deposit_gas( + account_id: &AccountIdOf, + amount: u64, + keep_alive: bool, + ) -> Result<(), Error> { if amount.is_zero() { return Ok(()); } let value = GasMultiplierOf::::get().gas_to_value(amount); - Self::deposit(account_id, value)?; + Self::deposit(account_id, value, keep_alive)?; Bank::::mutate(account_id, |details| { let details = details.get_or_insert_with(Default::default); @@ -327,12 +336,13 @@ pub mod pallet { pub fn deposit_value( account_id: &AccountIdOf, value: BalanceOf, + keep_alive: bool, ) -> Result<(), Error> { if value.is_zero() { return Ok(()); } - Self::deposit(account_id, value)?; + Self::deposit(account_id, value, keep_alive)?; Bank::::mutate(account_id, |details| { let details = details.get_or_insert_with(Default::default); diff --git a/pallets/gear-bank/src/tests.rs b/pallets/gear-bank/src/tests.rs index bc98568ea63..1379d8746d7 100644 --- a/pallets/gear-bank/src/tests.rs +++ b/pallets/gear-bank/src/tests.rs @@ -21,6 +21,26 @@ use frame_support::{assert_noop, assert_ok}; use sp_runtime::traits::Zero; use utils::*; +#[test] +fn keep_alive_fails_deposits_on_low_balance() { + new_test_ext().execute_with(|| { + const ALICE_TO_DUST_BALANCE: Balance = EXISTENTIAL_DEPOSIT - VALUE_PER_GAS; + + const VALUE: Balance = ALICE_BALANCE - ALICE_TO_DUST_BALANCE; + const GAS_AMOUNT: u64 = (VALUE / VALUE_PER_GAS) as u64; + + assert_noop!( + GearBank::deposit_gas(&ALICE, GAS_AMOUNT, true), + Error::::InsufficientBalance, + ); + + assert_noop!( + GearBank::deposit_value(&ALICE, VALUE, true), + Error::::InsufficientBalance, + ); + }) +} + #[test] fn deposit_gas_different_users() { new_test_ext().execute_with(|| { @@ -30,7 +50,7 @@ fn deposit_gas_different_users() { assert_balance(&BOB, BOB_BALANCE); const ALICE_GAS: u64 = 1_234_567; - assert_ok!(GearBank::deposit_gas(&ALICE, ALICE_GAS)); + assert_ok!(GearBank::deposit_gas(&ALICE, ALICE_GAS, false)); assert_bank_balance(ALICE_GAS, 0); @@ -38,7 +58,7 @@ fn deposit_gas_different_users() { assert_gas_value(&ALICE, ALICE_GAS, 0); const BOB_GAS: u64 = 56_789; - assert_ok!(GearBank::deposit_gas(&BOB, BOB_GAS)); + assert_ok!(GearBank::deposit_gas(&BOB, BOB_GAS, false)); assert_bank_balance(ALICE_GAS + BOB_GAS, 0); @@ -54,7 +74,7 @@ fn deposit_gas_different_users() { fn deposit_gas_single_user() { new_test_ext().execute_with(|| { const GAS_1: u64 = 123_456; - assert_ok!(GearBank::deposit_gas(&ALICE, GAS_1)); + assert_ok!(GearBank::deposit_gas(&ALICE, GAS_1, false)); assert_bank_balance(GAS_1, 0); @@ -62,7 +82,7 @@ fn deposit_gas_single_user() { assert_gas_value(&ALICE, GAS_1, 0); const GAS_2: u64 = 67_890; - assert_ok!(GearBank::deposit_gas(&ALICE, GAS_2)); + assert_ok!(GearBank::deposit_gas(&ALICE, GAS_2, false)); assert_bank_balance(GAS_1 + GAS_2, 0); @@ -81,7 +101,7 @@ fn deposit_gas_user_account_deleted() { assert_eq!(gas_price(GAS_AMOUNT), BALANCE_DIFF); - assert_ok!(GearBank::deposit_gas(&ALICE, GAS_AMOUNT)); + assert_ok!(GearBank::deposit_gas(&ALICE, GAS_AMOUNT, false)); assert_bank_balance(GAS_AMOUNT, 0); @@ -95,9 +115,9 @@ fn deposit_gas_zero() { new_test_ext().execute_with(|| { let h = frame_support::storage_root(frame_support::StateVersion::V1); - assert_ok!(GearBank::deposit_gas(&ALICE, 0)); + assert_ok!(GearBank::deposit_gas(&ALICE, 0, false)); - assert_ok!(GearBank::deposit_gas(&Zero::zero(), 0)); + assert_ok!(GearBank::deposit_gas(&Zero::zero(), 0, false)); // No-op operation assertion. assert_eq!( @@ -116,7 +136,7 @@ fn deposit_gas_insufficient_balance() { assert!(gas_price(GAS_AMOUNT) > Balances::free_balance(ALICE)); assert_noop!( - GearBank::deposit_gas(&ALICE, GAS_AMOUNT), + GearBank::deposit_gas(&ALICE, GAS_AMOUNT, false), Error::::InsufficientBalance ); }) @@ -137,7 +157,7 @@ fn deposit_gas_insufficient_deposit() { )); assert_noop!( - GearBank::deposit_gas(&ALICE, GAS_AMOUNT), + GearBank::deposit_gas(&ALICE, GAS_AMOUNT, false), Error::::InsufficientDeposit ); }) @@ -147,10 +167,10 @@ fn deposit_gas_insufficient_deposit() { fn withdraw_gas_different_users() { new_test_ext().execute_with(|| { const ALICE_GAS: u64 = 1_234_567; - assert_ok!(GearBank::deposit_gas(&ALICE, ALICE_GAS)); + assert_ok!(GearBank::deposit_gas(&ALICE, ALICE_GAS, false)); const BOB_GAS: u64 = 56_789; - assert_ok!(GearBank::deposit_gas(&BOB, BOB_GAS)); + assert_ok!(GearBank::deposit_gas(&BOB, BOB_GAS, false)); const ALICE_WITHDRAW: u64 = ALICE_GAS - 123_456; assert_ok!(GearBank::withdraw_gas(&ALICE, ALICE_WITHDRAW, mult())); @@ -180,7 +200,7 @@ fn withdraw_gas_different_users() { fn withdraw_gas_single_user() { new_test_ext().execute_with(|| { const GAS_AMOUNT: u64 = 123_456; - assert_ok!(GearBank::deposit_gas(&ALICE, GAS_AMOUNT)); + assert_ok!(GearBank::deposit_gas(&ALICE, GAS_AMOUNT, false)); const WITHDRAW_1: u64 = GAS_AMOUNT - 23_456; assert_ok!(GearBank::withdraw_gas(&ALICE, WITHDRAW_1, mult())); @@ -204,7 +224,7 @@ fn withdraw_gas_single_user() { fn withdraw_gas_all_balance() { new_test_ext().execute_with(|| { const GAS_AMOUNT: u64 = 123_456; - assert_ok!(GearBank::deposit_gas(&ALICE, GAS_AMOUNT)); + assert_ok!(GearBank::deposit_gas(&ALICE, GAS_AMOUNT, false)); assert_ok!(GearBank::withdraw_gas(&ALICE, GAS_AMOUNT, mult())); @@ -226,7 +246,7 @@ fn withdraw_gas_all_balance_user_account_deleted() { assert_eq!(gas_price(GAS_AMOUNT), BALANCE_DIFF); assert!(BALANCE_DIFF > CurrencyOf::::minimum_balance()); - assert_ok!(GearBank::deposit_gas(&ALICE, GAS_AMOUNT)); + assert_ok!(GearBank::deposit_gas(&ALICE, GAS_AMOUNT, false)); assert_ok!(GearBank::withdraw_gas(&ALICE, GAS_AMOUNT, mult())); assert_bank_balance(0, 0); @@ -243,7 +263,7 @@ fn withdraw_gas_small_amount() { assert!(gas_price(GAS_AMOUNT) < CurrencyOf::::minimum_balance()); - assert_ok!(GearBank::deposit_gas(&ALICE, GAS_AMOUNT)); + assert_ok!(GearBank::deposit_gas(&ALICE, GAS_AMOUNT, false)); assert_ok!(GearBank::withdraw_gas(&ALICE, GAS_AMOUNT, mult())); @@ -263,7 +283,7 @@ fn withdraw_gas_small_amount_user_account_deleted() { const GAS_AMOUNT: u64 = (GAS_VALUE_AMOUNT / VALUE_PER_GAS) as u64; assert_eq!(gas_price(GAS_AMOUNT), GAS_VALUE_AMOUNT); - assert_ok!(GearBank::deposit_gas(&ALICE, GAS_AMOUNT)); + assert_ok!(GearBank::deposit_gas(&ALICE, GAS_AMOUNT, false)); assert_ok!(Balances::transfer_all( RuntimeOrigin::signed(ALICE), @@ -307,7 +327,7 @@ fn withdraw_gas_insufficient_bank_balance() { new_test_ext().execute_with(|| { const GAS_AMOUNT: u64 = 123_456; - assert_ok!(GearBank::deposit_gas(&ALICE, GAS_AMOUNT)); + assert_ok!(GearBank::deposit_gas(&ALICE, GAS_AMOUNT, false)); assert_ok!(Balances::transfer_all( RuntimeOrigin::signed(BANK_ADDRESS), @@ -327,14 +347,14 @@ fn withdraw_gas_insufficient_gas_balance() { new_test_ext().execute_with(|| { const GAS_AMOUNT: u64 = 123_456; - assert_ok!(GearBank::deposit_gas(&ALICE, GAS_AMOUNT)); + assert_ok!(GearBank::deposit_gas(&ALICE, GAS_AMOUNT, false)); assert_noop!( GearBank::withdraw_gas(&ALICE, GAS_AMOUNT + 1, mult()), Error::::InsufficientGasBalance ); - assert_ok!(GearBank::deposit_gas(&BOB, GAS_AMOUNT)); + assert_ok!(GearBank::deposit_gas(&BOB, GAS_AMOUNT, false)); assert_noop!( GearBank::withdraw_gas(&ALICE, GAS_AMOUNT + 1, mult()), @@ -358,7 +378,7 @@ fn withdraw_gas_insufficient_inexistent_gas_balance() { const GAS_AMOUNT: u64 = 123_456; - assert_ok!(GearBank::deposit_gas(&BOB, GAS_AMOUNT)); + assert_ok!(GearBank::deposit_gas(&BOB, GAS_AMOUNT, false)); assert_noop!( GearBank::withdraw_gas(&ALICE, 1, mult()), @@ -376,10 +396,10 @@ fn withdraw_gas_insufficient_inexistent_gas_balance() { fn spend_gas_different_users() { new_test_ext().execute_with(|| { const ALICE_GAS: u64 = 1_234_567; - assert_ok!(GearBank::deposit_gas(&ALICE, ALICE_GAS)); + assert_ok!(GearBank::deposit_gas(&ALICE, ALICE_GAS, false)); const BOB_GAS: u64 = 56_789; - assert_ok!(GearBank::deposit_gas(&BOB, BOB_GAS)); + assert_ok!(GearBank::deposit_gas(&BOB, BOB_GAS, false)); const ALICE_BURN: u64 = ALICE_GAS - 123_456; assert_ok!(GearBank::spend_gas(&ALICE, ALICE_BURN, mult())); @@ -413,7 +433,7 @@ fn spend_gas_different_users() { fn spend_gas_single_user() { new_test_ext().execute_with(|| { const GAS_AMOUNT: u64 = 123_456; - assert_ok!(GearBank::deposit_gas(&ALICE, GAS_AMOUNT)); + assert_ok!(GearBank::deposit_gas(&ALICE, GAS_AMOUNT, false)); const BURN_1: u64 = GAS_AMOUNT - 23_456; assert_ok!(GearBank::spend_gas(&ALICE, BURN_1, mult())); @@ -441,7 +461,7 @@ fn spend_gas_single_user() { fn spend_gas_all_balance() { new_test_ext().execute_with(|| { const GAS_AMOUNT: u64 = 123_456; - assert_ok!(GearBank::deposit_gas(&ALICE, GAS_AMOUNT)); + assert_ok!(GearBank::deposit_gas(&ALICE, GAS_AMOUNT, false)); assert_ok!(GearBank::spend_gas(&ALICE, GAS_AMOUNT, mult())); @@ -461,7 +481,7 @@ fn spend_gas_all_balance_validator_account_deleted() { assert!(gas_price(GAS_AMOUNT) >= CurrencyOf::::minimum_balance()); - assert_ok!(GearBank::deposit_gas(&ALICE, GAS_AMOUNT)); + assert_ok!(GearBank::deposit_gas(&ALICE, GAS_AMOUNT, false)); assert_ok!(Balances::transfer_all( RuntimeOrigin::signed(BLOCK_AUTHOR), @@ -487,7 +507,7 @@ fn spend_gas_small_amount() { assert!(gas_price(GAS_AMOUNT) < CurrencyOf::::minimum_balance()); - assert_ok!(GearBank::deposit_gas(&ALICE, GAS_AMOUNT)); + assert_ok!(GearBank::deposit_gas(&ALICE, GAS_AMOUNT, false)); assert_ok!(GearBank::spend_gas(&ALICE, GAS_AMOUNT, mult())); @@ -509,7 +529,7 @@ fn spend_gas_small_amount_validator_account_deleted() { const GAS_AMOUNT: u64 = (GAS_VALUE_AMOUNT / VALUE_PER_GAS) as u64; assert_eq!(gas_price(GAS_AMOUNT), GAS_VALUE_AMOUNT); - assert_ok!(GearBank::deposit_gas(&ALICE, GAS_AMOUNT)); + assert_ok!(GearBank::deposit_gas(&ALICE, GAS_AMOUNT, false)); assert_ok!(Balances::transfer_all( RuntimeOrigin::signed(BLOCK_AUTHOR), @@ -555,7 +575,7 @@ fn spend_gas_insufficient_bank_balance() { new_test_ext().execute_with(|| { const GAS_AMOUNT: u64 = 123_456; - assert_ok!(GearBank::deposit_gas(&ALICE, GAS_AMOUNT)); + assert_ok!(GearBank::deposit_gas(&ALICE, GAS_AMOUNT, false)); assert_ok!(Balances::transfer_all( RuntimeOrigin::signed(BANK_ADDRESS), @@ -577,14 +597,14 @@ fn spend_gas_insufficient_gas_balance() { new_test_ext().execute_with(|| { const GAS_AMOUNT: u64 = 123_456; - assert_ok!(GearBank::deposit_gas(&ALICE, GAS_AMOUNT)); + assert_ok!(GearBank::deposit_gas(&ALICE, GAS_AMOUNT, false)); assert_noop!( GearBank::spend_gas(&ALICE, GAS_AMOUNT + 1, mult()), Error::::InsufficientGasBalance ); - assert_ok!(GearBank::deposit_gas(&BOB, GAS_AMOUNT)); + assert_ok!(GearBank::deposit_gas(&BOB, GAS_AMOUNT, false)); assert_noop!( GearBank::spend_gas(&ALICE, GAS_AMOUNT + 1, mult()), @@ -607,7 +627,7 @@ fn spend_gas_insufficient_inexistent_gas_balance() { ); const GAS_AMOUNT: u64 = 123_456; - assert_ok!(GearBank::deposit_gas(&BOB, GAS_AMOUNT)); + assert_ok!(GearBank::deposit_gas(&BOB, GAS_AMOUNT, false)); assert_noop!( GearBank::spend_gas(&ALICE, 1, mult()), @@ -625,7 +645,7 @@ fn spend_gas_insufficient_inexistent_gas_balance() { fn deposit_value_different_users() { new_test_ext().execute_with(|| { const ALICE_VALUE: Balance = 1_234_567_000; - assert_ok!(GearBank::deposit_value(&ALICE, ALICE_VALUE)); + assert_ok!(GearBank::deposit_value(&ALICE, ALICE_VALUE, false)); assert_bank_balance(0, ALICE_VALUE); @@ -633,7 +653,7 @@ fn deposit_value_different_users() { assert_gas_value(&ALICE, 0, ALICE_VALUE); const BOB_VALUE: Balance = 56_789_000; - assert_ok!(GearBank::deposit_value(&BOB, BOB_VALUE)); + assert_ok!(GearBank::deposit_value(&BOB, BOB_VALUE, false)); assert_bank_balance(0, ALICE_VALUE + BOB_VALUE); @@ -649,7 +669,7 @@ fn deposit_value_different_users() { fn deposit_value_single_user() { new_test_ext().execute_with(|| { const VALUE_1: Balance = 123_456_000; - assert_ok!(GearBank::deposit_value(&ALICE, VALUE_1)); + assert_ok!(GearBank::deposit_value(&ALICE, VALUE_1, false)); assert_bank_balance(0, VALUE_1); @@ -657,7 +677,7 @@ fn deposit_value_single_user() { assert_gas_value(&ALICE, 0, VALUE_1); const VALUE_2: Balance = 67_890_000; - assert_ok!(GearBank::deposit_value(&ALICE, VALUE_2)); + assert_ok!(GearBank::deposit_value(&ALICE, VALUE_2, false)); assert_bank_balance(0, VALUE_1 + VALUE_2); @@ -673,7 +693,7 @@ fn deposit_value_user_account_deleted() { const VALUE: Balance = ALICE_BALANCE - ALICE_TO_DUST_BALANCE; - assert_ok!(GearBank::deposit_value(&ALICE, VALUE)); + assert_ok!(GearBank::deposit_value(&ALICE, VALUE, false)); assert_bank_balance(0, VALUE); @@ -687,9 +707,9 @@ fn deposit_value_zero() { new_test_ext().execute_with(|| { let h = frame_support::storage_root(frame_support::StateVersion::V1); - assert_ok!(GearBank::deposit_value(&ALICE, 0)); + assert_ok!(GearBank::deposit_value(&ALICE, 0, false)); - assert_ok!(GearBank::deposit_value(&Zero::zero(), 0)); + assert_ok!(GearBank::deposit_value(&Zero::zero(), 0, false)); // No-op operation assertion. assert_eq!( @@ -708,7 +728,7 @@ fn deposit_value_insufficient_balance() { assert!(VALUE > Balances::free_balance(ALICE)); assert_noop!( - GearBank::deposit_value(&ALICE, VALUE), + GearBank::deposit_value(&ALICE, VALUE, false), Error::::InsufficientBalance ); }) @@ -727,7 +747,7 @@ fn deposit_value_insufficient_deposit() { )); assert_noop!( - GearBank::deposit_value(&ALICE, VALUE), + GearBank::deposit_value(&ALICE, VALUE, false), Error::::InsufficientDeposit ); }) @@ -737,10 +757,10 @@ fn deposit_value_insufficient_deposit() { fn withdraw_value_different_users() { new_test_ext().execute_with(|| { const ALICE_VALUE: Balance = 1_234_567_000; - assert_ok!(GearBank::deposit_value(&ALICE, ALICE_VALUE)); + assert_ok!(GearBank::deposit_value(&ALICE, ALICE_VALUE, false)); const BOB_VALUE: Balance = 56_789_000; - assert_ok!(GearBank::deposit_value(&BOB, BOB_VALUE)); + assert_ok!(GearBank::deposit_value(&BOB, BOB_VALUE, false)); const ALICE_WITHDRAW: Balance = ALICE_VALUE - 123_456_000; assert_ok!(GearBank::withdraw_value(&ALICE, ALICE_WITHDRAW)); @@ -770,7 +790,7 @@ fn withdraw_value_different_users() { fn withdraw_value_single_user() { new_test_ext().execute_with(|| { const VALUE: Balance = 123_456_000; - assert_ok!(GearBank::deposit_value(&ALICE, VALUE)); + assert_ok!(GearBank::deposit_value(&ALICE, VALUE, false)); const WITHDRAW_1: Balance = VALUE - 23_456_000; assert_ok!(GearBank::withdraw_value(&ALICE, WITHDRAW_1)); @@ -794,7 +814,7 @@ fn withdraw_value_single_user() { fn withdraw_value_all_balance() { new_test_ext().execute_with(|| { const VALUE: Balance = 123_456_000; - assert_ok!(GearBank::deposit_value(&ALICE, VALUE)); + assert_ok!(GearBank::deposit_value(&ALICE, VALUE, false)); assert_ok!(GearBank::withdraw_value(&ALICE, VALUE)); @@ -812,7 +832,7 @@ fn withdraw_value_all_balance_user_account_deleted() { const VALUE: Balance = ALICE_BALANCE - ALICE_TO_DUST_BALANCE; - assert_ok!(GearBank::deposit_value(&ALICE, VALUE)); + assert_ok!(GearBank::deposit_value(&ALICE, VALUE, false)); assert_ok!(GearBank::withdraw_value(&ALICE, VALUE)); assert_bank_balance(0, 0); @@ -827,7 +847,7 @@ fn withdraw_value_small_amount() { new_test_ext().execute_with(|| { const VALUE: u128 = EXISTENTIAL_DEPOSIT - 1; - assert_ok!(GearBank::deposit_value(&ALICE, VALUE)); + assert_ok!(GearBank::deposit_value(&ALICE, VALUE, false)); assert_ok!(GearBank::withdraw_value(&ALICE, VALUE)); @@ -843,7 +863,7 @@ fn withdraw_value_small_amount_user_account_deleted() { new_test_ext().execute_with(|| { const VALUE: Balance = EXISTENTIAL_DEPOSIT - 1; - assert_ok!(GearBank::deposit_value(&ALICE, VALUE)); + assert_ok!(GearBank::deposit_value(&ALICE, VALUE, false)); assert_ok!(Balances::transfer_all( RuntimeOrigin::signed(ALICE), @@ -887,7 +907,7 @@ fn withdraw_value_insufficient_bank_balance() { new_test_ext().execute_with(|| { const VALUE: Balance = 123_456_000; - assert_ok!(GearBank::deposit_value(&ALICE, VALUE)); + assert_ok!(GearBank::deposit_value(&ALICE, VALUE, false)); assert_ok!(Balances::transfer_all( RuntimeOrigin::signed(BANK_ADDRESS), @@ -907,14 +927,14 @@ fn withdraw_value_insufficient_value_balance() { new_test_ext().execute_with(|| { const VALUE: Balance = 123_456_000; - assert_ok!(GearBank::deposit_value(&ALICE, VALUE)); + assert_ok!(GearBank::deposit_value(&ALICE, VALUE, false)); assert_noop!( GearBank::withdraw_value(&ALICE, VALUE + 1), Error::::InsufficientValueBalance ); - assert_ok!(GearBank::deposit_value(&BOB, VALUE)); + assert_ok!(GearBank::deposit_value(&BOB, VALUE, false)); assert_noop!( GearBank::withdraw_value(&ALICE, VALUE + 1), @@ -938,7 +958,7 @@ fn withdraw_value_insufficient_inexistent_value_balance() { const VALUE: Balance = 123_456_000; - assert_ok!(GearBank::deposit_value(&BOB, VALUE)); + assert_ok!(GearBank::deposit_value(&BOB, VALUE, false)); assert_noop!( GearBank::withdraw_value(&ALICE, 1), @@ -956,10 +976,10 @@ fn withdraw_value_insufficient_inexistent_value_balance() { fn transfer_value_different_users() { new_test_ext().execute_with(|| { const ALICE_VALUE: Balance = 1_234_567_000; - assert_ok!(GearBank::deposit_value(&ALICE, ALICE_VALUE)); + assert_ok!(GearBank::deposit_value(&ALICE, ALICE_VALUE, false)); const BOB_VALUE: Balance = 56_789_000; - assert_ok!(GearBank::deposit_value(&BOB, BOB_VALUE)); + assert_ok!(GearBank::deposit_value(&BOB, BOB_VALUE, false)); const ALICE_TRANSFER: Balance = ALICE_VALUE - 123_456_000; assert_ok!(GearBank::transfer_value(&ALICE, &CHARLIE, ALICE_TRANSFER)); @@ -993,7 +1013,7 @@ fn transfer_value_different_users() { fn transfer_value_single_user() { new_test_ext().execute_with(|| { const VALUE: Balance = 123_456_000; - assert_ok!(GearBank::deposit_value(&ALICE, VALUE)); + assert_ok!(GearBank::deposit_value(&ALICE, VALUE, false)); const TRANSFER_1: Balance = VALUE - 23_456_000; assert_ok!(GearBank::transfer_value(&ALICE, &CHARLIE, TRANSFER_1)); @@ -1022,7 +1042,7 @@ fn transfer_value_single_user() { fn transfer_value_self() { new_test_ext().execute_with(|| { const VALUE: Balance = 123_456_000; - assert_ok!(GearBank::deposit_value(&ALICE, VALUE)); + assert_ok!(GearBank::deposit_value(&ALICE, VALUE, false)); const TRANSFER_1: Balance = VALUE - 23_456_000; assert_ok!(GearBank::transfer_value(&ALICE, &ALICE, TRANSFER_1)); @@ -1046,7 +1066,7 @@ fn transfer_value_self() { fn transfer_balance_all_balance() { new_test_ext().execute_with(|| { const VALUE: Balance = 123_456_000; - assert_ok!(GearBank::deposit_value(&ALICE, VALUE)); + assert_ok!(GearBank::deposit_value(&ALICE, VALUE, false)); assert_ok!(GearBank::transfer_value(&ALICE, &CHARLIE, VALUE)); @@ -1064,7 +1084,7 @@ fn transfer_value_all_balance_destination_account_deleted() { new_test_ext().execute_with(|| { const VALUE: Balance = 123_456_000; - assert_ok!(GearBank::deposit_value(&ALICE, VALUE)); + assert_ok!(GearBank::deposit_value(&ALICE, VALUE, false)); assert_ok!(Balances::transfer_all( RuntimeOrigin::signed(CHARLIE), @@ -1088,7 +1108,7 @@ fn transfer_value_all_balance_self_account_deleted() { new_test_ext().execute_with(|| { const VALUE: Balance = 123_456_000; - assert_ok!(GearBank::deposit_value(&ALICE, VALUE)); + assert_ok!(GearBank::deposit_value(&ALICE, VALUE, false)); assert_ok!(Balances::transfer_all( RuntimeOrigin::signed(ALICE), @@ -1110,7 +1130,7 @@ fn transfer_value_small_amount() { new_test_ext().execute_with(|| { const VALUE: Balance = EXISTENTIAL_DEPOSIT - 1; - assert_ok!(GearBank::deposit_value(&ALICE, VALUE)); + assert_ok!(GearBank::deposit_value(&ALICE, VALUE, false)); assert_ok!(GearBank::transfer_value(&ALICE, &CHARLIE, VALUE)); @@ -1127,7 +1147,7 @@ fn transfer_value_small_amount() { fn transfer_value_small_amount_destination_account_deleted() { new_test_ext().execute_with(|| { const VALUE: Balance = EXISTENTIAL_DEPOSIT - 1; - assert_ok!(GearBank::deposit_value(&ALICE, VALUE)); + assert_ok!(GearBank::deposit_value(&ALICE, VALUE, false)); assert_ok!(Balances::transfer_all( RuntimeOrigin::signed(CHARLIE), @@ -1153,7 +1173,7 @@ fn transfer_value_small_amount_destination_account_deleted() { fn transfer_value_small_amount_self_account_deleted() { new_test_ext().execute_with(|| { const VALUE: Balance = EXISTENTIAL_DEPOSIT - 1; - assert_ok!(GearBank::deposit_value(&ALICE, VALUE)); + assert_ok!(GearBank::deposit_value(&ALICE, VALUE, false)); assert_ok!(Balances::transfer_all( RuntimeOrigin::signed(ALICE), @@ -1200,7 +1220,7 @@ fn transfer_value_insufficient_bank_balance() { new_test_ext().execute_with(|| { const VALUE: Balance = 123_456_000; - assert_ok!(GearBank::deposit_value(&ALICE, VALUE)); + assert_ok!(GearBank::deposit_value(&ALICE, VALUE, false)); assert_ok!(Balances::transfer_all( RuntimeOrigin::signed(BANK_ADDRESS), @@ -1227,7 +1247,7 @@ fn transfer_value_insufficient_value_balance() { new_test_ext().execute_with(|| { const VALUE: Balance = 123_456_000; - assert_ok!(GearBank::deposit_value(&ALICE, VALUE)); + assert_ok!(GearBank::deposit_value(&ALICE, VALUE, false)); assert_noop!( GearBank::transfer_value(&ALICE, &CHARLIE, VALUE + 1), @@ -1239,7 +1259,7 @@ fn transfer_value_insufficient_value_balance() { Error::::InsufficientValueBalance ); - assert_ok!(GearBank::deposit_value(&BOB, VALUE)); + assert_ok!(GearBank::deposit_value(&BOB, VALUE, false)); assert_noop!( GearBank::transfer_value(&ALICE, &CHARLIE, VALUE + 1), @@ -1278,7 +1298,7 @@ fn transfer_value_insufficient_inexistent_value_balance() { const VALUE: Balance = 123_456_000; - assert_ok!(GearBank::deposit_value(&BOB, VALUE)); + assert_ok!(GearBank::deposit_value(&BOB, VALUE, false)); assert_noop!( GearBank::transfer_value(&ALICE, &ALICE, 1), @@ -1309,13 +1329,13 @@ fn empty_accounts_deleted() { const GAS_AMOUNT: u64 = 123_456; - assert_ok!(GearBank::deposit_gas(&ALICE, GAS_AMOUNT)); + assert_ok!(GearBank::deposit_gas(&ALICE, GAS_AMOUNT, false)); assert!(GearBank::account(ALICE).is_some()); assert_ok!(GearBank::withdraw_gas(&ALICE, GAS_AMOUNT, mult())); assert!(GearBank::account(ALICE).is_none()); - assert_ok!(GearBank::deposit_gas(&ALICE, GAS_AMOUNT)); + assert_ok!(GearBank::deposit_gas(&ALICE, GAS_AMOUNT, false)); assert!(GearBank::account(ALICE).is_some()); assert_ok!(GearBank::spend_gas(&ALICE, GAS_AMOUNT, mult())); @@ -1323,19 +1343,19 @@ fn empty_accounts_deleted() { const VALUE: Balance = 123_456_000; - assert_ok!(GearBank::deposit_value(&ALICE, VALUE)); + assert_ok!(GearBank::deposit_value(&ALICE, VALUE, false)); assert!(GearBank::account(ALICE).is_some()); assert_ok!(GearBank::withdraw_value(&ALICE, VALUE)); assert!(GearBank::account(ALICE).is_none()); - assert_ok!(GearBank::deposit_value(&ALICE, VALUE)); + assert_ok!(GearBank::deposit_value(&ALICE, VALUE, false)); assert!(GearBank::account(ALICE).is_some()); assert_ok!(GearBank::transfer_value(&ALICE, &CHARLIE, VALUE)); assert!(GearBank::account(ALICE).is_none()); - assert_ok!(GearBank::deposit_value(&ALICE, VALUE)); + assert_ok!(GearBank::deposit_value(&ALICE, VALUE, false)); assert!(GearBank::account(ALICE).is_some()); assert_ok!(GearBank::transfer_value(&ALICE, &ALICE, VALUE)); @@ -1348,7 +1368,7 @@ fn empty_zero_accounts_deleted() { new_test_ext().execute_with(|| { assert!(GearBank::account(::zero()).is_none()); - assert_ok!(GearBank::deposit_gas(&Zero::zero(), 0)); + assert_ok!(GearBank::deposit_gas(&Zero::zero(), 0, false)); assert!(GearBank::account(::zero()).is_none()); assert_ok!(GearBank::withdraw_gas(&Zero::zero(), 0, mult())); @@ -1357,7 +1377,7 @@ fn empty_zero_accounts_deleted() { assert_ok!(GearBank::spend_gas(&Zero::zero(), 0, mult())); assert!(GearBank::account(::zero()).is_none()); - assert_ok!(GearBank::deposit_value(&Zero::zero(), 0)); + assert_ok!(GearBank::deposit_value(&Zero::zero(), 0, false)); assert!(GearBank::account(::zero()).is_none()); assert_ok!(GearBank::withdraw_value(&Zero::zero(), 0)); @@ -1375,7 +1395,7 @@ fn empty_zero_accounts_deleted() { fn empty_composite_accounts_deleted() { new_test_ext().execute_with(|| { const GAS_AMOUNT: u64 = 123_456; - assert_ok!(GearBank::deposit_gas(&ALICE, GAS_AMOUNT)); + assert_ok!(GearBank::deposit_gas(&ALICE, GAS_AMOUNT, false)); assert_bank_balance(GAS_AMOUNT, 0); @@ -1384,7 +1404,7 @@ fn empty_composite_accounts_deleted() { assert_gas_value(&ALICE, GAS_AMOUNT, 0); const VALUE: Balance = 234_567_000; - assert_ok!(GearBank::deposit_value(&ALICE, VALUE)); + assert_ok!(GearBank::deposit_value(&ALICE, VALUE, false)); assert_bank_balance(GAS_AMOUNT, VALUE); diff --git a/pallets/gear-debug/src/tests/mod.rs b/pallets/gear-debug/src/tests/mod.rs index 8777f6584d8..9017791a2e0 100644 --- a/pallets/gear-debug/src/tests/mod.rs +++ b/pallets/gear-debug/src/tests/mod.rs @@ -57,6 +57,7 @@ fn vec() { vec![], 10_000_000_000, 0, + false, )); let vec_id = get_last_program_id(); @@ -76,6 +77,7 @@ fn vec() { 131072i32.encode(), 10_000_000_000, 0, + false, )); run_to_next_block(None); @@ -153,6 +155,7 @@ fn debug_mode_works() { Vec::new(), 10_000_000_000_u64, 0_u128, + false, ) .expect("Failed to submit program"); @@ -187,6 +190,7 @@ fn debug_mode_works() { Vec::new(), 10_000_000_000_u64, 0_u128, + false, ) .expect("Failed to submit program"); @@ -225,6 +229,7 @@ fn debug_mode_works() { vec![], 1_000_000_000_u64, 0_u128, + false, ) .expect("Failed to send message"); @@ -236,6 +241,7 @@ fn debug_mode_works() { vec![], 1_000_000_000_u64, 0_u128, + false, ) .expect("Failed to send message"); @@ -520,6 +526,7 @@ fn check_not_allocated_pages() { Vec::new(), 5_000_000_000_u64, 0_u128, + false, )); // Enable debug mode. @@ -562,6 +569,7 @@ fn check_not_allocated_pages() { vec![], 5_000_000_000_u64, 0_u128, + false, )); run_to_block(3, None); @@ -746,6 +754,7 @@ fn check_changed_pages_in_storage() { Vec::new(), 5_000_000_000_u64, 0_u128, + false, )); // Enable debug mode. @@ -794,6 +803,7 @@ fn check_changed_pages_in_storage() { vec![], 5_000_000_000_u64, 0_u128, + false, )); run_to_block(3, None); @@ -875,6 +885,7 @@ fn check_gear_stack_end() { Vec::new(), 5_000_000_000_u64, 0_u128, + false, )); // Enable debug mode. @@ -932,6 +943,7 @@ fn disabled_program_rent() { pay_rent_id.into_bytes().to_vec(), 20_000_000_000, program_value, + false, )); run_to_next_block(None); @@ -953,6 +965,7 @@ fn disabled_program_rent() { .encode(), 20_000_000_000, 0, + false, )); run_to_next_block(None); diff --git a/pallets/gear-scheduler/src/tests.rs b/pallets/gear-scheduler/src/tests.rs index 58a0285d026..14f9143f61f 100644 --- a/pallets/gear-scheduler/src/tests.rs +++ b/pallets/gear-scheduler/src/tests.rs @@ -73,7 +73,7 @@ fn populate_wl_from( TaskPoolOf::::add(bn, ScheduledTask::RemoveFromWaitlist(pid, mid)) .expect("Failed to insert task"); WaitlistOf::::insert(dispatch, bn).expect("Failed to insert to waitlist"); - GearBank::deposit_gas(&src, DEFAULT_GAS).expect("Cannot reserve gas"); + GearBank::deposit_gas(&src, DEFAULT_GAS, false).expect("Cannot reserve gas"); let multiplier = ::GasMultiplier::get(); GasHandlerOf::::create(src, multiplier, mid, DEFAULT_GAS) diff --git a/pallets/gear-voucher/src/lib.rs b/pallets/gear-voucher/src/lib.rs index 81c71ea41ac..c3257765888 100644 --- a/pallets/gear-voucher/src/lib.rs +++ b/pallets/gear-voucher/src/lib.rs @@ -216,12 +216,14 @@ pub enum PrepaidCall { payload: Vec, gas_limit: u64, value: Balance, + keep_alive: bool, }, SendReply { reply_to_id: MessageId, payload: Vec, gas_limit: u64, value: Balance, + keep_alive: bool, }, } diff --git a/pallets/gear/src/benchmarking/mod.rs b/pallets/gear/src/benchmarking/mod.rs index 5c1283fd9dd..1fedb330dbb 100644 --- a/pallets/gear/src/benchmarking/mod.rs +++ b/pallets/gear/src/benchmarking/mod.rs @@ -475,8 +475,8 @@ benchmarks! { let value = 10000u32.into(); let multiplier = ::GasMultiplier::get(); GasHandlerOf::::create(program_id.clone(), multiplier, original_message_id, gas_limit).expect("Failed to create gas handler"); - GearBank::::deposit_gas(&program_id, gas_limit).unwrap_or_else(|e| unreachable!("Gear bank error: {e:?}")); - GearBank::::deposit_value(&program_id, value).unwrap_or_else(|e| unreachable!("Gear bank error: {e:?}")); + GearBank::::deposit_gas(&program_id, gas_limit, true).unwrap_or_else(|e| unreachable!("Gear bank error: {e:?}")); + GearBank::::deposit_value(&program_id, value, true).unwrap_or_else(|e| unreachable!("Gear bank error: {e:?}")); MailboxOf::::insert(gear_core::message::StoredMessage::new( original_message_id, ProgramId::from_origin(program_id.into_origin()), @@ -502,7 +502,7 @@ benchmarks! { let code = benchmarking::generate_wasm2(16.into()).unwrap(); let salt = vec![]; let program_id = ProgramId::generate_from_user(CodeId::generate(&code), &salt); - Gear::::upload_program(RawOrigin::Signed(caller.clone()).into(), code, salt, b"init_payload".to_vec(), 10_000_000_000, 0u32.into()).expect("submit program failed"); + Gear::::upload_program(RawOrigin::Signed(caller.clone()).into(), code, salt, b"init_payload".to_vec(), 10_000_000_000, 0u32.into(), false).expect("submit program failed"); let block_count = 1_000u32.into(); @@ -522,7 +522,7 @@ benchmarks! { let code = benchmarking::generate_wasm2(16.into()).unwrap(); let salt = vec![]; let program_id = ProgramId::generate_from_user(CodeId::generate(&code), &salt); - Gear::::upload_program(RawOrigin::Signed(caller.clone()).into(), code, salt, b"init_payload".to_vec(), 10_000_000_000, 0u32.into()).expect("submit program failed"); + Gear::::upload_program(RawOrigin::Signed(caller.clone()).into(), code, salt, b"init_payload".to_vec(), 10_000_000_000, 0u32.into(), false).expect("submit program failed"); init_block::(None); @@ -547,7 +547,7 @@ benchmarks! { let code = benchmarking::generate_wasm2(16.into()).unwrap(); let salt = vec![]; let program_id = ProgramId::generate_from_user(CodeId::generate(&code), &salt); - Gear::::upload_program(RawOrigin::Signed(caller.clone()).into(), code, salt, b"init_payload".to_vec(), 10_000_000_000, 0u32.into()).expect("submit program failed"); + Gear::::upload_program(RawOrigin::Signed(caller.clone()).into(), code, salt, b"init_payload".to_vec(), 10_000_000_000, 0u32.into(), false,).expect("submit program failed"); init_block::(None); @@ -583,7 +583,7 @@ benchmarks! { let code = benchmarking::generate_wasm2(0.into()).unwrap(); let salt = vec![]; let program_id = ProgramId::generate_from_user(CodeId::generate(&code), &salt); - Gear::::upload_program(RawOrigin::Signed(caller.clone()).into(), code, salt, b"init_payload".to_vec(), 10_000_000_000, 0u32.into()).expect("submit program failed"); + Gear::::upload_program(RawOrigin::Signed(caller.clone()).into(), code, salt, b"init_payload".to_vec(), 10_000_000_000, 0u32.into(), false,).expect("submit program failed"); init_block::(None); @@ -657,7 +657,7 @@ benchmarks! { let origin = RawOrigin::Signed(caller); init_block::(None); - }: _(origin, code_id, salt, vec![], 100_000_000_u64, value) + }: _(origin, code_id, salt, vec![], 100_000_000_u64, value, false) verify { assert!(::CodeStorage::exists(code_id)); } @@ -685,7 +685,7 @@ benchmarks! { let origin = RawOrigin::Signed(caller); init_block::(None); - }: _(origin, code, salt, vec![], 100_000_000_u64, value) + }: _(origin, code, salt, vec![], 100_000_000_u64, value, false) verify { assert!(matches!(QueueOf::::dequeue(), Ok(Some(_)))); } @@ -701,7 +701,7 @@ benchmarks! { let payload = vec![0_u8; p as usize]; init_block::(None); - }: _(RawOrigin::Signed(caller), program_id, payload, 100_000_000_u64, minimum_balance) + }: _(RawOrigin::Signed(caller), program_id, payload, 100_000_000_u64, minimum_balance, false) verify { assert!(matches!(QueueOf::::dequeue(), Ok(Some(_)))); } @@ -720,8 +720,8 @@ benchmarks! { let value = (p % 2).into(); let multiplier = ::GasMultiplier::get(); GasHandlerOf::::create(program_id.clone(), multiplier, original_message_id, gas_limit).expect("Failed to create gas handler"); - GearBank::::deposit_gas(&program_id, gas_limit).unwrap_or_else(|e| unreachable!("Gear bank error: {e:?}")); - GearBank::::deposit_value(&program_id, value).unwrap_or_else(|e| unreachable!("Gear bank error: {e:?}")); + GearBank::::deposit_gas(&program_id, gas_limit, true).unwrap_or_else(|e| unreachable!("Gear bank error: {e:?}")); + GearBank::::deposit_value(&program_id, value, true).unwrap_or_else(|e| unreachable!("Gear bank error: {e:?}")); MailboxOf::::insert(gear_core::message::StoredMessage::new( original_message_id, ProgramId::from_origin(program_id.into_origin()), @@ -733,7 +733,7 @@ benchmarks! { let payload = vec![0_u8; p as usize]; init_block::(None); - }: _(RawOrigin::Signed(caller.clone()), original_message_id, payload, 100_000_000_u64, minimum_balance) + }: _(RawOrigin::Signed(caller.clone()), original_message_id, payload, 100_000_000_u64, minimum_balance, false) verify { assert!(matches!(QueueOf::::dequeue(), Ok(Some(_)))); assert!(MailboxOf::::is_empty(&caller)) @@ -747,7 +747,7 @@ benchmarks! { let code = benchmarking::generate_wasm(q.into()).unwrap(); let salt = vec![255u8; 32]; }: { - let _ = Gear::::upload_program(RawOrigin::Signed(caller).into(), code, salt, vec![], 100_000_000u64, 0u32.into()); + let _ = Gear::::upload_program(RawOrigin::Signed(caller).into(), code, salt, vec![], 100_000_000u64, 0u32.into(), false,); process_queue::(); } verify { @@ -762,7 +762,7 @@ benchmarks! { let code = benchmarking::generate_wasm2(q.into()).unwrap(); let salt = vec![255u8; 32]; }: { - let _ = Gear::::upload_program(RawOrigin::Signed(caller).into(), code, salt, vec![], 100_000_000u64, 0u32.into()); + let _ = Gear::::upload_program(RawOrigin::Signed(caller).into(), code, salt, vec![], 100_000_000u64, 0u32.into(), false,); process_queue::(); } verify { diff --git a/pallets/gear/src/benchmarking/tasks.rs b/pallets/gear/src/benchmarking/tasks.rs index 1ec61aac52d..88d6b2fb1cb 100644 --- a/pallets/gear/src/benchmarking/tasks.rs +++ b/pallets/gear/src/benchmarking/tasks.rs @@ -37,6 +37,7 @@ where delay.encode(), 100_000_000_000, 0u32.into(), + false, ) .expect("submit program failed"); @@ -63,6 +64,7 @@ where b"init_payload".to_vec(), 10_000_000_000, 0u32.into(), + false, ) .expect("submit program failed"); @@ -113,6 +115,7 @@ where b"init_payload".to_vec(), 10_000_000_000, 0u32.into(), + false, ) .expect("submit program failed"); @@ -153,6 +156,7 @@ where InitAction::Normal(vec![(50_000, 100)]).encode(), 10_000_000_000, 0u32.into(), + false, ) .expect("submit program failed"); @@ -219,6 +223,7 @@ where Scheme::empty().encode(), 10_000_000_000, 0u32.into(), + false, ) .expect("submit program failed"); @@ -236,6 +241,7 @@ where calls.encode(), 10_000_000_000, 0u32.into(), + false, ) .expect("failed to send message"); @@ -273,6 +279,7 @@ where vec![], 10_000_000_000, 0u32.into(), + false, ) .expect("submit program failed"); @@ -283,6 +290,7 @@ where Command::Wait(WaitSubcommand::WaitFor(delay)).encode(), 10_000_000_000, 0u32.into(), + false, ) .expect("failed to send message"); @@ -321,6 +329,7 @@ where vec![], 10_000_000_000, 0u32.into(), + false, ) .expect("submit program failed"); @@ -330,6 +339,7 @@ where Command::Wait(WaitSubcommand::Wait).encode(), 10_000_000_000, 0u32.into(), + false, ) .expect("failed to send message"); diff --git a/pallets/gear/src/benchmarking/tests/syscalls_integrity.rs b/pallets/gear/src/benchmarking/tests/syscalls_integrity.rs index 8df659cde24..41e058da3ea 100644 --- a/pallets/gear/src/benchmarking/tests/syscalls_integrity.rs +++ b/pallets/gear/src/benchmarking/tests/syscalls_integrity.rs @@ -65,6 +65,7 @@ where Default::default(), BlockGasLimitOf::::get(), Zero::zero(), + false, ) .expect("Failed to upload read_big_state binary"); @@ -96,6 +97,7 @@ where strings.encode(), BlockGasLimitOf::::get(), Zero::zero(), + false, ) .expect("Failed to send read_big_state append command"); @@ -401,6 +403,7 @@ where b"".to_vec(), 50_000_000_000, 0u128.unique_saturated_into(), + false, ) .expect("failed to upload test program"); @@ -417,6 +420,7 @@ where b"".to_vec(), 50_000_000_000, 0u128.unique_saturated_into(), + false, ) .expect("failed to send message to test program"); utils::run_to_next_block::(None); @@ -775,6 +779,7 @@ where vec![Kind::ReplyDetails([255u8; 32], reply_code)].encode(), 50_000_000_000, 0u128.unique_saturated_into(), + false, ) .expect("triggering message send to mailbox failed"); @@ -813,6 +818,7 @@ where vec![Kind::SignalDetails].encode(), 50_000_000_000, 0u128.unique_saturated_into(), + false, ) .expect("triggering message send to mailbox failed"); @@ -985,6 +991,7 @@ where vec![], 50_000_000_000, 0u128.unique_saturated_into(), + false, ) .expect("child program deploy failed"); @@ -1001,6 +1008,7 @@ where child_code_hash.encode(), 50_000_000_000, 0u128.unique_saturated_into(), + false, ) .expect("sys-call check program deploy failed"); @@ -1017,6 +1025,7 @@ where mp.payload, 50_000_000_000, mp.value.unique_saturated_into(), + false, ) .expect("failed send message"); } @@ -1028,6 +1037,7 @@ where rp.payload, 50_000_000_000, rp.value.unique_saturated_into(), + false, ) .expect("failed send reply"); } diff --git a/pallets/gear/src/internal.rs b/pallets/gear/src/internal.rs index 5103771e38e..5fbb0831d39 100644 --- a/pallets/gear/src/internal.rs +++ b/pallets/gear/src/internal.rs @@ -652,7 +652,7 @@ where if !dispatch.value().is_zero() { // Reserving value from source for future transfer or unreserve. - GearBank::::deposit_value(&from, value) + GearBank::::deposit_value(&from, value, false) .unwrap_or_else(|e| unreachable!("Gear bank error: {e:?}")); } @@ -759,7 +759,7 @@ where .unwrap_or_else(|e| unreachable!("GasTree corrupted! {:?}", e)); // Reserving value from source for future transfer or unreserve. - GearBank::::deposit_value(&from, value) + GearBank::::deposit_value(&from, value, false) .unwrap_or_else(|e| unreachable!("Gear bank error: {e:?}")); // Lock the entire `gas_limit` since the only purpose of it is payment for storage. diff --git a/pallets/gear/src/lib.rs b/pallets/gear/src/lib.rs index 76024e6d488..15321032968 100644 --- a/pallets/gear/src/lib.rs +++ b/pallets/gear/src/lib.rs @@ -593,8 +593,8 @@ pub mod pallet { // First we reserve enough funds on the account to pay for `gas_limit` // and to transfer declared value. - GearBank::::deposit_gas(&who, gas_limit)?; - GearBank::::deposit_value(&who, value)?; + GearBank::::deposit_gas(&who, gas_limit, false)?; + GearBank::::deposit_value(&who, value, false)?; let origin = who.clone().into_origin(); @@ -1173,6 +1173,7 @@ pub mod pallet { init_payload: Vec, gas_limit: u64, value: BalanceOf, + keep_alive: bool, ) -> Result { let packet = InitPacket::new_from_user( code_id, @@ -1194,8 +1195,8 @@ pub mod pallet { // First we reserve enough funds on the account to pay for `gas_limit` // and to transfer declared value. - GearBank::::deposit_gas(&who, gas_limit)?; - GearBank::::deposit_value(&who, value)?; + GearBank::::deposit_gas(&who, gas_limit, keep_alive)?; + GearBank::::deposit_value(&who, value, keep_alive)?; Ok(packet) } @@ -1360,6 +1361,7 @@ pub mod pallet { init_payload: Vec, gas_limit: u64, value: BalanceOf, + keep_alive: bool, ) -> DispatchResultWithPostInfo { let who = ensure_signed(origin)?; @@ -1374,6 +1376,7 @@ pub mod pallet { init_payload, gas_limit, value, + keep_alive, )?; if !T::CodeStorage::exists(code_and_id.code_id()) { @@ -1421,6 +1424,7 @@ pub mod pallet { init_payload: Vec, gas_limit: u64, value: BalanceOf, + keep_alive: bool, ) -> DispatchResultWithPostInfo { let who = ensure_signed(origin)?; @@ -1431,8 +1435,15 @@ pub mod pallet { Self::check_gas_limit_and_value(gas_limit, value)?; // Construct packet. - let packet = - Self::init_packet(who.clone(), code_id, salt, init_payload, gas_limit, value)?; + let packet = Self::init_packet( + who.clone(), + code_id, + salt, + init_payload, + gas_limit, + value, + keep_alive, + )?; Self::do_create_program(who, packet, CodeInfo::from_code(&code_id, &code))?; Ok(().into()) @@ -1463,11 +1474,20 @@ pub mod pallet { payload: Vec, gas_limit: u64, value: BalanceOf, + keep_alive: bool, ) -> DispatchResultWithPostInfo { // Validating origin. let who = ensure_signed(origin)?; - Self::send_message_impl(who, destination, payload, gas_limit, value, false) + Self::send_message_impl( + who, + destination, + payload, + gas_limit, + value, + false, + keep_alive, + ) } /// Send reply on message in `Mailbox`. @@ -1491,11 +1511,20 @@ pub mod pallet { payload: Vec, gas_limit: u64, value: BalanceOf, + keep_alive: bool, ) -> DispatchResultWithPostInfo { // Validating origin. let who = ensure_signed(origin)?; - Self::send_reply_impl(who, reply_to_id, payload, gas_limit, value, false) + Self::send_reply_impl( + who, + reply_to_id, + payload, + gas_limit, + value, + false, + keep_alive, + ) } /// Claim value from message in `Mailbox`. @@ -1794,6 +1823,7 @@ pub mod pallet { gas_limit: u64, value: BalanceOf, prepaid: bool, + keep_alive: bool, ) -> DispatchResultWithPostInfo { let payload = payload .try_into() @@ -1822,14 +1852,14 @@ pub mod pallet { // in the queue. // Note: reservation is always made against the user's account regardless whether // a voucher exists. The latter can only be used to pay for gas or transaction fee. - GearBank::::deposit_value(&who, value)?; + GearBank::::deposit_value(&who, value, keep_alive)?; let external_node = if prepaid { // If voucher is used, we attempt to reserve funds on the respective account. // If no such voucher exists, the call is invalidated. let voucher_id = VoucherOf::::voucher_id(who.clone(), destination); - GearBank::::deposit_gas(&voucher_id, gas_limit).map_err(|e| { + GearBank::::deposit_gas(&voucher_id, gas_limit, keep_alive).map_err(|e| { log::debug!( "Failed to redeem voucher for user {who:?} and program {destination:?}: {e:?}" ); @@ -1839,7 +1869,7 @@ pub mod pallet { voucher_id } else { // If voucher is not used, we reserve gas limit on the user's account. - GearBank::::deposit_gas(&who, gas_limit)?; + GearBank::::deposit_gas(&who, gas_limit, keep_alive)?; who.clone() }; @@ -1889,6 +1919,7 @@ pub mod pallet { gas_limit: u64, value: BalanceOf, prepaid: bool, + keep_alive: bool, ) -> DispatchResultWithPostInfo { let payload = payload .try_into() @@ -1917,14 +1948,14 @@ pub mod pallet { gas_limit }; - GearBank::::deposit_value(&origin, value)?; + GearBank::::deposit_value(&origin, value, keep_alive)?; let external_node = if prepaid { // If voucher is used, we attempt to reserve funds on the respective account. // If no such voucher exists, the call is invalidated. let voucher_id = VoucherOf::::voucher_id(origin.clone(), destination); - GearBank::::deposit_gas(&voucher_id, gas_limit).map_err(|e| { + GearBank::::deposit_gas(&voucher_id, gas_limit, keep_alive).map_err(|e| { log::debug!( "Failed to redeem voucher for user {origin:?} and program {destination:?}: {e:?}" ); @@ -1934,7 +1965,7 @@ pub mod pallet { voucher_id } else { // If voucher is not used, we reserve gas limit on the user's account. - GearBank::::deposit_gas(&origin, gas_limit)?; + GearBank::::deposit_gas(&origin, gas_limit, keep_alive)?; origin.clone() }; @@ -2002,6 +2033,7 @@ pub mod pallet { payload, gas_limit, value, + keep_alive, } => Self::send_message_impl( account_id, destination, @@ -2009,15 +2041,23 @@ pub mod pallet { gas_limit, value, true, + keep_alive, ), PrepaidCall::SendReply { reply_to_id, payload, gas_limit, value, - } => { - Self::send_reply_impl(account_id, reply_to_id, payload, gas_limit, value, true) - } + keep_alive, + } => Self::send_reply_impl( + account_id, + reply_to_id, + payload, + gas_limit, + value, + true, + keep_alive, + ), } } } diff --git a/pallets/gear/src/manager/journal.rs b/pallets/gear/src/manager/journal.rs index f5c4deed77d..dbd89248c1d 100644 --- a/pallets/gear/src/manager/journal.rs +++ b/pallets/gear/src/manager/journal.rs @@ -226,6 +226,7 @@ where GearBank::::deposit_value( &::from_origin(dispatch.source().into_origin()), dispatch.value().unique_saturated_into(), + false, ) .unwrap_or_else(|e| unreachable!("Gear bank error: {e:?}")); } diff --git a/pallets/gear/src/runtime_api.rs b/pallets/gear/src/runtime_api.rs index 41cbd44383a..689cfe1b3f7 100644 --- a/pallets/gear/src/runtime_api.rs +++ b/pallets/gear/src/runtime_api.rs @@ -71,26 +71,37 @@ where match kind { HandleKind::Init(code) => { let salt = b"calculate_gas_salt".to_vec(); - Self::upload_program(who.into(), code, salt, payload, initial_gas, value).map_err( - |e| format!("Internal error: upload_program failed with '{e:?}'").into_bytes(), - )?; + Self::upload_program(who.into(), code, salt, payload, initial_gas, value, false) + .map_err(|e| { + format!("Internal error: upload_program failed with '{e:?}'").into_bytes() + })?; } HandleKind::InitByHash(code_id) => { let salt = b"calculate_gas_salt".to_vec(); - Self::create_program(who.into(), code_id, salt, payload, initial_gas, value) - .map_err(|e| { - format!("Internal error: create_program failed with '{e:?}'").into_bytes() - })?; + Self::create_program( + who.into(), + code_id, + salt, + payload, + initial_gas, + value, + false, + ) + .map_err(|e| { + format!("Internal error: create_program failed with '{e:?}'").into_bytes() + })?; } HandleKind::Handle(destination) => { - Self::send_message(who.into(), destination, payload, initial_gas, value).map_err( - |e| format!("Internal error: send_message failed with '{e:?}'").into_bytes(), - )?; + Self::send_message(who.into(), destination, payload, initial_gas, value, false) + .map_err(|e| { + format!("Internal error: send_message failed with '{e:?}'").into_bytes() + })?; } HandleKind::Reply(reply_to_id, _status_code) => { - Self::send_reply(who.into(), reply_to_id, payload, initial_gas, value).map_err( - |e| format!("Internal error: send_reply failed with '{e:?}'").into_bytes(), - )?; + Self::send_reply(who.into(), reply_to_id, payload, initial_gas, value, false) + .map_err(|e| { + format!("Internal error: send_reply failed with '{e:?}'").into_bytes() + })?; } HandleKind::Signal(_signal_from, _status_code) => { return Err(b"Gas calculation for `handle_signal` is not supported".to_vec()); diff --git a/pallets/gear/src/tests.rs b/pallets/gear/src/tests.rs index a9a9b4fec66..d9080df97f8 100644 --- a/pallets/gear/src/tests.rs +++ b/pallets/gear/src/tests.rs @@ -96,6 +96,7 @@ fn default_wait_lock_timeout() { EMPTY_PAYLOAD.to_vec(), 10_000_000_000u64, 0, + false, )); let pid = get_last_program_id(); @@ -110,6 +111,7 @@ fn default_wait_lock_timeout() { Kind::Send.encode(), BlockGasLimitOf::::get(), 0, + false, )); let mid = utils::get_last_message_id(); @@ -180,6 +182,7 @@ fn value_counter_set_correctly_for_interruptions() { Default::default(), BlockGasLimitOf::::get(), VALUE, + false, )); run_to_next_block(None); @@ -211,6 +214,7 @@ fn calculate_gas_returns_not_block_limit() { EMPTY_PAYLOAD.to_vec(), BlockGasLimitOf::::get(), 0, + false, )); let generator_id = get_last_program_id(); @@ -246,6 +250,7 @@ fn read_big_state() { EMPTY_PAYLOAD.to_vec(), BlockGasLimitOf::::get(), 0, + false, )); let pid = get_last_program_id(); @@ -277,6 +282,7 @@ fn read_big_state() { strings.encode(), BlockGasLimitOf::::get(), 0, + false, )); let mid = get_last_message_id(); @@ -315,6 +321,7 @@ fn auto_reply_sent() { EMPTY_PAYLOAD.to_vec(), BlockGasLimitOf::::get(), 10_000, + false, )); run_to_next_block(None); @@ -344,6 +351,7 @@ fn auto_reply_sent() { EMPTY_PAYLOAD.to_vec(), BlockGasLimitOf::::get(), 0, + false, )); System::reset_events(); @@ -372,6 +380,7 @@ fn auto_reply_from_user_no_mailbox() { calls.encode(), BlockGasLimitOf::::get(), 0, + false, )); run_to_next_block(None); @@ -396,6 +405,7 @@ fn auto_reply_from_user_no_mailbox() { calls.encode(), BlockGasLimitOf::::get(), 0, + false, )); run_to_next_block(None); @@ -423,6 +433,7 @@ fn auto_reply_out_of_rent_waitlist() { EMPTY_PAYLOAD.to_vec(), BlockGasLimitOf::::get(), 0, + false, )); let waiter_id = get_last_program_id(); @@ -436,6 +447,7 @@ fn auto_reply_out_of_rent_waitlist() { .encode(), BlockGasLimitOf::::get(), 0, + false, )); let proxy_id = get_last_program_id(); @@ -471,6 +483,7 @@ fn auto_reply_out_of_rent_waitlist() { Command::Wait(WaitSubcommand::Wait).encode(), BlockGasLimitOf::::get(), 0, + false, )); run_to_next_block(None); @@ -504,6 +517,7 @@ fn auto_reply_out_of_rent_mailbox() { EMPTY_PAYLOAD.to_vec(), BlockGasLimitOf::::get(), value, + false, )); let program_id = utils::get_last_program_id(); @@ -519,6 +533,7 @@ fn auto_reply_out_of_rent_mailbox() { EMPTY_PAYLOAD.to_vec(), BlockGasLimitOf::::get(), 0, + false, )); let message_id = utils::get_last_message_id(); @@ -582,6 +597,7 @@ fn reply_deposit_to_program() { 10_000_000_000u64.encode(), BlockGasLimitOf::::get(), 0, + false, )); run_to_next_block(None); @@ -613,6 +629,7 @@ fn reply_deposit_to_user_auto_reply() { 10_000_000_000u64.encode(), BlockGasLimitOf::::get(), 0, + false, )); run_to_next_block(None); @@ -644,6 +661,7 @@ fn reply_deposit_panic_in_handle_reply() { 1u64.encode(), BlockGasLimitOf::::get(), 0, + false, )); run_to_next_block(None); @@ -677,6 +695,7 @@ fn reply_deposit_to_user_reply() { reply_deposit.encode(), BlockGasLimitOf::::get(), 0, + false, )); run_to_next_block(None); @@ -708,6 +727,7 @@ fn reply_deposit_to_user_reply() { vec![], BlockGasLimitOf::::get(), value, + false, )); assert_eq!(get_last_message_id(), reply_id); @@ -752,6 +772,7 @@ fn reply_deposit_to_user_claim() { reply_deposit.encode(), BlockGasLimitOf::::get(), 0, + false, )); run_to_next_block(None); @@ -818,6 +839,7 @@ fn reply_deposit_to_user_out_of_rent() { reply_deposit.encode(), BlockGasLimitOf::::get(), 0, + false, )); run_to_next_block(None); @@ -880,6 +902,7 @@ fn reply_deposit_gstd_async() { (USER_2.into_origin().as_fixed_bytes(), 10_000_000_000u64).encode(), 30_000_000_000, 0, + false, )); let program_id = get_last_program_id(); @@ -891,6 +914,7 @@ fn reply_deposit_gstd_async() { hello.to_vec(), 30_000_000_000, 0, + false, )); let handle_id = get_last_message_id(); @@ -908,6 +932,7 @@ fn reply_deposit_gstd_async() { hello_reply.to_vec(), 0, 0, + false, )); run_to_next_block(None); @@ -939,6 +964,7 @@ fn pseudo_duplicate_wake() { calls.encode(), BlockGasLimitOf::::get(), 0, + false, )); let msg_id = get_last_message_id(); run_to_next_block(None); @@ -1004,6 +1030,7 @@ fn gasfull_after_gasless() { EMPTY_PAYLOAD.to_vec(), min_limit - 1, 0, + false, )); // Make sure nothing panics. @@ -1024,6 +1051,7 @@ fn backend_errors_handled_in_program() { InitMessage::BackendError.encode(), DEFAULT_GAS_LIMIT * 100, 0, + false, )); let mid = utils::get_last_message_id(); @@ -1074,6 +1102,7 @@ fn non_existent_code_id_zero_gas() { EMPTY_PAYLOAD.to_vec(), DEFAULT_GAS_LIMIT * 100, 0, + false, )); run_to_next_block(None); @@ -1141,6 +1170,7 @@ fn waited_with_zero_gas() { EMPTY_PAYLOAD.to_vec(), min_limit, 0, + false, )); let program_id = utils::get_last_program_id(); @@ -1154,6 +1184,7 @@ fn waited_with_zero_gas() { EMPTY_PAYLOAD.to_vec(), DEFAULT_GAS_LIMIT * 100, 0, + false, )); run_to_next_block(None); @@ -1190,6 +1221,7 @@ fn terminated_program_zero_gas() { EMPTY_PAYLOAD.to_vec(), DEFAULT_GAS_LIMIT * 100, 0, + false, )); let program_id = utils::get_last_program_id(); @@ -1200,6 +1232,7 @@ fn terminated_program_zero_gas() { EMPTY_PAYLOAD.to_vec(), 0, 0, + false, )); run_to_next_block(None); @@ -1235,6 +1268,7 @@ fn exited_program_zero_gas() { EMPTY_PAYLOAD.to_vec(), DEFAULT_GAS_LIMIT * 100, 0, + false, )); let program_id = utils::get_last_program_id(); @@ -1245,6 +1279,7 @@ fn exited_program_zero_gas() { EMPTY_PAYLOAD.to_vec(), 0, 0, + false, )); run_to_next_block(None); @@ -1275,6 +1310,7 @@ fn delayed_user_replacement() { gas_limit_to_forward.encode(), // to be forwarded as gas limit gas_limit_to_forward + DEFAULT_GAS_LIMIT * 100, 100_000_000, // before fix to be forwarded as value + false, )); let message_id = utils::get_last_message_id(); @@ -1289,6 +1325,7 @@ fn delayed_user_replacement() { EMPTY_PAYLOAD.to_vec(), DEFAULT_GAS_LIMIT * 100, 0, + false, )); assert_eq!(future_program_address, utils::get_last_program_id()); @@ -1365,6 +1402,7 @@ fn delayed_send_user_message_payment() { 0u64.encode(), DEFAULT_GAS_LIMIT * 100, 0, + false, )); let proxy_msg_id = get_last_message_id(); @@ -1452,6 +1490,7 @@ fn delayed_send_user_message_with_reservation() { .encode(), DEFAULT_GAS_LIMIT * 100, 0, + false, )); let proxy = utils::get_last_program_id(); @@ -1465,6 +1504,7 @@ fn delayed_send_user_message_with_reservation() { 0u64.encode(), DEFAULT_GAS_LIMIT * 100, 0, + false, )); let proxy_msg_id = get_last_message_id(); @@ -1558,6 +1598,7 @@ fn delayed_send_program_message_payment() { EMPTY_PAYLOAD.to_vec(), DEFAULT_GAS_LIMIT * 100, 0, + false, )); let program_address = utils::get_last_program_id(); @@ -1573,6 +1614,7 @@ fn delayed_send_program_message_payment() { 0u64.encode(), DEFAULT_GAS_LIMIT * 100, 0, + false, )); let proxy_msg_id = utils::get_last_message_id(); @@ -1643,6 +1685,7 @@ fn delayed_send_program_message_with_reservation() { EMPTY_PAYLOAD.to_vec(), DEFAULT_GAS_LIMIT * 100, 0, + false, )); let program_address = utils::get_last_program_id(); @@ -1661,6 +1704,7 @@ fn delayed_send_program_message_with_reservation() { .encode(), DEFAULT_GAS_LIMIT * 100, 0, + false, )); let proxy = utils::get_last_program_id(); @@ -1675,6 +1719,7 @@ fn delayed_send_program_message_with_reservation() { 0u64.encode(), DEFAULT_GAS_LIMIT * 100, 0, + false, )); let proxy_msg_id = utils::get_last_message_id(); @@ -1753,6 +1798,7 @@ fn delayed_send_program_message_with_low_reservation() { EMPTY_PAYLOAD.to_vec(), DEFAULT_GAS_LIMIT * 100, 0, + false, )); let program_address = utils::get_last_program_id(); @@ -1771,6 +1817,7 @@ fn delayed_send_program_message_with_low_reservation() { .encode(), DEFAULT_GAS_LIMIT * 100, 0, + false, )); let proxy = utils::get_last_program_id(); @@ -1785,6 +1832,7 @@ fn delayed_send_program_message_with_low_reservation() { 0u64.encode(), DEFAULT_GAS_LIMIT * 100, 0, + false, )); let proxy_msg_id = utils::get_last_message_id(); @@ -1889,6 +1937,7 @@ fn delayed_program_creation_no_code() { EMPTY_PAYLOAD.to_vec(), DEFAULT_GAS_LIMIT * 100, 0, + false, )); let creator = utils::get_last_program_id(); @@ -1981,6 +2030,7 @@ fn unstoppable_block_execution_works() { EMPTY_PAYLOAD.to_vec(), gas_for_each_execution, 0, + false, )); } @@ -2015,6 +2065,7 @@ fn read_state_works() { ::default().encode(), DEFAULT_GAS_LIMIT * 100, 10_000, + false, )); let program_id = utils::get_last_program_id(); @@ -2048,6 +2099,7 @@ fn read_state_using_wasm_works() { ::default().encode(), DEFAULT_GAS_LIMIT * 100, 10_000, + false, )); let program_id = utils::get_last_program_id(); @@ -2146,6 +2198,7 @@ fn read_state_bn_and_timestamp_works() { ::default().encode(), DEFAULT_GAS_LIMIT * 100, 10_000, + false, )); let program_id = utils::get_last_program_id(); @@ -2177,6 +2230,7 @@ fn wasm_metadata_generation_works() { ::default().encode(), DEFAULT_GAS_LIMIT * 100, 10_000, + false, )); let program_id = utils::get_last_program_id(); @@ -2250,6 +2304,7 @@ fn read_state_using_wasm_errors() { ::default().encode(), DEFAULT_GAS_LIMIT * 100, 10_000, + false, )); let program_id = utils::get_last_program_id(); @@ -2532,6 +2587,7 @@ fn mailbox_sending_instant_transfer() { payload.request(USER_2.into_origin()).encode(), gas_info.burned + gas_limit.unwrap_or_default(), 0, + false, )); utils::assert_balance( @@ -2565,7 +2621,8 @@ fn upload_program_expected_failure() { DEFAULT_SALT.to_vec(), EMPTY_PAYLOAD.to_vec(), DEFAULT_GAS_LIMIT, - balance + 1 + balance + 1, + false, ), pallet_gear_bank::Error::::InsufficientBalance ); @@ -2584,7 +2641,8 @@ fn upload_program_expected_failure() { DEFAULT_SALT.to_vec(), EMPTY_PAYLOAD.to_vec(), block_gas_limit + 1, - 0 + 0, + false, ), Error::::GasLimitTooHigh ); @@ -2651,6 +2709,7 @@ fn send_message_works() { EMPTY_PAYLOAD.to_vec(), DEFAULT_GAS_LIMIT, mail_value, + false, )); let message_id = get_last_message_id(); @@ -2730,6 +2789,7 @@ fn mailbox_threshold_works() { (rent - 1).encode(), BlockGasLimitOf::::get(), 0, + false, )); check_result(false); @@ -2740,6 +2800,7 @@ fn mailbox_threshold_works() { (rent).encode(), BlockGasLimitOf::::get(), 0, + false, )); let message_id = check_result(true); @@ -2750,6 +2811,7 @@ fn mailbox_threshold_works() { rent.encode(), BlockGasLimitOf::::get(), 0, + false, )); let message_id = check_result(true); @@ -2760,6 +2822,7 @@ fn mailbox_threshold_works() { (rent - 1).encode(), BlockGasLimitOf::::get(), 0, + false, )); check_result(false); }); @@ -2781,6 +2844,7 @@ fn send_message_uninitialized_program() { EMPTY_PAYLOAD.to_vec(), DEFAULT_GAS_LIMIT, 0, + false, ) .map(|_| get_last_program_id()) .unwrap(); @@ -2842,6 +2906,7 @@ fn send_message_expected_failure() { EMPTY_PAYLOAD.to_vec(), 10, value, + false, )); // And no message will be in mailbox @@ -2863,6 +2928,7 @@ fn send_message_expected_failure() { EMPTY_PAYLOAD.to_vec(), block_gas_limit + 1, 0, + false, ), Error::::GasLimitTooHigh ); @@ -2949,6 +3015,7 @@ fn unused_gas_released_back_works() { EMPTY_PAYLOAD.to_vec(), huge_send_message_gas_limit, 0, + false, )); // Spends for submit program with default gas limit and sending default message with a huge gas limit @@ -3011,6 +3078,7 @@ fn restrict_start_section() { EMPTY_PAYLOAD.to_vec(), 5_000_000, 0, + false, ) .expect_err("Must throw err, because code contains start section"); }); @@ -3217,6 +3285,7 @@ fn memory_access_cases() { EMPTY_PAYLOAD.to_vec(), 50_000_000_000, 0, + false, ) .map(|_| prog_id); let pid = res.expect("submit result is not ok"); @@ -3232,6 +3301,7 @@ fn memory_access_cases() { EMPTY_PAYLOAD.to_vec(), 10_000_000_000, 0, + false, ); assert_ok!(res); @@ -3246,6 +3316,7 @@ fn memory_access_cases() { EMPTY_PAYLOAD.to_vec(), 10_000_000_000, 0, + false, ); assert_ok!(res); @@ -3316,6 +3387,7 @@ fn lazy_pages() { EMPTY_PAYLOAD.to_vec(), 10_000_000_000, 0, + false, ) .map(|_| prog_id); assert_ok!(res); @@ -3331,6 +3403,7 @@ fn lazy_pages() { EMPTY_PAYLOAD.to_vec(), 10_000_000_000, 1000, + false, ); assert_ok!(res); @@ -3440,6 +3513,7 @@ fn initial_pages_cheaper_than_allocated_pages() { EMPTY_PAYLOAD.to_vec(), 100_000_000_000, 0, + false, ); assert_ok!(res); @@ -3585,6 +3659,7 @@ fn block_gas_limit_works() { EMPTY_PAYLOAD.to_vec(), gas1.min_limit - 1, 1000, + false, )); let failed1 = get_last_message_id(); @@ -3594,6 +3669,7 @@ fn block_gas_limit_works() { EMPTY_PAYLOAD.to_vec(), gas1.min_limit, 1000, + false, )); let succeed1 = get_last_message_id(); @@ -3603,6 +3679,7 @@ fn block_gas_limit_works() { EMPTY_PAYLOAD.to_vec(), gas2.min_limit - 1, 1000, + false, )); let failed2 = get_last_message_id(); @@ -3612,6 +3689,7 @@ fn block_gas_limit_works() { EMPTY_PAYLOAD.to_vec(), gas2.min_limit, 1000, + false, )); let succeed2 = get_last_message_id(); @@ -3642,6 +3720,7 @@ fn block_gas_limit_works() { EMPTY_PAYLOAD.to_vec(), gas.min_limit, 1000, + false, )); }; @@ -3980,6 +4059,7 @@ fn send_reply_works() { EMPTY_PAYLOAD.to_vec(), 10_000_000, 1000, // `prog_id` sent message with value of 1000 (see program code) + false, )); let expected_reply_message_id = get_last_message_id(); @@ -4015,6 +4095,7 @@ fn send_reply_failure_to_claim_from_mailbox() { EMPTY_PAYLOAD.to_vec(), DEFAULT_GAS_LIMIT, 0, + false, ), Error::::MessageNotFound ); @@ -4103,6 +4184,7 @@ fn send_reply_value_claiming_works() { EMPTY_PAYLOAD.to_vec(), gas_limit_to_reply, value_to_reply, + false, )); let currently_sent = value_to_reply + gas_price(gas_limit_to_reply); @@ -4229,7 +4311,8 @@ fn uninitialized_program_zero_gas() { vec![], Vec::new(), 50_000_000_000u64, - 0u128 + 0u128, + false, )); let init_message_id = utils::get_last_message_id(); @@ -4250,6 +4333,7 @@ fn uninitialized_program_zero_gas() { vec![], 0, // that triggers unreachable code atm 0, + false, )); run_to_block(3, None); @@ -4271,6 +4355,7 @@ fn distributor_initialize() { EMPTY_PAYLOAD.to_vec(), 10_000_000, 0, + false, )); run_to_block(2, None); @@ -4304,6 +4389,7 @@ fn distributor_distribute() { EMPTY_PAYLOAD.to_vec(), 10_000_000_000, 0, + false, )); run_to_block(2, None); @@ -4314,6 +4400,7 @@ fn distributor_distribute() { Request::Receive(10).encode(), 30_000_000_000, 0, + false, )); run_to_block(3, None); @@ -4411,7 +4498,8 @@ fn test_code_is_not_submitted_twice_after_program_submission() { DEFAULT_SALT.to_vec(), EMPTY_PAYLOAD.to_vec(), DEFAULT_GAS_LIMIT, - 0 + 0, + false, )); // TODO: replace this temporary (`None`) value @@ -4458,7 +4546,8 @@ fn test_code_is_not_reset_within_program_submission() { DEFAULT_SALT.to_vec(), EMPTY_PAYLOAD.to_vec(), DEFAULT_GAS_LIMIT, - 0 + 0, + false, )); let actual_meta = ::CodeStorage::get_metadata(code_id); let actual_code_saved_events = System::events() @@ -4493,7 +4582,8 @@ fn messages_to_uninitialized_program_wait() { vec![], Vec::new(), 50_000_000_000u64, - 0u128 + 0u128, + false, )); let program_id = utils::get_last_program_id(); @@ -4512,6 +4602,7 @@ fn messages_to_uninitialized_program_wait() { vec![], 10_000u64, 0u128, + false, )); run_to_block(3, None); @@ -4537,7 +4628,8 @@ fn uninitialized_program_should_accept_replies() { vec![], Vec::new(), 10_000_000_000u64, - 0u128 + 0u128, + false, )); let program_id = utils::get_last_program_id(); @@ -4560,6 +4652,7 @@ fn uninitialized_program_should_accept_replies() { b"PONG".to_vec(), 10_000_000_000u64, 0, + false, )); run_to_block(3, None); @@ -4582,7 +4675,8 @@ fn defer_program_initialization() { vec![], Vec::new(), 10_000_000_000u64, - 0u128 + 0u128, + false, )); let program_id = utils::get_last_program_id(); @@ -4600,6 +4694,7 @@ fn defer_program_initialization() { b"PONG".to_vec(), 10_000_000_000u64, 0, + false, )); run_to_block(3, None); @@ -4610,6 +4705,7 @@ fn defer_program_initialization() { vec![], 10_000_000_000u64, 0u128, + false, )); run_to_block(4, None); @@ -4638,7 +4734,8 @@ fn wake_messages_after_program_inited() { vec![], Vec::new(), 10_000_000_000u64, - 0u128 + 0u128, + false, )); let program_id = utils::get_last_program_id(); @@ -4655,6 +4752,7 @@ fn wake_messages_after_program_inited() { vec![], 5_000_000_000u64, 0u128, + false, )); } @@ -4671,6 +4769,7 @@ fn wake_messages_after_program_inited() { b"PONG".to_vec(), 20_000_000_000u64, 0, + false, )); run_to_block(20, None); @@ -4704,7 +4803,8 @@ fn test_different_waits_success() { DEFAULT_SALT.to_vec(), EMPTY_PAYLOAD.to_vec(), 100_000_000u64, - 0u128 + 0u128, + false, )); let program_id = get_last_program_id(); @@ -4753,6 +4853,7 @@ fn test_different_waits_success() { payload, gas_info.burned + wl_gas + system_reservation, value, + false, )); let wait_success = get_last_message_id(); @@ -4785,6 +4886,7 @@ fn test_different_waits_success() { payload, gas_info.burned + wl_gas + system_reservation, value, + false, )); let wait_for_success = get_last_message_id(); @@ -4820,6 +4922,7 @@ fn test_different_waits_success() { payload, gas_info.burned + wl_gas + system_reservation, value, + false, )); let wait_up_to_success = get_last_message_id(); @@ -4845,7 +4948,8 @@ fn test_different_waits_fail() { DEFAULT_SALT.to_vec(), EMPTY_PAYLOAD.to_vec(), 100_000_000u64, - 0u128 + 0u128, + false, )); let program_id = get_last_program_id(); @@ -4879,6 +4983,7 @@ fn test_different_waits_fail() { payload, gas_info.burned + wl_gas + system_reservation, value, + false, )); let wait_gas = get_last_message_id(); @@ -4915,6 +5020,7 @@ fn test_different_waits_fail() { payload, gas_info.burned + wl_gas + system_reservation, value, + false, )); let wait_for_gas = get_last_message_id(); @@ -4951,6 +5057,7 @@ fn test_different_waits_fail() { payload, gas_info.burned + wl_gas + system_reservation, value, + false, )); let wait_up_to_gas = get_last_message_id(); @@ -4988,6 +5095,7 @@ fn test_different_waits_fail() { payload, gas_info.burned + wl_gas + system_reservation, value, + false, )); let wait_for_arg = get_last_message_id(); @@ -5025,6 +5133,7 @@ fn test_different_waits_fail() { payload, gas_info.burned + wl_gas + system_reservation, value, + false, )); let wait_up_to_arg = get_last_message_id(); @@ -5054,7 +5163,8 @@ fn wait_after_reply() { DEFAULT_SALT.to_vec(), EMPTY_PAYLOAD.to_vec(), 100_000_000u64, - 0u128 + 0u128, + false, )); let program_id = get_last_program_id(); @@ -5068,6 +5178,7 @@ fn wait_after_reply() { Command::ReplyAndWait(subcommand).encode(), BlockGasLimitOf::::get(), 0, + false, )); let message_id = utils::get_last_message_id(); @@ -5103,7 +5214,8 @@ fn test_requeue_after_wait_for_timeout() { DEFAULT_SALT.to_vec(), EMPTY_PAYLOAD.to_vec(), 100_000_000u64, - 0u128 + 0u128, + false, )); let program_id = get_last_program_id(); @@ -5118,6 +5230,7 @@ fn test_requeue_after_wait_for_timeout() { payload, 30_000_000_000, 0, + false, )); // Fast forward blocks. @@ -5170,7 +5283,8 @@ fn test_sending_waits() { DEFAULT_SALT.to_vec(), EMPTY_PAYLOAD.to_vec(), 20_000_000_000u64, - 0u128 + 0u128, + false, )); let program_id = get_last_program_id(); @@ -5189,6 +5303,7 @@ fn test_sending_waits() { payload, 25_000_000_000, 0, + false, )); let wait_for = get_last_message_id(); @@ -5207,6 +5322,7 @@ fn test_sending_waits() { payload, 25_000_000_000, 0, + false, )); let wait_no_more = get_last_message_id(); @@ -5225,6 +5341,7 @@ fn test_sending_waits() { payload, 30_000_000_000, 0, + false, )); let wait_wait = get_last_message_id(); @@ -5243,6 +5360,7 @@ fn test_sending_waits() { vec![], 10_000_000_000, 0, + false, )); run_to_next_block(None); @@ -5267,7 +5385,8 @@ fn test_wait_timeout() { DEFAULT_SALT.to_vec(), EMPTY_PAYLOAD.to_vec(), 10_000_000u64, - 0u128 + 0u128, + false, )); let program_id = get_last_program_id(); @@ -5284,6 +5403,7 @@ fn test_wait_timeout() { payload, 30_000_000_000, 0, + false, )); run_to_next_block(None); @@ -5297,6 +5417,7 @@ fn test_wait_timeout() { Command::Wake.encode(), 10_000_000, 0, + false, )); run_to_next_block(None); @@ -5323,7 +5444,8 @@ fn test_join_wait_timeout() { DEFAULT_SALT.to_vec(), EMPTY_PAYLOAD.to_vec(), 10_000_000u64, - 0u128 + 0u128, + false, )); let program_id = get_last_program_id(); @@ -5340,6 +5462,7 @@ fn test_join_wait_timeout() { payload, 30_000_000_000, 0, + false, )); run_to_next_block(None); @@ -5381,7 +5504,8 @@ fn test_select_wait_timeout() { DEFAULT_SALT.to_vec(), EMPTY_PAYLOAD.to_vec(), 10_000_000u64, - 0u128 + 0u128, + false, )); let program_id = get_last_program_id(); @@ -5398,6 +5522,7 @@ fn test_select_wait_timeout() { payload, 30_000_000_000, 0, + false, )); run_to_next_block(None); @@ -5428,7 +5553,8 @@ fn test_wait_lost() { DEFAULT_SALT.to_vec(), EMPTY_PAYLOAD.to_vec(), 10_000_000u64, - 0u128 + 0u128, + false, )); let program_id = get_last_program_id(); @@ -5443,6 +5569,7 @@ fn test_wait_lost() { payload, 30_000_000_000, 0, + false, )); run_to_next_block(None); @@ -5455,6 +5582,7 @@ fn test_wait_lost() { b"ping".to_vec(), 100_000_000, 0, + false, )); true @@ -5511,6 +5639,7 @@ fn test_message_processing_for_non_existing_destination() { EMPTY_PAYLOAD.to_vec(), 10_000, 1_000, + false, )); let skipped_message_id = get_last_message_id(); @@ -5551,6 +5680,7 @@ fn exit_locking_funds() { calls.encode(), 10_000_000_000, value, + false, )); let message_1 = utils::get_last_message_id(); @@ -5561,6 +5691,7 @@ fn exit_locking_funds() { calls.encode(), 10_000_000_000, 0, + false, )); let message_2 = utils::get_last_message_id(); @@ -5660,7 +5791,8 @@ fn terminated_locking_funds() { DEFAULT_SALT.to_vec(), USER_3.into_origin().encode(), gas_spent_init + gas_for_second_init_execution, - 5_000u128 + 5_000u128, + false )); let program_id = get_last_program_id(); @@ -5703,6 +5835,7 @@ fn terminated_locking_funds() { EMPTY_PAYLOAD.to_vec(), gas_spent_reply, 0, + false, )); let reply_id = get_last_message_id(); @@ -5783,7 +5916,8 @@ fn pause_terminated_exited_program() { DEFAULT_SALT.to_vec(), Vec::new(), 2_000_000_000, - 0u128 + 0u128, + false, ), Error::::ProgramAlreadyExists, ); @@ -5846,7 +5980,8 @@ fn test_create_program_works() { // // Calculate the gas spent after #1242. 10_000_000_000u64, - 0u128 + 0u128, + false, )); let program_id = utils::get_last_program_id(); @@ -5872,6 +6007,7 @@ fn test_create_program_works() { // Calculate the gas spent after #1242. 10_000_000_000u64, 0, + false, )); run_to_next_block(None); @@ -5906,6 +6042,7 @@ fn test_create_program_no_code_hash() { EMPTY_PAYLOAD.to_vec(), 50_000_000_000, 0, + false, )); // Try to create a program with non existing code hash @@ -5915,6 +6052,7 @@ fn test_create_program_no_code_hash() { CreateProgram::Default.encode(), 50_000_000_000, 0, + false, )); run_to_block(2, None); @@ -5939,6 +6077,7 @@ fn test_create_program_no_code_hash() { .encode(), 100_000_000_000, 0, + false, )); run_to_block(3, None); @@ -5969,6 +6108,7 @@ fn test_create_program_no_code_hash() { .encode(), 100_000_000_000, 0, + false, )); run_to_block(4, None); @@ -6001,6 +6141,7 @@ fn test_create_program_simple() { EMPTY_PAYLOAD.to_vec(), 50_000_000_000, 0, + false, )); run_to_block(2, None); @@ -6011,6 +6152,7 @@ fn test_create_program_simple() { CreateProgram::Default.encode(), 50_000_000_000, 0, + false, )); run_to_block(3, None); @@ -6024,6 +6166,7 @@ fn test_create_program_simple() { .encode(), 10_000_000_000, 0, + false, )); run_to_block(4, None); @@ -6045,6 +6188,7 @@ fn test_create_program_simple() { .encode(), 50_000_000_000, 0, + false, )); run_to_block(5, None); @@ -6059,6 +6203,7 @@ fn test_create_program_simple() { .encode(), 50_000_000_000, 0, + false, )); run_to_block(6, None); @@ -6086,6 +6231,7 @@ fn test_pausing_programs_works() { EMPTY_PAYLOAD.to_vec(), 50_000_000_000, 0, + false, )); let factory_bn = System::block_number(); @@ -6102,6 +6248,7 @@ fn test_pausing_programs_works() { .encode(), 50_000_000_000, 0, + false, )); let child_program_id = ProgramId::generate_from_program( @@ -6279,6 +6426,7 @@ fn state_request() { InitMessage::BTree.encode(), 50_000_000_000, 0, + false, )); let data = [(0u32, 1u32), (2, 4), (7, 8)]; @@ -6289,6 +6437,7 @@ fn state_request() { Request::Insert(key, value).encode(), 1_000_000_000, 0, + false, )); } @@ -6326,6 +6475,7 @@ fn resume_session_push_works() { InitMessage::BTree.encode(), 50_000_000_000, 0, + false, )); let request = Request::Insert(0, 1).encode(); @@ -6335,6 +6485,7 @@ fn resume_session_push_works() { request, 1_000_000_000, 0, + false, )); run_to_next_block(None); @@ -6440,6 +6591,7 @@ fn resume_program_works() { InitMessage::BTree.encode(), 50_000_000_000, 0, + false, )); let request = Request::Insert(0, 1).encode(); @@ -6449,6 +6601,7 @@ fn resume_program_works() { request, 10_000_000_000, 0, + false, )); run_to_next_block(None); @@ -6611,6 +6764,7 @@ fn resume_program_works() { request, 10_000_000_000, 0, + false, )); run_to_next_block(None); @@ -6635,6 +6789,7 @@ fn test_no_messages_to_paused_program() { EMPTY_PAYLOAD.to_vec(), 50_000_000_000, 0, + false, )); run_to_next_block(None); @@ -6644,6 +6799,7 @@ fn test_no_messages_to_paused_program() { demo_wait_wake::Request::EchoWait(10).encode(), 50_000_000_000, 0, + false, )); run_to_next_block(None); @@ -6676,6 +6832,7 @@ fn reservations_cleaned_in_paused_program() { .encode(), 50_000_000_000, 0, + false, )); let program_id = get_last_program_id(); @@ -6732,6 +6889,7 @@ fn uninitialized_program_terminates_on_pause() { InitAction::Wait.encode(), 50_000_000_000, 0, + false, )); let program_id = get_last_program_id(); @@ -6744,6 +6902,7 @@ fn uninitialized_program_terminates_on_pause() { b"0123456789".to_vec(), 50_000_000_000, 0, + false, )); run_to_next_block(None); @@ -6813,6 +6972,7 @@ fn pay_program_rent_syscall_works() { pay_rent_id.into_bytes().to_vec(), 20_000_000_000, program_value, + false, )); run_to_next_block(None); @@ -6835,6 +6995,7 @@ fn pay_program_rent_syscall_works() { .encode(), 20_000_000_000, 0, + false, )); run_to_next_block(None); @@ -6858,6 +7019,7 @@ fn pay_program_rent_syscall_works() { vec![Kind::PayProgramRent([0u8; 32], rent, None)].encode(), 20_000_000_000, 0, + false, )); run_to_next_block(None); @@ -6876,6 +7038,7 @@ fn pay_program_rent_syscall_works() { .encode(), 20_000_000_000, 0, + false, )); let message_id = get_last_message_id(); @@ -6921,6 +7084,7 @@ fn pay_program_rent_syscall_works() { .encode(), 20_000_000_000, Gear::rent_fee_for(u32::MAX), + false, )); let message_id = get_last_message_id(); @@ -6957,6 +7121,7 @@ fn pay_program_rent_syscall_works() { .encode(), 20_000_000_000, required_value, + false, )); let message_id = get_last_message_id(); @@ -7089,6 +7254,7 @@ fn test_create_program_duplicate() { EMPTY_PAYLOAD.to_vec(), 20_000_000_000, 0, + false, )); run_to_block(2, None); @@ -7108,6 +7274,7 @@ fn test_create_program_duplicate() { .encode(), 20_000_000_000, 0, + false, )); run_to_block(4, None); @@ -7125,6 +7292,7 @@ fn test_create_program_duplicate() { .encode(), 20_000_000_000, 0, + false, )); run_to_block(5, None); @@ -7136,6 +7304,7 @@ fn test_create_program_duplicate() { .encode(), 20_000_000_000, 0, + false, )); run_to_block(6, None); @@ -7149,6 +7318,7 @@ fn test_create_program_duplicate() { EMPTY_PAYLOAD.to_vec(), 10_000_000_000, 0, + false, )); }); } @@ -7175,6 +7345,7 @@ fn test_create_program_duplicate_in_one_execution() { EMPTY_PAYLOAD.to_vec(), 2_000_000_000, 0, + false, )); run_to_block(2, None); @@ -7189,6 +7360,7 @@ fn test_create_program_duplicate_in_one_execution() { .encode(), 20_000_000_000, 0, + false, )); run_to_block(3, None); @@ -7208,6 +7380,7 @@ fn test_create_program_duplicate_in_one_execution() { .encode(), 20_000_000_000, 0, + false, )); run_to_block(4, None); @@ -7260,6 +7433,7 @@ fn test_create_program_miscellaneous() { EMPTY_PAYLOAD.to_vec(), 50_000_000_000, 0, + false, )); run_to_block(2, None); @@ -7277,6 +7451,7 @@ fn test_create_program_miscellaneous() { .encode(), 50_000_000_000, 0, + false, )); run_to_block(3, None); @@ -7294,6 +7469,7 @@ fn test_create_program_miscellaneous() { .encode(), 50_000_000_000, 0, + false, )); run_to_block(4, None); @@ -7310,6 +7486,7 @@ fn test_create_program_miscellaneous() { .encode(), 50_000_000_000, 0, + false, )); run_to_block(5, None); @@ -7336,6 +7513,7 @@ fn exit_handle() { vec![], 50_000_000_000u64, 0u128, + false, )); run_to_block(3, None); @@ -7355,7 +7533,8 @@ fn exit_handle() { DEFAULT_SALT.to_vec(), Vec::new(), 2_000_000_000, - 0u128 + 0u128, + false, ), Error::::ProgramAlreadyExists, ); @@ -7388,6 +7567,7 @@ fn no_redundant_gas_value_after_exiting() { EMPTY_PAYLOAD.to_vec(), gas_spent, 0, + false, )); let msg_id = get_last_message_id(); @@ -7433,7 +7613,8 @@ fn init_wait_reply_exit_cleaned_storage() { EMPTY_PAYLOAD.to_vec(), Vec::new(), 50_000_000_000u64, - 0u128 + 0u128, + false, )); let pid = get_last_program_id(); @@ -7449,6 +7630,7 @@ fn init_wait_reply_exit_cleaned_storage() { vec![], 10_000u64, 0u128, + false, )); } @@ -7472,6 +7654,7 @@ fn init_wait_reply_exit_cleaned_storage() { EMPTY_PAYLOAD.to_vec(), 100_000_000_000u64, 0, + false, )); assert!(!Gear::is_initialized(pid)); @@ -7516,7 +7699,8 @@ fn locking_gas_for_waitlist() { Default::default(), Default::default(), 100_000_000_000, - 0 + 0, + false, )); let calculator = get_last_program_id(); @@ -7610,7 +7794,8 @@ fn calculate_init_gas() { DEFAULT_SALT.to_vec(), EMPTY_PAYLOAD.to_vec(), gas_info.min_limit, - 0 + 0, + false, )); let init_message_id = get_last_message_id(); @@ -7640,6 +7825,7 @@ fn gas_spent_vs_balance() { InitMessage::BTree.encode(), 50_000_000_000, 0, + false, )); let prog_id = utils::get_last_program_id(); @@ -7655,6 +7841,7 @@ fn gas_spent_vs_balance() { request.clone(), 10_000_000_000, 0, + false, )); run_to_block(3, None); @@ -7968,6 +8155,7 @@ fn test_two_contracts_composition_works() { 50_u64.encode(), 10_000_000_000, 0, + false, )); assert_ok!(Gear::create_program( @@ -7977,6 +8165,7 @@ fn test_two_contracts_composition_works() { 75_u64.encode(), 10_000_000_000, 0, + false, )); assert_ok!(Gear::upload_program( @@ -7990,6 +8179,7 @@ fn test_two_contracts_composition_works() { .encode(), 10_000_000_000, 0, + false, )); run_to_block(2, None); @@ -8000,6 +8190,7 @@ fn test_two_contracts_composition_works() { 100_u64.to_le_bytes().to_vec(), 60_000_000_000, 0, + false, )); run_to_block(4, None); @@ -8053,6 +8244,7 @@ fn test_create_program_with_value_lt_ed() { EMPTY_PAYLOAD.to_vec(), 100_000_000, ed - 1, + false, ), Error::::ValueLessThanMinimal, ); @@ -8098,6 +8290,7 @@ fn test_create_program_with_value_lt_ed() { Scheme::direct(calls).encode(), 10_000_000_000, 10_000, + false, )); let msg_id = get_last_message_id(); @@ -8151,6 +8344,7 @@ fn test_create_program_with_exceeding_value() { Scheme::direct(calls).encode(), 10_000_000_000, msg_value - 1, + false, )); let msg_id = get_last_message_id(); @@ -8217,6 +8411,7 @@ fn demo_constructor_works() { calls.encode(), BlockGasLimitOf::::get(), 100_000, + false, )); let message_id = get_last_message_id(); @@ -8245,6 +8440,7 @@ fn demo_constructor_works() { calls.encode(), BlockGasLimitOf::::get(), 0, + false, )); let message_id = get_last_message_id(); @@ -8296,6 +8492,7 @@ fn demo_constructor_value_eq() { calls.encode(), BlockGasLimitOf::::get(), 100_000, + false, )); run_to_next_block(None); @@ -8309,6 +8506,7 @@ fn demo_constructor_value_eq() { calls.encode(), BlockGasLimitOf::::get(), 0, + false, )); run_to_next_block(None); @@ -8358,6 +8556,7 @@ fn demo_constructor_is_demo_ping() { b"PING".to_vec(), BlockGasLimitOf::::get(), 0, + false, )); run_to_next_block(None); @@ -8375,6 +8574,7 @@ fn demo_constructor_is_demo_ping() { vec![], BlockGasLimitOf::::get(), 0, + false, )); let reply_id = get_last_message_id(); @@ -8410,6 +8610,7 @@ fn test_reply_to_terminated_program() { payload: EMPTY_PAYLOAD.to_vec(), gas_limit: 10_000_000, value: 0, + keep_alive: false, }); assert_noop!( reply_call.dispatch(RuntimeOrigin::signed(USER_1)), @@ -8464,7 +8665,8 @@ fn delayed_sending() { DEFAULT_SALT.to_vec(), delay.to_le_bytes().to_vec(), BlockGasLimitOf::::get(), - 0 + 0, + false, )); let prog = utils::get_last_program_id(); @@ -8509,7 +8711,8 @@ fn delayed_wake() { DEFAULT_SALT.to_vec(), 0u32.to_le_bytes().to_vec(), BlockGasLimitOf::::get(), - 0 + 0, + false, )); let prog = utils::get_last_program_id(); @@ -8527,6 +8730,7 @@ fn delayed_wake() { vec![], BlockGasLimitOf::::get(), 0, + false, )); let mid = get_last_message_id(); @@ -8546,6 +8750,7 @@ fn delayed_wake() { delay.to_le_bytes().to_vec(), BlockGasLimitOf::::get(), 0, + false, )); run_to_next_block(None); @@ -8576,6 +8781,7 @@ fn cascading_messages_with_value_do_not_overcharge() { 50_u64.encode(), 10_000_000_000, 0, + false, )); assert_ok!(Gear::upload_program( @@ -8585,6 +8791,7 @@ fn cascading_messages_with_value_do_not_overcharge() { (<[u8; 32]>::from(contract_id), 0u64).encode(), 10_000_000_000, 0, + false, )); run_to_block(2, None); @@ -8638,6 +8845,7 @@ fn cascading_messages_with_value_do_not_overcharge() { payload, gas_reserved, value, + false, )); let gas_to_spend = gas_price(gas_to_spend); @@ -8778,6 +8986,7 @@ fn execution_over_blocks() { EMPTY_PAYLOAD.to_vec(), init_gas.burned, 0, + false, )); let in_one_block = get_last_program_id(); @@ -8812,6 +9021,7 @@ fn execution_over_blocks() { EMPTY_PAYLOAD.to_vec(), 5_000_000_000, 0, + false, )); let in_one_block = get_last_program_id(); @@ -8826,6 +9036,7 @@ fn execution_over_blocks() { Package::new(expected, src).encode(), block_gas_limit, 0, + false, )); run_to_next_block(Some(MAX_BLOCK)); @@ -8838,6 +9049,7 @@ fn execution_over_blocks() { Package::new(1_024, src).encode(), block_gas_limit, 0, + false, )); let message_id = get_last_message_id(); @@ -8864,6 +9076,7 @@ fn execution_over_blocks() { calc_threshold.encode(), 9_000_000_000, 0, + false, )); let over_blocks = get_last_program_id(); @@ -8878,6 +9091,7 @@ fn execution_over_blocks() { Method::Start { src, id, expected }.encode(), 9_000_000_000, 0, + false, )); run_to_next_block(Some(MAX_BLOCK)); @@ -8896,6 +9110,7 @@ fn execution_over_blocks() { Method::Refuel(id).encode(), block_gas_limit, 0, + false, )); count += 1; @@ -8962,6 +9177,7 @@ fn waking_message_waiting_for_mx_lock_does_not_lead_to_deadlock() { EMPTY_PAYLOAD.to_vec(), BlockGasLimitOf::::get(), 0, + false, ) .expect("Failed to upload Waiter"); let waiter_prog_id = get_last_program_id(); @@ -8975,6 +9191,7 @@ fn waking_message_waiting_for_mx_lock_does_not_lead_to_deadlock() { command.encode(), BlockGasLimitOf::::get(), 0, + false, ) .unwrap_or_else(|_| panic!("Failed to send command {:?} to Waiter", command)); let msg_id = get_last_message_id(); @@ -9045,6 +9262,7 @@ fn waking_message_waiting_for_rw_lock_does_not_lead_to_deadlock() { EMPTY_PAYLOAD.to_vec(), BlockGasLimitOf::::get(), 0, + false, ) .expect("Failed to upload Waiter"); let waiter_prog_id = get_last_program_id(); @@ -9058,6 +9276,7 @@ fn waking_message_waiting_for_rw_lock_does_not_lead_to_deadlock() { command.encode(), BlockGasLimitOf::::get(), 0, + false, ) .unwrap_or_else(|_| panic!("Failed to send command {:?} to Waiter", command)); let msg_id = get_last_message_id(); @@ -9175,6 +9394,7 @@ fn mx_lock_ownership_exceedance() { EMPTY_PAYLOAD.to_vec(), BlockGasLimitOf::::get(), 0, + false, ) .expect("Failed to upload Waiter"); let waiter_prog_id = get_last_program_id(); @@ -9190,6 +9410,7 @@ fn mx_lock_ownership_exceedance() { command.encode(), BlockGasLimitOf::::get(), 0, + false, ) .unwrap_or_else(|_| panic!("Failed to send command {:?} to Waiter", command)); let msg_id = get_last_message_id(); @@ -9482,6 +9703,7 @@ fn async_sleep_for() { EMPTY_PAYLOAD.to_vec(), BlockGasLimitOf::::get(), 0, + false, ) .expect("Failed to upload Waiter"); let waiter_prog_id = get_last_program_id(); @@ -9497,6 +9719,7 @@ fn async_sleep_for() { command.encode(), BlockGasLimitOf::::get(), 0, + false, ) .unwrap_or_else(|_| panic!("Failed to send command {:?} to Waiter", command)); let msg_id = get_last_message_id(); @@ -9739,6 +9962,7 @@ fn test_async_messages() { EMPTY_PAYLOAD.to_vec(), 10_000_000_000u64, 0, + false, )); let pid = get_last_program_id(); @@ -9757,6 +9981,7 @@ fn test_async_messages() { kind.encode(), 30_000_000_000u64, 0, + false, )); // check the message sent from the program @@ -9772,6 +9997,7 @@ fn test_async_messages() { EMPTY_PAYLOAD.to_vec(), 10_000_000_000u64, 0, + false, )); // check the reply from the program @@ -9806,6 +10032,7 @@ fn program_generator_works() { EMPTY_PAYLOAD.to_vec(), BlockGasLimitOf::::get(), 0, + false, )); let generator_id = get_last_program_id(); @@ -9820,6 +10047,7 @@ fn program_generator_works() { EMPTY_PAYLOAD.to_vec(), BlockGasLimitOf::::get(), 0, + false, )); let message_id = get_last_message_id(); @@ -9848,6 +10076,7 @@ fn wait_state_machine() { Default::default(), BlockGasLimitOf::::get(), 0, + false, )); let wait_id = get_last_program_id(); @@ -9961,6 +10190,7 @@ fn missing_functions_are_not_executed() { EMPTY_PAYLOAD.to_vec(), 1_000_000_000, 0, + false, )); run_to_next_block(None); @@ -9987,6 +10217,7 @@ fn missing_functions_are_not_executed() { EMPTY_PAYLOAD.to_vec(), 100_000_000, reply_value, + false, )); run_to_next_block(None); @@ -10025,6 +10256,7 @@ fn missing_handle_is_not_executed() { EMPTY_PAYLOAD.to_vec(), 1_000_000_000, 0, + false, ) .map(|_| get_last_program_id()) .expect("submit_program failed"); @@ -10036,6 +10268,7 @@ fn missing_handle_is_not_executed() { EMPTY_PAYLOAD.to_vec(), 1_000_000_000, 0, + false, ) .map(|_| get_last_program_id()) .expect("submit_program failed"); @@ -10051,6 +10284,7 @@ fn missing_handle_is_not_executed() { EMPTY_PAYLOAD.to_vec(), 1_000_000_000, 0, + false, )); assert_ok!(Gear::send_message( @@ -10059,6 +10293,7 @@ fn missing_handle_is_not_executed() { EMPTY_PAYLOAD.to_vec(), 1_000_000_000, 0, + false, )); run_to_next_block(None); @@ -10100,6 +10335,7 @@ fn invalid_memory_page_count_rejected() { EMPTY_PAYLOAD.to_vec(), 1_000_000_000, 0, + false, ), Error::::ProgramConstructionFailed ); @@ -10132,6 +10368,7 @@ fn test_reinstrumentation_works() { vec![], 10_000_000_000, 0, + false, )); run_to_block(3, None); @@ -10146,6 +10383,7 @@ fn test_reinstrumentation_works() { vec![], 10_000_000_000, 0, + false, )); run_to_block(4, None); @@ -10216,6 +10454,7 @@ fn send_from_reservation() { EMPTY_PAYLOAD.to_vec(), 10_000_000_000, 0, + false, ) .map(|_| get_last_program_id()) .unwrap(); @@ -10227,6 +10466,7 @@ fn send_from_reservation() { EMPTY_PAYLOAD.to_vec(), 10_000_000_000, 0, + false, ) .map(|_| get_last_program_id()) .unwrap(); @@ -10240,6 +10480,7 @@ fn send_from_reservation() { HandleAction::SendToUser.encode(), 10_000_000_000, 1_000, + false, )); run_to_block(3, None); @@ -10264,6 +10505,7 @@ fn send_from_reservation() { .encode(), 10_000_000_000, 1_000, + false, )); let mid = get_last_message_id(); @@ -10288,6 +10530,7 @@ fn send_from_reservation() { HandleAction::SendToUserDelayed.encode(), 10_000_000_000, 1_000, + false, )); run_to_block(5, None); @@ -10316,6 +10559,7 @@ fn send_from_reservation() { .encode(), 10_000_000_000, 1_000, + false, )); let mid = get_last_message_id(); @@ -10349,6 +10593,7 @@ fn reply_from_reservation() { EMPTY_PAYLOAD.to_vec(), 10_000_000_000, 0, + false, ) .map(|_| get_last_program_id()) .unwrap(); @@ -10360,6 +10605,7 @@ fn reply_from_reservation() { EMPTY_PAYLOAD.to_vec(), 10_000_000_000, 0, + false, ) .map(|_| get_last_program_id()) .unwrap(); @@ -10373,6 +10619,7 @@ fn reply_from_reservation() { HandleAction::ReplyToUser.encode(), 30_000_000_000, 1_000, + false, )); run_to_block(3, None); @@ -10397,6 +10644,7 @@ fn reply_from_reservation() { .encode(), 30_000_000_000, 1_000, + false, )); let mid = get_last_message_id(); @@ -10427,6 +10675,7 @@ fn signal_recursion_not_occurs() { USER_1.encode(), 10_000_000_000, 0, + false, )); let pid = get_last_program_id(); @@ -10442,6 +10691,7 @@ fn signal_recursion_not_occurs() { HandleAction::PanicInSignal.encode(), 10_000_000_000, 0, + false, )); let mid = get_last_message_id(); @@ -10499,6 +10749,7 @@ fn signal_during_precharge() { USER_1.encode(), 10_000_000_000, 0, + false, )); let pid = get_last_program_id(); @@ -10511,6 +10762,7 @@ fn signal_during_precharge() { HandleAction::WaitWithReserveAmountAndPanic(1).encode(), 10_000_000_000, 0, + false, )); let mid = get_last_message_id(); @@ -10527,6 +10779,7 @@ fn signal_during_precharge() { EMPTY_PAYLOAD.to_vec(), 10_000_000_000, 0, + false, )); run_to_block(4, None); @@ -10561,6 +10814,7 @@ fn signal_during_prepare() { USER_1.encode(), 10_000_000_000, 0, + false, )); let pid = get_last_program_id(); @@ -10580,6 +10834,7 @@ fn signal_during_prepare() { HandleAction::WaitWithReserveAmountAndPanic(program_gas).encode(), 10_000_000_000, 0, + false, )); let mid = get_last_message_id(); @@ -10596,6 +10851,7 @@ fn signal_during_prepare() { EMPTY_PAYLOAD.to_vec(), 10_000_000_000, 0, + false, )); run_to_block(4, None); @@ -10630,6 +10886,7 @@ fn signal_async_wait_works() { InitAction::None.encode(), 10_000_000_000, 0, + false, )); let pid = get_last_program_id(); @@ -10658,6 +10915,7 @@ fn signal_async_wait_works() { EMPTY_PAYLOAD.to_vec(), gas_spent, 0, + false, )); let mid = get_last_message_id(); @@ -10716,6 +10974,7 @@ fn signal_run_out_of_gas_memory_access_works() { USER_1.encode(), GAS_LIMIT, 0, + false, )); let pid = get_last_program_id(); @@ -10733,6 +10992,7 @@ fn signal_run_out_of_gas_memory_access_works() { HandleAction::SaveSignal(SimpleExecutionError::RanOutOfGas.into()).encode(), GAS_LIMIT, 0, + false, )); run_to_next_block(None); @@ -10755,6 +11015,7 @@ fn signal_run_out_of_gas_memory_access_works() { demo_signal_entry::HandleAction::MemoryAccess.encode(), min_limit - 1, 0, + false, )); let mid = get_last_message_id(); @@ -10843,6 +11104,7 @@ fn signal_removed_from_waitlist_works() { USER_1.encode(), GAS_LIMIT, 0, + false, )); let pid = get_last_program_id(); @@ -10860,6 +11122,7 @@ fn signal_removed_from_waitlist_works() { HandleAction::SaveSignal(SignalCode::RemovedFromWaitlist).encode(), GAS_LIMIT, 0, + false, )); run_to_next_block(None); @@ -10871,6 +11134,7 @@ fn signal_removed_from_waitlist_works() { HandleAction::WaitWithoutSendingMessage.encode(), GAS_LIMIT, 0, + false, )); let mid = get_last_message_id(); @@ -10909,6 +11173,7 @@ fn system_reservation_unreserve_works() { USER_1.encode(), 10_000_000_000, 0, + false, )); let pid = get_last_program_id(); @@ -10933,6 +11198,7 @@ fn system_reservation_unreserve_works() { HandleAction::Simple.encode(), 10_000_000_000, 0, + false, )); let mid = get_last_message_id(); @@ -10962,6 +11228,7 @@ fn few_system_reservations_across_waits_works() { USER_1.encode(), 10_000_000_000, 0, + false, )); let pid = get_last_program_id(); @@ -10974,6 +11241,7 @@ fn few_system_reservations_across_waits_works() { HandleAction::AcrossWaits.encode(), 30_000_000_000, 0, + false, )); let mid = get_last_message_id(); @@ -10992,6 +11260,7 @@ fn few_system_reservations_across_waits_works() { EMPTY_PAYLOAD.to_vec(), 30_000_000_000, 0, + false, )); run_to_next_block(None); @@ -11012,6 +11281,7 @@ fn system_reservation_panic_works() { USER_1.encode(), 10_000_000_000, 0, + false, )); let pid = get_last_program_id(); @@ -11024,6 +11294,7 @@ fn system_reservation_panic_works() { HandleAction::Panic.encode(), 10_000_000_000, 0, + false, )); let mid = get_last_message_id(); @@ -11051,6 +11322,7 @@ fn system_reservation_exit_works() { USER_1.encode(), 10_000_000_000, 0, + false, )); let pid = get_last_program_id(); @@ -11063,6 +11335,7 @@ fn system_reservation_exit_works() { HandleAction::Exit.encode(), 10_000_000_000, 0, + false, )); let mid = get_last_message_id(); @@ -11092,6 +11365,7 @@ fn system_reservation_wait_and_panic_works() { USER_1.encode(), 10_000_000_000, 0, + false, )); let pid = get_last_program_id(); @@ -11104,6 +11378,7 @@ fn system_reservation_wait_and_panic_works() { HandleAction::WaitAndPanic.encode(), 10_000_000_000, 0, + false, )); let mid = get_last_message_id(); @@ -11120,6 +11395,7 @@ fn system_reservation_wait_and_panic_works() { EMPTY_PAYLOAD.to_vec(), 10_000_000_000, 0, + false, )); run_to_block(4, None); @@ -11141,6 +11417,7 @@ fn system_reservation_wait_works() { USER_1.encode(), 10_000_000_000, 0, + false, )); let pid = get_last_program_id(); @@ -11153,6 +11430,7 @@ fn system_reservation_wait_works() { HandleAction::Wait.encode(), 10_000_000_000, 0, + false, )); let mid = get_last_message_id(); @@ -11200,6 +11478,7 @@ fn system_reservation_wait_and_exit_works() { USER_1.encode(), 10_000_000_000, 0, + false, )); let pid = get_last_program_id(); @@ -11212,6 +11491,7 @@ fn system_reservation_wait_and_exit_works() { HandleAction::WaitAndExit.encode(), 10_000_000_000, 0, + false, )); let mid = get_last_message_id(); @@ -11228,6 +11508,7 @@ fn system_reservation_wait_and_exit_works() { EMPTY_PAYLOAD.to_vec(), 10_000_000_000, 0, + false, )); run_to_block(4, None); @@ -11253,6 +11534,7 @@ fn system_reservation_wait_and_reserve_with_panic_works() { USER_1.encode(), 10_000_000_000, 0, + false, )); let pid = get_last_program_id(); @@ -11265,6 +11547,7 @@ fn system_reservation_wait_and_reserve_with_panic_works() { HandleAction::WaitAndReserveWithPanic.encode(), 30_000_000_000, 0, + false, )); let mid = get_last_message_id(); @@ -11283,6 +11566,7 @@ fn system_reservation_wait_and_reserve_with_panic_works() { EMPTY_PAYLOAD.to_vec(), 10_000_000_000, 0, + false, )); run_to_block(4, None); @@ -11308,6 +11592,7 @@ fn system_reservation_accumulate_works() { USER_1.encode(), 10_000_000_000, 0, + false, )); let pid = get_last_program_id(); @@ -11320,6 +11605,7 @@ fn system_reservation_accumulate_works() { HandleAction::Accumulate.encode(), 10_000_000_000, 0, + false, )); let mid = get_last_message_id(); @@ -11345,6 +11631,7 @@ fn system_reservation_zero_amount_panics() { USER_1.encode(), 10_000_000_000, 0, + false, )); let pid = get_last_program_id(); @@ -11357,6 +11644,7 @@ fn system_reservation_zero_amount_panics() { HandleAction::ZeroReserve.encode(), 10_000_000_000, 0, + false, )); let mid = get_last_message_id(); @@ -11386,6 +11674,7 @@ fn gas_reservation_works() { .encode(), 10_000_000_000, 0, + false, )); let pid = get_last_program_id(); @@ -11417,6 +11706,7 @@ fn gas_reservation_works() { HandleAction::Unreserve.encode(), spent_gas, 0, + false, )); run_to_block(3, None); @@ -11458,6 +11748,7 @@ fn gas_reservation_works() { HandleAction::Exit.encode(), 50_000_000_000, 0, + false, )); run_to_block(2 + 4, None); @@ -11482,6 +11773,7 @@ fn gas_reservations_cleaned_in_terminated_program() { InitAction::Wait.encode(), 10_000_000_000, 0, + false, )); let pid = get_last_program_id(); @@ -11506,6 +11798,7 @@ fn gas_reservations_cleaned_in_terminated_program() { ReplyAction::Panic.encode(), BlockGasLimitOf::::get(), 0, + false, )); run_to_block(3, None); @@ -11531,6 +11824,7 @@ fn gas_reservation_wait_wake_exit() { InitAction::Wait.encode(), 10_000_000_000, 0, + false, )); let pid = get_last_program_id(); @@ -11555,6 +11849,7 @@ fn gas_reservation_wait_wake_exit() { ReplyAction::Exit.encode(), BlockGasLimitOf::::get(), 0, + false, )); run_to_block(3, None); @@ -11583,6 +11878,7 @@ fn gas_reservations_check_params() { .encode(), 10_000_000_000, 0, + false, )); let mid = get_last_message_id(); @@ -11606,6 +11902,7 @@ fn gas_reservations_fresh_reserve_unreserve() { InitAction::FreshReserveUnreserve.encode(), 10_000_000_000, 0, + false, )); let mid = get_last_message_id(); @@ -11630,6 +11927,7 @@ fn gas_reservations_existing_reserve_unreserve() { InitAction::Normal(vec![]).encode(), 10_000_000_000, 0, + false, )); let mid = get_last_message_id(); let pid = get_last_program_id(); @@ -11644,6 +11942,7 @@ fn gas_reservations_existing_reserve_unreserve() { HandleAction::SendFromReservationAndUnreserve.encode(), 10_000_000_000, 0, + false, )); let mid = get_last_message_id(); @@ -11669,6 +11968,7 @@ fn custom_async_entrypoint_works() { USER_1.encode(), 30_000_000_000, 0, + false, )); let pid = get_last_program_id(); @@ -11681,6 +11981,7 @@ fn custom_async_entrypoint_works() { EMPTY_PAYLOAD.to_vec(), 30_000_000_000, 0, + false, )); run_to_block(3, None); @@ -11694,6 +11995,7 @@ fn custom_async_entrypoint_works() { EMPTY_PAYLOAD.to_vec(), 30_000_000_000, 0, + false, )); run_to_block(4, None); @@ -11716,6 +12018,7 @@ fn dispatch_kind_forbidden_function() { USER_1.encode(), 10_000_000_000, 0, + false, )); let pid = get_last_program_id(); @@ -11731,6 +12034,7 @@ fn dispatch_kind_forbidden_function() { HandleAction::ForbiddenCallInSignal(USER_1.into_origin().into()).encode(), 10_000_000_000, 0, + false, )); let mid = get_last_message_id(); @@ -11788,6 +12092,7 @@ fn system_reservation_gas_allowance_rollbacks() { USER_1.encode(), 10_000_000_000, 0, + false, )); let pid = get_last_program_id(); @@ -11810,6 +12115,7 @@ fn system_reservation_gas_allowance_rollbacks() { HandleAction::Simple.encode(), min_limit, 0, + false, )); let mid = get_last_message_id(); @@ -11833,6 +12139,7 @@ fn system_reservation_wait_and_exit_across_executions() { USER_1.encode(), 10_000_000_000, 0, + false, )); let pid = get_last_program_id(); @@ -11845,6 +12152,7 @@ fn system_reservation_wait_and_exit_across_executions() { HandleAction::Wait.encode(), 10_000_000_000, 0, + false, )); let mid_wait = get_last_message_id(); @@ -11859,6 +12167,7 @@ fn system_reservation_wait_and_exit_across_executions() { HandleAction::Exit.encode(), 10_000_000_000, 0, + false, )); let mid_exit = get_last_message_id(); @@ -11908,6 +12217,7 @@ fn signal_on_uninitialized_program() { InitAction::Panic.encode(), 10_000_000_000, 0, + false, )); let pid = get_last_program_id(); @@ -11927,6 +12237,7 @@ fn signal_on_uninitialized_program() { EMPTY_PAYLOAD.to_vec(), 10_000_000_000, 0, + false, )); let reply_mid = get_last_message_id(); @@ -11958,6 +12269,7 @@ fn missing_block_tasks_handled() { vec![], 100_000_000, 1000, + false, )); run_to_block(N - 1, None); @@ -12008,6 +12320,7 @@ fn async_does_not_duplicate_sync() { Default::default(), BlockGasLimitOf::::get(), 0, + false, )); let ping = get_last_program_id(); @@ -12019,6 +12332,7 @@ fn async_does_not_duplicate_sync() { ping.encode(), BlockGasLimitOf::::get(), 0, + false, )); let sync = get_last_program_id(); @@ -12031,6 +12345,7 @@ fn async_does_not_duplicate_sync() { b"async".to_vec(), BlockGasLimitOf::::get(), 0, + false, )); run_to_next_block(None); @@ -12055,6 +12370,7 @@ fn state_rollback() { Default::default(), BlockGasLimitOf::::get(), 0, + false, )); let rollback = get_last_program_id(); @@ -12124,6 +12440,7 @@ fn incomplete_async_payloads_kept() { Default::default(), BlockGasLimitOf::::get(), 0, + false, )); let ping = get_last_program_id(); @@ -12135,6 +12452,7 @@ fn incomplete_async_payloads_kept() { ping.encode(), BlockGasLimitOf::::get(), 0, + false, )); let incomplete = get_last_program_id(); @@ -12189,6 +12507,7 @@ fn rw_lock_works() { Default::default(), BlockGasLimitOf::::get(), 0, + false, )); let ping = get_last_program_id(); @@ -12200,6 +12519,7 @@ fn rw_lock_works() { ping.encode(), BlockGasLimitOf::::get(), 0, + false, )); let prog_id = get_last_program_id(); @@ -12319,6 +12639,7 @@ fn async_works() { Default::default(), BlockGasLimitOf::::get(), 0, + false, )); let ping = get_last_program_id(); @@ -12330,6 +12651,7 @@ fn async_works() { ping.encode(), BlockGasLimitOf::::get(), 0, + false, )); let prog_id = get_last_program_id(); @@ -12383,6 +12705,7 @@ fn futures_unordered() { Default::default(), BlockGasLimitOf::::get(), 0, + false, )); let ping = get_last_program_id(); @@ -12394,6 +12717,7 @@ fn futures_unordered() { ping.encode(), BlockGasLimitOf::::get(), 0, + false, )); let demo_async = get_last_program_id(); @@ -12405,6 +12729,7 @@ fn futures_unordered() { (demo_async, ping).encode(), BlockGasLimitOf::::get(), 0, + false, )); let prog_id = get_last_program_id(); @@ -12477,6 +12802,7 @@ fn async_recursion() { Default::default(), BlockGasLimitOf::::get(), 0, + false, )); let ping = get_last_program_id(); @@ -12488,6 +12814,7 @@ fn async_recursion() { ping.encode(), BlockGasLimitOf::::get(), 0, + false, )); let prog_id = get_last_program_id(); @@ -12534,6 +12861,7 @@ fn async_init() { Default::default(), BlockGasLimitOf::::get(), 0, + false, )); let ping = get_last_program_id(); @@ -12545,6 +12873,7 @@ fn async_init() { InputArgs::from_two(ping, ping).encode(), BlockGasLimitOf::::get(), 0, + false, )); get_last_program_id() @@ -12593,6 +12922,7 @@ fn check_gear_stack_end_fail() { EMPTY_PAYLOAD.to_vec(), 50_000_000_000, 0, + false, ) .expect("Failed to upload program"); @@ -12619,6 +12949,7 @@ fn check_gear_stack_end_fail() { EMPTY_PAYLOAD.to_vec(), 50_000_000_000, 0, + false, ) .expect("Failed to upload program"); @@ -12642,6 +12973,7 @@ fn check_gear_stack_end_fail() { EMPTY_PAYLOAD.to_vec(), 50_000_000_000, 0, + false, ) .expect("Failed to upload program"); @@ -12684,6 +13016,7 @@ fn check_gr_read_error_works() { EMPTY_PAYLOAD.to_vec(), 50_000_000_000, 0, + false, ) .expect("Failed to upload program"); @@ -12734,6 +13067,7 @@ fn check_reply_push_payload_exceed() { EMPTY_PAYLOAD.to_vec(), 50_000_000_000, 0, + false, ) .expect("Failed to upload program"); @@ -12783,6 +13117,7 @@ fn check_random_works() { EMPTY_PAYLOAD.to_vec(), 50_000_000_000, 0, + false, ) .expect("Failed to upload program"); @@ -12797,6 +13132,7 @@ fn check_random_works() { EMPTY_PAYLOAD.to_vec(), 50_000_000_000, 0, + false, )); let output: ([u8; 32], BlockNumber) = @@ -12843,7 +13179,8 @@ fn reply_with_small_non_zero_gas() { DEFAULT_SALT.to_vec(), RelayCall::RereplyWithGas(gas_limit).encode(), 50_000_000_000, - 0u128 + 0u128, + false, )); let proxy = utils::get_last_program_id(); @@ -12859,6 +13196,7 @@ fn reply_with_small_non_zero_gas() { payload.to_vec(), DEFAULT_GAS_LIMIT * 10, 0, + false, )); let message_id = utils::get_last_message_id(); @@ -12889,7 +13227,8 @@ fn replies_denied_in_handle_reply() { } .encode(), 50_000_000_000, - 0u128 + 0u128, + false, )); let proxy = utils::get_last_program_id(); @@ -12900,6 +13239,7 @@ fn replies_denied_in_handle_reply() { vec![], 50_000_000_000, 0, + false, )); let message_id = get_last_message_id(); @@ -12914,6 +13254,7 @@ fn replies_denied_in_handle_reply() { vec![], 50_000_000_000, 0, + false, )); let reply_id = get_last_message_id(); @@ -12951,7 +13292,8 @@ fn relay_messages() { vec![], relay_call.encode(), 50_000_000_000u64, - 0u128 + 0u128, + false, ) .is_ok(), "{}", @@ -12971,6 +13313,7 @@ fn relay_messages() { payload.to_vec(), DEFAULT_GAS_LIMIT * 10, 0, + false, ) .is_ok(), "{}", @@ -13147,6 +13490,7 @@ fn module_instantiation_error() { EMPTY_PAYLOAD.to_vec(), 50_000_000_000, 0, + false, ) .map(|_| prog_id); let mid = get_last_message_id(); @@ -13181,6 +13525,7 @@ fn wrong_entry_type() { EMPTY_PAYLOAD.to_vec(), 50_000_000_000, 0, + false, ) .map(|_| get_last_program_id()) .unwrap(); @@ -13207,6 +13552,7 @@ fn oom_handler_works() { EMPTY_PAYLOAD.to_vec(), 100_000_000_000_u64, 0, + false, ) .map(|_| get_last_program_id()) .unwrap(); @@ -13249,6 +13595,7 @@ fn alloc_charge_error() { EMPTY_PAYLOAD.to_vec(), 500_000_000_u64, 0, + false, ) .map(|_| get_last_program_id()) .unwrap(); @@ -13293,6 +13640,7 @@ fn free_usage_error() { EMPTY_PAYLOAD.to_vec(), 500_000_000_u64, 0, + false, ) .map(|_| get_last_program_id()) .unwrap(); @@ -13353,6 +13701,7 @@ fn calculate_gas_fails_when_calculation_limit_exceeded() { Init::Normal(vec![]).encode(), BlockGasLimitOf::::get(), 0, + false, ) .map(|_| get_last_program_id()) .expect("Program uploading failed"); @@ -13369,6 +13718,7 @@ fn calculate_gas_fails_when_calculation_limit_exceeded() { .encode(), BlockGasLimitOf::::get(), 0, + false, ) .expect("Making reservation failed"); } @@ -13420,6 +13770,7 @@ fn reservation_manager() { vec![], BlockGasLimitOf::::get(), 0, + false, ) .map(|_| get_last_program_id()) .expect("Program uploading failed"); @@ -13435,6 +13786,7 @@ fn reservation_manager() { payload.encode(), BlockGasLimitOf::::get(), 0, + false, )); run_to_next_block(None); @@ -13553,7 +13905,8 @@ fn send_gasless_message_works() { destination: program_id, payload: EMPTY_PAYLOAD.to_vec(), gas_limit: DEFAULT_GAS_LIMIT, - value: 0 + value: 0, + keep_alive: false, } ), Error::::FailureRedeemingVoucher @@ -13594,7 +13947,8 @@ fn send_gasless_message_works() { destination: program_id, payload: EMPTY_PAYLOAD.to_vec(), gas_limit: DEFAULT_GAS_LIMIT, - value: 1_000_000 + value: 1_000_000, + keep_alive: false, } )); @@ -13679,7 +14033,8 @@ fn send_gasless_reply_works() { reply_to_id, payload: EMPTY_PAYLOAD.to_vec(), gas_limit, - value: 1_000 + value: 1_000, + keep_alive: false, } )); let expected_reply_message_id = get_last_message_id(); @@ -13746,6 +14101,7 @@ fn double_read_works() { b"PAYLOAD".to_vec(), BlockGasLimitOf::::get(), 100_000, + false, )); run_to_next_block(None); @@ -13840,6 +14196,7 @@ fn test_gas_allowance_exceed_with_context() { calls.encode(), BlockGasLimitOf::::get(), 0, + false, )); let msg_id = get_last_message_id(); run_to_next_block(allowance); @@ -13991,6 +14348,7 @@ fn test_send_to_terminated_from_program() { EMPTY_PAYLOAD.to_vec(), BlockGasLimitOf::::get(), 0, + false, )); run_to_next_block(None); @@ -14030,7 +14388,8 @@ fn pause_waited_uninited_program() { current_gas.to_le_bytes().to_vec(), Vec::new(), current_gas, - 0u128 + 0u128, + false, )); let program_id = utils::get_last_program_id(); @@ -14088,7 +14447,8 @@ fn pause_waited_uninited_program() { vec![], Vec::new(), gas, - 0u128 + 0u128, + false, )); let program_id = utils::get_last_program_id(); @@ -14168,8 +14528,9 @@ fn remove_from_waitlist_after_exit_reply() { RuntimeOrigin::signed(USER_1), reply.id(), vec![], - 1_000_000_000, + 1_500_000_000, 0, + false, )); run_to_next_block(None); @@ -14381,6 +14742,7 @@ mod utils { scheme.encode(), min_limit, value, + false, )); (get_last_message_id(), get_last_program_id()) @@ -14444,6 +14806,7 @@ mod utils { payload, limit, value, + false, )); let message_id = get_last_message_id(); @@ -14539,6 +14902,7 @@ mod utils { Vec::new(), gas_limit, // `prog_id` program sends message in handle which sets gas limit to 10_000_000. value, + false, )); let message_id = get_last_message_id(); @@ -14614,6 +14978,7 @@ mod utils { EMPTY_PAYLOAD.to_vec(), DEFAULT_GAS_LIMIT, 0, + false, ) .map(|_| get_last_program_id()) } @@ -14636,6 +15001,7 @@ mod utils { EMPTY_PAYLOAD.to_vec(), DEFAULT_GAS_LIMIT, 0, + false, ) } @@ -14645,6 +15011,7 @@ mod utils { payload: EMPTY_PAYLOAD.to_vec(), gas_limit: DEFAULT_GAS_LIMIT, value: 0, + keep_alive: false, }) } @@ -15115,6 +15482,7 @@ mod utils { payload, BlockGasLimitOf::::get(), 0, + false, )); get_last_message_id() @@ -15173,6 +15541,7 @@ mod utils { USER_1.encode(), GAS_LIMIT, 0, + false, )); let pid = get_last_program_id(); @@ -15190,6 +15559,7 @@ mod utils { HandleAction::SaveSignal(signal_code).encode(), GAS_LIMIT, 0, + false, )); run_to_next_block(None); @@ -15201,6 +15571,7 @@ mod utils { action.encode(), GAS_LIMIT, 0, + false, )); let mid = get_last_message_id(); diff --git a/pallets/gear/src/weights.rs b/pallets/gear/src/weights.rs index 477c7f3bd54..ccad0588b2d 100644 --- a/pallets/gear/src/weights.rs +++ b/pallets/gear/src/weights.rs @@ -19,13 +19,13 @@ //! Autogenerated weights for pallet_gear //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-09-28, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2023-10-20, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("gear-dev"), DB CACHE: 1024 +//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("vara-dev"), DB CACHE: 1024 // Executed Command: -// ./target/production/gear benchmark pallet --chain=gear-dev --steps=50 --repeat=20 --pallet=pallet_gear --extrinsic=alloc,alloc_in_handle,alloc_per_page,claim_value,create_program,db_read_per_kb,db_write_per_kb,free,gr_block_height,gr_block_timestamp,gr_create_program,gr_create_program_per_kb,gr_create_program_wgas,gr_create_program_wgas_per_kb,gr_debug,gr_debug_per_kb,gr_gas_available,gr_message_id,gr_pay_program_rent,gr_program_id,gr_random,gr_read,gr_read_per_kb,gr_reply_code,gr_reply_deposit,gr_reply_per_kb,gr_reply_push,gr_reply_push_input,gr_reply_push_input_per_kb,gr_reply_push_per_kb,gr_reply_to,gr_reply_wgas_per_kb,gr_reservation_reply_commit_per_kb,gr_reservation_reply_per_kb,gr_reservation_send,gr_reservation_send_commit,gr_reservation_send_per_kb,gr_reserve_gas,gr_send,gr_send_commit,gr_send_commit_wgas,gr_send_init,gr_send_input,gr_send_input_wgas,gr_send_per_kb,gr_send_push,gr_send_push_input,gr_send_push_input_per_kb,gr_send_push_per_kb,gr_send_wgas,gr_send_wgas_per_kb,gr_signal_code,gr_signal_from,gr_size,gr_source,gr_system_reserve_gas,gr_unreserve_gas,gr_value,gr_value_available,gr_wake,initial_allocation,instantiate_module_per_kb,instr_br,instr_br_if,instr_br_table,instr_br_table_per_entry,instr_call,instr_call_const,instr_call_indirect,instr_call_indirect_per_param,instr_call_per_local,instr_global_get,instr_global_set,instr_i32add,instr_i32and,instr_i32clz,instr_i32ctz,instr_i32divs,instr_i32divu,instr_i32eq,instr_i32eqz,instr_i32extend16s,instr_i32extend8s,instr_i32ges,instr_i32geu,instr_i32gts,instr_i32gtu,instr_i32les,instr_i32leu,instr_i32load,instr_i32lts,instr_i32ltu,instr_i32mul,instr_i32ne,instr_i32or,instr_i32popcnt,instr_i32rems,instr_i32remu,instr_i32rotl,instr_i32rotr,instr_i32shl,instr_i32shrs,instr_i32shru,instr_i32store,instr_i32sub,instr_i32wrapi64,instr_i32xor,instr_i64add,instr_i64and,instr_i64clz,instr_i64ctz,instr_i64divs,instr_i64divu,instr_i64eq,instr_i64eqz,instr_i64extend16s,instr_i64extend32s,instr_i64extend8s,instr_i64extendsi32,instr_i64extendui32,instr_i64ges,instr_i64geu,instr_i64gts,instr_i64gtu,instr_i64les,instr_i64leu,instr_i64load,instr_i64lts,instr_i64ltu,instr_i64mul,instr_i64ne,instr_i64or,instr_i64popcnt,instr_i64rems,instr_i64remu,instr_i64rotl,instr_i64rotr,instr_i64shl,instr_i64shrs,instr_i64shru,instr_i64store,instr_i64sub,instr_i64xor,instr_if,instr_local_get,instr_local_set,instr_local_tee,instr_memory_current,instr_select,lazy_pages_host_func_read,lazy_pages_host_func_write,lazy_pages_host_func_write_after_read,lazy_pages_load_page_storage_data,lazy_pages_signal_read,lazy_pages_signal_write,lazy_pages_signal_write_after_read,mem_grow,pay_program_rent,reinstrument_per_kb,resume_session_commit,resume_session_init,resume_session_push,send_message,send_reply,tasks_pause_program,tasks_pause_program_uninited,tasks_remove_from_mailbox,tasks_remove_from_waitlist,tasks_remove_gas_reservation,tasks_remove_resume_session,tasks_send_dispatch,tasks_send_user_message,tasks_send_user_message_to_mailbox,tasks_wake_message,tasks_wake_message_no_wake,upload_code,upload_program --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./scripts/benchmarking/weights-output/pallet_gear.rs --template=.maintain/frame-weight-template.hbs +// ./target/production/gear benchmark pallet --chain=vara-dev --steps=50 --repeat=20 --pallet=pallet_gear --extrinsic=alloc,alloc_in_handle,alloc_per_page,claim_value,create_program,db_read_per_kb,db_write_per_kb,free,gr_block_height,gr_block_timestamp,gr_create_program,gr_create_program_per_kb,gr_create_program_wgas,gr_create_program_wgas_per_kb,gr_debug,gr_debug_per_kb,gr_gas_available,gr_message_id,gr_pay_program_rent,gr_program_id,gr_random,gr_read,gr_read_per_kb,gr_reply_code,gr_reply_deposit,gr_reply_per_kb,gr_reply_push,gr_reply_push_input,gr_reply_push_input_per_kb,gr_reply_push_per_kb,gr_reply_to,gr_reply_wgas_per_kb,gr_reservation_reply_commit_per_kb,gr_reservation_reply_per_kb,gr_reservation_send,gr_reservation_send_commit,gr_reservation_send_per_kb,gr_reserve_gas,gr_send,gr_send_commit,gr_send_commit_wgas,gr_send_init,gr_send_input,gr_send_input_wgas,gr_send_per_kb,gr_send_push,gr_send_push_input,gr_send_push_input_per_kb,gr_send_push_per_kb,gr_send_wgas,gr_send_wgas_per_kb,gr_signal_code,gr_signal_from,gr_size,gr_source,gr_system_reserve_gas,gr_unreserve_gas,gr_value,gr_value_available,gr_wake,initial_allocation,instantiate_module_per_kb,instr_br,instr_br_if,instr_br_table,instr_br_table_per_entry,instr_call,instr_call_const,instr_call_indirect,instr_call_indirect_per_param,instr_call_per_local,instr_global_get,instr_global_set,instr_i32add,instr_i32and,instr_i32clz,instr_i32ctz,instr_i32divs,instr_i32divu,instr_i32eq,instr_i32eqz,instr_i32extend16s,instr_i32extend8s,instr_i32ges,instr_i32geu,instr_i32gts,instr_i32gtu,instr_i32les,instr_i32leu,instr_i32load,instr_i32lts,instr_i32ltu,instr_i32mul,instr_i32ne,instr_i32or,instr_i32popcnt,instr_i32rems,instr_i32remu,instr_i32rotl,instr_i32rotr,instr_i32shl,instr_i32shrs,instr_i32shru,instr_i32store,instr_i32sub,instr_i32wrapi64,instr_i32xor,instr_i64add,instr_i64and,instr_i64clz,instr_i64ctz,instr_i64divs,instr_i64divu,instr_i64eq,instr_i64eqz,instr_i64extend16s,instr_i64extend32s,instr_i64extend8s,instr_i64extendsi32,instr_i64extendui32,instr_i64ges,instr_i64geu,instr_i64gts,instr_i64gtu,instr_i64les,instr_i64leu,instr_i64load,instr_i64lts,instr_i64ltu,instr_i64mul,instr_i64ne,instr_i64or,instr_i64popcnt,instr_i64rems,instr_i64remu,instr_i64rotl,instr_i64rotr,instr_i64shl,instr_i64shrs,instr_i64shru,instr_i64store,instr_i64sub,instr_i64xor,instr_if,instr_local_get,instr_local_set,instr_local_tee,instr_memory_current,instr_select,lazy_pages_host_func_read,lazy_pages_host_func_write,lazy_pages_host_func_write_after_read,lazy_pages_load_page_storage_data,lazy_pages_signal_read,lazy_pages_signal_write,lazy_pages_signal_write_after_read,mem_grow,pay_program_rent,reinstrument_per_kb,resume_session_commit,resume_session_init,resume_session_push,send_message,send_reply,tasks_pause_program,tasks_pause_program_uninited,tasks_remove_from_mailbox,tasks_remove_from_waitlist,tasks_remove_gas_reservation,tasks_remove_resume_session,tasks_send_dispatch,tasks_send_user_message,tasks_send_user_message_to_mailbox,tasks_wake_message,tasks_wake_message_no_wake,upload_code,upload_program --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./scripts/benchmarking/weights-output/pallet_gear.rs --template=.maintain/frame-weight-template.hbs #![cfg_attr(rustfmt, rustfmt_skip)] #![allow(unused_parens)] @@ -242,130 +242,130 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 94_792_000 picoseconds. - Weight::from_parts(103_063_604, 0) - // Standard Error: 103_375 - .saturating_add(Weight::from_parts(18_929_072, 0).saturating_mul(r.into())) + // Minimum execution time: 100_290_000 picoseconds. + Weight::from_parts(107_714_130, 0) + // Standard Error: 87_424 + .saturating_add(Weight::from_parts(17_565_908, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 1]`. fn gr_reply_wgas(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 96_154_000 picoseconds. - Weight::from_parts(107_249_232, 0) - // Standard Error: 99_969 - .saturating_add(Weight::from_parts(19_062_846, 0).saturating_mul(r.into())) + // Minimum execution time: 96_276_000 picoseconds. + Weight::from_parts(102_418_204, 0) + // Standard Error: 80_308 + .saturating_add(Weight::from_parts(18_444_560, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 1]`. fn gr_reply_commit(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 98_701_000 picoseconds. - Weight::from_parts(109_478_842, 0) - // Standard Error: 104_175 - .saturating_add(Weight::from_parts(10_887_124, 0).saturating_mul(r.into())) + // Minimum execution time: 96_679_000 picoseconds. + Weight::from_parts(103_850_060, 0) + // Standard Error: 87_584 + .saturating_add(Weight::from_parts(16_340_788, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 1]`. fn gr_reply_commit_wgas(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 102_910_000 picoseconds. - Weight::from_parts(109_181_566, 0) - // Standard Error: 81_801 - .saturating_add(Weight::from_parts(12_077_508, 0).saturating_mul(r.into())) + // Minimum execution time: 96_806_000 picoseconds. + Weight::from_parts(103_474_258, 0) + // Standard Error: 89_955 + .saturating_add(Weight::from_parts(16_614_218, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 1]`. fn gr_reply_input(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 719_481_000 picoseconds. - Weight::from_parts(765_485_196, 0) - // Standard Error: 676_170 - .saturating_add(Weight::from_parts(17_778_524, 0).saturating_mul(r.into())) + // Minimum execution time: 606_431_000 picoseconds. + Weight::from_parts(662_494_234, 0) + // Standard Error: 761_483 + .saturating_add(Weight::from_parts(25_620_440, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 1]`. fn gr_reply_input_wgas(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 720_914_000 picoseconds. - Weight::from_parts(776_554_516, 0) - // Standard Error: 1_018_495 - .saturating_add(Weight::from_parts(38_306_948, 0).saturating_mul(r.into())) + // Minimum execution time: 595_892_000 picoseconds. + Weight::from_parts(674_093_114, 0) + // Standard Error: 1_066_086 + .saturating_add(Weight::from_parts(23_822_444, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 1]`. fn gr_reservation_reply(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 105_823_000 picoseconds. - Weight::from_parts(112_820_586, 0) - // Standard Error: 82_530 - .saturating_add(Weight::from_parts(14_370_506, 0).saturating_mul(r.into())) + // Minimum execution time: 105_460_000 picoseconds. + Weight::from_parts(112_708_968, 0) + // Standard Error: 92_535 + .saturating_add(Weight::from_parts(11_120_936, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 1]`. fn gr_reservation_reply_commit(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 102_415_000 picoseconds. - Weight::from_parts(110_005_402, 0) - // Standard Error: 87_514 - .saturating_add(Weight::from_parts(6_578_880, 0).saturating_mul(r.into())) + // Minimum execution time: 109_465_000 picoseconds. + Weight::from_parts(117_255_480, 0) + // Standard Error: 96_440 + .saturating_add(Weight::from_parts(6_716_962, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 1]`. fn gr_exit(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 96_593_000 picoseconds. - Weight::from_parts(104_873_732, 0) - // Standard Error: 2_095_391 - .saturating_add(Weight::from_parts(193_359_282, 0).saturating_mul(r.into())) + // Minimum execution time: 97_445_000 picoseconds. + Weight::from_parts(104_500_586, 0) + // Standard Error: 1_641_842 + .saturating_add(Weight::from_parts(503_314_880, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 1]`. fn gr_leave(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 93_619_000 picoseconds. - Weight::from_parts(99_623_244, 0) - // Standard Error: 1_945_328 - .saturating_add(Weight::from_parts(179_784_494, 0).saturating_mul(r.into())) + // Minimum execution time: 98_181_000 picoseconds. + Weight::from_parts(105_227_918, 0) + // Standard Error: 2_343_026 + .saturating_add(Weight::from_parts(426_477_654, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 1]`. fn gr_wait(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 92_936_000 picoseconds. - Weight::from_parts(100_139_452, 0) - // Standard Error: 1_753_555 - .saturating_add(Weight::from_parts(132_465_876, 0).saturating_mul(r.into())) + // Minimum execution time: 95_585_000 picoseconds. + Weight::from_parts(102_197_814, 0) + // Standard Error: 1_411_445 + .saturating_add(Weight::from_parts(465_536_900, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 1]`. fn gr_wait_for(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 93_955_000 picoseconds. - Weight::from_parts(100_650_632, 0) - // Standard Error: 2_018_388 - .saturating_add(Weight::from_parts(178_916_382, 0).saturating_mul(r.into())) + // Minimum execution time: 95_297_000 picoseconds. + Weight::from_parts(101_445_166, 0) + // Standard Error: 2_227_511 + .saturating_add(Weight::from_parts(421_267_332, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 1]`. fn gr_wait_up_to(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 95_467_000 picoseconds. - Weight::from_parts(102_532_790, 0) - // Standard Error: 2_065_180 - .saturating_add(Weight::from_parts(187_152_790, 0).saturating_mul(r.into())) + // Minimum execution time: 94_815_000 picoseconds. + Weight::from_parts(101_957_812, 0) + // Standard Error: 1_462_209 + .saturating_add(Weight::from_parts(480_126_430, 0).saturating_mul(r.into())) } fn allocation_cost() -> Weight { // To be changed with the proper value. @@ -386,21 +386,21 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 1_040_000 picoseconds. - Weight::from_parts(1_087_000, 0) - // Standard Error: 940 - .saturating_add(Weight::from_parts(251_751, 0).saturating_mul(c.into())) + // Minimum execution time: 1_019_000 picoseconds. + Weight::from_parts(1_041_000, 0) + // Standard Error: 981 + .saturating_add(Weight::from_parts(210_472, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().writes(1_u64)) } /// The range of component `c` is `[0, 512]`. fn db_read_per_kb(c: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `79 + c * (1024 ±0)` - // Estimated: `3543 + c * (1024 ±0)` - // Minimum execution time: 3_333_000 picoseconds. - Weight::from_parts(3_463_000, 3543) - // Standard Error: 966 - .saturating_add(Weight::from_parts(678_430, 0).saturating_mul(c.into())) + // Measured: `146 + c * (1024 ±0)` + // Estimated: `3610 + c * (1024 ±0)` + // Minimum execution time: 3_294_000 picoseconds. + Weight::from_parts(3_366_000, 3610) + // Standard Error: 1_080 + .saturating_add(Weight::from_parts(676_116, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(Weight::from_parts(0, 1024).saturating_mul(c.into())) } @@ -409,35 +409,35 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 61_586_000 picoseconds. - Weight::from_parts(95_956_778, 0) - // Standard Error: 5_472 - .saturating_add(Weight::from_parts(2_353_352, 0).saturating_mul(c.into())) + // Minimum execution time: 60_243_000 picoseconds. + Weight::from_parts(75_401_206, 0) + // Standard Error: 11_548 + .saturating_add(Weight::from_parts(2_494_849, 0).saturating_mul(c.into())) } fn claim_value() -> Weight { // Proof Size summary in bytes: - // Measured: `1304` - // Estimated: `51293` - // Minimum execution time: 105_420_000 picoseconds. - Weight::from_parts(109_120_000, 51293) + // Measured: `1372` + // Estimated: `51905` + // Minimum execution time: 108_943_000 picoseconds. + Weight::from_parts(111_577_000, 51905) .saturating_add(T::DbWeight::get().reads(15_u64)) .saturating_add(T::DbWeight::get().writes(12_u64)) } fn pay_program_rent() -> Weight { // Proof Size summary in bytes: - // Measured: `923` - // Estimated: `21372` - // Minimum execution time: 54_290_000 picoseconds. - Weight::from_parts(55_929_000, 21372) + // Measured: `992` + // Estimated: `21579` + // Minimum execution time: 56_262_000 picoseconds. + Weight::from_parts(58_296_000, 21579) .saturating_add(T::DbWeight::get().reads(7_u64)) .saturating_add(T::DbWeight::get().writes(6_u64)) } fn resume_session_init() -> Weight { // Proof Size summary in bytes: - // Measured: `570` - // Estimated: `17214` - // Minimum execution time: 29_539_000 picoseconds. - Weight::from_parts(30_515_000, 17214) + // Measured: `638` + // Estimated: `17486` + // Minimum execution time: 30_127_000 picoseconds. + Weight::from_parts(31_137_000, 17486) .saturating_add(T::DbWeight::get().reads(6_u64)) .saturating_add(T::DbWeight::get().writes(4_u64)) } @@ -446,22 +446,22 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `355` // Estimated: `7640` - // Minimum execution time: 8_426_000 picoseconds. - Weight::from_parts(5_984_423, 7640) - // Standard Error: 33_789 - .saturating_add(Weight::from_parts(13_895_151, 0).saturating_mul(c.into())) + // Minimum execution time: 7_944_000 picoseconds. + Weight::from_parts(3_967_373, 7640) + // Standard Error: 35_621 + .saturating_add(Weight::from_parts(13_338_658, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } /// The range of component `c` is `[0, 2044]`. fn resume_session_commit(c: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `1457 + c * (16389 ±0)` - // Estimated: `42178 + c * (131112 ±0)` - // Minimum execution time: 71_198_000 picoseconds. - Weight::from_parts(72_033_000, 42178) - // Standard Error: 159_543 - .saturating_add(Weight::from_parts(54_764_270, 0).saturating_mul(c.into())) + // Measured: `1593 + c * (16389 ±0)` + // Estimated: `43266 + c * (131112 ±0)` + // Minimum execution time: 72_793_000 picoseconds. + Weight::from_parts(73_500_000, 43266) + // Standard Error: 159_839 + .saturating_add(Weight::from_parts(53_776_845, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(11_u64)) .saturating_add(T::DbWeight::get().writes(9_u64)) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(c.into()))) @@ -470,24 +470,24 @@ impl WeightInfo for SubstrateWeight { /// The range of component `c` is `[0, 250]`. fn upload_code(c: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `46` - // Estimated: `5134` - // Minimum execution time: 77_259_000 picoseconds. - Weight::from_parts(52_968_469, 5134) - // Standard Error: 43_186 - .saturating_add(Weight::from_parts(59_988_588, 0).saturating_mul(c.into())) + // Measured: `113` + // Estimated: `5402` + // Minimum execution time: 77_549_000 picoseconds. + Weight::from_parts(11_782_592, 5402) + // Standard Error: 44_814 + .saturating_add(Weight::from_parts(62_238_899, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(4_u64)) } /// The range of component `s` is `[0, 4194304]`. fn create_program(s: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `1043` - // Estimated: `49852` - // Minimum execution time: 96_734_000 picoseconds. - Weight::from_parts(136_364_170, 49852) + // Measured: `1111` + // Estimated: `50600` + // Minimum execution time: 95_703_000 picoseconds. + Weight::from_parts(124_584_109, 50600) // Standard Error: 0 - .saturating_add(Weight::from_parts(2_592, 0).saturating_mul(s.into())) + .saturating_add(Weight::from_parts(2_516, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(15_u64)) .saturating_add(T::DbWeight::get().writes(12_u64)) } @@ -495,72 +495,70 @@ impl WeightInfo for SubstrateWeight { /// The range of component `s` is `[0, 4194304]`. fn upload_program(c: u32, s: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `453` - // Estimated: `44268` - // Minimum execution time: 11_047_048_000 picoseconds. - Weight::from_parts(211_012_859, 44268) - // Standard Error: 157_221 - .saturating_add(Weight::from_parts(59_860_835, 0).saturating_mul(c.into())) - // Standard Error: 9 - .saturating_add(Weight::from_parts(2_554, 0).saturating_mul(s.into())) + // Measured: `521` + // Estimated: `45152` + // Minimum execution time: 10_716_861_000 picoseconds. + Weight::from_parts(73_848_079, 45152) + // Standard Error: 150_468 + .saturating_add(Weight::from_parts(64_695_292, 0).saturating_mul(c.into())) + // Standard Error: 8 + .saturating_add(Weight::from_parts(2_493, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(15_u64)) .saturating_add(T::DbWeight::get().writes(16_u64)) } /// The range of component `p` is `[0, 2097152]`. fn send_message(p: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `530` - // Estimated: `31259` - // Minimum execution time: 73_682_000 picoseconds. - Weight::from_parts(48_414_295, 31259) + // Measured: `531` + // Estimated: `31266` + // Minimum execution time: 74_957_000 picoseconds. + Weight::from_parts(48_430_172, 31266) // Standard Error: 1 - .saturating_add(Weight::from_parts(1_040, 0).saturating_mul(p.into())) + .saturating_add(Weight::from_parts(1_052, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(11_u64)) .saturating_add(T::DbWeight::get().writes(10_u64)) } /// The range of component `p` is `[0, 2097152]`. fn send_reply(p: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `1303` - // Estimated: `53823` - // Minimum execution time: 122_837_000 picoseconds. - Weight::from_parts(97_209_014, 53823) - // Standard Error: 1 - .saturating_add(Weight::from_parts(1_068, 0).saturating_mul(p.into())) + // Measured: `1371` + // Estimated: `54435` + // Minimum execution time: 126_639_000 picoseconds. + Weight::from_parts(100_822_385, 54435) + // Standard Error: 2 + .saturating_add(Weight::from_parts(1_072, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(16_u64)) .saturating_add(T::DbWeight::get().writes(13_u64)) } /// The range of component `q` is `[1, 512]`. fn initial_allocation(_q: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `979` - // Estimated: `89393` - // Minimum execution time: 354_207_000 picoseconds. - Weight::from_parts(374_297_966, 89393) - .saturating_add(T::DbWeight::get().reads(31_u64)) - .saturating_add(T::DbWeight::get().writes(24_u64)) + // Measured: `1897` + // Estimated: `121468` + // Minimum execution time: 375_457_000 picoseconds. + Weight::from_parts(393_536_920, 121468) + .saturating_add(T::DbWeight::get().reads(35_u64)) + .saturating_add(T::DbWeight::get().writes(26_u64)) } /// The range of component `q` is `[0, 512]`. - fn alloc_in_handle(q: u32, ) -> Weight { + fn alloc_in_handle(_q: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `979` - // Estimated: `89133` - // Minimum execution time: 368_424_000 picoseconds. - Weight::from_parts(387_073_481, 89133) - // Standard Error: 1_472 - .saturating_add(Weight::from_parts(4_343, 0).saturating_mul(q.into())) - .saturating_add(T::DbWeight::get().reads(31_u64)) - .saturating_add(T::DbWeight::get().writes(24_u64)) + // Measured: `1897` + // Estimated: `121468` + // Minimum execution time: 390_030_000 picoseconds. + Weight::from_parts(411_717_925, 121468) + .saturating_add(T::DbWeight::get().reads(35_u64)) + .saturating_add(T::DbWeight::get().writes(26_u64)) } /// The range of component `c` is `[0, 512]`. fn reinstrument_per_kb(c: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `211 + c * (1075 ±0)` // Estimated: `3899 + c * (2150 ±0)` - // Minimum execution time: 58_209_000 picoseconds. - Weight::from_parts(58_498_000, 3899) - // Standard Error: 35_860 - .saturating_add(Weight::from_parts(58_109_594, 0).saturating_mul(c.into())) + // Minimum execution time: 57_499_000 picoseconds. + Weight::from_parts(58_384_000, 3899) + // Standard Error: 39_375 + .saturating_add(Weight::from_parts(61_628_039, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) .saturating_add(Weight::from_parts(0, 2150).saturating_mul(c.into())) @@ -570,510 +568,510 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 92_645_000 picoseconds. - Weight::from_parts(95_763_000, 0) - // Standard Error: 3_691_564 - .saturating_add(Weight::from_parts(713_537_659, 0).saturating_mul(r.into())) + // Minimum execution time: 94_798_000 picoseconds. + Weight::from_parts(98_095_000, 0) + // Standard Error: 4_268_961 + .saturating_add(Weight::from_parts(719_474_559, 0).saturating_mul(r.into())) } /// The range of component `p` is `[1, 512]`. fn alloc_per_page(p: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 495_006_000 picoseconds. - Weight::from_parts(421_459_793, 0) - // Standard Error: 9_156 - .saturating_add(Weight::from_parts(29_070_022, 0).saturating_mul(p.into())) + // Minimum execution time: 463_364_000 picoseconds. + Weight::from_parts(384_532_432, 0) + // Standard Error: 11_127 + .saturating_add(Weight::from_parts(32_661_842, 0).saturating_mul(p.into())) } /// The range of component `r` is `[0, 20]`. fn free(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 219_414_000 picoseconds. - Weight::from_parts(206_118_379, 0) - // Standard Error: 320_555 - .saturating_add(Weight::from_parts(64_665_141, 0).saturating_mul(r.into())) + // Minimum execution time: 208_188_000 picoseconds. + Weight::from_parts(207_251_598, 0) + // Standard Error: 269_511 + .saturating_add(Weight::from_parts(63_993_415, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 256]`. fn gr_reserve_gas(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 96_871_000 picoseconds. - Weight::from_parts(104_318_392, 0) - // Standard Error: 4_224 - .saturating_add(Weight::from_parts(2_443_618, 0).saturating_mul(r.into())) + // Minimum execution time: 99_563_000 picoseconds. + Weight::from_parts(103_711_343, 0) + // Standard Error: 4_244 + .saturating_add(Weight::from_parts(2_502_376, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 256]`. fn gr_unreserve_gas(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 152_658_000 picoseconds. - Weight::from_parts(218_177_774, 0) - // Standard Error: 23_640 - .saturating_add(Weight::from_parts(2_186_094, 0).saturating_mul(r.into())) + // Minimum execution time: 177_888_000 picoseconds. + Weight::from_parts(232_133_210, 0) + // Standard Error: 15_407 + .saturating_add(Weight::from_parts(2_084_728, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 20]`. fn gr_system_reserve_gas(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 97_532_000 picoseconds. - Weight::from_parts(112_244_990, 0) - // Standard Error: 370_435 - .saturating_add(Weight::from_parts(102_977_688, 0).saturating_mul(r.into())) + // Minimum execution time: 95_448_000 picoseconds. + Weight::from_parts(118_211_047, 0) + // Standard Error: 364_890 + .saturating_add(Weight::from_parts(103_988_684, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 20]`. fn gr_message_id(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 95_116_000 picoseconds. - Weight::from_parts(85_754_801, 0) - // Standard Error: 322_936 - .saturating_add(Weight::from_parts(85_646_040, 0).saturating_mul(r.into())) + // Minimum execution time: 96_343_000 picoseconds. + Weight::from_parts(82_804_631, 0) + // Standard Error: 293_430 + .saturating_add(Weight::from_parts(94_357_895, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 20]`. fn gr_program_id(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 97_226_000 picoseconds. - Weight::from_parts(96_400_189, 0) - // Standard Error: 308_975 - .saturating_add(Weight::from_parts(84_400_658, 0).saturating_mul(r.into())) + // Minimum execution time: 94_619_000 picoseconds. + Weight::from_parts(86_482_681, 0) + // Standard Error: 304_846 + .saturating_add(Weight::from_parts(93_938_049, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 20]`. fn gr_source(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 96_667_000 picoseconds. - Weight::from_parts(95_221_535, 0) - // Standard Error: 320_528 - .saturating_add(Weight::from_parts(85_320_330, 0).saturating_mul(r.into())) + // Minimum execution time: 96_485_000 picoseconds. + Weight::from_parts(87_288_199, 0) + // Standard Error: 292_714 + .saturating_add(Weight::from_parts(93_943_740, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 20]`. fn gr_value(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 96_400_000 picoseconds. - Weight::from_parts(83_830_464, 0) - // Standard Error: 333_677 - .saturating_add(Weight::from_parts(86_153_462, 0).saturating_mul(r.into())) + // Minimum execution time: 97_613_000 picoseconds. + Weight::from_parts(83_672_504, 0) + // Standard Error: 280_845 + .saturating_add(Weight::from_parts(97_083_052, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 20]`. fn gr_value_available(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 98_322_000 picoseconds. - Weight::from_parts(88_780_011, 0) - // Standard Error: 365_736 - .saturating_add(Weight::from_parts(86_373_607, 0).saturating_mul(r.into())) + // Minimum execution time: 99_107_000 picoseconds. + Weight::from_parts(82_852_950, 0) + // Standard Error: 284_918 + .saturating_add(Weight::from_parts(96_401_375, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 20]`. fn gr_gas_available(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 94_234_000 picoseconds. - Weight::from_parts(93_394_916, 0) - // Standard Error: 310_495 - .saturating_add(Weight::from_parts(85_678_300, 0).saturating_mul(r.into())) + // Minimum execution time: 94_978_000 picoseconds. + Weight::from_parts(88_834_080, 0) + // Standard Error: 284_077 + .saturating_add(Weight::from_parts(94_358_752, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 20]`. fn gr_size(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 95_316_000 picoseconds. - Weight::from_parts(88_012_950, 0) - // Standard Error: 309_598 - .saturating_add(Weight::from_parts(85_813_369, 0).saturating_mul(r.into())) + // Minimum execution time: 97_069_000 picoseconds. + Weight::from_parts(84_658_812, 0) + // Standard Error: 289_909 + .saturating_add(Weight::from_parts(94_739_130, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 20]`. fn gr_read(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 715_150_000 picoseconds. - Weight::from_parts(769_593_524, 0) - // Standard Error: 493_525 - .saturating_add(Weight::from_parts(140_935_499, 0).saturating_mul(r.into())) + // Minimum execution time: 624_988_000 picoseconds. + Weight::from_parts(719_391_471, 0) + // Standard Error: 385_357 + .saturating_add(Weight::from_parts(153_589_919, 0).saturating_mul(r.into())) } /// The range of component `n` is `[0, 2048]`. fn gr_read_per_kb(n: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 844_162_000 picoseconds. - Weight::from_parts(851_053_000, 0) - // Standard Error: 50_294 - .saturating_add(Weight::from_parts(13_068_816, 0).saturating_mul(n.into())) + // Minimum execution time: 768_360_000 picoseconds. + Weight::from_parts(784_407_000, 0) + // Standard Error: 58_239 + .saturating_add(Weight::from_parts(13_509_438, 0).saturating_mul(n.into())) } /// The range of component `r` is `[0, 20]`. fn gr_block_height(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 94_243_000 picoseconds. - Weight::from_parts(87_583_955, 0) - // Standard Error: 343_578 - .saturating_add(Weight::from_parts(84_267_053, 0).saturating_mul(r.into())) + // Minimum execution time: 95_583_000 picoseconds. + Weight::from_parts(93_000_068, 0) + // Standard Error: 287_092 + .saturating_add(Weight::from_parts(92_987_967, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 20]`. fn gr_block_timestamp(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 95_559_000 picoseconds. - Weight::from_parts(92_460_596, 0) - // Standard Error: 340_344 - .saturating_add(Weight::from_parts(85_006_110, 0).saturating_mul(r.into())) + // Minimum execution time: 98_609_000 picoseconds. + Weight::from_parts(91_602_090, 0) + // Standard Error: 261_647 + .saturating_add(Weight::from_parts(93_534_327, 0).saturating_mul(r.into())) } /// The range of component `n` is `[0, 20]`. fn gr_random(n: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 95_023_000 picoseconds. - Weight::from_parts(113_045_564, 0) - // Standard Error: 350_542 - .saturating_add(Weight::from_parts(169_289_972, 0).saturating_mul(n.into())) + // Minimum execution time: 96_064_000 picoseconds. + Weight::from_parts(112_225_482, 0) + // Standard Error: 372_150 + .saturating_add(Weight::from_parts(176_540_888, 0).saturating_mul(n.into())) } /// The range of component `r` is `[0, 20]`. fn gr_reply_deposit(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 95_407_000 picoseconds. - Weight::from_parts(99_094_000, 0) - // Standard Error: 3_585_438 - .saturating_add(Weight::from_parts(776_362_449, 0).saturating_mul(r.into())) + // Minimum execution time: 96_515_000 picoseconds. + Weight::from_parts(100_449_000, 0) + // Standard Error: 4_642_503 + .saturating_add(Weight::from_parts(868_473_141, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 20]`. fn gr_send(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 96_709_000 picoseconds. - Weight::from_parts(153_262_764, 0) - // Standard Error: 391_637 - .saturating_add(Weight::from_parts(256_389_022, 0).saturating_mul(r.into())) + // Minimum execution time: 98_501_000 picoseconds. + Weight::from_parts(154_456_982, 0) + // Standard Error: 340_064 + .saturating_add(Weight::from_parts(264_987_162, 0).saturating_mul(r.into())) } /// The range of component `n` is `[0, 2048]`. fn gr_send_per_kb(n: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 341_633_000 picoseconds. - Weight::from_parts(345_693_000, 0) - // Standard Error: 61_029 - .saturating_add(Weight::from_parts(21_298_548, 0).saturating_mul(n.into())) + // Minimum execution time: 353_842_000 picoseconds. + Weight::from_parts(358_232_000, 0) + // Standard Error: 59_123 + .saturating_add(Weight::from_parts(21_328_711, 0).saturating_mul(n.into())) } /// The range of component `r` is `[0, 20]`. fn gr_send_wgas(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 97_817_000 picoseconds. - Weight::from_parts(172_033_153, 0) - // Standard Error: 412_230 - .saturating_add(Weight::from_parts(260_826_119, 0).saturating_mul(r.into())) + // Minimum execution time: 95_473_000 picoseconds. + Weight::from_parts(173_487_611, 0) + // Standard Error: 346_958 + .saturating_add(Weight::from_parts(265_362_826, 0).saturating_mul(r.into())) } /// The range of component `n` is `[0, 2048]`. fn gr_send_wgas_per_kb(n: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 353_433_000 picoseconds. - Weight::from_parts(359_185_000, 0) - // Standard Error: 60_153 - .saturating_add(Weight::from_parts(21_224_949, 0).saturating_mul(n.into())) + // Minimum execution time: 361_340_000 picoseconds. + Weight::from_parts(365_775_000, 0) + // Standard Error: 57_913 + .saturating_add(Weight::from_parts(21_806_682, 0).saturating_mul(n.into())) } /// The range of component `r` is `[0, 20]`. fn gr_send_input(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 716_180_000 picoseconds. - Weight::from_parts(782_890_839, 0) - // Standard Error: 547_225 - .saturating_add(Weight::from_parts(273_570_636, 0).saturating_mul(r.into())) + // Minimum execution time: 619_127_000 picoseconds. + Weight::from_parts(727_744_949, 0) + // Standard Error: 407_186 + .saturating_add(Weight::from_parts(287_464_747, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 20]`. fn gr_send_input_wgas(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 719_827_000 picoseconds. - Weight::from_parts(805_763_844, 0) - // Standard Error: 503_245 - .saturating_add(Weight::from_parts(278_200_889, 0).saturating_mul(r.into())) + // Minimum execution time: 598_950_000 picoseconds. + Weight::from_parts(736_523_445, 0) + // Standard Error: 426_087 + .saturating_add(Weight::from_parts(286_023_165, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 20]`. fn gr_send_init(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 96_518_000 picoseconds. - Weight::from_parts(82_218_173, 0) - // Standard Error: 358_867 - .saturating_add(Weight::from_parts(92_408_337, 0).saturating_mul(r.into())) + // Minimum execution time: 96_646_000 picoseconds. + Weight::from_parts(83_018_591, 0) + // Standard Error: 290_942 + .saturating_add(Weight::from_parts(100_797_875, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 20]`. fn gr_send_push(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 1_829_368_000 picoseconds. - Weight::from_parts(1_976_758_302, 0) - // Standard Error: 349_703 - .saturating_add(Weight::from_parts(163_038_781, 0).saturating_mul(r.into())) + // Minimum execution time: 1_992_708_000 picoseconds. + Weight::from_parts(2_118_177_569, 0) + // Standard Error: 258_344 + .saturating_add(Weight::from_parts(175_943_566, 0).saturating_mul(r.into())) } /// The range of component `n` is `[0, 2048]`. fn gr_send_push_per_kb(n: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 315_829_000 picoseconds. - Weight::from_parts(318_464_000, 0) - // Standard Error: 54_637 - .saturating_add(Weight::from_parts(31_280_567, 0).saturating_mul(n.into())) + // Minimum execution time: 329_583_000 picoseconds. + Weight::from_parts(332_097_000, 0) + // Standard Error: 52_868 + .saturating_add(Weight::from_parts(29_693_569, 0).saturating_mul(n.into())) } /// The range of component `r` is `[0, 20]`. fn gr_send_commit(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 1_818_937_000 picoseconds. - Weight::from_parts(1_941_969_566, 0) - // Standard Error: 412_244 - .saturating_add(Weight::from_parts(220_650_756, 0).saturating_mul(r.into())) + // Minimum execution time: 2_000_304_000 picoseconds. + Weight::from_parts(2_103_665_360, 0) + // Standard Error: 279_832 + .saturating_add(Weight::from_parts(222_774_116, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 20]`. fn gr_send_commit_wgas(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 1_815_762_000 picoseconds. - Weight::from_parts(1_958_182_203, 0) - // Standard Error: 374_381 - .saturating_add(Weight::from_parts(229_106_637, 0).saturating_mul(r.into())) + // Minimum execution time: 2_009_086_000 picoseconds. + Weight::from_parts(2_118_651_462, 0) + // Standard Error: 304_300 + .saturating_add(Weight::from_parts(227_551_678, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 20]`. fn gr_reservation_send(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 259_040_000 picoseconds. - Weight::from_parts(345_586_401, 0) - // Standard Error: 402_258 - .saturating_add(Weight::from_parts(274_866_021, 0).saturating_mul(r.into())) + // Minimum execution time: 249_654_000 picoseconds. + Weight::from_parts(318_420_072, 0) + // Standard Error: 334_694 + .saturating_add(Weight::from_parts(277_786_644, 0).saturating_mul(r.into())) } /// The range of component `n` is `[0, 2048]`. fn gr_reservation_send_per_kb(n: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 523_014_000 picoseconds. - Weight::from_parts(525_681_000, 0) - // Standard Error: 56_470 - .saturating_add(Weight::from_parts(21_443_571, 0).saturating_mul(n.into())) + // Minimum execution time: 530_798_000 picoseconds. + Weight::from_parts(542_480_000, 0) + // Standard Error: 69_997 + .saturating_add(Weight::from_parts(21_968_683, 0).saturating_mul(n.into())) } /// The range of component `r` is `[0, 20]`. fn gr_reservation_send_commit(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 1_967_181_000 picoseconds. - Weight::from_parts(2_076_078_781, 0) - // Standard Error: 455_370 - .saturating_add(Weight::from_parts(246_494_683, 0).saturating_mul(r.into())) + // Minimum execution time: 2_149_917_000 picoseconds. + Weight::from_parts(2_296_280_954, 0) + // Standard Error: 415_974 + .saturating_add(Weight::from_parts(248_500_648, 0).saturating_mul(r.into())) } /// The range of component `n` is `[0, 2048]`. fn gr_reply_per_kb(n: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 114_790_000 picoseconds. - Weight::from_parts(106_908_278, 0) - // Standard Error: 1_274 - .saturating_add(Weight::from_parts(430_785, 0).saturating_mul(n.into())) + // Minimum execution time: 114_806_000 picoseconds. + Weight::from_parts(102_087_876, 0) + // Standard Error: 1_338 + .saturating_add(Weight::from_parts(436_648, 0).saturating_mul(n.into())) } /// The range of component `n` is `[0, 2048]`. fn gr_reply_wgas_per_kb(n: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 115_541_000 picoseconds. - Weight::from_parts(101_956_035, 0) - // Standard Error: 3_603 - .saturating_add(Weight::from_parts(442_387, 0).saturating_mul(n.into())) + // Minimum execution time: 116_657_000 picoseconds. + Weight::from_parts(106_022_444, 0) + // Standard Error: 1_018 + .saturating_add(Weight::from_parts(431_359, 0).saturating_mul(n.into())) } /// The range of component `r` is `[0, 20]`. fn gr_reply_push(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 94_082_000 picoseconds. - Weight::from_parts(138_243_307, 0) - // Standard Error: 409_163 - .saturating_add(Weight::from_parts(154_758_505, 0).saturating_mul(r.into())) + // Minimum execution time: 96_038_000 picoseconds. + Weight::from_parts(135_201_165, 0) + // Standard Error: 356_732 + .saturating_add(Weight::from_parts(159_820_965, 0).saturating_mul(r.into())) } /// The range of component `n` is `[0, 8192]`. fn gr_reply_push_per_kb(n: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 111_536_000 picoseconds. - Weight::from_parts(114_497_000, 0) - // Standard Error: 2_599 - .saturating_add(Weight::from_parts(656_994, 0).saturating_mul(n.into())) + // Minimum execution time: 112_492_000 picoseconds. + Weight::from_parts(114_308_000, 0) + // Standard Error: 3_223 + .saturating_add(Weight::from_parts(662_188, 0).saturating_mul(n.into())) } /// The range of component `n` is `[0, 2048]`. fn gr_reservation_reply_per_kb(n: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 114_322_000 picoseconds. - Weight::from_parts(113_131_028, 0) - // Standard Error: 3_727 - .saturating_add(Weight::from_parts(436_168, 0).saturating_mul(n.into())) + // Minimum execution time: 115_332_000 picoseconds. + Weight::from_parts(108_506_706, 0) + // Standard Error: 1_103 + .saturating_add(Weight::from_parts(434_341, 0).saturating_mul(n.into())) } /// The range of component `n` is `[0, 2048]`. fn gr_reservation_reply_commit_per_kb(n: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 117_751_000 picoseconds. - Weight::from_parts(161_418_174, 0) - // Standard Error: 6_635 - .saturating_add(Weight::from_parts(405_229, 0).saturating_mul(n.into())) + // Minimum execution time: 118_794_000 picoseconds. + Weight::from_parts(107_294_653, 0) + // Standard Error: 960 + .saturating_add(Weight::from_parts(430_040, 0).saturating_mul(n.into())) } /// The range of component `r` is `[0, 20]`. fn gr_reply_to(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 93_524_000 picoseconds. - Weight::from_parts(89_332_032, 0) - // Standard Error: 294_566 - .saturating_add(Weight::from_parts(86_798_759, 0).saturating_mul(r.into())) + // Minimum execution time: 94_737_000 picoseconds. + Weight::from_parts(87_725_226, 0) + // Standard Error: 309_072 + .saturating_add(Weight::from_parts(95_349_514, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 20]`. fn gr_signal_code(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 95_216_000 picoseconds. - Weight::from_parts(83_424_786, 0) - // Standard Error: 316_301 - .saturating_add(Weight::from_parts(84_774_296, 0).saturating_mul(r.into())) + // Minimum execution time: 96_560_000 picoseconds. + Weight::from_parts(88_778_855, 0) + // Standard Error: 321_153 + .saturating_add(Weight::from_parts(92_345_730, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 20]`. fn gr_signal_from(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 96_461_000 picoseconds. - Weight::from_parts(97_636_300, 0) - // Standard Error: 278_297 - .saturating_add(Weight::from_parts(86_743_159, 0).saturating_mul(r.into())) + // Minimum execution time: 95_858_000 picoseconds. + Weight::from_parts(83_381_792, 0) + // Standard Error: 288_029 + .saturating_add(Weight::from_parts(95_413_243, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 20]`. fn gr_reply_push_input(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 724_902_000 picoseconds. - Weight::from_parts(784_128_285, 0) - // Standard Error: 444_406 - .saturating_add(Weight::from_parts(105_223_470, 0).saturating_mul(r.into())) + // Minimum execution time: 623_083_000 picoseconds. + Weight::from_parts(708_678_749, 0) + // Standard Error: 349_496 + .saturating_add(Weight::from_parts(115_860_492, 0).saturating_mul(r.into())) } /// The range of component `n` is `[0, 2048]`. fn gr_reply_push_input_per_kb(n: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 737_666_000 picoseconds. - Weight::from_parts(758_797_216, 0) - // Standard Error: 1_260 - .saturating_add(Weight::from_parts(154_837, 0).saturating_mul(n.into())) + // Minimum execution time: 618_159_000 picoseconds. + Weight::from_parts(642_200_096, 0) + // Standard Error: 1_446 + .saturating_add(Weight::from_parts(123_508, 0).saturating_mul(n.into())) } /// The range of component `r` is `[0, 20]`. fn gr_send_push_input(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_498_871_000 picoseconds. - Weight::from_parts(2_688_516_696, 0) - // Standard Error: 531_545 - .saturating_add(Weight::from_parts(131_060_314, 0).saturating_mul(r.into())) + // Minimum execution time: 2_500_516_000 picoseconds. + Weight::from_parts(2_647_459_773, 0) + // Standard Error: 453_733 + .saturating_add(Weight::from_parts(132_179_417, 0).saturating_mul(r.into())) } /// The range of component `n` is `[0, 2048]`. fn gr_send_push_input_per_kb(n: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_657_855_000 picoseconds. - Weight::from_parts(2_746_003_287, 0) - // Standard Error: 12_743 - .saturating_add(Weight::from_parts(13_716_214, 0).saturating_mul(n.into())) + // Minimum execution time: 2_741_565_000 picoseconds. + Weight::from_parts(2_768_198_343, 0) + // Standard Error: 15_631 + .saturating_add(Weight::from_parts(12_354_508, 0).saturating_mul(n.into())) } /// The range of component `r` is `[0, 20]`. fn gr_debug(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 96_990_000 picoseconds. - Weight::from_parts(110_812_744, 0) - // Standard Error: 347_035 - .saturating_add(Weight::from_parts(120_462_128, 0).saturating_mul(r.into())) + // Minimum execution time: 99_002_000 picoseconds. + Weight::from_parts(122_377_318, 0) + // Standard Error: 378_707 + .saturating_add(Weight::from_parts(116_584_775, 0).saturating_mul(r.into())) } /// The range of component `n` is `[0, 2048]`. fn gr_debug_per_kb(n: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 170_244_000 picoseconds. - Weight::from_parts(175_502_000, 0) - // Standard Error: 56_203 - .saturating_add(Weight::from_parts(25_870_902, 0).saturating_mul(n.into())) + // Minimum execution time: 159_403_000 picoseconds. + Weight::from_parts(161_567_000, 0) + // Standard Error: 52_611 + .saturating_add(Weight::from_parts(23_966_846, 0).saturating_mul(n.into())) } /// The range of component `r` is `[0, 20]`. fn gr_reply_code(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 97_676_000 picoseconds. - Weight::from_parts(91_226_383, 0) - // Standard Error: 320_296 - .saturating_add(Weight::from_parts(82_761_490, 0).saturating_mul(r.into())) + // Minimum execution time: 95_021_000 picoseconds. + Weight::from_parts(83_792_170, 0) + // Standard Error: 307_944 + .saturating_add(Weight::from_parts(92_699_319, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 20]`. fn gr_wake(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 149_319_000 picoseconds. - Weight::from_parts(230_971_562, 0) - // Standard Error: 338_138 - .saturating_add(Weight::from_parts(157_262_608, 0).saturating_mul(r.into())) + // Minimum execution time: 177_740_000 picoseconds. + Weight::from_parts(220_550_761, 0) + // Standard Error: 175_549 + .saturating_add(Weight::from_parts(166_872_997, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 20]`. fn gr_create_program(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 108_167_000 picoseconds. - Weight::from_parts(178_994_489, 0) - // Standard Error: 404_012 - .saturating_add(Weight::from_parts(348_487_075, 0).saturating_mul(r.into())) + // Minimum execution time: 105_825_000 picoseconds. + Weight::from_parts(167_061_819, 0) + // Standard Error: 329_320 + .saturating_add(Weight::from_parts(351_610_020, 0).saturating_mul(r.into())) } /// The range of component `p` is `[0, 2048]`. /// The range of component `s` is `[1, 2048]`. @@ -1081,22 +1079,22 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 43_645_119_000 picoseconds. - Weight::from_parts(43_811_648_000, 0) - // Standard Error: 262_276 - .saturating_add(Weight::from_parts(7_776_587, 0).saturating_mul(p.into())) - // Standard Error: 262_263 - .saturating_add(Weight::from_parts(178_958_075, 0).saturating_mul(s.into())) + // Minimum execution time: 43_911_786_000 picoseconds. + Weight::from_parts(44_034_848_000, 0) + // Standard Error: 268_084 + .saturating_add(Weight::from_parts(7_840_641, 0).saturating_mul(p.into())) + // Standard Error: 268_071 + .saturating_add(Weight::from_parts(171_034_577, 0).saturating_mul(s.into())) } /// The range of component `r` is `[0, 20]`. fn gr_create_program_wgas(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 104_639_000 picoseconds. - Weight::from_parts(169_517_206, 0) - // Standard Error: 363_225 - .saturating_add(Weight::from_parts(357_078_703, 0).saturating_mul(r.into())) + // Minimum execution time: 113_178_000 picoseconds. + Weight::from_parts(151_638_067, 0) + // Standard Error: 307_779 + .saturating_add(Weight::from_parts(360_201_120, 0).saturating_mul(r.into())) } /// The range of component `p` is `[0, 2048]`. /// The range of component `s` is `[1, 2048]`. @@ -1104,32 +1102,32 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 46_491_851_000 picoseconds. - Weight::from_parts(46_603_783_000, 0) - // Standard Error: 280_431 - .saturating_add(Weight::from_parts(7_250_257, 0).saturating_mul(p.into())) - // Standard Error: 280_417 - .saturating_add(Weight::from_parts(177_722_888, 0).saturating_mul(s.into())) + // Minimum execution time: 45_074_991_000 picoseconds. + Weight::from_parts(45_234_378_000, 0) + // Standard Error: 283_779 + .saturating_add(Weight::from_parts(7_989_562, 0).saturating_mul(p.into())) + // Standard Error: 283_765 + .saturating_add(Weight::from_parts(170_645_975, 0).saturating_mul(s.into())) } /// The range of component `r` is `[0, 20]`. fn gr_pay_program_rent(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 95_721_000 picoseconds. - Weight::from_parts(114_995_832, 0) - // Standard Error: 36_809 - .saturating_add(Weight::from_parts(1_873_016, 0).saturating_mul(r.into())) + // Minimum execution time: 95_835_000 picoseconds. + Weight::from_parts(115_102_214, 0) + // Standard Error: 34_404 + .saturating_add(Weight::from_parts(2_142_089, 0).saturating_mul(r.into())) } /// The range of component `p` is `[0, 512]`. fn lazy_pages_signal_read(p: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `141` // Estimated: `1131 + p * (9900 ±0)` - // Minimum execution time: 97_655_000 picoseconds. - Weight::from_parts(138_058_498, 1131) - // Standard Error: 18_813 - .saturating_add(Weight::from_parts(16_311_194, 0).saturating_mul(p.into())) + // Minimum execution time: 95_078_000 picoseconds. + Weight::from_parts(134_205_201, 1131) + // Standard Error: 22_980 + .saturating_add(Weight::from_parts(16_531_416, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads((4_u64).saturating_mul(p.into()))) .saturating_add(Weight::from_parts(0, 9900).saturating_mul(p.into())) } @@ -1138,10 +1136,10 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `141` // Estimated: `1131 + p * (9900 ±0)` - // Minimum execution time: 96_083_000 picoseconds. - Weight::from_parts(98_597_000, 1131) - // Standard Error: 43_515 - .saturating_add(Weight::from_parts(42_632_421, 0).saturating_mul(p.into())) + // Minimum execution time: 96_686_000 picoseconds. + Weight::from_parts(98_247_000, 1131) + // Standard Error: 31_568 + .saturating_add(Weight::from_parts(41_868_408, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads((4_u64).saturating_mul(p.into()))) .saturating_add(Weight::from_parts(0, 9900).saturating_mul(p.into())) } @@ -1150,10 +1148,10 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `141` // Estimated: `5069931` - // Minimum execution time: 8_196_422_000 picoseconds. - Weight::from_parts(8_474_214_520, 5069931) - // Standard Error: 71_564 - .saturating_add(Weight::from_parts(41_738_666, 0).saturating_mul(p.into())) + // Minimum execution time: 8_172_399_000 picoseconds. + Weight::from_parts(7_934_736_669, 5069931) + // Standard Error: 90_294 + .saturating_add(Weight::from_parts(44_059_914, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(2048_u64)) } /// The range of component `p` is `[0, 512]`. @@ -1161,10 +1159,10 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `1813 + p * (65580 ±0)` // Estimated: `1939 + p * (75482 ±0)` - // Minimum execution time: 93_446_000 picoseconds. - Weight::from_parts(96_664_000, 1939) - // Standard Error: 46_722 - .saturating_add(Weight::from_parts(55_567_620, 0).saturating_mul(p.into())) + // Minimum execution time: 97_101_000 picoseconds. + Weight::from_parts(99_642_000, 1939) + // Standard Error: 38_446 + .saturating_add(Weight::from_parts(59_625_042, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads((4_u64).saturating_mul(p.into()))) .saturating_add(Weight::from_parts(0, 75482).saturating_mul(p.into())) } @@ -1173,10 +1171,10 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `141` // Estimated: `1131 + p * (9900 ±0)` - // Minimum execution time: 106_137_000 picoseconds. - Weight::from_parts(107_751_954, 1131) - // Standard Error: 71_200 - .saturating_add(Weight::from_parts(41_236_505, 0).saturating_mul(p.into())) + // Minimum execution time: 101_726_000 picoseconds. + Weight::from_parts(104_006_012, 1131) + // Standard Error: 73_331 + .saturating_add(Weight::from_parts(40_363_581, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads((4_u64).saturating_mul(p.into()))) .saturating_add(Weight::from_parts(0, 9900).saturating_mul(p.into())) } @@ -1185,10 +1183,10 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `141` // Estimated: `1496 + p * (9883 ±2)` - // Minimum execution time: 758_237_000 picoseconds. - Weight::from_parts(760_351_083, 1496) - // Standard Error: 319_479 - .saturating_add(Weight::from_parts(53_277_303, 0).saturating_mul(p.into())) + // Minimum execution time: 671_731_000 picoseconds. + Weight::from_parts(700_428_000, 1496) + // Standard Error: 235_378 + .saturating_add(Weight::from_parts(55_804_323, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads((4_u64).saturating_mul(p.into()))) .saturating_add(Weight::from_parts(0, 9883).saturating_mul(p.into())) } @@ -1197,10 +1195,10 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `141` // Estimated: `317931` - // Minimum execution time: 1_299_071_000 picoseconds. - Weight::from_parts(1_320_542_278, 317931) - // Standard Error: 364_770 - .saturating_add(Weight::from_parts(53_225_083, 0).saturating_mul(p.into())) + // Minimum execution time: 1_240_630_000 picoseconds. + Weight::from_parts(1_259_057_176, 317931) + // Standard Error: 261_140 + .saturating_add(Weight::from_parts(55_057_744, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(128_u64)) } /// The range of component `r` is `[0, 20]`. @@ -1208,935 +1206,935 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 4_118_000 picoseconds. - Weight::from_parts(7_418_987, 0) - // Standard Error: 299_976 - .saturating_add(Weight::from_parts(77_036_564, 0).saturating_mul(r.into())) + // Minimum execution time: 3_348_000 picoseconds. + Weight::from_parts(3_626_000, 0) + // Standard Error: 214_323 + .saturating_add(Weight::from_parts(78_486_417, 0).saturating_mul(r.into())) } /// The range of component `r` is `[50, 500]`. fn instr_i64load(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 4_461_228_000 picoseconds. - Weight::from_parts(4_172_544_233, 0) - // Standard Error: 108_717 - .saturating_add(Weight::from_parts(5_492_504, 0).saturating_mul(r.into())) + // Minimum execution time: 4_469_766_000 picoseconds. + Weight::from_parts(4_346_471_807, 0) + // Standard Error: 80_728 + .saturating_add(Weight::from_parts(4_713_314, 0).saturating_mul(r.into())) } /// The range of component `r` is `[50, 500]`. fn instr_i32load(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 4_440_105_000 picoseconds. - Weight::from_parts(4_189_326_223, 0) - // Standard Error: 94_884 - .saturating_add(Weight::from_parts(5_283_060, 0).saturating_mul(r.into())) + // Minimum execution time: 4_425_982_000 picoseconds. + Weight::from_parts(4_330_284_940, 0) + // Standard Error: 74_620 + .saturating_add(Weight::from_parts(4_628_865, 0).saturating_mul(r.into())) } /// The range of component `r` is `[50, 500]`. fn instr_i64store(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 11_389_557_000 picoseconds. - Weight::from_parts(11_860_510_711, 0) - // Standard Error: 156_021 - .saturating_add(Weight::from_parts(9_199_358, 0).saturating_mul(r.into())) + // Minimum execution time: 11_523_555_000 picoseconds. + Weight::from_parts(11_703_046_471, 0) + // Standard Error: 142_447 + .saturating_add(Weight::from_parts(10_471_668, 0).saturating_mul(r.into())) } /// The range of component `r` is `[50, 500]`. fn instr_i32store(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 11_497_103_000 picoseconds. - Weight::from_parts(11_330_880_436, 0) - // Standard Error: 132_247 - .saturating_add(Weight::from_parts(10_016_516, 0).saturating_mul(r.into())) + // Minimum execution time: 11_678_567_000 picoseconds. + Weight::from_parts(11_004_580_924, 0) + // Standard Error: 236_889 + .saturating_add(Weight::from_parts(11_641_285, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_select(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_381_000 picoseconds. - Weight::from_parts(2_444_000, 0) - // Standard Error: 7_402 - .saturating_add(Weight::from_parts(3_876_295, 0).saturating_mul(r.into())) + // Minimum execution time: 2_392_000 picoseconds. + Weight::from_parts(2_511_000, 0) + // Standard Error: 8_367 + .saturating_add(Weight::from_parts(3_799_391, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_if(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_405_000 picoseconds. - Weight::from_parts(481_308, 0) - // Standard Error: 8_161 - .saturating_add(Weight::from_parts(3_159_957, 0).saturating_mul(r.into())) + // Minimum execution time: 2_427_000 picoseconds. + Weight::from_parts(2_097_272, 0) + // Standard Error: 9_819 + .saturating_add(Weight::from_parts(3_176_824, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_br(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_371_000 picoseconds. - Weight::from_parts(3_249_787, 0) - // Standard Error: 1_586 - .saturating_add(Weight::from_parts(1_582_965, 0).saturating_mul(r.into())) + // Minimum execution time: 2_397_000 picoseconds. + Weight::from_parts(3_703_691, 0) + // Standard Error: 994 + .saturating_add(Weight::from_parts(1_561_922, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_br_if(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_216_000 picoseconds. - Weight::from_parts(2_300_000, 0) - // Standard Error: 6_757 - .saturating_add(Weight::from_parts(2_971_649, 0).saturating_mul(r.into())) + // Minimum execution time: 2_483_000 picoseconds. + Weight::from_parts(2_601_000, 0) + // Standard Error: 9_331 + .saturating_add(Weight::from_parts(2_888_581, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_br_table(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_259_000 picoseconds. - Weight::from_parts(2_872_259, 0) - // Standard Error: 19_834 - .saturating_add(Weight::from_parts(5_176_111, 0).saturating_mul(r.into())) + // Minimum execution time: 2_439_000 picoseconds. + Weight::from_parts(1_761_663, 0) + // Standard Error: 14_372 + .saturating_add(Weight::from_parts(5_100_133, 0).saturating_mul(r.into())) } /// The range of component `e` is `[1, 256]`. fn instr_br_table_per_entry(e: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 6_999_000 picoseconds. - Weight::from_parts(6_015_140, 0) - // Standard Error: 1_903 - .saturating_add(Weight::from_parts(170_143, 0).saturating_mul(e.into())) + // Minimum execution time: 7_234_000 picoseconds. + Weight::from_parts(5_492_163, 0) + // Standard Error: 1_185 + .saturating_add(Weight::from_parts(176_215, 0).saturating_mul(e.into())) } /// The range of component `r` is `[0, 50]`. fn instr_call_const(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_308_000 picoseconds. - Weight::from_parts(5_881_148, 0) - // Standard Error: 9_069 - .saturating_add(Weight::from_parts(2_574_099, 0).saturating_mul(r.into())) + // Minimum execution time: 2_491_000 picoseconds. + Weight::from_parts(5_061_503, 0) + // Standard Error: 8_350 + .saturating_add(Weight::from_parts(2_644_398, 0).saturating_mul(r.into())) } fn instr_i64const(r: u32, ) -> Weight { Weight::from_parts(0, 0) - .saturating_add(Weight::from_parts(2_574_099 - - 2_423_093, 0).saturating_mul(r.into())) + .saturating_add(Weight::from_parts(2_644_398 - + 2_438_254, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_call(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_337_000 picoseconds. - Weight::from_parts(5_123_036, 0) - // Standard Error: 12_143 - .saturating_add(Weight::from_parts(2_423_093, 0).saturating_mul(r.into())) + // Minimum execution time: 2_503_000 picoseconds. + Weight::from_parts(5_535_035, 0) + // Standard Error: 14_338 + .saturating_add(Weight::from_parts(2_438_254, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_call_indirect(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_736_000 picoseconds. - Weight::from_parts(16_600_828, 0) - // Standard Error: 30_025 - .saturating_add(Weight::from_parts(10_214_913, 0).saturating_mul(r.into())) + // Minimum execution time: 2_844_000 picoseconds. + Weight::from_parts(25_838_862, 0) + // Standard Error: 42_622 + .saturating_add(Weight::from_parts(9_686_143, 0).saturating_mul(r.into())) } /// The range of component `p` is `[0, 128]`. fn instr_call_indirect_per_param(p: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 12_483_000 picoseconds. - Weight::from_parts(1_416_669, 0) - // Standard Error: 5_995 - .saturating_add(Weight::from_parts(1_336_453, 0).saturating_mul(p.into())) + // Minimum execution time: 12_112_000 picoseconds. + Weight::from_parts(5_743_185, 0) + // Standard Error: 5_493 + .saturating_add(Weight::from_parts(1_233_796, 0).saturating_mul(p.into())) } /// The range of component `l` is `[0, 1024]`. fn instr_call_per_local(_l: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 5_497_000 picoseconds. - Weight::from_parts(5_981_231, 0) + // Minimum execution time: 5_473_000 picoseconds. + Weight::from_parts(5_937_974, 0) } /// The range of component `r` is `[0, 50]`. fn instr_local_get(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 4_730_000 picoseconds. - Weight::from_parts(5_851_529, 0) - // Standard Error: 2_642 - .saturating_add(Weight::from_parts(392_869, 0).saturating_mul(r.into())) + // Minimum execution time: 5_014_000 picoseconds. + Weight::from_parts(5_247_579, 0) + // Standard Error: 3_254 + .saturating_add(Weight::from_parts(453_803, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_local_set(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 4_837_000 picoseconds. - Weight::from_parts(4_473_635, 0) - // Standard Error: 5_210 - .saturating_add(Weight::from_parts(1_003_312, 0).saturating_mul(r.into())) + // Minimum execution time: 4_950_000 picoseconds. + Weight::from_parts(2_980_884, 0) + // Standard Error: 6_602 + .saturating_add(Weight::from_parts(1_178_313, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_local_tee(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 4_802_000 picoseconds. - Weight::from_parts(2_153_776, 0) - // Standard Error: 11_517 - .saturating_add(Weight::from_parts(1_186_032, 0).saturating_mul(r.into())) + // Minimum execution time: 4_957_000 picoseconds. + Weight::from_parts(1_255_357, 0) + // Standard Error: 11_777 + .saturating_add(Weight::from_parts(1_371_915, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_global_get(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 6_375_000 picoseconds. - Weight::from_parts(3_754_449, 0) - // Standard Error: 5_686 - .saturating_add(Weight::from_parts(763_597, 0).saturating_mul(r.into())) + // Minimum execution time: 6_526_000 picoseconds. + Weight::from_parts(2_358_200, 0) + // Standard Error: 7_803 + .saturating_add(Weight::from_parts(916_414, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_global_set(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 6_475_000 picoseconds. - Weight::from_parts(266_670, 0) - // Standard Error: 10_193 - .saturating_add(Weight::from_parts(1_552_777, 0).saturating_mul(r.into())) + // Minimum execution time: 6_534_000 picoseconds. + Weight::from_parts(1_078_818, 0) + // Standard Error: 8_155 + .saturating_add(Weight::from_parts(1_601_009, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_memory_current(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 6_887_000 picoseconds. - Weight::from_parts(4_333_544, 0) - // Standard Error: 10_173 - .saturating_add(Weight::from_parts(6_952_830, 0).saturating_mul(r.into())) + // Minimum execution time: 6_292_000 picoseconds. + Weight::from_parts(2_896_295, 0) + // Standard Error: 9_977 + .saturating_add(Weight::from_parts(7_220_458, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64clz(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_267_000 picoseconds. - Weight::from_parts(2_351_000, 0) - // Standard Error: 5_280 - .saturating_add(Weight::from_parts(3_360_413, 0).saturating_mul(r.into())) + // Minimum execution time: 2_413_000 picoseconds. + Weight::from_parts(2_490_000, 0) + // Standard Error: 6_167 + .saturating_add(Weight::from_parts(3_365_545, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32clz(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_283_000 picoseconds. - Weight::from_parts(2_357_000, 0) - // Standard Error: 4_452 - .saturating_add(Weight::from_parts(3_099_489, 0).saturating_mul(r.into())) + // Minimum execution time: 2_400_000 picoseconds. + Weight::from_parts(2_502_000, 0) + // Standard Error: 5_525 + .saturating_add(Weight::from_parts(3_090_577, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64ctz(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_328_000 picoseconds. - Weight::from_parts(2_417_000, 0) - // Standard Error: 5_054 - .saturating_add(Weight::from_parts(3_106_996, 0).saturating_mul(r.into())) + // Minimum execution time: 2_462_000 picoseconds. + Weight::from_parts(2_568_000, 0) + // Standard Error: 5_417 + .saturating_add(Weight::from_parts(3_118_601, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32ctz(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_230_000 picoseconds. - Weight::from_parts(2_296_000, 0) - // Standard Error: 3_924 - .saturating_add(Weight::from_parts(2_681_831, 0).saturating_mul(r.into())) + // Minimum execution time: 2_358_000 picoseconds. + Weight::from_parts(2_499_000, 0) + // Standard Error: 4_982 + .saturating_add(Weight::from_parts(2_770_061, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64popcnt(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_294_000 picoseconds. - Weight::from_parts(2_438_000, 0) - // Standard Error: 4_198 - .saturating_add(Weight::from_parts(603_106, 0).saturating_mul(r.into())) + // Minimum execution time: 2_503_000 picoseconds. + Weight::from_parts(2_564_000, 0) + // Standard Error: 4_969 + .saturating_add(Weight::from_parts(704_388, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32popcnt(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_257_000 picoseconds. - Weight::from_parts(2_121_941, 0) - // Standard Error: 3_525 - .saturating_add(Weight::from_parts(401_578, 0).saturating_mul(r.into())) + // Minimum execution time: 2_459_000 picoseconds. + Weight::from_parts(191_200, 0) + // Standard Error: 6_017 + .saturating_add(Weight::from_parts(562_742, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64eqz(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_224_000 picoseconds. - Weight::from_parts(2_291_000, 0) - // Standard Error: 9_436 - .saturating_add(Weight::from_parts(1_891_725, 0).saturating_mul(r.into())) + // Minimum execution time: 2_444_000 picoseconds. + Weight::from_parts(2_497_000, 0) + // Standard Error: 7_924 + .saturating_add(Weight::from_parts(1_968_376, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32eqz(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_273_000 picoseconds. - Weight::from_parts(2_417_000, 0) - // Standard Error: 8_255 - .saturating_add(Weight::from_parts(1_289_311, 0).saturating_mul(r.into())) + // Minimum execution time: 2_446_000 picoseconds. + Weight::from_parts(2_473_000, 0) + // Standard Error: 7_912 + .saturating_add(Weight::from_parts(1_346_364, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32extend8s(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_276_000 picoseconds. - Weight::from_parts(1_306_236, 0) - // Standard Error: 5_275 - .saturating_add(Weight::from_parts(426_430, 0).saturating_mul(r.into())) + // Minimum execution time: 2_464_000 picoseconds. + Weight::from_parts(83_668, 0) + // Standard Error: 7_204 + .saturating_add(Weight::from_parts(543_317, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32extend16s(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_341_000 picoseconds. - Weight::from_parts(1_669_540, 0) - // Standard Error: 4_902 - .saturating_add(Weight::from_parts(405_099, 0).saturating_mul(r.into())) + // Minimum execution time: 2_493_000 picoseconds. + Weight::from_parts(197_096, 0) + // Standard Error: 6_608 + .saturating_add(Weight::from_parts(525_360, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64extend8s(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_244_000 picoseconds. - Weight::from_parts(2_317_000, 0) - // Standard Error: 3_916 - .saturating_add(Weight::from_parts(552_354, 0).saturating_mul(r.into())) + // Minimum execution time: 2_472_000 picoseconds. + Weight::from_parts(2_551_000, 0) + // Standard Error: 5_207 + .saturating_add(Weight::from_parts(642_915, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64extend16s(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_316_000 picoseconds. - Weight::from_parts(2_395_000, 0) - // Standard Error: 5_375 - .saturating_add(Weight::from_parts(589_608, 0).saturating_mul(r.into())) + // Minimum execution time: 2_505_000 picoseconds. + Weight::from_parts(2_556_000, 0) + // Standard Error: 4_430 + .saturating_add(Weight::from_parts(640_970, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64extend32s(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_258_000 picoseconds. - Weight::from_parts(98_911, 0) - // Standard Error: 7_257 - .saturating_add(Weight::from_parts(581_834, 0).saturating_mul(r.into())) + // Minimum execution time: 2_399_000 picoseconds. + Weight::from_parts(2_530_000, 0) + // Standard Error: 4_248 + .saturating_add(Weight::from_parts(574_179, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64extendsi32(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_293_000 picoseconds. - Weight::from_parts(1_730_402, 0) - // Standard Error: 4_194 - .saturating_add(Weight::from_parts(357_287, 0).saturating_mul(r.into())) + // Minimum execution time: 2_467_000 picoseconds. + Weight::from_parts(1_554_632, 0) + // Standard Error: 4_096 + .saturating_add(Weight::from_parts(386_240, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64extendui32(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_580_000 picoseconds. - Weight::from_parts(2_927_247, 0) - // Standard Error: 2_012 - .saturating_add(Weight::from_parts(181_106, 0).saturating_mul(r.into())) + // Minimum execution time: 2_468_000 picoseconds. + Weight::from_parts(3_011_768, 0) + // Standard Error: 1_923 + .saturating_add(Weight::from_parts(160_611, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32wrapi64(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_308_000 picoseconds. - Weight::from_parts(2_742_236, 0) - // Standard Error: 2_482 - .saturating_add(Weight::from_parts(187_830, 0).saturating_mul(r.into())) + // Minimum execution time: 2_464_000 picoseconds. + Weight::from_parts(2_856_296, 0) + // Standard Error: 2_574 + .saturating_add(Weight::from_parts(173_194, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64eq(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_324_000 picoseconds. - Weight::from_parts(2_385_000, 0) - // Standard Error: 9_154 - .saturating_add(Weight::from_parts(1_858_617, 0).saturating_mul(r.into())) + // Minimum execution time: 2_448_000 picoseconds. + Weight::from_parts(2_540_000, 0) + // Standard Error: 8_614 + .saturating_add(Weight::from_parts(1_773_707, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32eq(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_237_000 picoseconds. - Weight::from_parts(2_302_000, 0) - // Standard Error: 7_801 - .saturating_add(Weight::from_parts(1_226_411, 0).saturating_mul(r.into())) + // Minimum execution time: 2_456_000 picoseconds. + Weight::from_parts(2_568_000, 0) + // Standard Error: 6_895 + .saturating_add(Weight::from_parts(1_129_796, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64ne(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_265_000 picoseconds. - Weight::from_parts(2_358_000, 0) - // Standard Error: 9_102 - .saturating_add(Weight::from_parts(1_866_723, 0).saturating_mul(r.into())) + // Minimum execution time: 2_432_000 picoseconds. + Weight::from_parts(2_552_000, 0) + // Standard Error: 8_855 + .saturating_add(Weight::from_parts(1_781_383, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32ne(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_267_000 picoseconds. - Weight::from_parts(2_381_000, 0) - // Standard Error: 8_629 - .saturating_add(Weight::from_parts(1_209_968, 0).saturating_mul(r.into())) + // Minimum execution time: 2_433_000 picoseconds. + Weight::from_parts(2_561_000, 0) + // Standard Error: 8_930 + .saturating_add(Weight::from_parts(1_299_565, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64lts(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_274_000 picoseconds. - Weight::from_parts(2_330_000, 0) - // Standard Error: 9_193 - .saturating_add(Weight::from_parts(1_895_140, 0).saturating_mul(r.into())) + // Minimum execution time: 2_458_000 picoseconds. + Weight::from_parts(2_509_000, 0) + // Standard Error: 7_370 + .saturating_add(Weight::from_parts(1_912_177, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32lts(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_306_000 picoseconds. - Weight::from_parts(2_394_000, 0) - // Standard Error: 7_780 - .saturating_add(Weight::from_parts(1_209_776, 0).saturating_mul(r.into())) + // Minimum execution time: 2_375_000 picoseconds. + Weight::from_parts(2_509_000, 0) + // Standard Error: 7_609 + .saturating_add(Weight::from_parts(1_318_072, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64ltu(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_273_000 picoseconds. - Weight::from_parts(2_395_000, 0) - // Standard Error: 8_868 - .saturating_add(Weight::from_parts(1_845_417, 0).saturating_mul(r.into())) + // Minimum execution time: 2_438_000 picoseconds. + Weight::from_parts(2_532_000, 0) + // Standard Error: 7_147 + .saturating_add(Weight::from_parts(1_902_313, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32ltu(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_280_000 picoseconds. - Weight::from_parts(2_360_000, 0) - // Standard Error: 8_139 - .saturating_add(Weight::from_parts(1_208_611, 0).saturating_mul(r.into())) + // Minimum execution time: 2_369_000 picoseconds. + Weight::from_parts(2_420_000, 0) + // Standard Error: 7_127 + .saturating_add(Weight::from_parts(1_269_528, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64gts(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_299_000 picoseconds. - Weight::from_parts(2_335_000, 0) - // Standard Error: 8_008 - .saturating_add(Weight::from_parts(1_833_636, 0).saturating_mul(r.into())) + // Minimum execution time: 2_497_000 picoseconds. + Weight::from_parts(2_552_000, 0) + // Standard Error: 9_809 + .saturating_add(Weight::from_parts(1_858_855, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32gts(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_222_000 picoseconds. - Weight::from_parts(2_376_000, 0) - // Standard Error: 7_996 - .saturating_add(Weight::from_parts(1_224_203, 0).saturating_mul(r.into())) + // Minimum execution time: 2_437_000 picoseconds. + Weight::from_parts(2_522_000, 0) + // Standard Error: 9_811 + .saturating_add(Weight::from_parts(1_226_193, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64gtu(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_371_000 picoseconds. - Weight::from_parts(2_421_000, 0) - // Standard Error: 9_119 - .saturating_add(Weight::from_parts(1_821_158, 0).saturating_mul(r.into())) + // Minimum execution time: 2_448_000 picoseconds. + Weight::from_parts(2_500_000, 0) + // Standard Error: 7_568 + .saturating_add(Weight::from_parts(1_955_726, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32gtu(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_305_000 picoseconds. - Weight::from_parts(2_418_000, 0) - // Standard Error: 7_441 - .saturating_add(Weight::from_parts(1_186_995, 0).saturating_mul(r.into())) + // Minimum execution time: 2_441_000 picoseconds. + Weight::from_parts(2_515_000, 0) + // Standard Error: 7_599 + .saturating_add(Weight::from_parts(1_311_184, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64les(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_340_000 picoseconds. - Weight::from_parts(2_362_000, 0) - // Standard Error: 8_788 - .saturating_add(Weight::from_parts(1_811_701, 0).saturating_mul(r.into())) + // Minimum execution time: 2_406_000 picoseconds. + Weight::from_parts(2_526_000, 0) + // Standard Error: 7_978 + .saturating_add(Weight::from_parts(1_934_575, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32les(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_352_000 picoseconds. - Weight::from_parts(2_431_000, 0) - // Standard Error: 6_620 - .saturating_add(Weight::from_parts(1_171_906, 0).saturating_mul(r.into())) + // Minimum execution time: 2_454_000 picoseconds. + Weight::from_parts(2_579_000, 0) + // Standard Error: 7_835 + .saturating_add(Weight::from_parts(1_361_324, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64leu(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_352_000 picoseconds. - Weight::from_parts(2_380_000, 0) - // Standard Error: 8_554 - .saturating_add(Weight::from_parts(1_821_955, 0).saturating_mul(r.into())) + // Minimum execution time: 2_419_000 picoseconds. + Weight::from_parts(2_576_000, 0) + // Standard Error: 7_250 + .saturating_add(Weight::from_parts(1_910_453, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32leu(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_299_000 picoseconds. - Weight::from_parts(2_389_000, 0) - // Standard Error: 7_710 - .saturating_add(Weight::from_parts(1_188_722, 0).saturating_mul(r.into())) + // Minimum execution time: 2_447_000 picoseconds. + Weight::from_parts(2_481_000, 0) + // Standard Error: 7_289 + .saturating_add(Weight::from_parts(1_319_827, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64ges(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_325_000 picoseconds. - Weight::from_parts(2_387_000, 0) - // Standard Error: 10_150 - .saturating_add(Weight::from_parts(1_912_877, 0).saturating_mul(r.into())) + // Minimum execution time: 2_416_000 picoseconds. + Weight::from_parts(2_513_000, 0) + // Standard Error: 9_075 + .saturating_add(Weight::from_parts(1_885_122, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32ges(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_377_000 picoseconds. - Weight::from_parts(2_423_000, 0) - // Standard Error: 6_824 - .saturating_add(Weight::from_parts(1_181_831, 0).saturating_mul(r.into())) + // Minimum execution time: 2_464_000 picoseconds. + Weight::from_parts(2_548_000, 0) + // Standard Error: 6_211 + .saturating_add(Weight::from_parts(1_137_406, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64geu(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_292_000 picoseconds. - Weight::from_parts(2_384_000, 0) - // Standard Error: 9_214 - .saturating_add(Weight::from_parts(1_842_825, 0).saturating_mul(r.into())) + // Minimum execution time: 2_504_000 picoseconds. + Weight::from_parts(2_541_000, 0) + // Standard Error: 9_758 + .saturating_add(Weight::from_parts(1_796_339, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32geu(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_283_000 picoseconds. - Weight::from_parts(2_344_000, 0) - // Standard Error: 7_145 - .saturating_add(Weight::from_parts(1_216_207, 0).saturating_mul(r.into())) + // Minimum execution time: 2_506_000 picoseconds. + Weight::from_parts(2_560_000, 0) + // Standard Error: 9_133 + .saturating_add(Weight::from_parts(1_357_535, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64add(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_232_000 picoseconds. - Weight::from_parts(2_391_000, 0) - // Standard Error: 9_159 - .saturating_add(Weight::from_parts(1_360_135, 0).saturating_mul(r.into())) + // Minimum execution time: 2_367_000 picoseconds. + Weight::from_parts(2_480_000, 0) + // Standard Error: 8_359 + .saturating_add(Weight::from_parts(1_478_633, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32add(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_279_000 picoseconds. - Weight::from_parts(2_379_000, 0) - // Standard Error: 5_400 - .saturating_add(Weight::from_parts(704_012, 0).saturating_mul(r.into())) + // Minimum execution time: 2_452_000 picoseconds. + Weight::from_parts(2_541_000, 0) + // Standard Error: 6_517 + .saturating_add(Weight::from_parts(796_336, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64sub(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_355_000 picoseconds. - Weight::from_parts(2_402_000, 0) - // Standard Error: 8_632 - .saturating_add(Weight::from_parts(1_358_130, 0).saturating_mul(r.into())) + // Minimum execution time: 2_533_000 picoseconds. + Weight::from_parts(2_581_000, 0) + // Standard Error: 8_508 + .saturating_add(Weight::from_parts(1_464_442, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32sub(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_365_000 picoseconds. - Weight::from_parts(2_389_000, 0) - // Standard Error: 4_840 - .saturating_add(Weight::from_parts(658_882, 0).saturating_mul(r.into())) + // Minimum execution time: 2_458_000 picoseconds. + Weight::from_parts(2_555_000, 0) + // Standard Error: 6_791 + .saturating_add(Weight::from_parts(786_844, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64mul(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_209_000 picoseconds. - Weight::from_parts(2_324_000, 0) - // Standard Error: 8_679 - .saturating_add(Weight::from_parts(1_840_263, 0).saturating_mul(r.into())) + // Minimum execution time: 2_538_000 picoseconds. + Weight::from_parts(2_568_000, 0) + // Standard Error: 7_582 + .saturating_add(Weight::from_parts(1_877_594, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32mul(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_258_000 picoseconds. - Weight::from_parts(2_382_000, 0) - // Standard Error: 7_484 - .saturating_add(Weight::from_parts(1_255_185, 0).saturating_mul(r.into())) + // Minimum execution time: 2_467_000 picoseconds. + Weight::from_parts(2_564_000, 0) + // Standard Error: 7_649 + .saturating_add(Weight::from_parts(1_374_403, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64divs(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_369_000 picoseconds. - Weight::from_parts(6_412_885, 0) - // Standard Error: 22_130 - .saturating_add(Weight::from_parts(2_376_785, 0).saturating_mul(r.into())) + // Minimum execution time: 2_417_000 picoseconds. + Weight::from_parts(13_577_124, 0) + // Standard Error: 24_454 + .saturating_add(Weight::from_parts(1_848_524, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32divs(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_266_000 picoseconds. - Weight::from_parts(2_981_330, 0) - // Standard Error: 11_996 - .saturating_add(Weight::from_parts(2_322_763, 0).saturating_mul(r.into())) + // Minimum execution time: 2_448_000 picoseconds. + Weight::from_parts(8_056_015, 0) + // Standard Error: 18_230 + .saturating_add(Weight::from_parts(1_998_870, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64divu(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_240_000 picoseconds. - Weight::from_parts(7_628_007, 0) - // Standard Error: 29_510 - .saturating_add(Weight::from_parts(2_483_957, 0).saturating_mul(r.into())) + // Minimum execution time: 2_501_000 picoseconds. + Weight::from_parts(6_359_851, 0) + // Standard Error: 24_959 + .saturating_add(Weight::from_parts(2_532_087, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32divu(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_387_000 picoseconds. - Weight::from_parts(4_910_027, 0) - // Standard Error: 23_548 - .saturating_add(Weight::from_parts(2_233_487, 0).saturating_mul(r.into())) + // Minimum execution time: 2_465_000 picoseconds. + Weight::from_parts(3_211_947, 0) + // Standard Error: 12_549 + .saturating_add(Weight::from_parts(2_290_659, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64rems(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_297_000 picoseconds. - Weight::from_parts(16_240_633, 0) - // Standard Error: 67_100 - .saturating_add(Weight::from_parts(8_506_720, 0).saturating_mul(r.into())) + // Minimum execution time: 2_416_000 picoseconds. + Weight::from_parts(2_484_000, 0) + // Standard Error: 14_396 + .saturating_add(Weight::from_parts(9_501_882, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32rems(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_234_000 picoseconds. - Weight::from_parts(2_498_693, 0) - // Standard Error: 48_996 - .saturating_add(Weight::from_parts(7_513_162, 0).saturating_mul(r.into())) + // Minimum execution time: 2_551_000 picoseconds. + Weight::from_parts(2_786_324, 0) + // Standard Error: 42_129 + .saturating_add(Weight::from_parts(7_363_990, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64remu(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_221_000 picoseconds. - Weight::from_parts(5_074_264, 0) - // Standard Error: 23_109 - .saturating_add(Weight::from_parts(2_727_269, 0).saturating_mul(r.into())) + // Minimum execution time: 2_444_000 picoseconds. + Weight::from_parts(11_631_140, 0) + // Standard Error: 29_415 + .saturating_add(Weight::from_parts(2_239_863, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32remu(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_283_000 picoseconds. - Weight::from_parts(2_057_554, 0) - // Standard Error: 15_404 - .saturating_add(Weight::from_parts(2_428_553, 0).saturating_mul(r.into())) + // Minimum execution time: 2_722_000 picoseconds. + Weight::from_parts(8_602_177, 0) + // Standard Error: 23_181 + .saturating_add(Weight::from_parts(2_039_962, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64and(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_250_000 picoseconds. - Weight::from_parts(2_359_000, 0) - // Standard Error: 8_133 - .saturating_add(Weight::from_parts(1_333_125, 0).saturating_mul(r.into())) + // Minimum execution time: 2_417_000 picoseconds. + Weight::from_parts(2_553_000, 0) + // Standard Error: 7_930 + .saturating_add(Weight::from_parts(1_480_355, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32and(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_251_000 picoseconds. - Weight::from_parts(2_372_000, 0) - // Standard Error: 4_205 - .saturating_add(Weight::from_parts(671_074, 0).saturating_mul(r.into())) + // Minimum execution time: 2_411_000 picoseconds. + Weight::from_parts(2_496_000, 0) + // Standard Error: 6_547 + .saturating_add(Weight::from_parts(804_477, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64or(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_257_000 picoseconds. - Weight::from_parts(2_323_000, 0) - // Standard Error: 7_098 - .saturating_add(Weight::from_parts(1_323_703, 0).saturating_mul(r.into())) + // Minimum execution time: 2_506_000 picoseconds. + Weight::from_parts(2_577_000, 0) + // Standard Error: 8_009 + .saturating_add(Weight::from_parts(1_437_777, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32or(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_247_000 picoseconds. - Weight::from_parts(2_372_000, 0) - // Standard Error: 6_649 - .saturating_add(Weight::from_parts(695_117, 0).saturating_mul(r.into())) + // Minimum execution time: 2_310_000 picoseconds. + Weight::from_parts(2_424_000, 0) + // Standard Error: 4_869 + .saturating_add(Weight::from_parts(684_646, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64xor(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_293_000 picoseconds. - Weight::from_parts(2_347_000, 0) - // Standard Error: 7_359 - .saturating_add(Weight::from_parts(1_355_885, 0).saturating_mul(r.into())) + // Minimum execution time: 2_441_000 picoseconds. + Weight::from_parts(2_497_000, 0) + // Standard Error: 10_084 + .saturating_add(Weight::from_parts(1_349_015, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32xor(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_239_000 picoseconds. - Weight::from_parts(2_335_000, 0) - // Standard Error: 4_076 - .saturating_add(Weight::from_parts(658_834, 0).saturating_mul(r.into())) + // Minimum execution time: 2_464_000 picoseconds. + Weight::from_parts(2_574_000, 0) + // Standard Error: 7_421 + .saturating_add(Weight::from_parts(789_933, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64shl(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_376_000 picoseconds. - Weight::from_parts(2_444_000, 0) - // Standard Error: 6_850 - .saturating_add(Weight::from_parts(1_191_253, 0).saturating_mul(r.into())) + // Minimum execution time: 2_466_000 picoseconds. + Weight::from_parts(2_541_000, 0) + // Standard Error: 8_551 + .saturating_add(Weight::from_parts(1_311_103, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32shl(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_240_000 picoseconds. - Weight::from_parts(2_310_000, 0) - // Standard Error: 4_398 - .saturating_add(Weight::from_parts(597_162, 0).saturating_mul(r.into())) + // Minimum execution time: 2_480_000 picoseconds. + Weight::from_parts(2_547_000, 0) + // Standard Error: 6_237 + .saturating_add(Weight::from_parts(740_808, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64shrs(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_338_000 picoseconds. - Weight::from_parts(2_421_000, 0) - // Standard Error: 8_320 - .saturating_add(Weight::from_parts(1_163_071, 0).saturating_mul(r.into())) + // Minimum execution time: 2_451_000 picoseconds. + Weight::from_parts(2_482_000, 0) + // Standard Error: 8_019 + .saturating_add(Weight::from_parts(1_301_680, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32shrs(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_376_000 picoseconds. - Weight::from_parts(2_464_000, 0) - // Standard Error: 5_750 - .saturating_add(Weight::from_parts(613_283, 0).saturating_mul(r.into())) + // Minimum execution time: 2_479_000 picoseconds. + Weight::from_parts(2_560_000, 0) + // Standard Error: 4_542 + .saturating_add(Weight::from_parts(651_494, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64shru(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_338_000 picoseconds. - Weight::from_parts(2_378_000, 0) - // Standard Error: 7_893 - .saturating_add(Weight::from_parts(1_161_655, 0).saturating_mul(r.into())) + // Minimum execution time: 2_437_000 picoseconds. + Weight::from_parts(2_539_000, 0) + // Standard Error: 6_578 + .saturating_add(Weight::from_parts(1_103_078, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32shru(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_260_000 picoseconds. - Weight::from_parts(2_351_000, 0) - // Standard Error: 3_972 - .saturating_add(Weight::from_parts(605_013, 0).saturating_mul(r.into())) + // Minimum execution time: 2_510_000 picoseconds. + Weight::from_parts(2_566_000, 0) + // Standard Error: 5_804 + .saturating_add(Weight::from_parts(608_889, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64rotl(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_324_000 picoseconds. - Weight::from_parts(2_375_000, 0) - // Standard Error: 7_329 - .saturating_add(Weight::from_parts(1_108_542, 0).saturating_mul(r.into())) + // Minimum execution time: 2_403_000 picoseconds. + Weight::from_parts(2_494_000, 0) + // Standard Error: 7_647 + .saturating_add(Weight::from_parts(1_279_714, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32rotl(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_342_000 picoseconds. - Weight::from_parts(2_465_000, 0) - // Standard Error: 5_553 - .saturating_add(Weight::from_parts(617_389, 0).saturating_mul(r.into())) + // Minimum execution time: 2_489_000 picoseconds. + Weight::from_parts(2_549_000, 0) + // Standard Error: 5_933 + .saturating_add(Weight::from_parts(710_512, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64rotr(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_260_000 picoseconds. - Weight::from_parts(2_419_000, 0) - // Standard Error: 8_448 - .saturating_add(Weight::from_parts(1_105_239, 0).saturating_mul(r.into())) + // Minimum execution time: 2_463_000 picoseconds. + Weight::from_parts(2_573_000, 0) + // Standard Error: 7_876 + .saturating_add(Weight::from_parts(1_291_902, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32rotr(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_255_000 picoseconds. - Weight::from_parts(2_321_000, 0) - // Standard Error: 5_862 - .saturating_add(Weight::from_parts(626_497, 0).saturating_mul(r.into())) + // Minimum execution time: 2_394_000 picoseconds. + Weight::from_parts(2_513_000, 0) + // Standard Error: 5_878 + .saturating_add(Weight::from_parts(722_117, 0).saturating_mul(r.into())) } fn tasks_remove_resume_session() -> Weight { // Proof Size summary in bytes: // Measured: `352` // Estimated: `4169` - // Minimum execution time: 5_780_000 picoseconds. - Weight::from_parts(6_083_000, 4169) + // Minimum execution time: 5_941_000 picoseconds. + Weight::from_parts(6_194_000, 4169) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } fn tasks_remove_gas_reservation() -> Weight { // Proof Size summary in bytes: - // Measured: `1039` - // Estimated: `23781` - // Minimum execution time: 62_100_000 picoseconds. - Weight::from_parts(64_771_000, 23781) + // Measured: `1107` + // Estimated: `24053` + // Minimum execution time: 63_669_000 picoseconds. + Weight::from_parts(71_431_000, 24053) .saturating_add(T::DbWeight::get().reads(7_u64)) .saturating_add(T::DbWeight::get().writes(6_u64)) } fn tasks_send_user_message_to_mailbox() -> Weight { // Proof Size summary in bytes: - // Measured: `820` - // Estimated: `21750` - // Minimum execution time: 47_415_000 picoseconds. - Weight::from_parts(48_906_000, 21750) + // Measured: `888` + // Estimated: `22158` + // Minimum execution time: 47_776_000 picoseconds. + Weight::from_parts(49_097_000, 22158) .saturating_add(T::DbWeight::get().reads(6_u64)) .saturating_add(T::DbWeight::get().writes(5_u64)) } fn tasks_send_user_message() -> Weight { // Proof Size summary in bytes: - // Measured: `942` - // Estimated: `34143` - // Minimum execution time: 76_882_000 picoseconds. - Weight::from_parts(79_728_000, 34143) + // Measured: `1010` + // Estimated: `34619` + // Minimum execution time: 76_569_000 picoseconds. + Weight::from_parts(80_956_000, 34619) .saturating_add(T::DbWeight::get().reads(11_u64)) .saturating_add(T::DbWeight::get().writes(10_u64)) } fn tasks_send_dispatch() -> Weight { // Proof Size summary in bytes: - // Measured: `627` - // Estimated: `20101` - // Minimum execution time: 32_342_000 picoseconds. - Weight::from_parts(33_851_000, 20101) + // Measured: `695` + // Estimated: `20509` + // Minimum execution time: 33_298_000 picoseconds. + Weight::from_parts(34_390_000, 20509) .saturating_add(T::DbWeight::get().reads(7_u64)) .saturating_add(T::DbWeight::get().writes(6_u64)) } fn tasks_wake_message() -> Weight { // Proof Size summary in bytes: - // Measured: `908` - // Estimated: `26160` - // Minimum execution time: 50_697_000 picoseconds. - Weight::from_parts(53_632_000, 26160) + // Measured: `976` + // Estimated: `26636` + // Minimum execution time: 51_224_000 picoseconds. + Weight::from_parts(54_016_000, 26636) .saturating_add(T::DbWeight::get().reads(8_u64)) .saturating_add(T::DbWeight::get().writes(6_u64)) } @@ -2144,37 +2142,37 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `80` // Estimated: `3545` - // Minimum execution time: 3_467_000 picoseconds. - Weight::from_parts(3_690_000, 3545) + // Minimum execution time: 3_502_000 picoseconds. + Weight::from_parts(3_736_000, 3545) .saturating_add(T::DbWeight::get().reads(1_u64)) } fn tasks_remove_from_waitlist() -> Weight { // Proof Size summary in bytes: - // Measured: `1558` - // Estimated: `57552` - // Minimum execution time: 111_822_000 picoseconds. - Weight::from_parts(115_245_000, 57552) + // Measured: `1626` + // Estimated: `58232` + // Minimum execution time: 116_554_000 picoseconds. + Weight::from_parts(120_965_000, 58232) .saturating_add(T::DbWeight::get().reads(16_u64)) .saturating_add(T::DbWeight::get().writes(13_u64)) } fn tasks_remove_from_mailbox() -> Weight { // Proof Size summary in bytes: - // Measured: `1264` - // Estimated: `46350` - // Minimum execution time: 92_407_000 picoseconds. - Weight::from_parts(95_840_000, 46350) + // Measured: `1332` + // Estimated: `46962` + // Minimum execution time: 91_297_000 picoseconds. + Weight::from_parts(98_825_000, 46962) .saturating_add(T::DbWeight::get().reads(14_u64)) .saturating_add(T::DbWeight::get().writes(13_u64)) } /// The range of component `c` is `[0, 2044]`. fn tasks_pause_program(c: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `2236 + c * (16400 ±0)` - // Estimated: `19543 + c * (84480 ±0)` - // Minimum execution time: 29_880_000 picoseconds. - Weight::from_parts(30_555_000, 19543) - // Standard Error: 65_806 - .saturating_add(Weight::from_parts(39_128_234, 0).saturating_mul(c.into())) + // Measured: `2303 + c * (16400 ±0)` + // Estimated: `19878 + c * (84480 ±0)` + // Minimum execution time: 30_995_000 picoseconds. + Weight::from_parts(31_512_000, 19878) + // Standard Error: 83_380 + .saturating_add(Weight::from_parts(39_172_227, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(c.into()))) .saturating_add(T::DbWeight::get().writes(2_u64)) @@ -2184,12 +2182,12 @@ impl WeightInfo for SubstrateWeight { /// The range of component `c` is `[0, 2044]`. fn tasks_pause_program_uninited(c: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `3061 + c * (42 ±0)` - // Estimated: `59827 + c * (2947 ±0)` - // Minimum execution time: 89_781_000 picoseconds. - Weight::from_parts(109_193_287, 59827) - // Standard Error: 2_877 - .saturating_add(Weight::from_parts(1_067_792, 0).saturating_mul(c.into())) + // Measured: `3181 + c * (42 ±0)` + // Estimated: `61147 + c * (2947 ±0)` + // Minimum execution time: 92_674_000 picoseconds. + Weight::from_parts(116_875_856, 61147) + // Standard Error: 2_740 + .saturating_add(Weight::from_parts(1_037_041, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(13_u64)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(c.into()))) .saturating_add(T::DbWeight::get().writes(9_u64)) @@ -2205,130 +2203,130 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 94_792_000 picoseconds. - Weight::from_parts(103_063_604, 0) - // Standard Error: 103_375 - .saturating_add(Weight::from_parts(18_929_072, 0).saturating_mul(r.into())) + // Minimum execution time: 100_290_000 picoseconds. + Weight::from_parts(107_714_130, 0) + // Standard Error: 87_424 + .saturating_add(Weight::from_parts(17_565_908, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 1]`. fn gr_reply_wgas(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 96_154_000 picoseconds. - Weight::from_parts(107_249_232, 0) - // Standard Error: 99_969 - .saturating_add(Weight::from_parts(19_062_846, 0).saturating_mul(r.into())) + // Minimum execution time: 96_276_000 picoseconds. + Weight::from_parts(102_418_204, 0) + // Standard Error: 80_308 + .saturating_add(Weight::from_parts(18_444_560, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 1]`. fn gr_reply_commit(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 98_701_000 picoseconds. - Weight::from_parts(109_478_842, 0) - // Standard Error: 104_175 - .saturating_add(Weight::from_parts(10_887_124, 0).saturating_mul(r.into())) + // Minimum execution time: 96_679_000 picoseconds. + Weight::from_parts(103_850_060, 0) + // Standard Error: 87_584 + .saturating_add(Weight::from_parts(16_340_788, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 1]`. fn gr_reply_commit_wgas(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 102_910_000 picoseconds. - Weight::from_parts(109_181_566, 0) - // Standard Error: 81_801 - .saturating_add(Weight::from_parts(12_077_508, 0).saturating_mul(r.into())) + // Minimum execution time: 96_806_000 picoseconds. + Weight::from_parts(103_474_258, 0) + // Standard Error: 89_955 + .saturating_add(Weight::from_parts(16_614_218, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 1]`. fn gr_reply_input(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 719_481_000 picoseconds. - Weight::from_parts(765_485_196, 0) - // Standard Error: 676_170 - .saturating_add(Weight::from_parts(17_778_524, 0).saturating_mul(r.into())) + // Minimum execution time: 606_431_000 picoseconds. + Weight::from_parts(662_494_234, 0) + // Standard Error: 761_483 + .saturating_add(Weight::from_parts(25_620_440, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 1]`. fn gr_reply_input_wgas(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 720_914_000 picoseconds. - Weight::from_parts(776_554_516, 0) - // Standard Error: 1_018_495 - .saturating_add(Weight::from_parts(38_306_948, 0).saturating_mul(r.into())) + // Minimum execution time: 595_892_000 picoseconds. + Weight::from_parts(674_093_114, 0) + // Standard Error: 1_066_086 + .saturating_add(Weight::from_parts(23_822_444, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 1]`. fn gr_reservation_reply(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 105_823_000 picoseconds. - Weight::from_parts(112_820_586, 0) - // Standard Error: 82_530 - .saturating_add(Weight::from_parts(14_370_506, 0).saturating_mul(r.into())) + // Minimum execution time: 105_460_000 picoseconds. + Weight::from_parts(112_708_968, 0) + // Standard Error: 92_535 + .saturating_add(Weight::from_parts(11_120_936, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 1]`. fn gr_reservation_reply_commit(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 102_415_000 picoseconds. - Weight::from_parts(110_005_402, 0) - // Standard Error: 87_514 - .saturating_add(Weight::from_parts(6_578_880, 0).saturating_mul(r.into())) + // Minimum execution time: 109_465_000 picoseconds. + Weight::from_parts(117_255_480, 0) + // Standard Error: 96_440 + .saturating_add(Weight::from_parts(6_716_962, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 1]`. fn gr_exit(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 96_593_000 picoseconds. - Weight::from_parts(104_873_732, 0) - // Standard Error: 2_095_391 - .saturating_add(Weight::from_parts(193_359_282, 0).saturating_mul(r.into())) + // Minimum execution time: 97_445_000 picoseconds. + Weight::from_parts(104_500_586, 0) + // Standard Error: 1_641_842 + .saturating_add(Weight::from_parts(503_314_880, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 1]`. fn gr_leave(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 93_619_000 picoseconds. - Weight::from_parts(99_623_244, 0) - // Standard Error: 1_945_328 - .saturating_add(Weight::from_parts(179_784_494, 0).saturating_mul(r.into())) + // Minimum execution time: 98_181_000 picoseconds. + Weight::from_parts(105_227_918, 0) + // Standard Error: 2_343_026 + .saturating_add(Weight::from_parts(426_477_654, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 1]`. fn gr_wait(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 92_936_000 picoseconds. - Weight::from_parts(100_139_452, 0) - // Standard Error: 1_753_555 - .saturating_add(Weight::from_parts(132_465_876, 0).saturating_mul(r.into())) + // Minimum execution time: 95_585_000 picoseconds. + Weight::from_parts(102_197_814, 0) + // Standard Error: 1_411_445 + .saturating_add(Weight::from_parts(465_536_900, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 1]`. fn gr_wait_for(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 93_955_000 picoseconds. - Weight::from_parts(100_650_632, 0) - // Standard Error: 2_018_388 - .saturating_add(Weight::from_parts(178_916_382, 0).saturating_mul(r.into())) + // Minimum execution time: 95_297_000 picoseconds. + Weight::from_parts(101_445_166, 0) + // Standard Error: 2_227_511 + .saturating_add(Weight::from_parts(421_267_332, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 1]`. fn gr_wait_up_to(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 95_467_000 picoseconds. - Weight::from_parts(102_532_790, 0) - // Standard Error: 2_065_180 - .saturating_add(Weight::from_parts(187_152_790, 0).saturating_mul(r.into())) + // Minimum execution time: 94_815_000 picoseconds. + Weight::from_parts(101_957_812, 0) + // Standard Error: 1_462_209 + .saturating_add(Weight::from_parts(480_126_430, 0).saturating_mul(r.into())) } fn allocation_cost() -> Weight { // To be changed with the proper value. @@ -2349,21 +2347,21 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 1_040_000 picoseconds. - Weight::from_parts(1_087_000, 0) - // Standard Error: 940 - .saturating_add(Weight::from_parts(251_751, 0).saturating_mul(c.into())) + // Minimum execution time: 1_019_000 picoseconds. + Weight::from_parts(1_041_000, 0) + // Standard Error: 981 + .saturating_add(Weight::from_parts(210_472, 0).saturating_mul(c.into())) .saturating_add(RocksDbWeight::get().writes(1_u64)) } /// The range of component `c` is `[0, 512]`. fn db_read_per_kb(c: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `79 + c * (1024 ±0)` - // Estimated: `3543 + c * (1024 ±0)` - // Minimum execution time: 3_333_000 picoseconds. - Weight::from_parts(3_463_000, 3543) - // Standard Error: 966 - .saturating_add(Weight::from_parts(678_430, 0).saturating_mul(c.into())) + // Measured: `146 + c * (1024 ±0)` + // Estimated: `3610 + c * (1024 ±0)` + // Minimum execution time: 3_294_000 picoseconds. + Weight::from_parts(3_366_000, 3610) + // Standard Error: 1_080 + .saturating_add(Weight::from_parts(676_116, 0).saturating_mul(c.into())) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(Weight::from_parts(0, 1024).saturating_mul(c.into())) } @@ -2372,35 +2370,35 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 61_586_000 picoseconds. - Weight::from_parts(95_956_778, 0) - // Standard Error: 5_472 - .saturating_add(Weight::from_parts(2_353_352, 0).saturating_mul(c.into())) + // Minimum execution time: 60_243_000 picoseconds. + Weight::from_parts(75_401_206, 0) + // Standard Error: 11_548 + .saturating_add(Weight::from_parts(2_494_849, 0).saturating_mul(c.into())) } fn claim_value() -> Weight { // Proof Size summary in bytes: - // Measured: `1304` - // Estimated: `51293` - // Minimum execution time: 105_420_000 picoseconds. - Weight::from_parts(109_120_000, 51293) + // Measured: `1372` + // Estimated: `51905` + // Minimum execution time: 108_943_000 picoseconds. + Weight::from_parts(111_577_000, 51905) .saturating_add(RocksDbWeight::get().reads(15_u64)) .saturating_add(RocksDbWeight::get().writes(12_u64)) } fn pay_program_rent() -> Weight { // Proof Size summary in bytes: - // Measured: `923` - // Estimated: `21372` - // Minimum execution time: 54_290_000 picoseconds. - Weight::from_parts(55_929_000, 21372) + // Measured: `992` + // Estimated: `21579` + // Minimum execution time: 56_262_000 picoseconds. + Weight::from_parts(58_296_000, 21579) .saturating_add(RocksDbWeight::get().reads(7_u64)) .saturating_add(RocksDbWeight::get().writes(6_u64)) } fn resume_session_init() -> Weight { // Proof Size summary in bytes: - // Measured: `570` - // Estimated: `17214` - // Minimum execution time: 29_539_000 picoseconds. - Weight::from_parts(30_515_000, 17214) + // Measured: `638` + // Estimated: `17486` + // Minimum execution time: 30_127_000 picoseconds. + Weight::from_parts(31_137_000, 17486) .saturating_add(RocksDbWeight::get().reads(6_u64)) .saturating_add(RocksDbWeight::get().writes(4_u64)) } @@ -2409,22 +2407,22 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `355` // Estimated: `7640` - // Minimum execution time: 8_426_000 picoseconds. - Weight::from_parts(5_984_423, 7640) - // Standard Error: 33_789 - .saturating_add(Weight::from_parts(13_895_151, 0).saturating_mul(c.into())) + // Minimum execution time: 7_944_000 picoseconds. + Weight::from_parts(3_967_373, 7640) + // Standard Error: 35_621 + .saturating_add(Weight::from_parts(13_338_658, 0).saturating_mul(c.into())) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } /// The range of component `c` is `[0, 2044]`. fn resume_session_commit(c: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `1457 + c * (16389 ±0)` - // Estimated: `42178 + c * (131112 ±0)` - // Minimum execution time: 71_198_000 picoseconds. - Weight::from_parts(72_033_000, 42178) - // Standard Error: 159_543 - .saturating_add(Weight::from_parts(54_764_270, 0).saturating_mul(c.into())) + // Measured: `1593 + c * (16389 ±0)` + // Estimated: `43266 + c * (131112 ±0)` + // Minimum execution time: 72_793_000 picoseconds. + Weight::from_parts(73_500_000, 43266) + // Standard Error: 159_839 + .saturating_add(Weight::from_parts(53_776_845, 0).saturating_mul(c.into())) .saturating_add(RocksDbWeight::get().reads(11_u64)) .saturating_add(RocksDbWeight::get().writes(9_u64)) .saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(c.into()))) @@ -2433,24 +2431,24 @@ impl WeightInfo for () { /// The range of component `c` is `[0, 250]`. fn upload_code(c: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `46` - // Estimated: `5134` - // Minimum execution time: 77_259_000 picoseconds. - Weight::from_parts(52_968_469, 5134) - // Standard Error: 43_186 - .saturating_add(Weight::from_parts(59_988_588, 0).saturating_mul(c.into())) + // Measured: `113` + // Estimated: `5402` + // Minimum execution time: 77_549_000 picoseconds. + Weight::from_parts(11_782_592, 5402) + // Standard Error: 44_814 + .saturating_add(Weight::from_parts(62_238_899, 0).saturating_mul(c.into())) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(4_u64)) } /// The range of component `s` is `[0, 4194304]`. fn create_program(s: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `1043` - // Estimated: `49852` - // Minimum execution time: 96_734_000 picoseconds. - Weight::from_parts(136_364_170, 49852) + // Measured: `1111` + // Estimated: `50600` + // Minimum execution time: 95_703_000 picoseconds. + Weight::from_parts(124_584_109, 50600) // Standard Error: 0 - .saturating_add(Weight::from_parts(2_592, 0).saturating_mul(s.into())) + .saturating_add(Weight::from_parts(2_516, 0).saturating_mul(s.into())) .saturating_add(RocksDbWeight::get().reads(15_u64)) .saturating_add(RocksDbWeight::get().writes(12_u64)) } @@ -2458,72 +2456,70 @@ impl WeightInfo for () { /// The range of component `s` is `[0, 4194304]`. fn upload_program(c: u32, s: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `453` - // Estimated: `44268` - // Minimum execution time: 11_047_048_000 picoseconds. - Weight::from_parts(211_012_859, 44268) - // Standard Error: 157_221 - .saturating_add(Weight::from_parts(59_860_835, 0).saturating_mul(c.into())) - // Standard Error: 9 - .saturating_add(Weight::from_parts(2_554, 0).saturating_mul(s.into())) + // Measured: `521` + // Estimated: `45152` + // Minimum execution time: 10_716_861_000 picoseconds. + Weight::from_parts(73_848_079, 45152) + // Standard Error: 150_468 + .saturating_add(Weight::from_parts(64_695_292, 0).saturating_mul(c.into())) + // Standard Error: 8 + .saturating_add(Weight::from_parts(2_493, 0).saturating_mul(s.into())) .saturating_add(RocksDbWeight::get().reads(15_u64)) .saturating_add(RocksDbWeight::get().writes(16_u64)) } /// The range of component `p` is `[0, 2097152]`. fn send_message(p: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `530` - // Estimated: `31259` - // Minimum execution time: 73_682_000 picoseconds. - Weight::from_parts(48_414_295, 31259) + // Measured: `531` + // Estimated: `31266` + // Minimum execution time: 74_957_000 picoseconds. + Weight::from_parts(48_430_172, 31266) // Standard Error: 1 - .saturating_add(Weight::from_parts(1_040, 0).saturating_mul(p.into())) + .saturating_add(Weight::from_parts(1_052, 0).saturating_mul(p.into())) .saturating_add(RocksDbWeight::get().reads(11_u64)) .saturating_add(RocksDbWeight::get().writes(10_u64)) } /// The range of component `p` is `[0, 2097152]`. fn send_reply(p: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `1303` - // Estimated: `53823` - // Minimum execution time: 122_837_000 picoseconds. - Weight::from_parts(97_209_014, 53823) - // Standard Error: 1 - .saturating_add(Weight::from_parts(1_068, 0).saturating_mul(p.into())) + // Measured: `1371` + // Estimated: `54435` + // Minimum execution time: 126_639_000 picoseconds. + Weight::from_parts(100_822_385, 54435) + // Standard Error: 2 + .saturating_add(Weight::from_parts(1_072, 0).saturating_mul(p.into())) .saturating_add(RocksDbWeight::get().reads(16_u64)) .saturating_add(RocksDbWeight::get().writes(13_u64)) } /// The range of component `q` is `[1, 512]`. fn initial_allocation(_q: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `979` - // Estimated: `89393` - // Minimum execution time: 354_207_000 picoseconds. - Weight::from_parts(374_297_966, 89393) - .saturating_add(RocksDbWeight::get().reads(31_u64)) - .saturating_add(RocksDbWeight::get().writes(24_u64)) + // Measured: `1897` + // Estimated: `121468` + // Minimum execution time: 375_457_000 picoseconds. + Weight::from_parts(393_536_920, 121468) + .saturating_add(RocksDbWeight::get().reads(35_u64)) + .saturating_add(RocksDbWeight::get().writes(26_u64)) } /// The range of component `q` is `[0, 512]`. - fn alloc_in_handle(q: u32, ) -> Weight { + fn alloc_in_handle(_q: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `979` - // Estimated: `89133` - // Minimum execution time: 368_424_000 picoseconds. - Weight::from_parts(387_073_481, 89133) - // Standard Error: 1_472 - .saturating_add(Weight::from_parts(4_343, 0).saturating_mul(q.into())) - .saturating_add(RocksDbWeight::get().reads(31_u64)) - .saturating_add(RocksDbWeight::get().writes(24_u64)) + // Measured: `1897` + // Estimated: `121468` + // Minimum execution time: 390_030_000 picoseconds. + Weight::from_parts(411_717_925, 121468) + .saturating_add(RocksDbWeight::get().reads(35_u64)) + .saturating_add(RocksDbWeight::get().writes(26_u64)) } /// The range of component `c` is `[0, 512]`. fn reinstrument_per_kb(c: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `211 + c * (1075 ±0)` // Estimated: `3899 + c * (2150 ±0)` - // Minimum execution time: 58_209_000 picoseconds. - Weight::from_parts(58_498_000, 3899) - // Standard Error: 35_860 - .saturating_add(Weight::from_parts(58_109_594, 0).saturating_mul(c.into())) + // Minimum execution time: 57_499_000 picoseconds. + Weight::from_parts(58_384_000, 3899) + // Standard Error: 39_375 + .saturating_add(Weight::from_parts(61_628_039, 0).saturating_mul(c.into())) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) .saturating_add(Weight::from_parts(0, 2150).saturating_mul(c.into())) @@ -2533,510 +2529,510 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 92_645_000 picoseconds. - Weight::from_parts(95_763_000, 0) - // Standard Error: 3_691_564 - .saturating_add(Weight::from_parts(713_537_659, 0).saturating_mul(r.into())) + // Minimum execution time: 94_798_000 picoseconds. + Weight::from_parts(98_095_000, 0) + // Standard Error: 4_268_961 + .saturating_add(Weight::from_parts(719_474_559, 0).saturating_mul(r.into())) } /// The range of component `p` is `[1, 512]`. fn alloc_per_page(p: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 495_006_000 picoseconds. - Weight::from_parts(421_459_793, 0) - // Standard Error: 9_156 - .saturating_add(Weight::from_parts(29_070_022, 0).saturating_mul(p.into())) + // Minimum execution time: 463_364_000 picoseconds. + Weight::from_parts(384_532_432, 0) + // Standard Error: 11_127 + .saturating_add(Weight::from_parts(32_661_842, 0).saturating_mul(p.into())) } /// The range of component `r` is `[0, 20]`. fn free(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 219_414_000 picoseconds. - Weight::from_parts(206_118_379, 0) - // Standard Error: 320_555 - .saturating_add(Weight::from_parts(64_665_141, 0).saturating_mul(r.into())) + // Minimum execution time: 208_188_000 picoseconds. + Weight::from_parts(207_251_598, 0) + // Standard Error: 269_511 + .saturating_add(Weight::from_parts(63_993_415, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 256]`. fn gr_reserve_gas(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 96_871_000 picoseconds. - Weight::from_parts(104_318_392, 0) - // Standard Error: 4_224 - .saturating_add(Weight::from_parts(2_443_618, 0).saturating_mul(r.into())) + // Minimum execution time: 99_563_000 picoseconds. + Weight::from_parts(103_711_343, 0) + // Standard Error: 4_244 + .saturating_add(Weight::from_parts(2_502_376, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 256]`. fn gr_unreserve_gas(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 152_658_000 picoseconds. - Weight::from_parts(218_177_774, 0) - // Standard Error: 23_640 - .saturating_add(Weight::from_parts(2_186_094, 0).saturating_mul(r.into())) + // Minimum execution time: 177_888_000 picoseconds. + Weight::from_parts(232_133_210, 0) + // Standard Error: 15_407 + .saturating_add(Weight::from_parts(2_084_728, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 20]`. fn gr_system_reserve_gas(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 97_532_000 picoseconds. - Weight::from_parts(112_244_990, 0) - // Standard Error: 370_435 - .saturating_add(Weight::from_parts(102_977_688, 0).saturating_mul(r.into())) + // Minimum execution time: 95_448_000 picoseconds. + Weight::from_parts(118_211_047, 0) + // Standard Error: 364_890 + .saturating_add(Weight::from_parts(103_988_684, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 20]`. fn gr_message_id(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 95_116_000 picoseconds. - Weight::from_parts(85_754_801, 0) - // Standard Error: 322_936 - .saturating_add(Weight::from_parts(85_646_040, 0).saturating_mul(r.into())) + // Minimum execution time: 96_343_000 picoseconds. + Weight::from_parts(82_804_631, 0) + // Standard Error: 293_430 + .saturating_add(Weight::from_parts(94_357_895, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 20]`. fn gr_program_id(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 97_226_000 picoseconds. - Weight::from_parts(96_400_189, 0) - // Standard Error: 308_975 - .saturating_add(Weight::from_parts(84_400_658, 0).saturating_mul(r.into())) + // Minimum execution time: 94_619_000 picoseconds. + Weight::from_parts(86_482_681, 0) + // Standard Error: 304_846 + .saturating_add(Weight::from_parts(93_938_049, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 20]`. fn gr_source(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 96_667_000 picoseconds. - Weight::from_parts(95_221_535, 0) - // Standard Error: 320_528 - .saturating_add(Weight::from_parts(85_320_330, 0).saturating_mul(r.into())) + // Minimum execution time: 96_485_000 picoseconds. + Weight::from_parts(87_288_199, 0) + // Standard Error: 292_714 + .saturating_add(Weight::from_parts(93_943_740, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 20]`. fn gr_value(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 96_400_000 picoseconds. - Weight::from_parts(83_830_464, 0) - // Standard Error: 333_677 - .saturating_add(Weight::from_parts(86_153_462, 0).saturating_mul(r.into())) + // Minimum execution time: 97_613_000 picoseconds. + Weight::from_parts(83_672_504, 0) + // Standard Error: 280_845 + .saturating_add(Weight::from_parts(97_083_052, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 20]`. fn gr_value_available(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 98_322_000 picoseconds. - Weight::from_parts(88_780_011, 0) - // Standard Error: 365_736 - .saturating_add(Weight::from_parts(86_373_607, 0).saturating_mul(r.into())) + // Minimum execution time: 99_107_000 picoseconds. + Weight::from_parts(82_852_950, 0) + // Standard Error: 284_918 + .saturating_add(Weight::from_parts(96_401_375, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 20]`. fn gr_gas_available(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 94_234_000 picoseconds. - Weight::from_parts(93_394_916, 0) - // Standard Error: 310_495 - .saturating_add(Weight::from_parts(85_678_300, 0).saturating_mul(r.into())) + // Minimum execution time: 94_978_000 picoseconds. + Weight::from_parts(88_834_080, 0) + // Standard Error: 284_077 + .saturating_add(Weight::from_parts(94_358_752, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 20]`. fn gr_size(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 95_316_000 picoseconds. - Weight::from_parts(88_012_950, 0) - // Standard Error: 309_598 - .saturating_add(Weight::from_parts(85_813_369, 0).saturating_mul(r.into())) + // Minimum execution time: 97_069_000 picoseconds. + Weight::from_parts(84_658_812, 0) + // Standard Error: 289_909 + .saturating_add(Weight::from_parts(94_739_130, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 20]`. fn gr_read(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 715_150_000 picoseconds. - Weight::from_parts(769_593_524, 0) - // Standard Error: 493_525 - .saturating_add(Weight::from_parts(140_935_499, 0).saturating_mul(r.into())) + // Minimum execution time: 624_988_000 picoseconds. + Weight::from_parts(719_391_471, 0) + // Standard Error: 385_357 + .saturating_add(Weight::from_parts(153_589_919, 0).saturating_mul(r.into())) } /// The range of component `n` is `[0, 2048]`. fn gr_read_per_kb(n: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 844_162_000 picoseconds. - Weight::from_parts(851_053_000, 0) - // Standard Error: 50_294 - .saturating_add(Weight::from_parts(13_068_816, 0).saturating_mul(n.into())) + // Minimum execution time: 768_360_000 picoseconds. + Weight::from_parts(784_407_000, 0) + // Standard Error: 58_239 + .saturating_add(Weight::from_parts(13_509_438, 0).saturating_mul(n.into())) } /// The range of component `r` is `[0, 20]`. fn gr_block_height(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 94_243_000 picoseconds. - Weight::from_parts(87_583_955, 0) - // Standard Error: 343_578 - .saturating_add(Weight::from_parts(84_267_053, 0).saturating_mul(r.into())) + // Minimum execution time: 95_583_000 picoseconds. + Weight::from_parts(93_000_068, 0) + // Standard Error: 287_092 + .saturating_add(Weight::from_parts(92_987_967, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 20]`. fn gr_block_timestamp(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 95_559_000 picoseconds. - Weight::from_parts(92_460_596, 0) - // Standard Error: 340_344 - .saturating_add(Weight::from_parts(85_006_110, 0).saturating_mul(r.into())) + // Minimum execution time: 98_609_000 picoseconds. + Weight::from_parts(91_602_090, 0) + // Standard Error: 261_647 + .saturating_add(Weight::from_parts(93_534_327, 0).saturating_mul(r.into())) } /// The range of component `n` is `[0, 20]`. fn gr_random(n: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 95_023_000 picoseconds. - Weight::from_parts(113_045_564, 0) - // Standard Error: 350_542 - .saturating_add(Weight::from_parts(169_289_972, 0).saturating_mul(n.into())) + // Minimum execution time: 96_064_000 picoseconds. + Weight::from_parts(112_225_482, 0) + // Standard Error: 372_150 + .saturating_add(Weight::from_parts(176_540_888, 0).saturating_mul(n.into())) } /// The range of component `r` is `[0, 20]`. fn gr_reply_deposit(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 95_407_000 picoseconds. - Weight::from_parts(99_094_000, 0) - // Standard Error: 3_585_438 - .saturating_add(Weight::from_parts(776_362_449, 0).saturating_mul(r.into())) + // Minimum execution time: 96_515_000 picoseconds. + Weight::from_parts(100_449_000, 0) + // Standard Error: 4_642_503 + .saturating_add(Weight::from_parts(868_473_141, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 20]`. fn gr_send(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 96_709_000 picoseconds. - Weight::from_parts(153_262_764, 0) - // Standard Error: 391_637 - .saturating_add(Weight::from_parts(256_389_022, 0).saturating_mul(r.into())) + // Minimum execution time: 98_501_000 picoseconds. + Weight::from_parts(154_456_982, 0) + // Standard Error: 340_064 + .saturating_add(Weight::from_parts(264_987_162, 0).saturating_mul(r.into())) } /// The range of component `n` is `[0, 2048]`. fn gr_send_per_kb(n: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 341_633_000 picoseconds. - Weight::from_parts(345_693_000, 0) - // Standard Error: 61_029 - .saturating_add(Weight::from_parts(21_298_548, 0).saturating_mul(n.into())) + // Minimum execution time: 353_842_000 picoseconds. + Weight::from_parts(358_232_000, 0) + // Standard Error: 59_123 + .saturating_add(Weight::from_parts(21_328_711, 0).saturating_mul(n.into())) } /// The range of component `r` is `[0, 20]`. fn gr_send_wgas(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 97_817_000 picoseconds. - Weight::from_parts(172_033_153, 0) - // Standard Error: 412_230 - .saturating_add(Weight::from_parts(260_826_119, 0).saturating_mul(r.into())) + // Minimum execution time: 95_473_000 picoseconds. + Weight::from_parts(173_487_611, 0) + // Standard Error: 346_958 + .saturating_add(Weight::from_parts(265_362_826, 0).saturating_mul(r.into())) } /// The range of component `n` is `[0, 2048]`. fn gr_send_wgas_per_kb(n: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 353_433_000 picoseconds. - Weight::from_parts(359_185_000, 0) - // Standard Error: 60_153 - .saturating_add(Weight::from_parts(21_224_949, 0).saturating_mul(n.into())) + // Minimum execution time: 361_340_000 picoseconds. + Weight::from_parts(365_775_000, 0) + // Standard Error: 57_913 + .saturating_add(Weight::from_parts(21_806_682, 0).saturating_mul(n.into())) } /// The range of component `r` is `[0, 20]`. fn gr_send_input(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 716_180_000 picoseconds. - Weight::from_parts(782_890_839, 0) - // Standard Error: 547_225 - .saturating_add(Weight::from_parts(273_570_636, 0).saturating_mul(r.into())) + // Minimum execution time: 619_127_000 picoseconds. + Weight::from_parts(727_744_949, 0) + // Standard Error: 407_186 + .saturating_add(Weight::from_parts(287_464_747, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 20]`. fn gr_send_input_wgas(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 719_827_000 picoseconds. - Weight::from_parts(805_763_844, 0) - // Standard Error: 503_245 - .saturating_add(Weight::from_parts(278_200_889, 0).saturating_mul(r.into())) + // Minimum execution time: 598_950_000 picoseconds. + Weight::from_parts(736_523_445, 0) + // Standard Error: 426_087 + .saturating_add(Weight::from_parts(286_023_165, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 20]`. fn gr_send_init(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 96_518_000 picoseconds. - Weight::from_parts(82_218_173, 0) - // Standard Error: 358_867 - .saturating_add(Weight::from_parts(92_408_337, 0).saturating_mul(r.into())) + // Minimum execution time: 96_646_000 picoseconds. + Weight::from_parts(83_018_591, 0) + // Standard Error: 290_942 + .saturating_add(Weight::from_parts(100_797_875, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 20]`. fn gr_send_push(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 1_829_368_000 picoseconds. - Weight::from_parts(1_976_758_302, 0) - // Standard Error: 349_703 - .saturating_add(Weight::from_parts(163_038_781, 0).saturating_mul(r.into())) + // Minimum execution time: 1_992_708_000 picoseconds. + Weight::from_parts(2_118_177_569, 0) + // Standard Error: 258_344 + .saturating_add(Weight::from_parts(175_943_566, 0).saturating_mul(r.into())) } /// The range of component `n` is `[0, 2048]`. fn gr_send_push_per_kb(n: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 315_829_000 picoseconds. - Weight::from_parts(318_464_000, 0) - // Standard Error: 54_637 - .saturating_add(Weight::from_parts(31_280_567, 0).saturating_mul(n.into())) + // Minimum execution time: 329_583_000 picoseconds. + Weight::from_parts(332_097_000, 0) + // Standard Error: 52_868 + .saturating_add(Weight::from_parts(29_693_569, 0).saturating_mul(n.into())) } /// The range of component `r` is `[0, 20]`. fn gr_send_commit(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 1_818_937_000 picoseconds. - Weight::from_parts(1_941_969_566, 0) - // Standard Error: 412_244 - .saturating_add(Weight::from_parts(220_650_756, 0).saturating_mul(r.into())) + // Minimum execution time: 2_000_304_000 picoseconds. + Weight::from_parts(2_103_665_360, 0) + // Standard Error: 279_832 + .saturating_add(Weight::from_parts(222_774_116, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 20]`. fn gr_send_commit_wgas(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 1_815_762_000 picoseconds. - Weight::from_parts(1_958_182_203, 0) - // Standard Error: 374_381 - .saturating_add(Weight::from_parts(229_106_637, 0).saturating_mul(r.into())) + // Minimum execution time: 2_009_086_000 picoseconds. + Weight::from_parts(2_118_651_462, 0) + // Standard Error: 304_300 + .saturating_add(Weight::from_parts(227_551_678, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 20]`. fn gr_reservation_send(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 259_040_000 picoseconds. - Weight::from_parts(345_586_401, 0) - // Standard Error: 402_258 - .saturating_add(Weight::from_parts(274_866_021, 0).saturating_mul(r.into())) + // Minimum execution time: 249_654_000 picoseconds. + Weight::from_parts(318_420_072, 0) + // Standard Error: 334_694 + .saturating_add(Weight::from_parts(277_786_644, 0).saturating_mul(r.into())) } /// The range of component `n` is `[0, 2048]`. fn gr_reservation_send_per_kb(n: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 523_014_000 picoseconds. - Weight::from_parts(525_681_000, 0) - // Standard Error: 56_470 - .saturating_add(Weight::from_parts(21_443_571, 0).saturating_mul(n.into())) + // Minimum execution time: 530_798_000 picoseconds. + Weight::from_parts(542_480_000, 0) + // Standard Error: 69_997 + .saturating_add(Weight::from_parts(21_968_683, 0).saturating_mul(n.into())) } /// The range of component `r` is `[0, 20]`. fn gr_reservation_send_commit(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 1_967_181_000 picoseconds. - Weight::from_parts(2_076_078_781, 0) - // Standard Error: 455_370 - .saturating_add(Weight::from_parts(246_494_683, 0).saturating_mul(r.into())) + // Minimum execution time: 2_149_917_000 picoseconds. + Weight::from_parts(2_296_280_954, 0) + // Standard Error: 415_974 + .saturating_add(Weight::from_parts(248_500_648, 0).saturating_mul(r.into())) } /// The range of component `n` is `[0, 2048]`. fn gr_reply_per_kb(n: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 114_790_000 picoseconds. - Weight::from_parts(106_908_278, 0) - // Standard Error: 1_274 - .saturating_add(Weight::from_parts(430_785, 0).saturating_mul(n.into())) + // Minimum execution time: 114_806_000 picoseconds. + Weight::from_parts(102_087_876, 0) + // Standard Error: 1_338 + .saturating_add(Weight::from_parts(436_648, 0).saturating_mul(n.into())) } /// The range of component `n` is `[0, 2048]`. fn gr_reply_wgas_per_kb(n: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 115_541_000 picoseconds. - Weight::from_parts(101_956_035, 0) - // Standard Error: 3_603 - .saturating_add(Weight::from_parts(442_387, 0).saturating_mul(n.into())) + // Minimum execution time: 116_657_000 picoseconds. + Weight::from_parts(106_022_444, 0) + // Standard Error: 1_018 + .saturating_add(Weight::from_parts(431_359, 0).saturating_mul(n.into())) } /// The range of component `r` is `[0, 20]`. fn gr_reply_push(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 94_082_000 picoseconds. - Weight::from_parts(138_243_307, 0) - // Standard Error: 409_163 - .saturating_add(Weight::from_parts(154_758_505, 0).saturating_mul(r.into())) + // Minimum execution time: 96_038_000 picoseconds. + Weight::from_parts(135_201_165, 0) + // Standard Error: 356_732 + .saturating_add(Weight::from_parts(159_820_965, 0).saturating_mul(r.into())) } /// The range of component `n` is `[0, 8192]`. fn gr_reply_push_per_kb(n: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 111_536_000 picoseconds. - Weight::from_parts(114_497_000, 0) - // Standard Error: 2_599 - .saturating_add(Weight::from_parts(656_994, 0).saturating_mul(n.into())) + // Minimum execution time: 112_492_000 picoseconds. + Weight::from_parts(114_308_000, 0) + // Standard Error: 3_223 + .saturating_add(Weight::from_parts(662_188, 0).saturating_mul(n.into())) } /// The range of component `n` is `[0, 2048]`. fn gr_reservation_reply_per_kb(n: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 114_322_000 picoseconds. - Weight::from_parts(113_131_028, 0) - // Standard Error: 3_727 - .saturating_add(Weight::from_parts(436_168, 0).saturating_mul(n.into())) + // Minimum execution time: 115_332_000 picoseconds. + Weight::from_parts(108_506_706, 0) + // Standard Error: 1_103 + .saturating_add(Weight::from_parts(434_341, 0).saturating_mul(n.into())) } /// The range of component `n` is `[0, 2048]`. fn gr_reservation_reply_commit_per_kb(n: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 117_751_000 picoseconds. - Weight::from_parts(161_418_174, 0) - // Standard Error: 6_635 - .saturating_add(Weight::from_parts(405_229, 0).saturating_mul(n.into())) + // Minimum execution time: 118_794_000 picoseconds. + Weight::from_parts(107_294_653, 0) + // Standard Error: 960 + .saturating_add(Weight::from_parts(430_040, 0).saturating_mul(n.into())) } /// The range of component `r` is `[0, 20]`. fn gr_reply_to(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 93_524_000 picoseconds. - Weight::from_parts(89_332_032, 0) - // Standard Error: 294_566 - .saturating_add(Weight::from_parts(86_798_759, 0).saturating_mul(r.into())) + // Minimum execution time: 94_737_000 picoseconds. + Weight::from_parts(87_725_226, 0) + // Standard Error: 309_072 + .saturating_add(Weight::from_parts(95_349_514, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 20]`. fn gr_signal_code(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 95_216_000 picoseconds. - Weight::from_parts(83_424_786, 0) - // Standard Error: 316_301 - .saturating_add(Weight::from_parts(84_774_296, 0).saturating_mul(r.into())) + // Minimum execution time: 96_560_000 picoseconds. + Weight::from_parts(88_778_855, 0) + // Standard Error: 321_153 + .saturating_add(Weight::from_parts(92_345_730, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 20]`. fn gr_signal_from(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 96_461_000 picoseconds. - Weight::from_parts(97_636_300, 0) - // Standard Error: 278_297 - .saturating_add(Weight::from_parts(86_743_159, 0).saturating_mul(r.into())) + // Minimum execution time: 95_858_000 picoseconds. + Weight::from_parts(83_381_792, 0) + // Standard Error: 288_029 + .saturating_add(Weight::from_parts(95_413_243, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 20]`. fn gr_reply_push_input(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 724_902_000 picoseconds. - Weight::from_parts(784_128_285, 0) - // Standard Error: 444_406 - .saturating_add(Weight::from_parts(105_223_470, 0).saturating_mul(r.into())) + // Minimum execution time: 623_083_000 picoseconds. + Weight::from_parts(708_678_749, 0) + // Standard Error: 349_496 + .saturating_add(Weight::from_parts(115_860_492, 0).saturating_mul(r.into())) } /// The range of component `n` is `[0, 2048]`. fn gr_reply_push_input_per_kb(n: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 737_666_000 picoseconds. - Weight::from_parts(758_797_216, 0) - // Standard Error: 1_260 - .saturating_add(Weight::from_parts(154_837, 0).saturating_mul(n.into())) + // Minimum execution time: 618_159_000 picoseconds. + Weight::from_parts(642_200_096, 0) + // Standard Error: 1_446 + .saturating_add(Weight::from_parts(123_508, 0).saturating_mul(n.into())) } /// The range of component `r` is `[0, 20]`. fn gr_send_push_input(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_498_871_000 picoseconds. - Weight::from_parts(2_688_516_696, 0) - // Standard Error: 531_545 - .saturating_add(Weight::from_parts(131_060_314, 0).saturating_mul(r.into())) + // Minimum execution time: 2_500_516_000 picoseconds. + Weight::from_parts(2_647_459_773, 0) + // Standard Error: 453_733 + .saturating_add(Weight::from_parts(132_179_417, 0).saturating_mul(r.into())) } /// The range of component `n` is `[0, 2048]`. fn gr_send_push_input_per_kb(n: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_657_855_000 picoseconds. - Weight::from_parts(2_746_003_287, 0) - // Standard Error: 12_743 - .saturating_add(Weight::from_parts(13_716_214, 0).saturating_mul(n.into())) + // Minimum execution time: 2_741_565_000 picoseconds. + Weight::from_parts(2_768_198_343, 0) + // Standard Error: 15_631 + .saturating_add(Weight::from_parts(12_354_508, 0).saturating_mul(n.into())) } /// The range of component `r` is `[0, 20]`. fn gr_debug(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 96_990_000 picoseconds. - Weight::from_parts(110_812_744, 0) - // Standard Error: 347_035 - .saturating_add(Weight::from_parts(120_462_128, 0).saturating_mul(r.into())) + // Minimum execution time: 99_002_000 picoseconds. + Weight::from_parts(122_377_318, 0) + // Standard Error: 378_707 + .saturating_add(Weight::from_parts(116_584_775, 0).saturating_mul(r.into())) } /// The range of component `n` is `[0, 2048]`. fn gr_debug_per_kb(n: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 170_244_000 picoseconds. - Weight::from_parts(175_502_000, 0) - // Standard Error: 56_203 - .saturating_add(Weight::from_parts(25_870_902, 0).saturating_mul(n.into())) + // Minimum execution time: 159_403_000 picoseconds. + Weight::from_parts(161_567_000, 0) + // Standard Error: 52_611 + .saturating_add(Weight::from_parts(23_966_846, 0).saturating_mul(n.into())) } /// The range of component `r` is `[0, 20]`. fn gr_reply_code(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 97_676_000 picoseconds. - Weight::from_parts(91_226_383, 0) - // Standard Error: 320_296 - .saturating_add(Weight::from_parts(82_761_490, 0).saturating_mul(r.into())) + // Minimum execution time: 95_021_000 picoseconds. + Weight::from_parts(83_792_170, 0) + // Standard Error: 307_944 + .saturating_add(Weight::from_parts(92_699_319, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 20]`. fn gr_wake(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 149_319_000 picoseconds. - Weight::from_parts(230_971_562, 0) - // Standard Error: 338_138 - .saturating_add(Weight::from_parts(157_262_608, 0).saturating_mul(r.into())) + // Minimum execution time: 177_740_000 picoseconds. + Weight::from_parts(220_550_761, 0) + // Standard Error: 175_549 + .saturating_add(Weight::from_parts(166_872_997, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 20]`. fn gr_create_program(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 108_167_000 picoseconds. - Weight::from_parts(178_994_489, 0) - // Standard Error: 404_012 - .saturating_add(Weight::from_parts(348_487_075, 0).saturating_mul(r.into())) + // Minimum execution time: 105_825_000 picoseconds. + Weight::from_parts(167_061_819, 0) + // Standard Error: 329_320 + .saturating_add(Weight::from_parts(351_610_020, 0).saturating_mul(r.into())) } /// The range of component `p` is `[0, 2048]`. /// The range of component `s` is `[1, 2048]`. @@ -3044,22 +3040,22 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 43_645_119_000 picoseconds. - Weight::from_parts(43_811_648_000, 0) - // Standard Error: 262_276 - .saturating_add(Weight::from_parts(7_776_587, 0).saturating_mul(p.into())) - // Standard Error: 262_263 - .saturating_add(Weight::from_parts(178_958_075, 0).saturating_mul(s.into())) + // Minimum execution time: 43_911_786_000 picoseconds. + Weight::from_parts(44_034_848_000, 0) + // Standard Error: 268_084 + .saturating_add(Weight::from_parts(7_840_641, 0).saturating_mul(p.into())) + // Standard Error: 268_071 + .saturating_add(Weight::from_parts(171_034_577, 0).saturating_mul(s.into())) } /// The range of component `r` is `[0, 20]`. fn gr_create_program_wgas(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 104_639_000 picoseconds. - Weight::from_parts(169_517_206, 0) - // Standard Error: 363_225 - .saturating_add(Weight::from_parts(357_078_703, 0).saturating_mul(r.into())) + // Minimum execution time: 113_178_000 picoseconds. + Weight::from_parts(151_638_067, 0) + // Standard Error: 307_779 + .saturating_add(Weight::from_parts(360_201_120, 0).saturating_mul(r.into())) } /// The range of component `p` is `[0, 2048]`. /// The range of component `s` is `[1, 2048]`. @@ -3067,32 +3063,32 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 46_491_851_000 picoseconds. - Weight::from_parts(46_603_783_000, 0) - // Standard Error: 280_431 - .saturating_add(Weight::from_parts(7_250_257, 0).saturating_mul(p.into())) - // Standard Error: 280_417 - .saturating_add(Weight::from_parts(177_722_888, 0).saturating_mul(s.into())) + // Minimum execution time: 45_074_991_000 picoseconds. + Weight::from_parts(45_234_378_000, 0) + // Standard Error: 283_779 + .saturating_add(Weight::from_parts(7_989_562, 0).saturating_mul(p.into())) + // Standard Error: 283_765 + .saturating_add(Weight::from_parts(170_645_975, 0).saturating_mul(s.into())) } /// The range of component `r` is `[0, 20]`. fn gr_pay_program_rent(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 95_721_000 picoseconds. - Weight::from_parts(114_995_832, 0) - // Standard Error: 36_809 - .saturating_add(Weight::from_parts(1_873_016, 0).saturating_mul(r.into())) + // Minimum execution time: 95_835_000 picoseconds. + Weight::from_parts(115_102_214, 0) + // Standard Error: 34_404 + .saturating_add(Weight::from_parts(2_142_089, 0).saturating_mul(r.into())) } /// The range of component `p` is `[0, 512]`. fn lazy_pages_signal_read(p: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `141` // Estimated: `1131 + p * (9900 ±0)` - // Minimum execution time: 97_655_000 picoseconds. - Weight::from_parts(138_058_498, 1131) - // Standard Error: 18_813 - .saturating_add(Weight::from_parts(16_311_194, 0).saturating_mul(p.into())) + // Minimum execution time: 95_078_000 picoseconds. + Weight::from_parts(134_205_201, 1131) + // Standard Error: 22_980 + .saturating_add(Weight::from_parts(16_531_416, 0).saturating_mul(p.into())) .saturating_add(RocksDbWeight::get().reads((4_u64).saturating_mul(p.into()))) .saturating_add(Weight::from_parts(0, 9900).saturating_mul(p.into())) } @@ -3101,10 +3097,10 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `141` // Estimated: `1131 + p * (9900 ±0)` - // Minimum execution time: 96_083_000 picoseconds. - Weight::from_parts(98_597_000, 1131) - // Standard Error: 43_515 - .saturating_add(Weight::from_parts(42_632_421, 0).saturating_mul(p.into())) + // Minimum execution time: 96_686_000 picoseconds. + Weight::from_parts(98_247_000, 1131) + // Standard Error: 31_568 + .saturating_add(Weight::from_parts(41_868_408, 0).saturating_mul(p.into())) .saturating_add(RocksDbWeight::get().reads((4_u64).saturating_mul(p.into()))) .saturating_add(Weight::from_parts(0, 9900).saturating_mul(p.into())) } @@ -3113,10 +3109,10 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `141` // Estimated: `5069931` - // Minimum execution time: 8_196_422_000 picoseconds. - Weight::from_parts(8_474_214_520, 5069931) - // Standard Error: 71_564 - .saturating_add(Weight::from_parts(41_738_666, 0).saturating_mul(p.into())) + // Minimum execution time: 8_172_399_000 picoseconds. + Weight::from_parts(7_934_736_669, 5069931) + // Standard Error: 90_294 + .saturating_add(Weight::from_parts(44_059_914, 0).saturating_mul(p.into())) .saturating_add(RocksDbWeight::get().reads(2048_u64)) } /// The range of component `p` is `[0, 512]`. @@ -3124,10 +3120,10 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `1813 + p * (65580 ±0)` // Estimated: `1939 + p * (75482 ±0)` - // Minimum execution time: 93_446_000 picoseconds. - Weight::from_parts(96_664_000, 1939) - // Standard Error: 46_722 - .saturating_add(Weight::from_parts(55_567_620, 0).saturating_mul(p.into())) + // Minimum execution time: 97_101_000 picoseconds. + Weight::from_parts(99_642_000, 1939) + // Standard Error: 38_446 + .saturating_add(Weight::from_parts(59_625_042, 0).saturating_mul(p.into())) .saturating_add(RocksDbWeight::get().reads((4_u64).saturating_mul(p.into()))) .saturating_add(Weight::from_parts(0, 75482).saturating_mul(p.into())) } @@ -3136,10 +3132,10 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `141` // Estimated: `1131 + p * (9900 ±0)` - // Minimum execution time: 106_137_000 picoseconds. - Weight::from_parts(107_751_954, 1131) - // Standard Error: 71_200 - .saturating_add(Weight::from_parts(41_236_505, 0).saturating_mul(p.into())) + // Minimum execution time: 101_726_000 picoseconds. + Weight::from_parts(104_006_012, 1131) + // Standard Error: 73_331 + .saturating_add(Weight::from_parts(40_363_581, 0).saturating_mul(p.into())) .saturating_add(RocksDbWeight::get().reads((4_u64).saturating_mul(p.into()))) .saturating_add(Weight::from_parts(0, 9900).saturating_mul(p.into())) } @@ -3148,10 +3144,10 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `141` // Estimated: `1496 + p * (9883 ±2)` - // Minimum execution time: 758_237_000 picoseconds. - Weight::from_parts(760_351_083, 1496) - // Standard Error: 319_479 - .saturating_add(Weight::from_parts(53_277_303, 0).saturating_mul(p.into())) + // Minimum execution time: 671_731_000 picoseconds. + Weight::from_parts(700_428_000, 1496) + // Standard Error: 235_378 + .saturating_add(Weight::from_parts(55_804_323, 0).saturating_mul(p.into())) .saturating_add(RocksDbWeight::get().reads((4_u64).saturating_mul(p.into()))) .saturating_add(Weight::from_parts(0, 9883).saturating_mul(p.into())) } @@ -3160,10 +3156,10 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `141` // Estimated: `317931` - // Minimum execution time: 1_299_071_000 picoseconds. - Weight::from_parts(1_320_542_278, 317931) - // Standard Error: 364_770 - .saturating_add(Weight::from_parts(53_225_083, 0).saturating_mul(p.into())) + // Minimum execution time: 1_240_630_000 picoseconds. + Weight::from_parts(1_259_057_176, 317931) + // Standard Error: 261_140 + .saturating_add(Weight::from_parts(55_057_744, 0).saturating_mul(p.into())) .saturating_add(RocksDbWeight::get().reads(128_u64)) } /// The range of component `r` is `[0, 20]`. @@ -3171,935 +3167,935 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 4_118_000 picoseconds. - Weight::from_parts(7_418_987, 0) - // Standard Error: 299_976 - .saturating_add(Weight::from_parts(77_036_564, 0).saturating_mul(r.into())) + // Minimum execution time: 3_348_000 picoseconds. + Weight::from_parts(3_626_000, 0) + // Standard Error: 214_323 + .saturating_add(Weight::from_parts(78_486_417, 0).saturating_mul(r.into())) } /// The range of component `r` is `[50, 500]`. fn instr_i64load(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 4_461_228_000 picoseconds. - Weight::from_parts(4_172_544_233, 0) - // Standard Error: 108_717 - .saturating_add(Weight::from_parts(5_492_504, 0).saturating_mul(r.into())) + // Minimum execution time: 4_469_766_000 picoseconds. + Weight::from_parts(4_346_471_807, 0) + // Standard Error: 80_728 + .saturating_add(Weight::from_parts(4_713_314, 0).saturating_mul(r.into())) } /// The range of component `r` is `[50, 500]`. fn instr_i32load(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 4_440_105_000 picoseconds. - Weight::from_parts(4_189_326_223, 0) - // Standard Error: 94_884 - .saturating_add(Weight::from_parts(5_283_060, 0).saturating_mul(r.into())) + // Minimum execution time: 4_425_982_000 picoseconds. + Weight::from_parts(4_330_284_940, 0) + // Standard Error: 74_620 + .saturating_add(Weight::from_parts(4_628_865, 0).saturating_mul(r.into())) } /// The range of component `r` is `[50, 500]`. fn instr_i64store(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 11_389_557_000 picoseconds. - Weight::from_parts(11_860_510_711, 0) - // Standard Error: 156_021 - .saturating_add(Weight::from_parts(9_199_358, 0).saturating_mul(r.into())) + // Minimum execution time: 11_523_555_000 picoseconds. + Weight::from_parts(11_703_046_471, 0) + // Standard Error: 142_447 + .saturating_add(Weight::from_parts(10_471_668, 0).saturating_mul(r.into())) } /// The range of component `r` is `[50, 500]`. fn instr_i32store(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 11_497_103_000 picoseconds. - Weight::from_parts(11_330_880_436, 0) - // Standard Error: 132_247 - .saturating_add(Weight::from_parts(10_016_516, 0).saturating_mul(r.into())) + // Minimum execution time: 11_678_567_000 picoseconds. + Weight::from_parts(11_004_580_924, 0) + // Standard Error: 236_889 + .saturating_add(Weight::from_parts(11_641_285, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_select(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_381_000 picoseconds. - Weight::from_parts(2_444_000, 0) - // Standard Error: 7_402 - .saturating_add(Weight::from_parts(3_876_295, 0).saturating_mul(r.into())) + // Minimum execution time: 2_392_000 picoseconds. + Weight::from_parts(2_511_000, 0) + // Standard Error: 8_367 + .saturating_add(Weight::from_parts(3_799_391, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_if(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_405_000 picoseconds. - Weight::from_parts(481_308, 0) - // Standard Error: 8_161 - .saturating_add(Weight::from_parts(3_159_957, 0).saturating_mul(r.into())) + // Minimum execution time: 2_427_000 picoseconds. + Weight::from_parts(2_097_272, 0) + // Standard Error: 9_819 + .saturating_add(Weight::from_parts(3_176_824, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_br(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_371_000 picoseconds. - Weight::from_parts(3_249_787, 0) - // Standard Error: 1_586 - .saturating_add(Weight::from_parts(1_582_965, 0).saturating_mul(r.into())) + // Minimum execution time: 2_397_000 picoseconds. + Weight::from_parts(3_703_691, 0) + // Standard Error: 994 + .saturating_add(Weight::from_parts(1_561_922, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_br_if(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_216_000 picoseconds. - Weight::from_parts(2_300_000, 0) - // Standard Error: 6_757 - .saturating_add(Weight::from_parts(2_971_649, 0).saturating_mul(r.into())) + // Minimum execution time: 2_483_000 picoseconds. + Weight::from_parts(2_601_000, 0) + // Standard Error: 9_331 + .saturating_add(Weight::from_parts(2_888_581, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_br_table(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_259_000 picoseconds. - Weight::from_parts(2_872_259, 0) - // Standard Error: 19_834 - .saturating_add(Weight::from_parts(5_176_111, 0).saturating_mul(r.into())) + // Minimum execution time: 2_439_000 picoseconds. + Weight::from_parts(1_761_663, 0) + // Standard Error: 14_372 + .saturating_add(Weight::from_parts(5_100_133, 0).saturating_mul(r.into())) } /// The range of component `e` is `[1, 256]`. fn instr_br_table_per_entry(e: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 6_999_000 picoseconds. - Weight::from_parts(6_015_140, 0) - // Standard Error: 1_903 - .saturating_add(Weight::from_parts(170_143, 0).saturating_mul(e.into())) + // Minimum execution time: 7_234_000 picoseconds. + Weight::from_parts(5_492_163, 0) + // Standard Error: 1_185 + .saturating_add(Weight::from_parts(176_215, 0).saturating_mul(e.into())) } /// The range of component `r` is `[0, 50]`. fn instr_call_const(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_308_000 picoseconds. - Weight::from_parts(5_881_148, 0) - // Standard Error: 9_069 - .saturating_add(Weight::from_parts(2_574_099, 0).saturating_mul(r.into())) + // Minimum execution time: 2_491_000 picoseconds. + Weight::from_parts(5_061_503, 0) + // Standard Error: 8_350 + .saturating_add(Weight::from_parts(2_644_398, 0).saturating_mul(r.into())) } fn instr_i64const(r: u32, ) -> Weight { Weight::from_parts(0, 0) - .saturating_add(Weight::from_parts(2_574_099 - - 2_423_093, 0).saturating_mul(r.into())) + .saturating_add(Weight::from_parts(2_644_398 - + 2_438_254, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_call(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_337_000 picoseconds. - Weight::from_parts(5_123_036, 0) - // Standard Error: 12_143 - .saturating_add(Weight::from_parts(2_423_093, 0).saturating_mul(r.into())) + // Minimum execution time: 2_503_000 picoseconds. + Weight::from_parts(5_535_035, 0) + // Standard Error: 14_338 + .saturating_add(Weight::from_parts(2_438_254, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_call_indirect(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_736_000 picoseconds. - Weight::from_parts(16_600_828, 0) - // Standard Error: 30_025 - .saturating_add(Weight::from_parts(10_214_913, 0).saturating_mul(r.into())) + // Minimum execution time: 2_844_000 picoseconds. + Weight::from_parts(25_838_862, 0) + // Standard Error: 42_622 + .saturating_add(Weight::from_parts(9_686_143, 0).saturating_mul(r.into())) } /// The range of component `p` is `[0, 128]`. fn instr_call_indirect_per_param(p: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 12_483_000 picoseconds. - Weight::from_parts(1_416_669, 0) - // Standard Error: 5_995 - .saturating_add(Weight::from_parts(1_336_453, 0).saturating_mul(p.into())) + // Minimum execution time: 12_112_000 picoseconds. + Weight::from_parts(5_743_185, 0) + // Standard Error: 5_493 + .saturating_add(Weight::from_parts(1_233_796, 0).saturating_mul(p.into())) } /// The range of component `l` is `[0, 1024]`. fn instr_call_per_local(_l: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 5_497_000 picoseconds. - Weight::from_parts(5_981_231, 0) + // Minimum execution time: 5_473_000 picoseconds. + Weight::from_parts(5_937_974, 0) } /// The range of component `r` is `[0, 50]`. fn instr_local_get(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 4_730_000 picoseconds. - Weight::from_parts(5_851_529, 0) - // Standard Error: 2_642 - .saturating_add(Weight::from_parts(392_869, 0).saturating_mul(r.into())) + // Minimum execution time: 5_014_000 picoseconds. + Weight::from_parts(5_247_579, 0) + // Standard Error: 3_254 + .saturating_add(Weight::from_parts(453_803, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_local_set(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 4_837_000 picoseconds. - Weight::from_parts(4_473_635, 0) - // Standard Error: 5_210 - .saturating_add(Weight::from_parts(1_003_312, 0).saturating_mul(r.into())) + // Minimum execution time: 4_950_000 picoseconds. + Weight::from_parts(2_980_884, 0) + // Standard Error: 6_602 + .saturating_add(Weight::from_parts(1_178_313, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_local_tee(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 4_802_000 picoseconds. - Weight::from_parts(2_153_776, 0) - // Standard Error: 11_517 - .saturating_add(Weight::from_parts(1_186_032, 0).saturating_mul(r.into())) + // Minimum execution time: 4_957_000 picoseconds. + Weight::from_parts(1_255_357, 0) + // Standard Error: 11_777 + .saturating_add(Weight::from_parts(1_371_915, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_global_get(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 6_375_000 picoseconds. - Weight::from_parts(3_754_449, 0) - // Standard Error: 5_686 - .saturating_add(Weight::from_parts(763_597, 0).saturating_mul(r.into())) + // Minimum execution time: 6_526_000 picoseconds. + Weight::from_parts(2_358_200, 0) + // Standard Error: 7_803 + .saturating_add(Weight::from_parts(916_414, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_global_set(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 6_475_000 picoseconds. - Weight::from_parts(266_670, 0) - // Standard Error: 10_193 - .saturating_add(Weight::from_parts(1_552_777, 0).saturating_mul(r.into())) + // Minimum execution time: 6_534_000 picoseconds. + Weight::from_parts(1_078_818, 0) + // Standard Error: 8_155 + .saturating_add(Weight::from_parts(1_601_009, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_memory_current(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 6_887_000 picoseconds. - Weight::from_parts(4_333_544, 0) - // Standard Error: 10_173 - .saturating_add(Weight::from_parts(6_952_830, 0).saturating_mul(r.into())) + // Minimum execution time: 6_292_000 picoseconds. + Weight::from_parts(2_896_295, 0) + // Standard Error: 9_977 + .saturating_add(Weight::from_parts(7_220_458, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64clz(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_267_000 picoseconds. - Weight::from_parts(2_351_000, 0) - // Standard Error: 5_280 - .saturating_add(Weight::from_parts(3_360_413, 0).saturating_mul(r.into())) + // Minimum execution time: 2_413_000 picoseconds. + Weight::from_parts(2_490_000, 0) + // Standard Error: 6_167 + .saturating_add(Weight::from_parts(3_365_545, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32clz(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_283_000 picoseconds. - Weight::from_parts(2_357_000, 0) - // Standard Error: 4_452 - .saturating_add(Weight::from_parts(3_099_489, 0).saturating_mul(r.into())) + // Minimum execution time: 2_400_000 picoseconds. + Weight::from_parts(2_502_000, 0) + // Standard Error: 5_525 + .saturating_add(Weight::from_parts(3_090_577, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64ctz(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_328_000 picoseconds. - Weight::from_parts(2_417_000, 0) - // Standard Error: 5_054 - .saturating_add(Weight::from_parts(3_106_996, 0).saturating_mul(r.into())) + // Minimum execution time: 2_462_000 picoseconds. + Weight::from_parts(2_568_000, 0) + // Standard Error: 5_417 + .saturating_add(Weight::from_parts(3_118_601, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32ctz(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_230_000 picoseconds. - Weight::from_parts(2_296_000, 0) - // Standard Error: 3_924 - .saturating_add(Weight::from_parts(2_681_831, 0).saturating_mul(r.into())) + // Minimum execution time: 2_358_000 picoseconds. + Weight::from_parts(2_499_000, 0) + // Standard Error: 4_982 + .saturating_add(Weight::from_parts(2_770_061, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64popcnt(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_294_000 picoseconds. - Weight::from_parts(2_438_000, 0) - // Standard Error: 4_198 - .saturating_add(Weight::from_parts(603_106, 0).saturating_mul(r.into())) + // Minimum execution time: 2_503_000 picoseconds. + Weight::from_parts(2_564_000, 0) + // Standard Error: 4_969 + .saturating_add(Weight::from_parts(704_388, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32popcnt(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_257_000 picoseconds. - Weight::from_parts(2_121_941, 0) - // Standard Error: 3_525 - .saturating_add(Weight::from_parts(401_578, 0).saturating_mul(r.into())) + // Minimum execution time: 2_459_000 picoseconds. + Weight::from_parts(191_200, 0) + // Standard Error: 6_017 + .saturating_add(Weight::from_parts(562_742, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64eqz(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_224_000 picoseconds. - Weight::from_parts(2_291_000, 0) - // Standard Error: 9_436 - .saturating_add(Weight::from_parts(1_891_725, 0).saturating_mul(r.into())) + // Minimum execution time: 2_444_000 picoseconds. + Weight::from_parts(2_497_000, 0) + // Standard Error: 7_924 + .saturating_add(Weight::from_parts(1_968_376, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32eqz(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_273_000 picoseconds. - Weight::from_parts(2_417_000, 0) - // Standard Error: 8_255 - .saturating_add(Weight::from_parts(1_289_311, 0).saturating_mul(r.into())) + // Minimum execution time: 2_446_000 picoseconds. + Weight::from_parts(2_473_000, 0) + // Standard Error: 7_912 + .saturating_add(Weight::from_parts(1_346_364, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32extend8s(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_276_000 picoseconds. - Weight::from_parts(1_306_236, 0) - // Standard Error: 5_275 - .saturating_add(Weight::from_parts(426_430, 0).saturating_mul(r.into())) + // Minimum execution time: 2_464_000 picoseconds. + Weight::from_parts(83_668, 0) + // Standard Error: 7_204 + .saturating_add(Weight::from_parts(543_317, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32extend16s(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_341_000 picoseconds. - Weight::from_parts(1_669_540, 0) - // Standard Error: 4_902 - .saturating_add(Weight::from_parts(405_099, 0).saturating_mul(r.into())) + // Minimum execution time: 2_493_000 picoseconds. + Weight::from_parts(197_096, 0) + // Standard Error: 6_608 + .saturating_add(Weight::from_parts(525_360, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64extend8s(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_244_000 picoseconds. - Weight::from_parts(2_317_000, 0) - // Standard Error: 3_916 - .saturating_add(Weight::from_parts(552_354, 0).saturating_mul(r.into())) + // Minimum execution time: 2_472_000 picoseconds. + Weight::from_parts(2_551_000, 0) + // Standard Error: 5_207 + .saturating_add(Weight::from_parts(642_915, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64extend16s(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_316_000 picoseconds. - Weight::from_parts(2_395_000, 0) - // Standard Error: 5_375 - .saturating_add(Weight::from_parts(589_608, 0).saturating_mul(r.into())) + // Minimum execution time: 2_505_000 picoseconds. + Weight::from_parts(2_556_000, 0) + // Standard Error: 4_430 + .saturating_add(Weight::from_parts(640_970, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64extend32s(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_258_000 picoseconds. - Weight::from_parts(98_911, 0) - // Standard Error: 7_257 - .saturating_add(Weight::from_parts(581_834, 0).saturating_mul(r.into())) + // Minimum execution time: 2_399_000 picoseconds. + Weight::from_parts(2_530_000, 0) + // Standard Error: 4_248 + .saturating_add(Weight::from_parts(574_179, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64extendsi32(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_293_000 picoseconds. - Weight::from_parts(1_730_402, 0) - // Standard Error: 4_194 - .saturating_add(Weight::from_parts(357_287, 0).saturating_mul(r.into())) + // Minimum execution time: 2_467_000 picoseconds. + Weight::from_parts(1_554_632, 0) + // Standard Error: 4_096 + .saturating_add(Weight::from_parts(386_240, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64extendui32(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_580_000 picoseconds. - Weight::from_parts(2_927_247, 0) - // Standard Error: 2_012 - .saturating_add(Weight::from_parts(181_106, 0).saturating_mul(r.into())) + // Minimum execution time: 2_468_000 picoseconds. + Weight::from_parts(3_011_768, 0) + // Standard Error: 1_923 + .saturating_add(Weight::from_parts(160_611, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32wrapi64(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_308_000 picoseconds. - Weight::from_parts(2_742_236, 0) - // Standard Error: 2_482 - .saturating_add(Weight::from_parts(187_830, 0).saturating_mul(r.into())) + // Minimum execution time: 2_464_000 picoseconds. + Weight::from_parts(2_856_296, 0) + // Standard Error: 2_574 + .saturating_add(Weight::from_parts(173_194, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64eq(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_324_000 picoseconds. - Weight::from_parts(2_385_000, 0) - // Standard Error: 9_154 - .saturating_add(Weight::from_parts(1_858_617, 0).saturating_mul(r.into())) + // Minimum execution time: 2_448_000 picoseconds. + Weight::from_parts(2_540_000, 0) + // Standard Error: 8_614 + .saturating_add(Weight::from_parts(1_773_707, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32eq(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_237_000 picoseconds. - Weight::from_parts(2_302_000, 0) - // Standard Error: 7_801 - .saturating_add(Weight::from_parts(1_226_411, 0).saturating_mul(r.into())) + // Minimum execution time: 2_456_000 picoseconds. + Weight::from_parts(2_568_000, 0) + // Standard Error: 6_895 + .saturating_add(Weight::from_parts(1_129_796, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64ne(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_265_000 picoseconds. - Weight::from_parts(2_358_000, 0) - // Standard Error: 9_102 - .saturating_add(Weight::from_parts(1_866_723, 0).saturating_mul(r.into())) + // Minimum execution time: 2_432_000 picoseconds. + Weight::from_parts(2_552_000, 0) + // Standard Error: 8_855 + .saturating_add(Weight::from_parts(1_781_383, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32ne(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_267_000 picoseconds. - Weight::from_parts(2_381_000, 0) - // Standard Error: 8_629 - .saturating_add(Weight::from_parts(1_209_968, 0).saturating_mul(r.into())) + // Minimum execution time: 2_433_000 picoseconds. + Weight::from_parts(2_561_000, 0) + // Standard Error: 8_930 + .saturating_add(Weight::from_parts(1_299_565, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64lts(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_274_000 picoseconds. - Weight::from_parts(2_330_000, 0) - // Standard Error: 9_193 - .saturating_add(Weight::from_parts(1_895_140, 0).saturating_mul(r.into())) + // Minimum execution time: 2_458_000 picoseconds. + Weight::from_parts(2_509_000, 0) + // Standard Error: 7_370 + .saturating_add(Weight::from_parts(1_912_177, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32lts(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_306_000 picoseconds. - Weight::from_parts(2_394_000, 0) - // Standard Error: 7_780 - .saturating_add(Weight::from_parts(1_209_776, 0).saturating_mul(r.into())) + // Minimum execution time: 2_375_000 picoseconds. + Weight::from_parts(2_509_000, 0) + // Standard Error: 7_609 + .saturating_add(Weight::from_parts(1_318_072, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64ltu(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_273_000 picoseconds. - Weight::from_parts(2_395_000, 0) - // Standard Error: 8_868 - .saturating_add(Weight::from_parts(1_845_417, 0).saturating_mul(r.into())) + // Minimum execution time: 2_438_000 picoseconds. + Weight::from_parts(2_532_000, 0) + // Standard Error: 7_147 + .saturating_add(Weight::from_parts(1_902_313, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32ltu(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_280_000 picoseconds. - Weight::from_parts(2_360_000, 0) - // Standard Error: 8_139 - .saturating_add(Weight::from_parts(1_208_611, 0).saturating_mul(r.into())) + // Minimum execution time: 2_369_000 picoseconds. + Weight::from_parts(2_420_000, 0) + // Standard Error: 7_127 + .saturating_add(Weight::from_parts(1_269_528, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64gts(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_299_000 picoseconds. - Weight::from_parts(2_335_000, 0) - // Standard Error: 8_008 - .saturating_add(Weight::from_parts(1_833_636, 0).saturating_mul(r.into())) + // Minimum execution time: 2_497_000 picoseconds. + Weight::from_parts(2_552_000, 0) + // Standard Error: 9_809 + .saturating_add(Weight::from_parts(1_858_855, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32gts(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_222_000 picoseconds. - Weight::from_parts(2_376_000, 0) - // Standard Error: 7_996 - .saturating_add(Weight::from_parts(1_224_203, 0).saturating_mul(r.into())) + // Minimum execution time: 2_437_000 picoseconds. + Weight::from_parts(2_522_000, 0) + // Standard Error: 9_811 + .saturating_add(Weight::from_parts(1_226_193, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64gtu(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_371_000 picoseconds. - Weight::from_parts(2_421_000, 0) - // Standard Error: 9_119 - .saturating_add(Weight::from_parts(1_821_158, 0).saturating_mul(r.into())) + // Minimum execution time: 2_448_000 picoseconds. + Weight::from_parts(2_500_000, 0) + // Standard Error: 7_568 + .saturating_add(Weight::from_parts(1_955_726, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32gtu(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_305_000 picoseconds. - Weight::from_parts(2_418_000, 0) - // Standard Error: 7_441 - .saturating_add(Weight::from_parts(1_186_995, 0).saturating_mul(r.into())) + // Minimum execution time: 2_441_000 picoseconds. + Weight::from_parts(2_515_000, 0) + // Standard Error: 7_599 + .saturating_add(Weight::from_parts(1_311_184, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64les(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_340_000 picoseconds. - Weight::from_parts(2_362_000, 0) - // Standard Error: 8_788 - .saturating_add(Weight::from_parts(1_811_701, 0).saturating_mul(r.into())) + // Minimum execution time: 2_406_000 picoseconds. + Weight::from_parts(2_526_000, 0) + // Standard Error: 7_978 + .saturating_add(Weight::from_parts(1_934_575, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32les(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_352_000 picoseconds. - Weight::from_parts(2_431_000, 0) - // Standard Error: 6_620 - .saturating_add(Weight::from_parts(1_171_906, 0).saturating_mul(r.into())) + // Minimum execution time: 2_454_000 picoseconds. + Weight::from_parts(2_579_000, 0) + // Standard Error: 7_835 + .saturating_add(Weight::from_parts(1_361_324, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64leu(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_352_000 picoseconds. - Weight::from_parts(2_380_000, 0) - // Standard Error: 8_554 - .saturating_add(Weight::from_parts(1_821_955, 0).saturating_mul(r.into())) + // Minimum execution time: 2_419_000 picoseconds. + Weight::from_parts(2_576_000, 0) + // Standard Error: 7_250 + .saturating_add(Weight::from_parts(1_910_453, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32leu(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_299_000 picoseconds. - Weight::from_parts(2_389_000, 0) - // Standard Error: 7_710 - .saturating_add(Weight::from_parts(1_188_722, 0).saturating_mul(r.into())) + // Minimum execution time: 2_447_000 picoseconds. + Weight::from_parts(2_481_000, 0) + // Standard Error: 7_289 + .saturating_add(Weight::from_parts(1_319_827, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64ges(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_325_000 picoseconds. - Weight::from_parts(2_387_000, 0) - // Standard Error: 10_150 - .saturating_add(Weight::from_parts(1_912_877, 0).saturating_mul(r.into())) + // Minimum execution time: 2_416_000 picoseconds. + Weight::from_parts(2_513_000, 0) + // Standard Error: 9_075 + .saturating_add(Weight::from_parts(1_885_122, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32ges(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_377_000 picoseconds. - Weight::from_parts(2_423_000, 0) - // Standard Error: 6_824 - .saturating_add(Weight::from_parts(1_181_831, 0).saturating_mul(r.into())) + // Minimum execution time: 2_464_000 picoseconds. + Weight::from_parts(2_548_000, 0) + // Standard Error: 6_211 + .saturating_add(Weight::from_parts(1_137_406, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64geu(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_292_000 picoseconds. - Weight::from_parts(2_384_000, 0) - // Standard Error: 9_214 - .saturating_add(Weight::from_parts(1_842_825, 0).saturating_mul(r.into())) + // Minimum execution time: 2_504_000 picoseconds. + Weight::from_parts(2_541_000, 0) + // Standard Error: 9_758 + .saturating_add(Weight::from_parts(1_796_339, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32geu(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_283_000 picoseconds. - Weight::from_parts(2_344_000, 0) - // Standard Error: 7_145 - .saturating_add(Weight::from_parts(1_216_207, 0).saturating_mul(r.into())) + // Minimum execution time: 2_506_000 picoseconds. + Weight::from_parts(2_560_000, 0) + // Standard Error: 9_133 + .saturating_add(Weight::from_parts(1_357_535, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64add(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_232_000 picoseconds. - Weight::from_parts(2_391_000, 0) - // Standard Error: 9_159 - .saturating_add(Weight::from_parts(1_360_135, 0).saturating_mul(r.into())) + // Minimum execution time: 2_367_000 picoseconds. + Weight::from_parts(2_480_000, 0) + // Standard Error: 8_359 + .saturating_add(Weight::from_parts(1_478_633, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32add(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_279_000 picoseconds. - Weight::from_parts(2_379_000, 0) - // Standard Error: 5_400 - .saturating_add(Weight::from_parts(704_012, 0).saturating_mul(r.into())) + // Minimum execution time: 2_452_000 picoseconds. + Weight::from_parts(2_541_000, 0) + // Standard Error: 6_517 + .saturating_add(Weight::from_parts(796_336, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64sub(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_355_000 picoseconds. - Weight::from_parts(2_402_000, 0) - // Standard Error: 8_632 - .saturating_add(Weight::from_parts(1_358_130, 0).saturating_mul(r.into())) + // Minimum execution time: 2_533_000 picoseconds. + Weight::from_parts(2_581_000, 0) + // Standard Error: 8_508 + .saturating_add(Weight::from_parts(1_464_442, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32sub(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_365_000 picoseconds. - Weight::from_parts(2_389_000, 0) - // Standard Error: 4_840 - .saturating_add(Weight::from_parts(658_882, 0).saturating_mul(r.into())) + // Minimum execution time: 2_458_000 picoseconds. + Weight::from_parts(2_555_000, 0) + // Standard Error: 6_791 + .saturating_add(Weight::from_parts(786_844, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64mul(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_209_000 picoseconds. - Weight::from_parts(2_324_000, 0) - // Standard Error: 8_679 - .saturating_add(Weight::from_parts(1_840_263, 0).saturating_mul(r.into())) + // Minimum execution time: 2_538_000 picoseconds. + Weight::from_parts(2_568_000, 0) + // Standard Error: 7_582 + .saturating_add(Weight::from_parts(1_877_594, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32mul(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_258_000 picoseconds. - Weight::from_parts(2_382_000, 0) - // Standard Error: 7_484 - .saturating_add(Weight::from_parts(1_255_185, 0).saturating_mul(r.into())) + // Minimum execution time: 2_467_000 picoseconds. + Weight::from_parts(2_564_000, 0) + // Standard Error: 7_649 + .saturating_add(Weight::from_parts(1_374_403, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64divs(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_369_000 picoseconds. - Weight::from_parts(6_412_885, 0) - // Standard Error: 22_130 - .saturating_add(Weight::from_parts(2_376_785, 0).saturating_mul(r.into())) + // Minimum execution time: 2_417_000 picoseconds. + Weight::from_parts(13_577_124, 0) + // Standard Error: 24_454 + .saturating_add(Weight::from_parts(1_848_524, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32divs(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_266_000 picoseconds. - Weight::from_parts(2_981_330, 0) - // Standard Error: 11_996 - .saturating_add(Weight::from_parts(2_322_763, 0).saturating_mul(r.into())) + // Minimum execution time: 2_448_000 picoseconds. + Weight::from_parts(8_056_015, 0) + // Standard Error: 18_230 + .saturating_add(Weight::from_parts(1_998_870, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64divu(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_240_000 picoseconds. - Weight::from_parts(7_628_007, 0) - // Standard Error: 29_510 - .saturating_add(Weight::from_parts(2_483_957, 0).saturating_mul(r.into())) + // Minimum execution time: 2_501_000 picoseconds. + Weight::from_parts(6_359_851, 0) + // Standard Error: 24_959 + .saturating_add(Weight::from_parts(2_532_087, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32divu(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_387_000 picoseconds. - Weight::from_parts(4_910_027, 0) - // Standard Error: 23_548 - .saturating_add(Weight::from_parts(2_233_487, 0).saturating_mul(r.into())) + // Minimum execution time: 2_465_000 picoseconds. + Weight::from_parts(3_211_947, 0) + // Standard Error: 12_549 + .saturating_add(Weight::from_parts(2_290_659, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64rems(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_297_000 picoseconds. - Weight::from_parts(16_240_633, 0) - // Standard Error: 67_100 - .saturating_add(Weight::from_parts(8_506_720, 0).saturating_mul(r.into())) + // Minimum execution time: 2_416_000 picoseconds. + Weight::from_parts(2_484_000, 0) + // Standard Error: 14_396 + .saturating_add(Weight::from_parts(9_501_882, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32rems(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_234_000 picoseconds. - Weight::from_parts(2_498_693, 0) - // Standard Error: 48_996 - .saturating_add(Weight::from_parts(7_513_162, 0).saturating_mul(r.into())) + // Minimum execution time: 2_551_000 picoseconds. + Weight::from_parts(2_786_324, 0) + // Standard Error: 42_129 + .saturating_add(Weight::from_parts(7_363_990, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64remu(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_221_000 picoseconds. - Weight::from_parts(5_074_264, 0) - // Standard Error: 23_109 - .saturating_add(Weight::from_parts(2_727_269, 0).saturating_mul(r.into())) + // Minimum execution time: 2_444_000 picoseconds. + Weight::from_parts(11_631_140, 0) + // Standard Error: 29_415 + .saturating_add(Weight::from_parts(2_239_863, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32remu(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_283_000 picoseconds. - Weight::from_parts(2_057_554, 0) - // Standard Error: 15_404 - .saturating_add(Weight::from_parts(2_428_553, 0).saturating_mul(r.into())) + // Minimum execution time: 2_722_000 picoseconds. + Weight::from_parts(8_602_177, 0) + // Standard Error: 23_181 + .saturating_add(Weight::from_parts(2_039_962, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64and(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_250_000 picoseconds. - Weight::from_parts(2_359_000, 0) - // Standard Error: 8_133 - .saturating_add(Weight::from_parts(1_333_125, 0).saturating_mul(r.into())) + // Minimum execution time: 2_417_000 picoseconds. + Weight::from_parts(2_553_000, 0) + // Standard Error: 7_930 + .saturating_add(Weight::from_parts(1_480_355, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32and(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_251_000 picoseconds. - Weight::from_parts(2_372_000, 0) - // Standard Error: 4_205 - .saturating_add(Weight::from_parts(671_074, 0).saturating_mul(r.into())) + // Minimum execution time: 2_411_000 picoseconds. + Weight::from_parts(2_496_000, 0) + // Standard Error: 6_547 + .saturating_add(Weight::from_parts(804_477, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64or(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_257_000 picoseconds. - Weight::from_parts(2_323_000, 0) - // Standard Error: 7_098 - .saturating_add(Weight::from_parts(1_323_703, 0).saturating_mul(r.into())) + // Minimum execution time: 2_506_000 picoseconds. + Weight::from_parts(2_577_000, 0) + // Standard Error: 8_009 + .saturating_add(Weight::from_parts(1_437_777, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32or(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_247_000 picoseconds. - Weight::from_parts(2_372_000, 0) - // Standard Error: 6_649 - .saturating_add(Weight::from_parts(695_117, 0).saturating_mul(r.into())) + // Minimum execution time: 2_310_000 picoseconds. + Weight::from_parts(2_424_000, 0) + // Standard Error: 4_869 + .saturating_add(Weight::from_parts(684_646, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64xor(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_293_000 picoseconds. - Weight::from_parts(2_347_000, 0) - // Standard Error: 7_359 - .saturating_add(Weight::from_parts(1_355_885, 0).saturating_mul(r.into())) + // Minimum execution time: 2_441_000 picoseconds. + Weight::from_parts(2_497_000, 0) + // Standard Error: 10_084 + .saturating_add(Weight::from_parts(1_349_015, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32xor(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_239_000 picoseconds. - Weight::from_parts(2_335_000, 0) - // Standard Error: 4_076 - .saturating_add(Weight::from_parts(658_834, 0).saturating_mul(r.into())) + // Minimum execution time: 2_464_000 picoseconds. + Weight::from_parts(2_574_000, 0) + // Standard Error: 7_421 + .saturating_add(Weight::from_parts(789_933, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64shl(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_376_000 picoseconds. - Weight::from_parts(2_444_000, 0) - // Standard Error: 6_850 - .saturating_add(Weight::from_parts(1_191_253, 0).saturating_mul(r.into())) + // Minimum execution time: 2_466_000 picoseconds. + Weight::from_parts(2_541_000, 0) + // Standard Error: 8_551 + .saturating_add(Weight::from_parts(1_311_103, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32shl(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_240_000 picoseconds. - Weight::from_parts(2_310_000, 0) - // Standard Error: 4_398 - .saturating_add(Weight::from_parts(597_162, 0).saturating_mul(r.into())) + // Minimum execution time: 2_480_000 picoseconds. + Weight::from_parts(2_547_000, 0) + // Standard Error: 6_237 + .saturating_add(Weight::from_parts(740_808, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64shrs(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_338_000 picoseconds. - Weight::from_parts(2_421_000, 0) - // Standard Error: 8_320 - .saturating_add(Weight::from_parts(1_163_071, 0).saturating_mul(r.into())) + // Minimum execution time: 2_451_000 picoseconds. + Weight::from_parts(2_482_000, 0) + // Standard Error: 8_019 + .saturating_add(Weight::from_parts(1_301_680, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32shrs(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_376_000 picoseconds. - Weight::from_parts(2_464_000, 0) - // Standard Error: 5_750 - .saturating_add(Weight::from_parts(613_283, 0).saturating_mul(r.into())) + // Minimum execution time: 2_479_000 picoseconds. + Weight::from_parts(2_560_000, 0) + // Standard Error: 4_542 + .saturating_add(Weight::from_parts(651_494, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64shru(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_338_000 picoseconds. - Weight::from_parts(2_378_000, 0) - // Standard Error: 7_893 - .saturating_add(Weight::from_parts(1_161_655, 0).saturating_mul(r.into())) + // Minimum execution time: 2_437_000 picoseconds. + Weight::from_parts(2_539_000, 0) + // Standard Error: 6_578 + .saturating_add(Weight::from_parts(1_103_078, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32shru(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_260_000 picoseconds. - Weight::from_parts(2_351_000, 0) - // Standard Error: 3_972 - .saturating_add(Weight::from_parts(605_013, 0).saturating_mul(r.into())) + // Minimum execution time: 2_510_000 picoseconds. + Weight::from_parts(2_566_000, 0) + // Standard Error: 5_804 + .saturating_add(Weight::from_parts(608_889, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64rotl(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_324_000 picoseconds. - Weight::from_parts(2_375_000, 0) - // Standard Error: 7_329 - .saturating_add(Weight::from_parts(1_108_542, 0).saturating_mul(r.into())) + // Minimum execution time: 2_403_000 picoseconds. + Weight::from_parts(2_494_000, 0) + // Standard Error: 7_647 + .saturating_add(Weight::from_parts(1_279_714, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32rotl(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_342_000 picoseconds. - Weight::from_parts(2_465_000, 0) - // Standard Error: 5_553 - .saturating_add(Weight::from_parts(617_389, 0).saturating_mul(r.into())) + // Minimum execution time: 2_489_000 picoseconds. + Weight::from_parts(2_549_000, 0) + // Standard Error: 5_933 + .saturating_add(Weight::from_parts(710_512, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64rotr(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_260_000 picoseconds. - Weight::from_parts(2_419_000, 0) - // Standard Error: 8_448 - .saturating_add(Weight::from_parts(1_105_239, 0).saturating_mul(r.into())) + // Minimum execution time: 2_463_000 picoseconds. + Weight::from_parts(2_573_000, 0) + // Standard Error: 7_876 + .saturating_add(Weight::from_parts(1_291_902, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32rotr(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_255_000 picoseconds. - Weight::from_parts(2_321_000, 0) - // Standard Error: 5_862 - .saturating_add(Weight::from_parts(626_497, 0).saturating_mul(r.into())) + // Minimum execution time: 2_394_000 picoseconds. + Weight::from_parts(2_513_000, 0) + // Standard Error: 5_878 + .saturating_add(Weight::from_parts(722_117, 0).saturating_mul(r.into())) } fn tasks_remove_resume_session() -> Weight { // Proof Size summary in bytes: // Measured: `352` // Estimated: `4169` - // Minimum execution time: 5_780_000 picoseconds. - Weight::from_parts(6_083_000, 4169) + // Minimum execution time: 5_941_000 picoseconds. + Weight::from_parts(6_194_000, 4169) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } fn tasks_remove_gas_reservation() -> Weight { // Proof Size summary in bytes: - // Measured: `1039` - // Estimated: `23781` - // Minimum execution time: 62_100_000 picoseconds. - Weight::from_parts(64_771_000, 23781) + // Measured: `1107` + // Estimated: `24053` + // Minimum execution time: 63_669_000 picoseconds. + Weight::from_parts(71_431_000, 24053) .saturating_add(RocksDbWeight::get().reads(7_u64)) .saturating_add(RocksDbWeight::get().writes(6_u64)) } fn tasks_send_user_message_to_mailbox() -> Weight { // Proof Size summary in bytes: - // Measured: `820` - // Estimated: `21750` - // Minimum execution time: 47_415_000 picoseconds. - Weight::from_parts(48_906_000, 21750) + // Measured: `888` + // Estimated: `22158` + // Minimum execution time: 47_776_000 picoseconds. + Weight::from_parts(49_097_000, 22158) .saturating_add(RocksDbWeight::get().reads(6_u64)) .saturating_add(RocksDbWeight::get().writes(5_u64)) } fn tasks_send_user_message() -> Weight { // Proof Size summary in bytes: - // Measured: `942` - // Estimated: `34143` - // Minimum execution time: 76_882_000 picoseconds. - Weight::from_parts(79_728_000, 34143) + // Measured: `1010` + // Estimated: `34619` + // Minimum execution time: 76_569_000 picoseconds. + Weight::from_parts(80_956_000, 34619) .saturating_add(RocksDbWeight::get().reads(11_u64)) .saturating_add(RocksDbWeight::get().writes(10_u64)) } fn tasks_send_dispatch() -> Weight { // Proof Size summary in bytes: - // Measured: `627` - // Estimated: `20101` - // Minimum execution time: 32_342_000 picoseconds. - Weight::from_parts(33_851_000, 20101) + // Measured: `695` + // Estimated: `20509` + // Minimum execution time: 33_298_000 picoseconds. + Weight::from_parts(34_390_000, 20509) .saturating_add(RocksDbWeight::get().reads(7_u64)) .saturating_add(RocksDbWeight::get().writes(6_u64)) } fn tasks_wake_message() -> Weight { // Proof Size summary in bytes: - // Measured: `908` - // Estimated: `26160` - // Minimum execution time: 50_697_000 picoseconds. - Weight::from_parts(53_632_000, 26160) + // Measured: `976` + // Estimated: `26636` + // Minimum execution time: 51_224_000 picoseconds. + Weight::from_parts(54_016_000, 26636) .saturating_add(RocksDbWeight::get().reads(8_u64)) .saturating_add(RocksDbWeight::get().writes(6_u64)) } @@ -4107,37 +4103,37 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `80` // Estimated: `3545` - // Minimum execution time: 3_467_000 picoseconds. - Weight::from_parts(3_690_000, 3545) + // Minimum execution time: 3_502_000 picoseconds. + Weight::from_parts(3_736_000, 3545) .saturating_add(RocksDbWeight::get().reads(1_u64)) } fn tasks_remove_from_waitlist() -> Weight { // Proof Size summary in bytes: - // Measured: `1558` - // Estimated: `57552` - // Minimum execution time: 111_822_000 picoseconds. - Weight::from_parts(115_245_000, 57552) + // Measured: `1626` + // Estimated: `58232` + // Minimum execution time: 116_554_000 picoseconds. + Weight::from_parts(120_965_000, 58232) .saturating_add(RocksDbWeight::get().reads(16_u64)) .saturating_add(RocksDbWeight::get().writes(13_u64)) } fn tasks_remove_from_mailbox() -> Weight { // Proof Size summary in bytes: - // Measured: `1264` - // Estimated: `46350` - // Minimum execution time: 92_407_000 picoseconds. - Weight::from_parts(95_840_000, 46350) + // Measured: `1332` + // Estimated: `46962` + // Minimum execution time: 91_297_000 picoseconds. + Weight::from_parts(98_825_000, 46962) .saturating_add(RocksDbWeight::get().reads(14_u64)) .saturating_add(RocksDbWeight::get().writes(13_u64)) } /// The range of component `c` is `[0, 2044]`. fn tasks_pause_program(c: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `2236 + c * (16400 ±0)` - // Estimated: `19543 + c * (84480 ±0)` - // Minimum execution time: 29_880_000 picoseconds. - Weight::from_parts(30_555_000, 19543) - // Standard Error: 65_806 - .saturating_add(Weight::from_parts(39_128_234, 0).saturating_mul(c.into())) + // Measured: `2303 + c * (16400 ±0)` + // Estimated: `19878 + c * (84480 ±0)` + // Minimum execution time: 30_995_000 picoseconds. + Weight::from_parts(31_512_000, 19878) + // Standard Error: 83_380 + .saturating_add(Weight::from_parts(39_172_227, 0).saturating_mul(c.into())) .saturating_add(RocksDbWeight::get().reads(4_u64)) .saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(c.into()))) .saturating_add(RocksDbWeight::get().writes(2_u64)) @@ -4147,12 +4143,12 @@ impl WeightInfo for () { /// The range of component `c` is `[0, 2044]`. fn tasks_pause_program_uninited(c: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `3061 + c * (42 ±0)` - // Estimated: `59827 + c * (2947 ±0)` - // Minimum execution time: 89_781_000 picoseconds. - Weight::from_parts(109_193_287, 59827) - // Standard Error: 2_877 - .saturating_add(Weight::from_parts(1_067_792, 0).saturating_mul(c.into())) + // Measured: `3181 + c * (42 ±0)` + // Estimated: `61147 + c * (2947 ±0)` + // Minimum execution time: 92_674_000 picoseconds. + Weight::from_parts(116_875_856, 61147) + // Standard Error: 2_740 + .saturating_add(Weight::from_parts(1_037_041, 0).saturating_mul(c.into())) .saturating_add(RocksDbWeight::get().reads(13_u64)) .saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(c.into()))) .saturating_add(RocksDbWeight::get().writes(9_u64)) diff --git a/pallets/payment/src/tests.rs b/pallets/payment/src/tests.rs index de712b3e193..067c4db71a4 100644 --- a/pallets/payment/src/tests.rs +++ b/pallets/payment/src/tests.rs @@ -218,6 +218,7 @@ fn mq_size_affecting_fee_works() { payload: Default::default(), gas_limit: 100_000, value: 0, + keep_alive: false, }); let len = 100usize; @@ -398,6 +399,7 @@ fn query_info_and_fee_details_work() { payload: Default::default(), gas_limit: 100_000, value: 0, + keep_alive: false, }); let call_not_affecting_mq = RuntimeCall::Gear(pallet_gear::Call::claim_value { message_id: 1.into(), @@ -575,6 +577,7 @@ fn fee_payer_replacement_works() { payload: Default::default(), gas_limit: 100_000, value: 0, + keep_alive: false, }, }); @@ -665,6 +668,7 @@ fn reply_with_voucher_pays_fee_from_voucher_ok() { payload: vec![], gas_limit, value: 0, + keep_alive: false, }, }); diff --git a/pallets/staking-rewards/src/lib.rs b/pallets/staking-rewards/src/lib.rs index 71b4ba92c59..0a20fbd2611 100644 --- a/pallets/staking-rewards/src/lib.rs +++ b/pallets/staking-rewards/src/lib.rs @@ -94,6 +94,7 @@ pub struct InflationInfo { #[frame_support::pallet] pub mod pallet { use super::*; + use core::cmp::Ordering; use frame_support::pallet_prelude::*; use frame_system::pallet_prelude::*; @@ -237,6 +238,8 @@ pub mod pallet { Withdrawn { amount: BalanceOf }, /// Burned from the pool. Burned { amount: BalanceOf }, + /// Minted to the pool. + Minted { amount: BalanceOf }, } /// Error for the staking rewards pallet. @@ -326,6 +329,26 @@ pub mod pallet { Ok(()) } + + #[pallet::call_index(3)] + #[pallet::weight(::WeightInfo::align_supply())] + pub fn align_supply(origin: OriginFor, target: BalanceOf) -> DispatchResult { + ensure_root(origin)?; + + let issuance = T::Currency::total_issuance(); + + match target.cmp(&issuance) { + Ordering::Greater => { + OffsetPool::::on_nonzero_unbalanced(T::Currency::issue(target - issuance)); + } + Ordering::Less => { + Self::on_nonzero_unbalanced(T::Currency::burn(issuance - target)); + } + _ => {} + }; + + Ok(()) + } } impl Pallet { @@ -438,7 +461,7 @@ impl OnUnbalanced> for OffsetPool { // Should resolve into existing but resolving with creation is a safer bet anyway T::Currency::resolve_creating(&Pallet::::account_id(), amount); - Pallet::deposit_event(Event::::Deposited { + Pallet::deposit_event(Event::::Minted { amount: numeric_amount, }); } diff --git a/pallets/staking-rewards/src/tests.rs b/pallets/staking-rewards/src/tests.rs index e2942765929..38e7ed939b1 100644 --- a/pallets/staking-rewards/src/tests.rs +++ b/pallets/staking-rewards/src/tests.rs @@ -21,8 +21,8 @@ #![cfg(test)] use crate::{mock::*, *}; -use frame_support::{assert_noop, assert_ok}; -use sp_runtime::{PerThing, Perbill}; +use frame_support::{assert_noop, assert_ok, assert_storage_noop}; +use sp_runtime::{DispatchError, PerThing, Perbill}; macro_rules! assert_approx_eq { ($left:expr, $right:expr, $tol:expr) => {{ @@ -43,6 +43,105 @@ pub(crate) fn init_logger() { .try_init(); } +#[test] +fn supply_alignment_works() { + init_logger(); + + ExtBuilder::default() + .initial_authorities(vec![ + (VAL_1_STASH, VAL_1_CONTROLLER, VAL_1_AUTH_ID), + (VAL_2_STASH, VAL_2_CONTROLLER, VAL_2_AUTH_ID), + (VAL_3_STASH, VAL_3_CONTROLLER, VAL_3_AUTH_ID), + ]) + .stash(VALIDATOR_STAKE) + .endowment(ENDOWMENT) + .endowed_accounts(vec![SIGNER]) + .total_supply(INITIAL_TOTAL_TOKEN_SUPPLY) + .non_stakeable(Perquintill::from_rational(4108_u64, 10_000_u64)) + .pool_balance(Perquintill::from_percent(11) * INITIAL_TOTAL_TOKEN_SUPPLY) + .ideal_stake(Perquintill::from_percent(85)) + .target_inflation(Perquintill::from_rational(578_u64, 10_000_u64)) + .build() + .execute_with(|| { + let assert_issuance = + |balance: BalanceOf| assert_eq!(Balances::total_issuance(), balance); + + let assert_pool = |balance: BalanceOf| { + assert_eq!( + Balances::total_balance(&StakingRewards::account_id()), + balance + Balances::minimum_balance() + ) + }; + + // Asserting initial parameters. + assert_issuance(INITIAL_TOTAL_TOKEN_SUPPLY); + + let initial_pool_balance = Perquintill::from_percent(11) * INITIAL_TOTAL_TOKEN_SUPPLY; + assert_pool(initial_pool_balance); + + // Asserting bad origin. + assert_noop!( + StakingRewards::align_supply( + RuntimeOrigin::signed(SIGNER), + INITIAL_TOTAL_TOKEN_SUPPLY + ), + DispatchError::BadOrigin + ); + + // Asserting no-op in case of equity. + assert_storage_noop!(assert_ok!(StakingRewards::align_supply( + RuntimeOrigin::root(), + INITIAL_TOTAL_TOKEN_SUPPLY + ))); + + // Burning N tokens. + let n = Balances::minimum_balance() * 5; + + assert_ok!(Balances::set_balance( + RuntimeOrigin::root(), + SIGNER, + Balances::free_balance(SIGNER) - n, + Balances::reserved_balance(SIGNER), + )); + + assert_issuance(INITIAL_TOTAL_TOKEN_SUPPLY - n); + assert_pool(initial_pool_balance); + + // Aligning supply. + assert_ok!(StakingRewards::align_supply( + RuntimeOrigin::root(), + INITIAL_TOTAL_TOKEN_SUPPLY + )); + + System::assert_has_event(Event::Minted { amount: n }.into()); + assert_issuance(INITIAL_TOTAL_TOKEN_SUPPLY); + assert_pool(initial_pool_balance + n); + + // Minting M tokens. + let m = Balances::minimum_balance() * 12; + + assert_ok!(Balances::set_balance( + RuntimeOrigin::root(), + SIGNER, + Balances::free_balance(SIGNER) + m, + Balances::reserved_balance(SIGNER), + )); + + assert_issuance(INITIAL_TOTAL_TOKEN_SUPPLY + m); + assert_pool(initial_pool_balance + n); + + // Aligning supply. + assert_ok!(StakingRewards::align_supply( + RuntimeOrigin::root(), + INITIAL_TOTAL_TOKEN_SUPPLY + )); + + System::assert_has_event(Event::Burned { amount: m }.into()); + assert_issuance(INITIAL_TOTAL_TOKEN_SUPPLY); + assert_pool(initial_pool_balance + n - m); + }); +} + #[test] fn genesis_config_works() { init_logger(); diff --git a/pallets/staking-rewards/src/weights.rs b/pallets/staking-rewards/src/weights.rs index 550a2b88b55..c422867f38c 100644 --- a/pallets/staking-rewards/src/weights.rs +++ b/pallets/staking-rewards/src/weights.rs @@ -31,6 +31,7 @@ pub trait WeightInfo { fn refill() -> Weight; fn force_refill() -> Weight; fn withdraw() -> Weight; + fn align_supply() -> Weight; } /// Weights for pallet_treasury using the Substrate node and recommended hardware. @@ -58,6 +59,12 @@ impl WeightInfo for SubstrateWeight { .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } + + fn align_supply() -> Weight { + Weight::from_parts(55_241_000_u64, 0) + .saturating_add(T::DbWeight::get().reads(1_u64)) + .saturating_add(T::DbWeight::get().writes(2_u64)) + } } // For backwards compatibility and tests @@ -79,4 +86,10 @@ impl WeightInfo for () { .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(3_u64)) } + + fn align_supply() -> Weight { + Weight::from_parts(55_241_000_u64, 0) + .saturating_add(RocksDbWeight::get().reads(1_u64)) + .saturating_add(RocksDbWeight::get().writes(2_u64)) + } } diff --git a/runtime/vara/src/integration_tests.rs b/runtime/vara/src/integration_tests.rs index ab5e6b3e4b9..d99c8755c49 100644 --- a/runtime/vara/src/integration_tests.rs +++ b/runtime/vara/src/integration_tests.rs @@ -334,6 +334,7 @@ fn tokens_locking_works() { vec![], 10_000_000_000, 10_000 * UNITS, + false, ), pallet_gear_bank::Error::::InsufficientBalance ); @@ -352,6 +353,7 @@ fn tokens_locking_works() { vec![], 10_000_000_000, 0, + false, )); let program_id = get_last_program_id(); @@ -366,6 +368,7 @@ fn tokens_locking_works() { vec![], 10_000_000_000, 11_000 * UNITS, + false, ), pallet_gear_bank::Error::::InsufficientBalance ); diff --git a/runtime/vara/src/lib.rs b/runtime/vara/src/lib.rs index 8d11bc83579..309024c1578 100644 --- a/runtime/vara/src/lib.rs +++ b/runtime/vara/src/lib.rs @@ -151,7 +151,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { // The version of the runtime specification. A full node will not attempt to use its native // runtime in substitute for the on-chain Wasm runtime unless all of `spec_name`, // `spec_version`, and `authoring_version` are the same between Wasm and native. - spec_version: 1010, + spec_version: 1020, impl_version: 1, apis: RUNTIME_API_VERSIONS, transaction_version: 1, diff --git a/runtime/vara/src/tests.rs b/runtime/vara/src/tests.rs index c9b6fc48146..12a84112af2 100644 --- a/runtime/vara/src/tests.rs +++ b/runtime/vara/src/tests.rs @@ -48,9 +48,9 @@ fn instruction_weights_heuristics_test() { call_indirect: 22_100, call_indirect_per_param: 2_000, - local_get: 600, + local_get: 900, local_set: 1_900, - local_tee: 1_500, + local_tee: 2_500, global_get: 2_000, global_set: 3_000, memory_current: 14_200, @@ -141,8 +141,8 @@ fn page_costs_heuristic_test() { lazy_pages_signal_write_after_read: 10_650_000.into(), lazy_pages_host_func_read: 29_000_000.into(), lazy_pages_host_func_write: 33_000_000.into(), - lazy_pages_host_func_write_after_read: 9_280_000.into(), - load_page_data: 9_700_000.into(), + lazy_pages_host_func_write_after_read: 11_000_000.into(), + load_page_data: 10_800_000.into(), upload_page_data: 104_000_000.into(), static_page: 100.into(), mem_grow: 906_170.into(), @@ -156,7 +156,7 @@ fn page_costs_heuristic_test() { host_func_read: 29_000_000.into(), host_func_write: 137_000_000.into(), host_func_write_after_read: 112_000_000.into(), - load_page_storage_data: 9_700_000.into(), + load_page_storage_data: 10_700_000.into(), }; check_pages_weights( diff --git a/runtime/vara/src/weights/frame_system.rs b/runtime/vara/src/weights/frame_system.rs index 5ea8f3e415d..93bd1258679 100644 --- a/runtime/vara/src/weights/frame_system.rs +++ b/runtime/vara/src/weights/frame_system.rs @@ -19,7 +19,7 @@ //! Autogenerated weights for frame_system //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-09-28, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2023-10-20, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` //! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("vara-dev"), DB CACHE: 1024 @@ -53,8 +53,8 @@ impl frame_system::WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 1_621_000 picoseconds. - Weight::from_parts(801_681, 0) + // Minimum execution time: 1_710_000 picoseconds. + Weight::from_parts(1_289_458, 0) // Standard Error: 0 .saturating_add(Weight::from_parts(460, 0).saturating_mul(b.into())) } @@ -63,17 +63,17 @@ impl frame_system::WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 6_227_000 picoseconds. - Weight::from_parts(6_365_000, 0) + // Minimum execution time: 6_172_000 picoseconds. + Weight::from_parts(6_411_000, 0) // Standard Error: 0 - .saturating_add(Weight::from_parts(1_438, 0).saturating_mul(b.into())) + .saturating_add(Weight::from_parts(1_437, 0).saturating_mul(b.into())) } fn set_heap_pages() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `1485` - // Minimum execution time: 3_026_000 picoseconds. - Weight::from_parts(3_370_000, 1485) + // Minimum execution time: 3_106_000 picoseconds. + Weight::from_parts(3_311_000, 1485) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -82,10 +82,10 @@ impl frame_system::WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 1_514_000 picoseconds. - Weight::from_parts(1_609_000, 0) - // Standard Error: 921 - .saturating_add(Weight::from_parts(720_053, 0).saturating_mul(i.into())) + // Minimum execution time: 1_644_000 picoseconds. + Weight::from_parts(1_692_000, 0) + // Standard Error: 911 + .saturating_add(Weight::from_parts(709_529, 0).saturating_mul(i.into())) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(i.into()))) } /// The range of component `i` is `[0, 1000]`. @@ -93,10 +93,10 @@ impl frame_system::WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 1_578_000 picoseconds. - Weight::from_parts(1_637_000, 0) - // Standard Error: 781 - .saturating_add(Weight::from_parts(547_705, 0).saturating_mul(i.into())) + // Minimum execution time: 1_682_000 picoseconds. + Weight::from_parts(1_767_000, 0) + // Standard Error: 672 + .saturating_add(Weight::from_parts(533_196, 0).saturating_mul(i.into())) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(i.into()))) } /// The range of component `p` is `[0, 1000]`. @@ -104,10 +104,10 @@ impl frame_system::WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `82 + p * (69 ±0)` // Estimated: `89 + p * (70 ±0)` - // Minimum execution time: 3_321_000 picoseconds. - Weight::from_parts(3_491_000, 89) - // Standard Error: 1_283 - .saturating_add(Weight::from_parts(1_144_029, 0).saturating_mul(p.into())) + // Minimum execution time: 3_377_000 picoseconds. + Weight::from_parts(3_492_000, 89) + // Standard Error: 1_153 + .saturating_add(Weight::from_parts(1_093_297, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(p.into()))) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(p.into()))) .saturating_add(Weight::from_parts(0, 70).saturating_mul(p.into())) @@ -121,8 +121,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 1_621_000 picoseconds. - Weight::from_parts(801_681, 0) + // Minimum execution time: 1_710_000 picoseconds. + Weight::from_parts(1_289_458, 0) // Standard Error: 0 .saturating_add(Weight::from_parts(460, 0).saturating_mul(b.into())) } @@ -131,17 +131,17 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 6_227_000 picoseconds. - Weight::from_parts(6_365_000, 0) + // Minimum execution time: 6_172_000 picoseconds. + Weight::from_parts(6_411_000, 0) // Standard Error: 0 - .saturating_add(Weight::from_parts(1_438, 0).saturating_mul(b.into())) + .saturating_add(Weight::from_parts(1_437, 0).saturating_mul(b.into())) } fn set_heap_pages() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `1485` - // Minimum execution time: 3_026_000 picoseconds. - Weight::from_parts(3_370_000, 1485) + // Minimum execution time: 3_106_000 picoseconds. + Weight::from_parts(3_311_000, 1485) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } @@ -150,10 +150,10 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 1_514_000 picoseconds. - Weight::from_parts(1_609_000, 0) - // Standard Error: 921 - .saturating_add(Weight::from_parts(720_053, 0).saturating_mul(i.into())) + // Minimum execution time: 1_644_000 picoseconds. + Weight::from_parts(1_692_000, 0) + // Standard Error: 911 + .saturating_add(Weight::from_parts(709_529, 0).saturating_mul(i.into())) .saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(i.into()))) } /// The range of component `i` is `[0, 1000]`. @@ -161,10 +161,10 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 1_578_000 picoseconds. - Weight::from_parts(1_637_000, 0) - // Standard Error: 781 - .saturating_add(Weight::from_parts(547_705, 0).saturating_mul(i.into())) + // Minimum execution time: 1_682_000 picoseconds. + Weight::from_parts(1_767_000, 0) + // Standard Error: 672 + .saturating_add(Weight::from_parts(533_196, 0).saturating_mul(i.into())) .saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(i.into()))) } /// The range of component `p` is `[0, 1000]`. @@ -172,10 +172,10 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `82 + p * (69 ±0)` // Estimated: `89 + p * (70 ±0)` - // Minimum execution time: 3_321_000 picoseconds. - Weight::from_parts(3_491_000, 89) - // Standard Error: 1_283 - .saturating_add(Weight::from_parts(1_144_029, 0).saturating_mul(p.into())) + // Minimum execution time: 3_377_000 picoseconds. + Weight::from_parts(3_492_000, 89) + // Standard Error: 1_153 + .saturating_add(Weight::from_parts(1_093_297, 0).saturating_mul(p.into())) .saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(p.into()))) .saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(p.into()))) .saturating_add(Weight::from_parts(0, 70).saturating_mul(p.into())) diff --git a/runtime/vara/src/weights/pallet_balances.rs b/runtime/vara/src/weights/pallet_balances.rs index 183de08edf7..5fdb0394795 100644 --- a/runtime/vara/src/weights/pallet_balances.rs +++ b/runtime/vara/src/weights/pallet_balances.rs @@ -19,7 +19,7 @@ //! Autogenerated weights for pallet_balances //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-09-28, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2023-10-20, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` //! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("vara-dev"), DB CACHE: 1024 @@ -51,19 +51,19 @@ pub struct SubstrateWeight(PhantomData); impl pallet_balances::WeightInfo for SubstrateWeight { fn transfer() -> Weight { // Proof Size summary in bytes: - // Measured: `0` - // Estimated: `3593` - // Minimum execution time: 29_968_000 picoseconds. - Weight::from_parts(30_716_000, 3593) - .saturating_add(T::DbWeight::get().reads(1_u64)) - .saturating_add(T::DbWeight::get().writes(1_u64)) + // Measured: `103` + // Estimated: `6196` + // Minimum execution time: 41_686_000 picoseconds. + Weight::from_parts(42_906_000, 6196) + .saturating_add(T::DbWeight::get().reads(2_u64)) + .saturating_add(T::DbWeight::get().writes(2_u64)) } fn transfer_keep_alive() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `3593` - // Minimum execution time: 21_506_000 picoseconds. - Weight::from_parts(22_300_000, 3593) + // Minimum execution time: 22_118_000 picoseconds. + Weight::from_parts(23_031_000, 3593) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -71,8 +71,8 @@ impl pallet_balances::WeightInfo for SubstrateWeight // Proof Size summary in bytes: // Measured: `103` // Estimated: `3593` - // Minimum execution time: 12_576_000 picoseconds. - Weight::from_parts(13_031_000, 3593) + // Minimum execution time: 12_641_000 picoseconds. + Weight::from_parts(13_030_000, 3593) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -80,26 +80,26 @@ impl pallet_balances::WeightInfo for SubstrateWeight // Proof Size summary in bytes: // Measured: `103` // Estimated: `3593` - // Minimum execution time: 15_673_000 picoseconds. - Weight::from_parts(16_155_000, 3593) + // Minimum execution time: 15_587_000 picoseconds. + Weight::from_parts(16_204_000, 3593) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } fn force_transfer() -> Weight { // Proof Size summary in bytes: - // Measured: `103` - // Estimated: `6196` - // Minimum execution time: 32_028_000 picoseconds. - Weight::from_parts(32_821_000, 6196) - .saturating_add(T::DbWeight::get().reads(2_u64)) - .saturating_add(T::DbWeight::get().writes(2_u64)) + // Measured: `206` + // Estimated: `8799` + // Minimum execution time: 43_554_000 picoseconds. + Weight::from_parts(44_259_000, 8799) + .saturating_add(T::DbWeight::get().reads(3_u64)) + .saturating_add(T::DbWeight::get().writes(3_u64)) } fn transfer_all() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `3593` - // Minimum execution time: 27_510_000 picoseconds. - Weight::from_parts(28_346_000, 3593) + // Minimum execution time: 29_622_000 picoseconds. + Weight::from_parts(30_249_000, 3593) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -107,8 +107,8 @@ impl pallet_balances::WeightInfo for SubstrateWeight // Proof Size summary in bytes: // Measured: `103` // Estimated: `3593` - // Minimum execution time: 12_286_000 picoseconds. - Weight::from_parts(12_686_000, 3593) + // Minimum execution time: 12_304_000 picoseconds. + Weight::from_parts(12_677_000, 3593) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } @@ -118,19 +118,19 @@ impl pallet_balances::WeightInfo for SubstrateWeight impl WeightInfo for () { fn transfer() -> Weight { // Proof Size summary in bytes: - // Measured: `0` - // Estimated: `3593` - // Minimum execution time: 29_968_000 picoseconds. - Weight::from_parts(30_716_000, 3593) - .saturating_add(RocksDbWeight::get().reads(1_u64)) - .saturating_add(RocksDbWeight::get().writes(1_u64)) + // Measured: `103` + // Estimated: `6196` + // Minimum execution time: 41_686_000 picoseconds. + Weight::from_parts(42_906_000, 6196) + .saturating_add(RocksDbWeight::get().reads(2_u64)) + .saturating_add(RocksDbWeight::get().writes(2_u64)) } fn transfer_keep_alive() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `3593` - // Minimum execution time: 21_506_000 picoseconds. - Weight::from_parts(22_300_000, 3593) + // Minimum execution time: 22_118_000 picoseconds. + Weight::from_parts(23_031_000, 3593) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -138,8 +138,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `103` // Estimated: `3593` - // Minimum execution time: 12_576_000 picoseconds. - Weight::from_parts(13_031_000, 3593) + // Minimum execution time: 12_641_000 picoseconds. + Weight::from_parts(13_030_000, 3593) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -147,26 +147,26 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `103` // Estimated: `3593` - // Minimum execution time: 15_673_000 picoseconds. - Weight::from_parts(16_155_000, 3593) + // Minimum execution time: 15_587_000 picoseconds. + Weight::from_parts(16_204_000, 3593) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } fn force_transfer() -> Weight { // Proof Size summary in bytes: - // Measured: `103` - // Estimated: `6196` - // Minimum execution time: 32_028_000 picoseconds. - Weight::from_parts(32_821_000, 6196) - .saturating_add(RocksDbWeight::get().reads(2_u64)) - .saturating_add(RocksDbWeight::get().writes(2_u64)) + // Measured: `206` + // Estimated: `8799` + // Minimum execution time: 43_554_000 picoseconds. + Weight::from_parts(44_259_000, 8799) + .saturating_add(RocksDbWeight::get().reads(3_u64)) + .saturating_add(RocksDbWeight::get().writes(3_u64)) } fn transfer_all() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `3593` - // Minimum execution time: 27_510_000 picoseconds. - Weight::from_parts(28_346_000, 3593) + // Minimum execution time: 29_622_000 picoseconds. + Weight::from_parts(30_249_000, 3593) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } @@ -174,8 +174,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `103` // Estimated: `3593` - // Minimum execution time: 12_286_000 picoseconds. - Weight::from_parts(12_686_000, 3593) + // Minimum execution time: 12_304_000 picoseconds. + Weight::from_parts(12_677_000, 3593) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } diff --git a/runtime/vara/src/weights/pallet_gear.rs b/runtime/vara/src/weights/pallet_gear.rs index c7939a1f341..e49e43e6a57 100644 --- a/runtime/vara/src/weights/pallet_gear.rs +++ b/runtime/vara/src/weights/pallet_gear.rs @@ -19,7 +19,7 @@ //! Autogenerated weights for pallet_gear //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-09-28, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2023-10-20, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` //! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("vara-dev"), DB CACHE: 1024 @@ -242,130 +242,130 @@ impl pallet_gear::WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 94_967_000 picoseconds. - Weight::from_parts(100_769_202, 0) - // Standard Error: 78_239 - .saturating_add(Weight::from_parts(21_623_874, 0).saturating_mul(r.into())) + // Minimum execution time: 100_290_000 picoseconds. + Weight::from_parts(107_714_130, 0) + // Standard Error: 87_424 + .saturating_add(Weight::from_parts(17_565_908, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 1]`. fn gr_reply_wgas(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 96_625_000 picoseconds. - Weight::from_parts(103_100_672, 0) - // Standard Error: 79_915 - .saturating_add(Weight::from_parts(18_339_856, 0).saturating_mul(r.into())) + // Minimum execution time: 96_276_000 picoseconds. + Weight::from_parts(102_418_204, 0) + // Standard Error: 80_308 + .saturating_add(Weight::from_parts(18_444_560, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 1]`. fn gr_reply_commit(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 95_620_000 picoseconds. - Weight::from_parts(102_660_230, 0) - // Standard Error: 81_604 - .saturating_add(Weight::from_parts(18_180_584, 0).saturating_mul(r.into())) + // Minimum execution time: 96_679_000 picoseconds. + Weight::from_parts(103_850_060, 0) + // Standard Error: 87_584 + .saturating_add(Weight::from_parts(16_340_788, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 1]`. fn gr_reply_commit_wgas(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 95_037_000 picoseconds. - Weight::from_parts(101_912_864, 0) - // Standard Error: 84_108 - .saturating_add(Weight::from_parts(20_742_928, 0).saturating_mul(r.into())) + // Minimum execution time: 96_806_000 picoseconds. + Weight::from_parts(103_474_258, 0) + // Standard Error: 89_955 + .saturating_add(Weight::from_parts(16_614_218, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 1]`. fn gr_reply_input(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 716_479_000 picoseconds. - Weight::from_parts(752_477_538, 0) - // Standard Error: 630_784 - .saturating_add(Weight::from_parts(22_929_588, 0).saturating_mul(r.into())) + // Minimum execution time: 606_431_000 picoseconds. + Weight::from_parts(662_494_234, 0) + // Standard Error: 761_483 + .saturating_add(Weight::from_parts(25_620_440, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 1]`. fn gr_reply_input_wgas(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 726_949_000 picoseconds. - Weight::from_parts(774_347_474, 0) - // Standard Error: 902_271 - .saturating_add(Weight::from_parts(17_273_758, 0).saturating_mul(r.into())) + // Minimum execution time: 595_892_000 picoseconds. + Weight::from_parts(674_093_114, 0) + // Standard Error: 1_066_086 + .saturating_add(Weight::from_parts(23_822_444, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 1]`. fn gr_reservation_reply(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 103_653_000 picoseconds. - Weight::from_parts(110_681_190, 0) - // Standard Error: 90_520 - .saturating_add(Weight::from_parts(12_801_500, 0).saturating_mul(r.into())) + // Minimum execution time: 105_460_000 picoseconds. + Weight::from_parts(112_708_968, 0) + // Standard Error: 92_535 + .saturating_add(Weight::from_parts(11_120_936, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 1]`. fn gr_reservation_reply_commit(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 105_389_000 picoseconds. - Weight::from_parts(113_272_838, 0) - // Standard Error: 89_344 - .saturating_add(Weight::from_parts(5_340_718, 0).saturating_mul(r.into())) + // Minimum execution time: 109_465_000 picoseconds. + Weight::from_parts(117_255_480, 0) + // Standard Error: 96_440 + .saturating_add(Weight::from_parts(6_716_962, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 1]`. fn gr_exit(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 96_868_000 picoseconds. - Weight::from_parts(104_048_366, 0) - // Standard Error: 2_216_528 - .saturating_add(Weight::from_parts(541_182_376, 0).saturating_mul(r.into())) + // Minimum execution time: 97_445_000 picoseconds. + Weight::from_parts(104_500_586, 0) + // Standard Error: 1_641_842 + .saturating_add(Weight::from_parts(503_314_880, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 1]`. fn gr_leave(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 94_494_000 picoseconds. - Weight::from_parts(103_419_240, 0) - // Standard Error: 2_066_261 - .saturating_add(Weight::from_parts(536_063_286, 0).saturating_mul(r.into())) + // Minimum execution time: 98_181_000 picoseconds. + Weight::from_parts(105_227_918, 0) + // Standard Error: 2_343_026 + .saturating_add(Weight::from_parts(426_477_654, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 1]`. fn gr_wait(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 96_167_000 picoseconds. - Weight::from_parts(103_413_378, 0) - // Standard Error: 2_011_359 - .saturating_add(Weight::from_parts(519_142_196, 0).saturating_mul(r.into())) + // Minimum execution time: 95_585_000 picoseconds. + Weight::from_parts(102_197_814, 0) + // Standard Error: 1_411_445 + .saturating_add(Weight::from_parts(465_536_900, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 1]`. fn gr_wait_for(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 93_437_000 picoseconds. - Weight::from_parts(100_205_340, 0) - // Standard Error: 2_405_150 - .saturating_add(Weight::from_parts(547_275_968, 0).saturating_mul(r.into())) + // Minimum execution time: 95_297_000 picoseconds. + Weight::from_parts(101_445_166, 0) + // Standard Error: 2_227_511 + .saturating_add(Weight::from_parts(421_267_332, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 1]`. fn gr_wait_up_to(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 95_803_000 picoseconds. - Weight::from_parts(102_665_234, 0) - // Standard Error: 2_225_197 - .saturating_add(Weight::from_parts(553_575_546, 0).saturating_mul(r.into())) + // Minimum execution time: 94_815_000 picoseconds. + Weight::from_parts(101_957_812, 0) + // Standard Error: 1_462_209 + .saturating_add(Weight::from_parts(480_126_430, 0).saturating_mul(r.into())) } fn allocation_cost() -> Weight { // To be changed with the proper value. @@ -386,10 +386,10 @@ impl pallet_gear::WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 976_000 picoseconds. - Weight::from_parts(1_072_000, 0) - // Standard Error: 699 - .saturating_add(Weight::from_parts(245_833, 0).saturating_mul(c.into())) + // Minimum execution time: 1_019_000 picoseconds. + Weight::from_parts(1_041_000, 0) + // Standard Error: 981 + .saturating_add(Weight::from_parts(210_472, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().writes(1_u64)) } /// The range of component `c` is `[0, 512]`. @@ -397,10 +397,10 @@ impl pallet_gear::WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `146 + c * (1024 ±0)` // Estimated: `3610 + c * (1024 ±0)` - // Minimum execution time: 3_396_000 picoseconds. - Weight::from_parts(3_490_000, 3610) - // Standard Error: 1_049 - .saturating_add(Weight::from_parts(676_643, 0).saturating_mul(c.into())) + // Minimum execution time: 3_294_000 picoseconds. + Weight::from_parts(3_366_000, 3610) + // Standard Error: 1_080 + .saturating_add(Weight::from_parts(676_116, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(Weight::from_parts(0, 1024).saturating_mul(c.into())) } @@ -409,17 +409,17 @@ impl pallet_gear::WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 62_736_000 picoseconds. - Weight::from_parts(76_636_221, 0) - // Standard Error: 9_825 - .saturating_add(Weight::from_parts(2_570_922, 0).saturating_mul(c.into())) + // Minimum execution time: 60_243_000 picoseconds. + Weight::from_parts(75_401_206, 0) + // Standard Error: 11_548 + .saturating_add(Weight::from_parts(2_494_849, 0).saturating_mul(c.into())) } fn claim_value() -> Weight { // Proof Size summary in bytes: // Measured: `1372` // Estimated: `51905` - // Minimum execution time: 111_461_000 picoseconds. - Weight::from_parts(114_029_000, 51905) + // Minimum execution time: 108_943_000 picoseconds. + Weight::from_parts(111_577_000, 51905) .saturating_add(T::DbWeight::get().reads(15_u64)) .saturating_add(T::DbWeight::get().writes(12_u64)) } @@ -427,8 +427,8 @@ impl pallet_gear::WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `992` // Estimated: `21579` - // Minimum execution time: 57_697_000 picoseconds. - Weight::from_parts(58_842_000, 21579) + // Minimum execution time: 56_262_000 picoseconds. + Weight::from_parts(58_296_000, 21579) .saturating_add(T::DbWeight::get().reads(7_u64)) .saturating_add(T::DbWeight::get().writes(6_u64)) } @@ -436,8 +436,8 @@ impl pallet_gear::WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `638` // Estimated: `17486` - // Minimum execution time: 30_530_000 picoseconds. - Weight::from_parts(32_003_000, 17486) + // Minimum execution time: 30_127_000 picoseconds. + Weight::from_parts(31_137_000, 17486) .saturating_add(T::DbWeight::get().reads(6_u64)) .saturating_add(T::DbWeight::get().writes(4_u64)) } @@ -446,10 +446,10 @@ impl pallet_gear::WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `355` // Estimated: `7640` - // Minimum execution time: 8_274_000 picoseconds. - Weight::from_parts(8_261_331, 7640) - // Standard Error: 41_108 - .saturating_add(Weight::from_parts(13_969_743, 0).saturating_mul(c.into())) + // Minimum execution time: 7_944_000 picoseconds. + Weight::from_parts(3_967_373, 7640) + // Standard Error: 35_621 + .saturating_add(Weight::from_parts(13_338_658, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -458,10 +458,10 @@ impl pallet_gear::WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `1593 + c * (16389 ±0)` // Estimated: `43266 + c * (131112 ±0)` - // Minimum execution time: 74_444_000 picoseconds. - Weight::from_parts(75_016_000, 43266) - // Standard Error: 165_690 - .saturating_add(Weight::from_parts(55_174_777, 0).saturating_mul(c.into())) + // Minimum execution time: 72_793_000 picoseconds. + Weight::from_parts(73_500_000, 43266) + // Standard Error: 159_839 + .saturating_add(Weight::from_parts(53_776_845, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(11_u64)) .saturating_add(T::DbWeight::get().writes(9_u64)) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(c.into()))) @@ -472,10 +472,10 @@ impl pallet_gear::WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `113` // Estimated: `5402` - // Minimum execution time: 79_739_000 picoseconds. - Weight::from_parts(1_118_426, 5402) - // Standard Error: 68_897 - .saturating_add(Weight::from_parts(60_115_395, 0).saturating_mul(c.into())) + // Minimum execution time: 77_549_000 picoseconds. + Weight::from_parts(11_782_592, 5402) + // Standard Error: 44_814 + .saturating_add(Weight::from_parts(62_238_899, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(4_u64)) } @@ -484,10 +484,10 @@ impl pallet_gear::WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `1111` // Estimated: `50600` - // Minimum execution time: 96_509_000 picoseconds. - Weight::from_parts(129_317_147, 50600) + // Minimum execution time: 95_703_000 picoseconds. + Weight::from_parts(124_584_109, 50600) // Standard Error: 0 - .saturating_add(Weight::from_parts(2_581, 0).saturating_mul(s.into())) + .saturating_add(Weight::from_parts(2_516, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(15_u64)) .saturating_add(T::DbWeight::get().writes(12_u64)) } @@ -497,12 +497,12 @@ impl pallet_gear::WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `521` // Estimated: `45152` - // Minimum execution time: 10_940_898_000 picoseconds. - Weight::from_parts(67_432_582, 45152) - // Standard Error: 159_611 - .saturating_add(Weight::from_parts(61_428_399, 0).saturating_mul(c.into())) - // Standard Error: 9 - .saturating_add(Weight::from_parts(2_577, 0).saturating_mul(s.into())) + // Minimum execution time: 10_716_861_000 picoseconds. + Weight::from_parts(73_848_079, 45152) + // Standard Error: 150_468 + .saturating_add(Weight::from_parts(64_695_292, 0).saturating_mul(c.into())) + // Standard Error: 8 + .saturating_add(Weight::from_parts(2_493, 0).saturating_mul(s.into())) .saturating_add(T::DbWeight::get().reads(15_u64)) .saturating_add(T::DbWeight::get().writes(16_u64)) } @@ -511,10 +511,10 @@ impl pallet_gear::WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `531` // Estimated: `31266` - // Minimum execution time: 77_245_000 picoseconds. - Weight::from_parts(59_204_735, 31266) + // Minimum execution time: 74_957_000 picoseconds. + Weight::from_parts(48_430_172, 31266) // Standard Error: 1 - .saturating_add(Weight::from_parts(1_042, 0).saturating_mul(p.into())) + .saturating_add(Weight::from_parts(1_052, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(11_u64)) .saturating_add(T::DbWeight::get().writes(10_u64)) } @@ -523,10 +523,10 @@ impl pallet_gear::WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `1371` // Estimated: `54435` - // Minimum execution time: 128_271_000 picoseconds. - Weight::from_parts(93_877_619, 54435) + // Minimum execution time: 126_639_000 picoseconds. + Weight::from_parts(100_822_385, 54435) // Standard Error: 2 - .saturating_add(Weight::from_parts(1_085, 0).saturating_mul(p.into())) + .saturating_add(Weight::from_parts(1_072, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(16_u64)) .saturating_add(T::DbWeight::get().writes(13_u64)) } @@ -535,20 +535,18 @@ impl pallet_gear::WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `1897` // Estimated: `121468` - // Minimum execution time: 379_776_000 picoseconds. - Weight::from_parts(397_994_052, 121468) + // Minimum execution time: 375_457_000 picoseconds. + Weight::from_parts(393_536_920, 121468) .saturating_add(T::DbWeight::get().reads(35_u64)) .saturating_add(T::DbWeight::get().writes(26_u64)) } /// The range of component `q` is `[0, 512]`. - fn alloc_in_handle(q: u32, ) -> Weight { + fn alloc_in_handle(_q: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `1897` // Estimated: `121468` - // Minimum execution time: 393_678_000 picoseconds. - Weight::from_parts(411_350_620, 121468) - // Standard Error: 1_741 - .saturating_add(Weight::from_parts(5_796, 0).saturating_mul(q.into())) + // Minimum execution time: 390_030_000 picoseconds. + Weight::from_parts(411_717_925, 121468) .saturating_add(T::DbWeight::get().reads(35_u64)) .saturating_add(T::DbWeight::get().writes(26_u64)) } @@ -557,10 +555,10 @@ impl pallet_gear::WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `211 + c * (1075 ±0)` // Estimated: `3899 + c * (2150 ±0)` - // Minimum execution time: 58_693_000 picoseconds. - Weight::from_parts(59_295_000, 3899) - // Standard Error: 33_015 - .saturating_add(Weight::from_parts(61_659_744, 0).saturating_mul(c.into())) + // Minimum execution time: 57_499_000 picoseconds. + Weight::from_parts(58_384_000, 3899) + // Standard Error: 39_375 + .saturating_add(Weight::from_parts(61_628_039, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) .saturating_add(Weight::from_parts(0, 2150).saturating_mul(c.into())) @@ -570,510 +568,510 @@ impl pallet_gear::WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 94_082_000 picoseconds. - Weight::from_parts(97_548_000, 0) - // Standard Error: 3_920_023 - .saturating_add(Weight::from_parts(729_307_729, 0).saturating_mul(r.into())) + // Minimum execution time: 94_798_000 picoseconds. + Weight::from_parts(98_095_000, 0) + // Standard Error: 4_268_961 + .saturating_add(Weight::from_parts(719_474_559, 0).saturating_mul(r.into())) } /// The range of component `p` is `[1, 512]`. fn alloc_per_page(p: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 491_508_000 picoseconds. - Weight::from_parts(463_051_109, 0) - // Standard Error: 421_338 - .saturating_add(Weight::from_parts(31_169_166, 0).saturating_mul(p.into())) + // Minimum execution time: 463_364_000 picoseconds. + Weight::from_parts(384_532_432, 0) + // Standard Error: 11_127 + .saturating_add(Weight::from_parts(32_661_842, 0).saturating_mul(p.into())) } /// The range of component `r` is `[0, 20]`. fn free(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 220_882_000 picoseconds. - Weight::from_parts(231_751_371, 0) - // Standard Error: 241_524 - .saturating_add(Weight::from_parts(62_988_026, 0).saturating_mul(r.into())) + // Minimum execution time: 208_188_000 picoseconds. + Weight::from_parts(207_251_598, 0) + // Standard Error: 269_511 + .saturating_add(Weight::from_parts(63_993_415, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 256]`. fn gr_reserve_gas(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 100_013_000 picoseconds. - Weight::from_parts(108_487_423, 0) - // Standard Error: 4_858 - .saturating_add(Weight::from_parts(2_524_407, 0).saturating_mul(r.into())) + // Minimum execution time: 99_563_000 picoseconds. + Weight::from_parts(103_711_343, 0) + // Standard Error: 4_244 + .saturating_add(Weight::from_parts(2_502_376, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 256]`. fn gr_unreserve_gas(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 182_206_000 picoseconds. - Weight::from_parts(218_782_104, 0) - // Standard Error: 14_768 - .saturating_add(Weight::from_parts(2_153_377, 0).saturating_mul(r.into())) + // Minimum execution time: 177_888_000 picoseconds. + Weight::from_parts(232_133_210, 0) + // Standard Error: 15_407 + .saturating_add(Weight::from_parts(2_084_728, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 20]`. fn gr_system_reserve_gas(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 97_458_000 picoseconds. - Weight::from_parts(121_028_602, 0) - // Standard Error: 385_510 - .saturating_add(Weight::from_parts(95_782_527, 0).saturating_mul(r.into())) + // Minimum execution time: 95_448_000 picoseconds. + Weight::from_parts(118_211_047, 0) + // Standard Error: 364_890 + .saturating_add(Weight::from_parts(103_988_684, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 20]`. fn gr_message_id(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 101_412_000 picoseconds. - Weight::from_parts(86_061_953, 0) - // Standard Error: 356_205 - .saturating_add(Weight::from_parts(87_923_229, 0).saturating_mul(r.into())) + // Minimum execution time: 96_343_000 picoseconds. + Weight::from_parts(82_804_631, 0) + // Standard Error: 293_430 + .saturating_add(Weight::from_parts(94_357_895, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 20]`. fn gr_program_id(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 101_962_000 picoseconds. - Weight::from_parts(96_667_757, 0) - // Standard Error: 333_738 - .saturating_add(Weight::from_parts(84_955_970, 0).saturating_mul(r.into())) + // Minimum execution time: 94_619_000 picoseconds. + Weight::from_parts(86_482_681, 0) + // Standard Error: 304_846 + .saturating_add(Weight::from_parts(93_938_049, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 20]`. fn gr_source(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 98_464_000 picoseconds. - Weight::from_parts(90_164_484, 0) - // Standard Error: 321_979 - .saturating_add(Weight::from_parts(85_647_809, 0).saturating_mul(r.into())) + // Minimum execution time: 96_485_000 picoseconds. + Weight::from_parts(87_288_199, 0) + // Standard Error: 292_714 + .saturating_add(Weight::from_parts(93_943_740, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 20]`. fn gr_value(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 97_334_000 picoseconds. - Weight::from_parts(91_107_930, 0) - // Standard Error: 336_291 - .saturating_add(Weight::from_parts(85_501_563, 0).saturating_mul(r.into())) + // Minimum execution time: 97_613_000 picoseconds. + Weight::from_parts(83_672_504, 0) + // Standard Error: 280_845 + .saturating_add(Weight::from_parts(97_083_052, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 20]`. fn gr_value_available(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 96_398_000 picoseconds. - Weight::from_parts(97_803_650, 0) - // Standard Error: 330_728 - .saturating_add(Weight::from_parts(84_746_249, 0).saturating_mul(r.into())) + // Minimum execution time: 99_107_000 picoseconds. + Weight::from_parts(82_852_950, 0) + // Standard Error: 284_918 + .saturating_add(Weight::from_parts(96_401_375, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 20]`. fn gr_gas_available(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 99_554_000 picoseconds. - Weight::from_parts(77_927_782, 0) - // Standard Error: 386_800 - .saturating_add(Weight::from_parts(90_358_021, 0).saturating_mul(r.into())) + // Minimum execution time: 94_978_000 picoseconds. + Weight::from_parts(88_834_080, 0) + // Standard Error: 284_077 + .saturating_add(Weight::from_parts(94_358_752, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 20]`. fn gr_size(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 102_554_000 picoseconds. - Weight::from_parts(96_055_722, 0) - // Standard Error: 331_628 - .saturating_add(Weight::from_parts(84_542_244, 0).saturating_mul(r.into())) + // Minimum execution time: 97_069_000 picoseconds. + Weight::from_parts(84_658_812, 0) + // Standard Error: 289_909 + .saturating_add(Weight::from_parts(94_739_130, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 20]`. fn gr_read(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 725_792_000 picoseconds. - Weight::from_parts(801_544_878, 0) - // Standard Error: 398_821 - .saturating_add(Weight::from_parts(140_715_634, 0).saturating_mul(r.into())) + // Minimum execution time: 624_988_000 picoseconds. + Weight::from_parts(719_391_471, 0) + // Standard Error: 385_357 + .saturating_add(Weight::from_parts(153_589_919, 0).saturating_mul(r.into())) } /// The range of component `n` is `[0, 2048]`. fn gr_read_per_kb(n: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 869_816_000 picoseconds. - Weight::from_parts(886_588_000, 0) - // Standard Error: 54_300 - .saturating_add(Weight::from_parts(13_214_277, 0).saturating_mul(n.into())) + // Minimum execution time: 768_360_000 picoseconds. + Weight::from_parts(784_407_000, 0) + // Standard Error: 58_239 + .saturating_add(Weight::from_parts(13_509_438, 0).saturating_mul(n.into())) } /// The range of component `r` is `[0, 20]`. fn gr_block_height(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 98_800_000 picoseconds. - Weight::from_parts(92_344_333, 0) - // Standard Error: 339_355 - .saturating_add(Weight::from_parts(86_790_706, 0).saturating_mul(r.into())) + // Minimum execution time: 95_583_000 picoseconds. + Weight::from_parts(93_000_068, 0) + // Standard Error: 287_092 + .saturating_add(Weight::from_parts(92_987_967, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 20]`. fn gr_block_timestamp(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 97_651_000 picoseconds. - Weight::from_parts(92_529_847, 0) - // Standard Error: 295_105 - .saturating_add(Weight::from_parts(89_002_384, 0).saturating_mul(r.into())) + // Minimum execution time: 98_609_000 picoseconds. + Weight::from_parts(91_602_090, 0) + // Standard Error: 261_647 + .saturating_add(Weight::from_parts(93_534_327, 0).saturating_mul(r.into())) } /// The range of component `n` is `[0, 20]`. fn gr_random(n: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 99_357_000 picoseconds. - Weight::from_parts(105_767_963, 0) - // Standard Error: 380_641 - .saturating_add(Weight::from_parts(174_604_231, 0).saturating_mul(n.into())) + // Minimum execution time: 96_064_000 picoseconds. + Weight::from_parts(112_225_482, 0) + // Standard Error: 372_150 + .saturating_add(Weight::from_parts(176_540_888, 0).saturating_mul(n.into())) } /// The range of component `r` is `[0, 20]`. fn gr_reply_deposit(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 103_092_000 picoseconds. - Weight::from_parts(105_802_000, 0) - // Standard Error: 3_553_393 - .saturating_add(Weight::from_parts(783_848_741, 0).saturating_mul(r.into())) + // Minimum execution time: 96_515_000 picoseconds. + Weight::from_parts(100_449_000, 0) + // Standard Error: 4_642_503 + .saturating_add(Weight::from_parts(868_473_141, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 20]`. fn gr_send(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 97_050_000 picoseconds. - Weight::from_parts(174_923_994, 0) - // Standard Error: 430_038 - .saturating_add(Weight::from_parts(266_665_269, 0).saturating_mul(r.into())) + // Minimum execution time: 98_501_000 picoseconds. + Weight::from_parts(154_456_982, 0) + // Standard Error: 340_064 + .saturating_add(Weight::from_parts(264_987_162, 0).saturating_mul(r.into())) } /// The range of component `n` is `[0, 2048]`. fn gr_send_per_kb(n: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 357_531_000 picoseconds. - Weight::from_parts(365_896_000, 0) - // Standard Error: 59_017 - .saturating_add(Weight::from_parts(21_340_532, 0).saturating_mul(n.into())) + // Minimum execution time: 353_842_000 picoseconds. + Weight::from_parts(358_232_000, 0) + // Standard Error: 59_123 + .saturating_add(Weight::from_parts(21_328_711, 0).saturating_mul(n.into())) } /// The range of component `r` is `[0, 20]`. fn gr_send_wgas(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 98_643_000 picoseconds. - Weight::from_parts(185_395_839, 0) - // Standard Error: 402_403 - .saturating_add(Weight::from_parts(266_083_111, 0).saturating_mul(r.into())) + // Minimum execution time: 95_473_000 picoseconds. + Weight::from_parts(173_487_611, 0) + // Standard Error: 346_958 + .saturating_add(Weight::from_parts(265_362_826, 0).saturating_mul(r.into())) } /// The range of component `n` is `[0, 2048]`. fn gr_send_wgas_per_kb(n: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 361_853_000 picoseconds. - Weight::from_parts(371_175_000, 0) - // Standard Error: 62_531 - .saturating_add(Weight::from_parts(21_372_225, 0).saturating_mul(n.into())) + // Minimum execution time: 361_340_000 picoseconds. + Weight::from_parts(365_775_000, 0) + // Standard Error: 57_913 + .saturating_add(Weight::from_parts(21_806_682, 0).saturating_mul(n.into())) } /// The range of component `r` is `[0, 20]`. fn gr_send_input(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 731_246_000 picoseconds. - Weight::from_parts(827_016_024, 0) - // Standard Error: 456_568 - .saturating_add(Weight::from_parts(283_568_931, 0).saturating_mul(r.into())) + // Minimum execution time: 619_127_000 picoseconds. + Weight::from_parts(727_744_949, 0) + // Standard Error: 407_186 + .saturating_add(Weight::from_parts(287_464_747, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 20]`. fn gr_send_input_wgas(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 725_315_000 picoseconds. - Weight::from_parts(814_525_892, 0) - // Standard Error: 535_531 - .saturating_add(Weight::from_parts(291_725_582, 0).saturating_mul(r.into())) + // Minimum execution time: 598_950_000 picoseconds. + Weight::from_parts(736_523_445, 0) + // Standard Error: 426_087 + .saturating_add(Weight::from_parts(286_023_165, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 20]`. fn gr_send_init(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 100_930_000 picoseconds. - Weight::from_parts(86_911_409, 0) - // Standard Error: 308_962 - .saturating_add(Weight::from_parts(98_197_967, 0).saturating_mul(r.into())) + // Minimum execution time: 96_646_000 picoseconds. + Weight::from_parts(83_018_591, 0) + // Standard Error: 290_942 + .saturating_add(Weight::from_parts(100_797_875, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 20]`. fn gr_send_push(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 1_871_002_000 picoseconds. - Weight::from_parts(2_023_643_652, 0) - // Standard Error: 354_203 - .saturating_add(Weight::from_parts(163_033_723, 0).saturating_mul(r.into())) + // Minimum execution time: 1_992_708_000 picoseconds. + Weight::from_parts(2_118_177_569, 0) + // Standard Error: 258_344 + .saturating_add(Weight::from_parts(175_943_566, 0).saturating_mul(r.into())) } /// The range of component `n` is `[0, 2048]`. fn gr_send_push_per_kb(n: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 321_280_000 picoseconds. - Weight::from_parts(326_774_000, 0) - // Standard Error: 53_820 - .saturating_add(Weight::from_parts(31_205_219, 0).saturating_mul(n.into())) + // Minimum execution time: 329_583_000 picoseconds. + Weight::from_parts(332_097_000, 0) + // Standard Error: 52_868 + .saturating_add(Weight::from_parts(29_693_569, 0).saturating_mul(n.into())) } /// The range of component `r` is `[0, 20]`. fn gr_send_commit(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 1_866_780_000 picoseconds. - Weight::from_parts(2_024_271_501, 0) - // Standard Error: 405_972 - .saturating_add(Weight::from_parts(225_776_414, 0).saturating_mul(r.into())) + // Minimum execution time: 2_000_304_000 picoseconds. + Weight::from_parts(2_103_665_360, 0) + // Standard Error: 279_832 + .saturating_add(Weight::from_parts(222_774_116, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 20]`. fn gr_send_commit_wgas(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 1_875_608_000 picoseconds. - Weight::from_parts(2_019_090_196, 0) - // Standard Error: 346_810 - .saturating_add(Weight::from_parts(235_898_569, 0).saturating_mul(r.into())) + // Minimum execution time: 2_009_086_000 picoseconds. + Weight::from_parts(2_118_651_462, 0) + // Standard Error: 304_300 + .saturating_add(Weight::from_parts(227_551_678, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 20]`. fn gr_reservation_send(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 263_903_000 picoseconds. - Weight::from_parts(339_925_241, 0) - // Standard Error: 414_003 - .saturating_add(Weight::from_parts(280_423_422, 0).saturating_mul(r.into())) + // Minimum execution time: 249_654_000 picoseconds. + Weight::from_parts(318_420_072, 0) + // Standard Error: 334_694 + .saturating_add(Weight::from_parts(277_786_644, 0).saturating_mul(r.into())) } /// The range of component `n` is `[0, 2048]`. fn gr_reservation_send_per_kb(n: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 535_212_000 picoseconds. - Weight::from_parts(545_222_000, 0) - // Standard Error: 58_250 - .saturating_add(Weight::from_parts(21_556_762, 0).saturating_mul(n.into())) + // Minimum execution time: 530_798_000 picoseconds. + Weight::from_parts(542_480_000, 0) + // Standard Error: 69_997 + .saturating_add(Weight::from_parts(21_968_683, 0).saturating_mul(n.into())) } /// The range of component `r` is `[0, 20]`. fn gr_reservation_send_commit(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_022_436_000 picoseconds. - Weight::from_parts(2_212_258_384, 0) - // Standard Error: 460_291 - .saturating_add(Weight::from_parts(249_403_133, 0).saturating_mul(r.into())) + // Minimum execution time: 2_149_917_000 picoseconds. + Weight::from_parts(2_296_280_954, 0) + // Standard Error: 415_974 + .saturating_add(Weight::from_parts(248_500_648, 0).saturating_mul(r.into())) } /// The range of component `n` is `[0, 2048]`. fn gr_reply_per_kb(n: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 117_080_000 picoseconds. - Weight::from_parts(104_765_276, 0) - // Standard Error: 994 - .saturating_add(Weight::from_parts(436_761, 0).saturating_mul(n.into())) + // Minimum execution time: 114_806_000 picoseconds. + Weight::from_parts(102_087_876, 0) + // Standard Error: 1_338 + .saturating_add(Weight::from_parts(436_648, 0).saturating_mul(n.into())) } /// The range of component `n` is `[0, 2048]`. fn gr_reply_wgas_per_kb(n: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 115_283_000 picoseconds. - Weight::from_parts(109_185_112, 0) - // Standard Error: 1_244 - .saturating_add(Weight::from_parts(432_177, 0).saturating_mul(n.into())) + // Minimum execution time: 116_657_000 picoseconds. + Weight::from_parts(106_022_444, 0) + // Standard Error: 1_018 + .saturating_add(Weight::from_parts(431_359, 0).saturating_mul(n.into())) } /// The range of component `r` is `[0, 20]`. fn gr_reply_push(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 97_873_000 picoseconds. - Weight::from_parts(159_110_710, 0) - // Standard Error: 457_822 - .saturating_add(Weight::from_parts(152_162_507, 0).saturating_mul(r.into())) + // Minimum execution time: 96_038_000 picoseconds. + Weight::from_parts(135_201_165, 0) + // Standard Error: 356_732 + .saturating_add(Weight::from_parts(159_820_965, 0).saturating_mul(r.into())) } /// The range of component `n` is `[0, 8192]`. fn gr_reply_push_per_kb(n: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 112_593_000 picoseconds. - Weight::from_parts(114_913_000, 0) - // Standard Error: 2_557 - .saturating_add(Weight::from_parts(677_985, 0).saturating_mul(n.into())) + // Minimum execution time: 112_492_000 picoseconds. + Weight::from_parts(114_308_000, 0) + // Standard Error: 3_223 + .saturating_add(Weight::from_parts(662_188, 0).saturating_mul(n.into())) } /// The range of component `n` is `[0, 2048]`. fn gr_reservation_reply_per_kb(n: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 118_073_000 picoseconds. - Weight::from_parts(113_763_795, 0) - // Standard Error: 1_010 - .saturating_add(Weight::from_parts(428_786, 0).saturating_mul(n.into())) + // Minimum execution time: 115_332_000 picoseconds. + Weight::from_parts(108_506_706, 0) + // Standard Error: 1_103 + .saturating_add(Weight::from_parts(434_341, 0).saturating_mul(n.into())) } /// The range of component `n` is `[0, 2048]`. fn gr_reservation_reply_commit_per_kb(n: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 114_860_000 picoseconds. - Weight::from_parts(101_920_439, 0) - // Standard Error: 1_083 - .saturating_add(Weight::from_parts(442_833, 0).saturating_mul(n.into())) + // Minimum execution time: 118_794_000 picoseconds. + Weight::from_parts(107_294_653, 0) + // Standard Error: 960 + .saturating_add(Weight::from_parts(430_040, 0).saturating_mul(n.into())) } /// The range of component `r` is `[0, 20]`. fn gr_reply_to(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 98_512_000 picoseconds. - Weight::from_parts(88_626_388, 0) - // Standard Error: 366_499 - .saturating_add(Weight::from_parts(88_122_315, 0).saturating_mul(r.into())) + // Minimum execution time: 94_737_000 picoseconds. + Weight::from_parts(87_725_226, 0) + // Standard Error: 309_072 + .saturating_add(Weight::from_parts(95_349_514, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 20]`. fn gr_signal_code(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 100_944_000 picoseconds. - Weight::from_parts(94_274_573, 0) - // Standard Error: 344_379 - .saturating_add(Weight::from_parts(83_385_159, 0).saturating_mul(r.into())) + // Minimum execution time: 96_560_000 picoseconds. + Weight::from_parts(88_778_855, 0) + // Standard Error: 321_153 + .saturating_add(Weight::from_parts(92_345_730, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 20]`. fn gr_signal_from(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 98_736_000 picoseconds. - Weight::from_parts(102_598_887, 0) - // Standard Error: 254_019 - .saturating_add(Weight::from_parts(86_050_309, 0).saturating_mul(r.into())) + // Minimum execution time: 95_858_000 picoseconds. + Weight::from_parts(83_381_792, 0) + // Standard Error: 288_029 + .saturating_add(Weight::from_parts(95_413_243, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 20]`. fn gr_reply_push_input(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 740_156_000 picoseconds. - Weight::from_parts(781_820_116, 0) - // Standard Error: 419_407 - .saturating_add(Weight::from_parts(107_969_773, 0).saturating_mul(r.into())) + // Minimum execution time: 623_083_000 picoseconds. + Weight::from_parts(708_678_749, 0) + // Standard Error: 349_496 + .saturating_add(Weight::from_parts(115_860_492, 0).saturating_mul(r.into())) } /// The range of component `n` is `[0, 2048]`. fn gr_reply_push_input_per_kb(n: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 755_846_000 picoseconds. - Weight::from_parts(780_455_697, 0) - // Standard Error: 1_995 - .saturating_add(Weight::from_parts(161_261, 0).saturating_mul(n.into())) + // Minimum execution time: 618_159_000 picoseconds. + Weight::from_parts(642_200_096, 0) + // Standard Error: 1_446 + .saturating_add(Weight::from_parts(123_508, 0).saturating_mul(n.into())) } /// The range of component `r` is `[0, 20]`. fn gr_send_push_input(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_511_608_000 picoseconds. - Weight::from_parts(2_705_076_651, 0) - // Standard Error: 493_983 - .saturating_add(Weight::from_parts(127_194_997, 0).saturating_mul(r.into())) + // Minimum execution time: 2_500_516_000 picoseconds. + Weight::from_parts(2_647_459_773, 0) + // Standard Error: 453_733 + .saturating_add(Weight::from_parts(132_179_417, 0).saturating_mul(r.into())) } /// The range of component `n` is `[0, 2048]`. fn gr_send_push_input_per_kb(n: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_717_264_000 picoseconds. - Weight::from_parts(2_814_539_958, 0) - // Standard Error: 10_103 - .saturating_add(Weight::from_parts(13_630_637, 0).saturating_mul(n.into())) + // Minimum execution time: 2_741_565_000 picoseconds. + Weight::from_parts(2_768_198_343, 0) + // Standard Error: 15_631 + .saturating_add(Weight::from_parts(12_354_508, 0).saturating_mul(n.into())) } /// The range of component `r` is `[0, 20]`. fn gr_debug(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 97_818_000 picoseconds. - Weight::from_parts(112_676_264, 0) - // Standard Error: 333_130 - .saturating_add(Weight::from_parts(114_231_920, 0).saturating_mul(r.into())) + // Minimum execution time: 99_002_000 picoseconds. + Weight::from_parts(122_377_318, 0) + // Standard Error: 378_707 + .saturating_add(Weight::from_parts(116_584_775, 0).saturating_mul(r.into())) } /// The range of component `n` is `[0, 2048]`. fn gr_debug_per_kb(n: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 159_849_000 picoseconds. - Weight::from_parts(161_376_000, 0) - // Standard Error: 52_546 - .saturating_add(Weight::from_parts(25_816_075, 0).saturating_mul(n.into())) + // Minimum execution time: 159_403_000 picoseconds. + Weight::from_parts(161_567_000, 0) + // Standard Error: 52_611 + .saturating_add(Weight::from_parts(23_966_846, 0).saturating_mul(n.into())) } /// The range of component `r` is `[0, 20]`. fn gr_reply_code(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 98_916_000 picoseconds. - Weight::from_parts(92_228_268, 0) - // Standard Error: 329_307 - .saturating_add(Weight::from_parts(83_076_033, 0).saturating_mul(r.into())) + // Minimum execution time: 95_021_000 picoseconds. + Weight::from_parts(83_792_170, 0) + // Standard Error: 307_944 + .saturating_add(Weight::from_parts(92_699_319, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 20]`. fn gr_wake(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 179_446_000 picoseconds. - Weight::from_parts(229_514_451, 0) - // Standard Error: 257_645 - .saturating_add(Weight::from_parts(154_731_264, 0).saturating_mul(r.into())) + // Minimum execution time: 177_740_000 picoseconds. + Weight::from_parts(220_550_761, 0) + // Standard Error: 175_549 + .saturating_add(Weight::from_parts(166_872_997, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 20]`. fn gr_create_program(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 107_616_000 picoseconds. - Weight::from_parts(175_768_720, 0) - // Standard Error: 367_635 - .saturating_add(Weight::from_parts(358_564_932, 0).saturating_mul(r.into())) + // Minimum execution time: 105_825_000 picoseconds. + Weight::from_parts(167_061_819, 0) + // Standard Error: 329_320 + .saturating_add(Weight::from_parts(351_610_020, 0).saturating_mul(r.into())) } /// The range of component `p` is `[0, 2048]`. /// The range of component `s` is `[1, 2048]`. @@ -1081,22 +1079,22 @@ impl pallet_gear::WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 44_902_420_000 picoseconds. - Weight::from_parts(45_126_501_000, 0) - // Standard Error: 280_708 - .saturating_add(Weight::from_parts(7_774_529, 0).saturating_mul(p.into())) - // Standard Error: 280_694 - .saturating_add(Weight::from_parts(175_731_776, 0).saturating_mul(s.into())) + // Minimum execution time: 43_911_786_000 picoseconds. + Weight::from_parts(44_034_848_000, 0) + // Standard Error: 268_084 + .saturating_add(Weight::from_parts(7_840_641, 0).saturating_mul(p.into())) + // Standard Error: 268_071 + .saturating_add(Weight::from_parts(171_034_577, 0).saturating_mul(s.into())) } /// The range of component `r` is `[0, 20]`. fn gr_create_program_wgas(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 108_285_000 picoseconds. - Weight::from_parts(176_429_268, 0) - // Standard Error: 384_072 - .saturating_add(Weight::from_parts(366_592_077, 0).saturating_mul(r.into())) + // Minimum execution time: 113_178_000 picoseconds. + Weight::from_parts(151_638_067, 0) + // Standard Error: 307_779 + .saturating_add(Weight::from_parts(360_201_120, 0).saturating_mul(r.into())) } /// The range of component `p` is `[0, 2048]`. /// The range of component `s` is `[1, 2048]`. @@ -1104,32 +1102,32 @@ impl pallet_gear::WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 46_638_288_000 picoseconds. - Weight::from_parts(47_081_319_000, 0) - // Standard Error: 280_733 - .saturating_add(Weight::from_parts(7_134_527, 0).saturating_mul(p.into())) - // Standard Error: 280_720 - .saturating_add(Weight::from_parts(175_082_854, 0).saturating_mul(s.into())) + // Minimum execution time: 45_074_991_000 picoseconds. + Weight::from_parts(45_234_378_000, 0) + // Standard Error: 283_779 + .saturating_add(Weight::from_parts(7_989_562, 0).saturating_mul(p.into())) + // Standard Error: 283_765 + .saturating_add(Weight::from_parts(170_645_975, 0).saturating_mul(s.into())) } /// The range of component `r` is `[0, 20]`. fn gr_pay_program_rent(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 100_230_000 picoseconds. - Weight::from_parts(120_175_562, 0) - // Standard Error: 35_806 - .saturating_add(Weight::from_parts(1_783_612, 0).saturating_mul(r.into())) + // Minimum execution time: 95_835_000 picoseconds. + Weight::from_parts(115_102_214, 0) + // Standard Error: 34_404 + .saturating_add(Weight::from_parts(2_142_089, 0).saturating_mul(r.into())) } /// The range of component `p` is `[0, 512]`. fn lazy_pages_signal_read(p: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `141` // Estimated: `1131 + p * (9900 ±0)` - // Minimum execution time: 99_162_000 picoseconds. - Weight::from_parts(112_460_979, 1131) - // Standard Error: 19_215 - .saturating_add(Weight::from_parts(16_485_170, 0).saturating_mul(p.into())) + // Minimum execution time: 95_078_000 picoseconds. + Weight::from_parts(134_205_201, 1131) + // Standard Error: 22_980 + .saturating_add(Weight::from_parts(16_531_416, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads((4_u64).saturating_mul(p.into()))) .saturating_add(Weight::from_parts(0, 9900).saturating_mul(p.into())) } @@ -1138,10 +1136,10 @@ impl pallet_gear::WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `141` // Estimated: `1131 + p * (9900 ±0)` - // Minimum execution time: 100_684_000 picoseconds. - Weight::from_parts(104_531_000, 1131) - // Standard Error: 46_782 - .saturating_add(Weight::from_parts(42_067_142, 0).saturating_mul(p.into())) + // Minimum execution time: 96_686_000 picoseconds. + Weight::from_parts(98_247_000, 1131) + // Standard Error: 31_568 + .saturating_add(Weight::from_parts(41_868_408, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads((4_u64).saturating_mul(p.into()))) .saturating_add(Weight::from_parts(0, 9900).saturating_mul(p.into())) } @@ -1150,10 +1148,10 @@ impl pallet_gear::WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `141` // Estimated: `5069931` - // Minimum execution time: 8_272_424_000 picoseconds. - Weight::from_parts(8_390_589_661, 5069931) - // Standard Error: 72_393 - .saturating_add(Weight::from_parts(42_604_682, 0).saturating_mul(p.into())) + // Minimum execution time: 8_172_399_000 picoseconds. + Weight::from_parts(7_934_736_669, 5069931) + // Standard Error: 90_294 + .saturating_add(Weight::from_parts(44_059_914, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(2048_u64)) } /// The range of component `p` is `[0, 512]`. @@ -1161,10 +1159,10 @@ impl pallet_gear::WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `1813 + p * (65580 ±0)` // Estimated: `1939 + p * (75482 ±0)` - // Minimum execution time: 105_024_000 picoseconds. - Weight::from_parts(106_386_000, 1939) - // Standard Error: 32_440 - .saturating_add(Weight::from_parts(54_183_902, 0).saturating_mul(p.into())) + // Minimum execution time: 97_101_000 picoseconds. + Weight::from_parts(99_642_000, 1939) + // Standard Error: 38_446 + .saturating_add(Weight::from_parts(59_625_042, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads((4_u64).saturating_mul(p.into()))) .saturating_add(Weight::from_parts(0, 75482).saturating_mul(p.into())) } @@ -1173,10 +1171,10 @@ impl pallet_gear::WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `141` // Estimated: `1131 + p * (9900 ±0)` - // Minimum execution time: 102_854_000 picoseconds. - Weight::from_parts(109_646_367, 1131) - // Standard Error: 70_655 - .saturating_add(Weight::from_parts(39_228_760, 0).saturating_mul(p.into())) + // Minimum execution time: 101_726_000 picoseconds. + Weight::from_parts(104_006_012, 1131) + // Standard Error: 73_331 + .saturating_add(Weight::from_parts(40_363_581, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads((4_u64).saturating_mul(p.into()))) .saturating_add(Weight::from_parts(0, 9900).saturating_mul(p.into())) } @@ -1185,10 +1183,10 @@ impl pallet_gear::WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `141` // Estimated: `1496 + p * (9883 ±2)` - // Minimum execution time: 761_606_000 picoseconds. - Weight::from_parts(762_350_763, 1496) - // Standard Error: 286_780 - .saturating_add(Weight::from_parts(50_979_584, 0).saturating_mul(p.into())) + // Minimum execution time: 671_731_000 picoseconds. + Weight::from_parts(700_428_000, 1496) + // Standard Error: 235_378 + .saturating_add(Weight::from_parts(55_804_323, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads((4_u64).saturating_mul(p.into()))) .saturating_add(Weight::from_parts(0, 9883).saturating_mul(p.into())) } @@ -1197,10 +1195,10 @@ impl pallet_gear::WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `141` // Estimated: `317931` - // Minimum execution time: 1_256_343_000 picoseconds. - Weight::from_parts(1_302_047_252, 317931) - // Standard Error: 283_008 - .saturating_add(Weight::from_parts(47_678_236, 0).saturating_mul(p.into())) + // Minimum execution time: 1_240_630_000 picoseconds. + Weight::from_parts(1_259_057_176, 317931) + // Standard Error: 261_140 + .saturating_add(Weight::from_parts(55_057_744, 0).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(128_u64)) } /// The range of component `r` is `[0, 20]`. @@ -1208,890 +1206,890 @@ impl pallet_gear::WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 4_405_000 picoseconds. - Weight::from_parts(16_352_957, 0) - // Standard Error: 351_237 - .saturating_add(Weight::from_parts(74_154_815, 0).saturating_mul(r.into())) + // Minimum execution time: 3_348_000 picoseconds. + Weight::from_parts(3_626_000, 0) + // Standard Error: 214_323 + .saturating_add(Weight::from_parts(78_486_417, 0).saturating_mul(r.into())) } /// The range of component `r` is `[50, 500]`. fn instr_i64load(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 4_441_407_000 picoseconds. - Weight::from_parts(4_242_069_387, 0) - // Standard Error: 107_408 - .saturating_add(Weight::from_parts(5_267_383, 0).saturating_mul(r.into())) + // Minimum execution time: 4_469_766_000 picoseconds. + Weight::from_parts(4_346_471_807, 0) + // Standard Error: 80_728 + .saturating_add(Weight::from_parts(4_713_314, 0).saturating_mul(r.into())) } /// The range of component `r` is `[50, 500]`. fn instr_i32load(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 4_473_808_000 picoseconds. - Weight::from_parts(4_245_461_153, 0) - // Standard Error: 115_662 - .saturating_add(Weight::from_parts(5_334_771, 0).saturating_mul(r.into())) + // Minimum execution time: 4_425_982_000 picoseconds. + Weight::from_parts(4_330_284_940, 0) + // Standard Error: 74_620 + .saturating_add(Weight::from_parts(4_628_865, 0).saturating_mul(r.into())) } /// The range of component `r` is `[50, 500]`. fn instr_i64store(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 11_011_360_000 picoseconds. - Weight::from_parts(11_931_421_315, 0) - // Standard Error: 187_701 - .saturating_add(Weight::from_parts(13_022_743, 0).saturating_mul(r.into())) + // Minimum execution time: 11_523_555_000 picoseconds. + Weight::from_parts(11_703_046_471, 0) + // Standard Error: 142_447 + .saturating_add(Weight::from_parts(10_471_668, 0).saturating_mul(r.into())) } /// The range of component `r` is `[50, 500]`. fn instr_i32store(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 10_664_214_000 picoseconds. - Weight::from_parts(11_902_396_905, 0) - // Standard Error: 182_715 - .saturating_add(Weight::from_parts(10_825_224, 0).saturating_mul(r.into())) + // Minimum execution time: 11_678_567_000 picoseconds. + Weight::from_parts(11_004_580_924, 0) + // Standard Error: 236_889 + .saturating_add(Weight::from_parts(11_641_285, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_select(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_372_000 picoseconds. - Weight::from_parts(2_477_000, 0) - // Standard Error: 7_020 - .saturating_add(Weight::from_parts(3_847_128, 0).saturating_mul(r.into())) + // Minimum execution time: 2_392_000 picoseconds. + Weight::from_parts(2_511_000, 0) + // Standard Error: 8_367 + .saturating_add(Weight::from_parts(3_799_391, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_if(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_352_000 picoseconds. - Weight::from_parts(470_151, 0) - // Standard Error: 9_768 - .saturating_add(Weight::from_parts(3_187_107, 0).saturating_mul(r.into())) + // Minimum execution time: 2_427_000 picoseconds. + Weight::from_parts(2_097_272, 0) + // Standard Error: 9_819 + .saturating_add(Weight::from_parts(3_176_824, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_br(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_328_000 picoseconds. - Weight::from_parts(3_603_744, 0) - // Standard Error: 1_310 - .saturating_add(Weight::from_parts(1_573_794, 0).saturating_mul(r.into())) + // Minimum execution time: 2_397_000 picoseconds. + Weight::from_parts(3_703_691, 0) + // Standard Error: 994 + .saturating_add(Weight::from_parts(1_561_922, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_br_if(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_406_000 picoseconds. - Weight::from_parts(2_502_000, 0) - // Standard Error: 9_218 - .saturating_add(Weight::from_parts(2_948_836, 0).saturating_mul(r.into())) + // Minimum execution time: 2_483_000 picoseconds. + Weight::from_parts(2_601_000, 0) + // Standard Error: 9_331 + .saturating_add(Weight::from_parts(2_888_581, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_br_table(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_377_000 picoseconds. - Weight::from_parts(5_774_753, 0) - // Standard Error: 20_000 - .saturating_add(Weight::from_parts(4_967_379, 0).saturating_mul(r.into())) + // Minimum execution time: 2_439_000 picoseconds. + Weight::from_parts(1_761_663, 0) + // Standard Error: 14_372 + .saturating_add(Weight::from_parts(5_100_133, 0).saturating_mul(r.into())) } /// The range of component `e` is `[1, 256]`. fn instr_br_table_per_entry(e: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 7_031_000 picoseconds. - Weight::from_parts(5_288_626, 0) - // Standard Error: 1_512 - .saturating_add(Weight::from_parts(180_398, 0).saturating_mul(e.into())) + // Minimum execution time: 7_234_000 picoseconds. + Weight::from_parts(5_492_163, 0) + // Standard Error: 1_185 + .saturating_add(Weight::from_parts(176_215, 0).saturating_mul(e.into())) } /// The range of component `r` is `[0, 50]`. fn instr_call_const(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_476_000 picoseconds. - Weight::from_parts(5_743_941, 0) - // Standard Error: 9_413 - .saturating_add(Weight::from_parts(2_620_325, 0).saturating_mul(r.into())) + // Minimum execution time: 2_491_000 picoseconds. + Weight::from_parts(5_061_503, 0) + // Standard Error: 8_350 + .saturating_add(Weight::from_parts(2_644_398, 0).saturating_mul(r.into())) } fn instr_i64const(r: u32, ) -> Weight { Weight::from_parts(0, 0) - .saturating_add(Weight::from_parts(2_620_325 - - 2_411_747, 0).saturating_mul(r.into())) + .saturating_add(Weight::from_parts(2_644_398 - + 2_438_254, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_call(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_490_000 picoseconds. - Weight::from_parts(6_164_933, 0) - // Standard Error: 13_627 - .saturating_add(Weight::from_parts(2_411_747, 0).saturating_mul(r.into())) + // Minimum execution time: 2_503_000 picoseconds. + Weight::from_parts(5_535_035, 0) + // Standard Error: 14_338 + .saturating_add(Weight::from_parts(2_438_254, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_call_indirect(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_755_000 picoseconds. - Weight::from_parts(21_073_006, 0) - // Standard Error: 27_772 - .saturating_add(Weight::from_parts(9_843_221, 0).saturating_mul(r.into())) + // Minimum execution time: 2_844_000 picoseconds. + Weight::from_parts(25_838_862, 0) + // Standard Error: 42_622 + .saturating_add(Weight::from_parts(9_686_143, 0).saturating_mul(r.into())) } /// The range of component `p` is `[0, 128]`. fn instr_call_indirect_per_param(p: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 12_641_000 picoseconds. - Weight::from_parts(3_862_091, 0) - // Standard Error: 6_388 - .saturating_add(Weight::from_parts(1_271_540, 0).saturating_mul(p.into())) + // Minimum execution time: 12_112_000 picoseconds. + Weight::from_parts(5_743_185, 0) + // Standard Error: 5_493 + .saturating_add(Weight::from_parts(1_233_796, 0).saturating_mul(p.into())) } /// The range of component `l` is `[0, 1024]`. fn instr_call_per_local(_l: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 5_445_000 picoseconds. - Weight::from_parts(5_936_643, 0) + // Minimum execution time: 5_473_000 picoseconds. + Weight::from_parts(5_937_974, 0) } /// The range of component `r` is `[0, 50]`. fn instr_local_get(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 4_780_000 picoseconds. - Weight::from_parts(5_168_488, 0) - // Standard Error: 3_624 - .saturating_add(Weight::from_parts(434_517, 0).saturating_mul(r.into())) + // Minimum execution time: 5_014_000 picoseconds. + Weight::from_parts(5_247_579, 0) + // Standard Error: 3_254 + .saturating_add(Weight::from_parts(453_803, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_local_set(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 4_903_000 picoseconds. - Weight::from_parts(4_238_955, 0) - // Standard Error: 7_038 - .saturating_add(Weight::from_parts(1_087_596, 0).saturating_mul(r.into())) + // Minimum execution time: 4_950_000 picoseconds. + Weight::from_parts(2_980_884, 0) + // Standard Error: 6_602 + .saturating_add(Weight::from_parts(1_178_313, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_local_tee(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 4_937_000 picoseconds. - Weight::from_parts(3_461_941, 0) - // Standard Error: 7_961 - .saturating_add(Weight::from_parts(1_107_695, 0).saturating_mul(r.into())) + // Minimum execution time: 4_957_000 picoseconds. + Weight::from_parts(1_255_357, 0) + // Standard Error: 11_777 + .saturating_add(Weight::from_parts(1_371_915, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_global_get(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 6_601_000 picoseconds. - Weight::from_parts(2_918_352, 0) - // Standard Error: 7_206 - .saturating_add(Weight::from_parts(827_628, 0).saturating_mul(r.into())) + // Minimum execution time: 6_526_000 picoseconds. + Weight::from_parts(2_358_200, 0) + // Standard Error: 7_803 + .saturating_add(Weight::from_parts(916_414, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_global_set(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 6_605_000 picoseconds. - Weight::from_parts(6_684_000, 0) - // Standard Error: 8_000 - .saturating_add(Weight::from_parts(1_428_490, 0).saturating_mul(r.into())) + // Minimum execution time: 6_534_000 picoseconds. + Weight::from_parts(1_078_818, 0) + // Standard Error: 8_155 + .saturating_add(Weight::from_parts(1_601_009, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_memory_current(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 7_591_000 picoseconds. - Weight::from_parts(2_772_486, 0) - // Standard Error: 13_130 - .saturating_add(Weight::from_parts(7_127_049, 0).saturating_mul(r.into())) + // Minimum execution time: 6_292_000 picoseconds. + Weight::from_parts(2_896_295, 0) + // Standard Error: 9_977 + .saturating_add(Weight::from_parts(7_220_458, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64clz(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_376_000 picoseconds. - Weight::from_parts(2_431_000, 0) - // Standard Error: 6_471 - .saturating_add(Weight::from_parts(3_416_623, 0).saturating_mul(r.into())) + // Minimum execution time: 2_413_000 picoseconds. + Weight::from_parts(2_490_000, 0) + // Standard Error: 6_167 + .saturating_add(Weight::from_parts(3_365_545, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32clz(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_367_000 picoseconds. - Weight::from_parts(2_481_000, 0) - // Standard Error: 4_834 - .saturating_add(Weight::from_parts(3_141_274, 0).saturating_mul(r.into())) + // Minimum execution time: 2_400_000 picoseconds. + Weight::from_parts(2_502_000, 0) + // Standard Error: 5_525 + .saturating_add(Weight::from_parts(3_090_577, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64ctz(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_414_000 picoseconds. - Weight::from_parts(2_479_000, 0) - // Standard Error: 5_384 - .saturating_add(Weight::from_parts(3_162_450, 0).saturating_mul(r.into())) + // Minimum execution time: 2_462_000 picoseconds. + Weight::from_parts(2_568_000, 0) + // Standard Error: 5_417 + .saturating_add(Weight::from_parts(3_118_601, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32ctz(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_481_000 picoseconds. - Weight::from_parts(2_534_000, 0) - // Standard Error: 5_851 - .saturating_add(Weight::from_parts(2_742_009, 0).saturating_mul(r.into())) + // Minimum execution time: 2_358_000 picoseconds. + Weight::from_parts(2_499_000, 0) + // Standard Error: 4_982 + .saturating_add(Weight::from_parts(2_770_061, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64popcnt(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_444_000 picoseconds. - Weight::from_parts(2_522_000, 0) - // Standard Error: 5_551 - .saturating_add(Weight::from_parts(650_966, 0).saturating_mul(r.into())) + // Minimum execution time: 2_503_000 picoseconds. + Weight::from_parts(2_564_000, 0) + // Standard Error: 4_969 + .saturating_add(Weight::from_parts(704_388, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32popcnt(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_476_000 picoseconds. - Weight::from_parts(627_113, 0) - // Standard Error: 6_633 - .saturating_add(Weight::from_parts(527_272, 0).saturating_mul(r.into())) + // Minimum execution time: 2_459_000 picoseconds. + Weight::from_parts(191_200, 0) + // Standard Error: 6_017 + .saturating_add(Weight::from_parts(562_742, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64eqz(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_415_000 picoseconds. - Weight::from_parts(2_511_000, 0) - // Standard Error: 10_855 - .saturating_add(Weight::from_parts(1_987_179, 0).saturating_mul(r.into())) + // Minimum execution time: 2_444_000 picoseconds. + Weight::from_parts(2_497_000, 0) + // Standard Error: 7_924 + .saturating_add(Weight::from_parts(1_968_376, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32eqz(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_374_000 picoseconds. - Weight::from_parts(2_523_000, 0) - // Standard Error: 8_639 - .saturating_add(Weight::from_parts(1_265_345, 0).saturating_mul(r.into())) + // Minimum execution time: 2_446_000 picoseconds. + Weight::from_parts(2_473_000, 0) + // Standard Error: 7_912 + .saturating_add(Weight::from_parts(1_346_364, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32extend8s(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_385_000 picoseconds. - Weight::from_parts(1_218_539, 0) - // Standard Error: 5_119 - .saturating_add(Weight::from_parts(443_968, 0).saturating_mul(r.into())) + // Minimum execution time: 2_464_000 picoseconds. + Weight::from_parts(83_668, 0) + // Standard Error: 7_204 + .saturating_add(Weight::from_parts(543_317, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32extend16s(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_408_000 picoseconds. - Weight::from_parts(1_419_491, 0) - // Standard Error: 3_971 - .saturating_add(Weight::from_parts(429_566, 0).saturating_mul(r.into())) + // Minimum execution time: 2_493_000 picoseconds. + Weight::from_parts(197_096, 0) + // Standard Error: 6_608 + .saturating_add(Weight::from_parts(525_360, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64extend8s(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_442_000 picoseconds. - Weight::from_parts(2_534_000, 0) - // Standard Error: 5_488 - .saturating_add(Weight::from_parts(626_359, 0).saturating_mul(r.into())) + // Minimum execution time: 2_472_000 picoseconds. + Weight::from_parts(2_551_000, 0) + // Standard Error: 5_207 + .saturating_add(Weight::from_parts(642_915, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64extend16s(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_383_000 picoseconds. - Weight::from_parts(267_997, 0) - // Standard Error: 6_829 - .saturating_add(Weight::from_parts(639_304, 0).saturating_mul(r.into())) + // Minimum execution time: 2_505_000 picoseconds. + Weight::from_parts(2_556_000, 0) + // Standard Error: 4_430 + .saturating_add(Weight::from_parts(640_970, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64extend32s(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_336_000 picoseconds. - Weight::from_parts(2_524_000, 0) - // Standard Error: 4_090 - .saturating_add(Weight::from_parts(515_493, 0).saturating_mul(r.into())) + // Minimum execution time: 2_399_000 picoseconds. + Weight::from_parts(2_530_000, 0) + // Standard Error: 4_248 + .saturating_add(Weight::from_parts(574_179, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64extendsi32(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_419_000 picoseconds. - Weight::from_parts(1_479_176, 0) - // Standard Error: 4_590 - .saturating_add(Weight::from_parts(393_408, 0).saturating_mul(r.into())) + // Minimum execution time: 2_467_000 picoseconds. + Weight::from_parts(1_554_632, 0) + // Standard Error: 4_096 + .saturating_add(Weight::from_parts(386_240, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64extendui32(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_404_000 picoseconds. - Weight::from_parts(2_886_191, 0) - // Standard Error: 2_108 - .saturating_add(Weight::from_parts(180_952, 0).saturating_mul(r.into())) + // Minimum execution time: 2_468_000 picoseconds. + Weight::from_parts(3_011_768, 0) + // Standard Error: 1_923 + .saturating_add(Weight::from_parts(160_611, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32wrapi64(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_423_000 picoseconds. - Weight::from_parts(2_587_480, 0) - // Standard Error: 2_350 - .saturating_add(Weight::from_parts(202_312, 0).saturating_mul(r.into())) + // Minimum execution time: 2_464_000 picoseconds. + Weight::from_parts(2_856_296, 0) + // Standard Error: 2_574 + .saturating_add(Weight::from_parts(173_194, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64eq(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_457_000 picoseconds. - Weight::from_parts(2_558_000, 0) - // Standard Error: 9_756 - .saturating_add(Weight::from_parts(1_914_693, 0).saturating_mul(r.into())) + // Minimum execution time: 2_448_000 picoseconds. + Weight::from_parts(2_540_000, 0) + // Standard Error: 8_614 + .saturating_add(Weight::from_parts(1_773_707, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32eq(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_431_000 picoseconds. - Weight::from_parts(2_481_000, 0) - // Standard Error: 8_683 - .saturating_add(Weight::from_parts(1_235_014, 0).saturating_mul(r.into())) + // Minimum execution time: 2_456_000 picoseconds. + Weight::from_parts(2_568_000, 0) + // Standard Error: 6_895 + .saturating_add(Weight::from_parts(1_129_796, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64ne(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_418_000 picoseconds. - Weight::from_parts(2_533_000, 0) - // Standard Error: 9_762 - .saturating_add(Weight::from_parts(1_952_043, 0).saturating_mul(r.into())) + // Minimum execution time: 2_432_000 picoseconds. + Weight::from_parts(2_552_000, 0) + // Standard Error: 8_855 + .saturating_add(Weight::from_parts(1_781_383, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32ne(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_444_000 picoseconds. - Weight::from_parts(2_542_000, 0) - // Standard Error: 8_692 - .saturating_add(Weight::from_parts(1_240_320, 0).saturating_mul(r.into())) + // Minimum execution time: 2_433_000 picoseconds. + Weight::from_parts(2_561_000, 0) + // Standard Error: 8_930 + .saturating_add(Weight::from_parts(1_299_565, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64lts(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_415_000 picoseconds. - Weight::from_parts(2_535_000, 0) - // Standard Error: 10_660 - .saturating_add(Weight::from_parts(1_944_040, 0).saturating_mul(r.into())) + // Minimum execution time: 2_458_000 picoseconds. + Weight::from_parts(2_509_000, 0) + // Standard Error: 7_370 + .saturating_add(Weight::from_parts(1_912_177, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32lts(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_365_000 picoseconds. - Weight::from_parts(2_469_000, 0) - // Standard Error: 7_760 - .saturating_add(Weight::from_parts(1_232_925, 0).saturating_mul(r.into())) + // Minimum execution time: 2_375_000 picoseconds. + Weight::from_parts(2_509_000, 0) + // Standard Error: 7_609 + .saturating_add(Weight::from_parts(1_318_072, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64ltu(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_445_000 picoseconds. - Weight::from_parts(2_496_000, 0) - // Standard Error: 10_669 - .saturating_add(Weight::from_parts(1_917_582, 0).saturating_mul(r.into())) + // Minimum execution time: 2_438_000 picoseconds. + Weight::from_parts(2_532_000, 0) + // Standard Error: 7_147 + .saturating_add(Weight::from_parts(1_902_313, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32ltu(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_393_000 picoseconds. - Weight::from_parts(2_455_000, 0) - // Standard Error: 8_096 - .saturating_add(Weight::from_parts(1_210_306, 0).saturating_mul(r.into())) + // Minimum execution time: 2_369_000 picoseconds. + Weight::from_parts(2_420_000, 0) + // Standard Error: 7_127 + .saturating_add(Weight::from_parts(1_269_528, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64gts(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_351_000 picoseconds. - Weight::from_parts(2_463_000, 0) - // Standard Error: 10_885 - .saturating_add(Weight::from_parts(1_890_425, 0).saturating_mul(r.into())) + // Minimum execution time: 2_497_000 picoseconds. + Weight::from_parts(2_552_000, 0) + // Standard Error: 9_809 + .saturating_add(Weight::from_parts(1_858_855, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32gts(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_460_000 picoseconds. - Weight::from_parts(2_542_000, 0) - // Standard Error: 9_229 - .saturating_add(Weight::from_parts(1_236_149, 0).saturating_mul(r.into())) + // Minimum execution time: 2_437_000 picoseconds. + Weight::from_parts(2_522_000, 0) + // Standard Error: 9_811 + .saturating_add(Weight::from_parts(1_226_193, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64gtu(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_438_000 picoseconds. - Weight::from_parts(2_519_000, 0) - // Standard Error: 10_023 - .saturating_add(Weight::from_parts(1_937_593, 0).saturating_mul(r.into())) + // Minimum execution time: 2_448_000 picoseconds. + Weight::from_parts(2_500_000, 0) + // Standard Error: 7_568 + .saturating_add(Weight::from_parts(1_955_726, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32gtu(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_414_000 picoseconds. - Weight::from_parts(2_509_000, 0) - // Standard Error: 8_360 - .saturating_add(Weight::from_parts(1_234_039, 0).saturating_mul(r.into())) + // Minimum execution time: 2_441_000 picoseconds. + Weight::from_parts(2_515_000, 0) + // Standard Error: 7_599 + .saturating_add(Weight::from_parts(1_311_184, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64les(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_354_000 picoseconds. - Weight::from_parts(2_409_000, 0) - // Standard Error: 10_328 - .saturating_add(Weight::from_parts(1_926_867, 0).saturating_mul(r.into())) + // Minimum execution time: 2_406_000 picoseconds. + Weight::from_parts(2_526_000, 0) + // Standard Error: 7_978 + .saturating_add(Weight::from_parts(1_934_575, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32les(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_404_000 picoseconds. - Weight::from_parts(2_498_000, 0) - // Standard Error: 6_744 - .saturating_add(Weight::from_parts(1_201_302, 0).saturating_mul(r.into())) + // Minimum execution time: 2_454_000 picoseconds. + Weight::from_parts(2_579_000, 0) + // Standard Error: 7_835 + .saturating_add(Weight::from_parts(1_361_324, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64leu(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_410_000 picoseconds. - Weight::from_parts(2_483_000, 0) - // Standard Error: 9_487 - .saturating_add(Weight::from_parts(1_900_378, 0).saturating_mul(r.into())) + // Minimum execution time: 2_419_000 picoseconds. + Weight::from_parts(2_576_000, 0) + // Standard Error: 7_250 + .saturating_add(Weight::from_parts(1_910_453, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32leu(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_387_000 picoseconds. - Weight::from_parts(2_459_000, 0) - // Standard Error: 7_524 - .saturating_add(Weight::from_parts(1_246_740, 0).saturating_mul(r.into())) + // Minimum execution time: 2_447_000 picoseconds. + Weight::from_parts(2_481_000, 0) + // Standard Error: 7_289 + .saturating_add(Weight::from_parts(1_319_827, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64ges(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_452_000 picoseconds. - Weight::from_parts(2_532_000, 0) - // Standard Error: 9_466 - .saturating_add(Weight::from_parts(1_877_147, 0).saturating_mul(r.into())) + // Minimum execution time: 2_416_000 picoseconds. + Weight::from_parts(2_513_000, 0) + // Standard Error: 9_075 + .saturating_add(Weight::from_parts(1_885_122, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32ges(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_374_000 picoseconds. - Weight::from_parts(2_541_000, 0) - // Standard Error: 8_268 - .saturating_add(Weight::from_parts(1_218_632, 0).saturating_mul(r.into())) + // Minimum execution time: 2_464_000 picoseconds. + Weight::from_parts(2_548_000, 0) + // Standard Error: 6_211 + .saturating_add(Weight::from_parts(1_137_406, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64geu(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_393_000 picoseconds. - Weight::from_parts(2_485_000, 0) - // Standard Error: 9_288 - .saturating_add(Weight::from_parts(1_892_308, 0).saturating_mul(r.into())) + // Minimum execution time: 2_504_000 picoseconds. + Weight::from_parts(2_541_000, 0) + // Standard Error: 9_758 + .saturating_add(Weight::from_parts(1_796_339, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32geu(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_416_000 picoseconds. - Weight::from_parts(2_490_000, 0) - // Standard Error: 7_514 - .saturating_add(Weight::from_parts(1_221_546, 0).saturating_mul(r.into())) + // Minimum execution time: 2_506_000 picoseconds. + Weight::from_parts(2_560_000, 0) + // Standard Error: 9_133 + .saturating_add(Weight::from_parts(1_357_535, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64add(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_396_000 picoseconds. - Weight::from_parts(2_479_000, 0) - // Standard Error: 8_638 - .saturating_add(Weight::from_parts(1_370_587, 0).saturating_mul(r.into())) + // Minimum execution time: 2_367_000 picoseconds. + Weight::from_parts(2_480_000, 0) + // Standard Error: 8_359 + .saturating_add(Weight::from_parts(1_478_633, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32add(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_364_000 picoseconds. - Weight::from_parts(2_433_000, 0) - // Standard Error: 7_144 - .saturating_add(Weight::from_parts(740_923, 0).saturating_mul(r.into())) + // Minimum execution time: 2_452_000 picoseconds. + Weight::from_parts(2_541_000, 0) + // Standard Error: 6_517 + .saturating_add(Weight::from_parts(796_336, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64sub(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_409_000 picoseconds. - Weight::from_parts(2_490_000, 0) - // Standard Error: 7_493 - .saturating_add(Weight::from_parts(1_344_150, 0).saturating_mul(r.into())) + // Minimum execution time: 2_533_000 picoseconds. + Weight::from_parts(2_581_000, 0) + // Standard Error: 8_508 + .saturating_add(Weight::from_parts(1_464_442, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32sub(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_332_000 picoseconds. - Weight::from_parts(2_408_000, 0) - // Standard Error: 5_062 - .saturating_add(Weight::from_parts(682_810, 0).saturating_mul(r.into())) + // Minimum execution time: 2_458_000 picoseconds. + Weight::from_parts(2_555_000, 0) + // Standard Error: 6_791 + .saturating_add(Weight::from_parts(786_844, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64mul(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_357_000 picoseconds. - Weight::from_parts(2_429_000, 0) - // Standard Error: 8_825 - .saturating_add(Weight::from_parts(1_852_934, 0).saturating_mul(r.into())) + // Minimum execution time: 2_538_000 picoseconds. + Weight::from_parts(2_568_000, 0) + // Standard Error: 7_582 + .saturating_add(Weight::from_parts(1_877_594, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32mul(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_379_000 picoseconds. - Weight::from_parts(2_477_000, 0) - // Standard Error: 7_950 - .saturating_add(Weight::from_parts(1_310_475, 0).saturating_mul(r.into())) + // Minimum execution time: 2_467_000 picoseconds. + Weight::from_parts(2_564_000, 0) + // Standard Error: 7_649 + .saturating_add(Weight::from_parts(1_374_403, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64divs(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_486_000 picoseconds. - Weight::from_parts(7_409_149, 0) - // Standard Error: 23_280 - .saturating_add(Weight::from_parts(2_380_599, 0).saturating_mul(r.into())) + // Minimum execution time: 2_417_000 picoseconds. + Weight::from_parts(13_577_124, 0) + // Standard Error: 24_454 + .saturating_add(Weight::from_parts(1_848_524, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32divs(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_354_000 picoseconds. - Weight::from_parts(3_985_947, 0) - // Standard Error: 17_253 - .saturating_add(Weight::from_parts(2_308_046, 0).saturating_mul(r.into())) + // Minimum execution time: 2_448_000 picoseconds. + Weight::from_parts(8_056_015, 0) + // Standard Error: 18_230 + .saturating_add(Weight::from_parts(1_998_870, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64divu(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_428_000 picoseconds. - Weight::from_parts(5_185_413, 0) - // Standard Error: 23_626 - .saturating_add(Weight::from_parts(2_773_914, 0).saturating_mul(r.into())) + // Minimum execution time: 2_501_000 picoseconds. + Weight::from_parts(6_359_851, 0) + // Standard Error: 24_959 + .saturating_add(Weight::from_parts(2_532_087, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32divu(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_429_000 picoseconds. - Weight::from_parts(1_762_312, 0) - // Standard Error: 13_137 - .saturating_add(Weight::from_parts(2_479_857, 0).saturating_mul(r.into())) + // Minimum execution time: 2_465_000 picoseconds. + Weight::from_parts(3_211_947, 0) + // Standard Error: 12_549 + .saturating_add(Weight::from_parts(2_290_659, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64rems(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_409_000 picoseconds. - Weight::from_parts(6_183_774, 0) - // Standard Error: 38_390 - .saturating_add(Weight::from_parts(9_036_753, 0).saturating_mul(r.into())) + // Minimum execution time: 2_416_000 picoseconds. + Weight::from_parts(2_484_000, 0) + // Standard Error: 14_396 + .saturating_add(Weight::from_parts(9_501_882, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32rems(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_365_000 picoseconds. - Weight::from_parts(4_139_889, 0) - // Standard Error: 41_118 - .saturating_add(Weight::from_parts(7_440_928, 0).saturating_mul(r.into())) + // Minimum execution time: 2_551_000 picoseconds. + Weight::from_parts(2_786_324, 0) + // Standard Error: 42_129 + .saturating_add(Weight::from_parts(7_363_990, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64remu(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_381_000 picoseconds. - Weight::from_parts(6_243_134, 0) - // Standard Error: 22_183 - .saturating_add(Weight::from_parts(2_805_045, 0).saturating_mul(r.into())) + // Minimum execution time: 2_444_000 picoseconds. + Weight::from_parts(11_631_140, 0) + // Standard Error: 29_415 + .saturating_add(Weight::from_parts(2_239_863, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32remu(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_235_000 picoseconds. - Weight::from_parts(3_471_941, 0) - // Standard Error: 17_840 - .saturating_add(Weight::from_parts(2_399_950, 0).saturating_mul(r.into())) + // Minimum execution time: 2_722_000 picoseconds. + Weight::from_parts(8_602_177, 0) + // Standard Error: 23_181 + .saturating_add(Weight::from_parts(2_039_962, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64and(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_386_000 picoseconds. - Weight::from_parts(2_442_000, 0) - // Standard Error: 9_450 - .saturating_add(Weight::from_parts(1_363_334, 0).saturating_mul(r.into())) + // Minimum execution time: 2_417_000 picoseconds. + Weight::from_parts(2_553_000, 0) + // Standard Error: 7_930 + .saturating_add(Weight::from_parts(1_480_355, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32and(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_344_000 picoseconds. - Weight::from_parts(2_515_000, 0) - // Standard Error: 5_086 - .saturating_add(Weight::from_parts(682_806, 0).saturating_mul(r.into())) + // Minimum execution time: 2_411_000 picoseconds. + Weight::from_parts(2_496_000, 0) + // Standard Error: 6_547 + .saturating_add(Weight::from_parts(804_477, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64or(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_426_000 picoseconds. - Weight::from_parts(2_542_000, 0) - // Standard Error: 9_043 - .saturating_add(Weight::from_parts(1_383_826, 0).saturating_mul(r.into())) + // Minimum execution time: 2_506_000 picoseconds. + Weight::from_parts(2_577_000, 0) + // Standard Error: 8_009 + .saturating_add(Weight::from_parts(1_437_777, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32or(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_462_000 picoseconds. - Weight::from_parts(2_534_000, 0) - // Standard Error: 5_704 - .saturating_add(Weight::from_parts(687_779, 0).saturating_mul(r.into())) + // Minimum execution time: 2_310_000 picoseconds. + Weight::from_parts(2_424_000, 0) + // Standard Error: 4_869 + .saturating_add(Weight::from_parts(684_646, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64xor(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_386_000 picoseconds. - Weight::from_parts(2_437_000, 0) - // Standard Error: 7_683 - .saturating_add(Weight::from_parts(1_343_755, 0).saturating_mul(r.into())) + // Minimum execution time: 2_441_000 picoseconds. + Weight::from_parts(2_497_000, 0) + // Standard Error: 10_084 + .saturating_add(Weight::from_parts(1_349_015, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32xor(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_376_000 picoseconds. - Weight::from_parts(2_482_000, 0) - // Standard Error: 4_933 - .saturating_add(Weight::from_parts(708_732, 0).saturating_mul(r.into())) + // Minimum execution time: 2_464_000 picoseconds. + Weight::from_parts(2_574_000, 0) + // Standard Error: 7_421 + .saturating_add(Weight::from_parts(789_933, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64shl(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_449_000 picoseconds. - Weight::from_parts(2_532_000, 0) - // Standard Error: 6_389 - .saturating_add(Weight::from_parts(1_180_854, 0).saturating_mul(r.into())) + // Minimum execution time: 2_466_000 picoseconds. + Weight::from_parts(2_541_000, 0) + // Standard Error: 8_551 + .saturating_add(Weight::from_parts(1_311_103, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32shl(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_349_000 picoseconds. - Weight::from_parts(2_425_000, 0) - // Standard Error: 4_313 - .saturating_add(Weight::from_parts(633_941, 0).saturating_mul(r.into())) + // Minimum execution time: 2_480_000 picoseconds. + Weight::from_parts(2_547_000, 0) + // Standard Error: 6_237 + .saturating_add(Weight::from_parts(740_808, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64shrs(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_467_000 picoseconds. - Weight::from_parts(2_512_000, 0) - // Standard Error: 8_780 - .saturating_add(Weight::from_parts(1_192_503, 0).saturating_mul(r.into())) + // Minimum execution time: 2_451_000 picoseconds. + Weight::from_parts(2_482_000, 0) + // Standard Error: 8_019 + .saturating_add(Weight::from_parts(1_301_680, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32shrs(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_527_000 picoseconds. - Weight::from_parts(2_588_000, 0) - // Standard Error: 4_176 - .saturating_add(Weight::from_parts(593_049, 0).saturating_mul(r.into())) + // Minimum execution time: 2_479_000 picoseconds. + Weight::from_parts(2_560_000, 0) + // Standard Error: 4_542 + .saturating_add(Weight::from_parts(651_494, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64shru(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_415_000 picoseconds. - Weight::from_parts(2_530_000, 0) - // Standard Error: 7_794 - .saturating_add(Weight::from_parts(1_154_673, 0).saturating_mul(r.into())) + // Minimum execution time: 2_437_000 picoseconds. + Weight::from_parts(2_539_000, 0) + // Standard Error: 6_578 + .saturating_add(Weight::from_parts(1_103_078, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32shru(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_440_000 picoseconds. - Weight::from_parts(2_524_000, 0) - // Standard Error: 5_453 - .saturating_add(Weight::from_parts(633_003, 0).saturating_mul(r.into())) + // Minimum execution time: 2_510_000 picoseconds. + Weight::from_parts(2_566_000, 0) + // Standard Error: 5_804 + .saturating_add(Weight::from_parts(608_889, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64rotl(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_341_000 picoseconds. - Weight::from_parts(2_378_000, 0) - // Standard Error: 8_555 - .saturating_add(Weight::from_parts(1_196_751, 0).saturating_mul(r.into())) + // Minimum execution time: 2_403_000 picoseconds. + Weight::from_parts(2_494_000, 0) + // Standard Error: 7_647 + .saturating_add(Weight::from_parts(1_279_714, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32rotl(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_395_000 picoseconds. - Weight::from_parts(2_496_000, 0) - // Standard Error: 4_682 - .saturating_add(Weight::from_parts(627_173, 0).saturating_mul(r.into())) + // Minimum execution time: 2_489_000 picoseconds. + Weight::from_parts(2_549_000, 0) + // Standard Error: 5_933 + .saturating_add(Weight::from_parts(710_512, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64rotr(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_380_000 picoseconds. - Weight::from_parts(2_444_000, 0) - // Standard Error: 7_964 - .saturating_add(Weight::from_parts(1_141_337, 0).saturating_mul(r.into())) + // Minimum execution time: 2_463_000 picoseconds. + Weight::from_parts(2_573_000, 0) + // Standard Error: 7_876 + .saturating_add(Weight::from_parts(1_291_902, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32rotr(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_442_000 picoseconds. - Weight::from_parts(2_531_000, 0) - // Standard Error: 5_193 - .saturating_add(Weight::from_parts(628_586, 0).saturating_mul(r.into())) + // Minimum execution time: 2_394_000 picoseconds. + Weight::from_parts(2_513_000, 0) + // Standard Error: 5_878 + .saturating_add(Weight::from_parts(722_117, 0).saturating_mul(r.into())) } fn tasks_remove_resume_session() -> Weight { // Proof Size summary in bytes: // Measured: `352` // Estimated: `4169` - // Minimum execution time: 5_990_000 picoseconds. - Weight::from_parts(6_384_000, 4169) + // Minimum execution time: 5_941_000 picoseconds. + Weight::from_parts(6_194_000, 4169) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -2099,8 +2097,8 @@ impl pallet_gear::WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `1107` // Estimated: `24053` - // Minimum execution time: 64_318_000 picoseconds. - Weight::from_parts(67_713_000, 24053) + // Minimum execution time: 63_669_000 picoseconds. + Weight::from_parts(71_431_000, 24053) .saturating_add(T::DbWeight::get().reads(7_u64)) .saturating_add(T::DbWeight::get().writes(6_u64)) } @@ -2108,8 +2106,8 @@ impl pallet_gear::WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `888` // Estimated: `22158` - // Minimum execution time: 50_396_000 picoseconds. - Weight::from_parts(57_319_000, 22158) + // Minimum execution time: 47_776_000 picoseconds. + Weight::from_parts(49_097_000, 22158) .saturating_add(T::DbWeight::get().reads(6_u64)) .saturating_add(T::DbWeight::get().writes(5_u64)) } @@ -2117,8 +2115,8 @@ impl pallet_gear::WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `1010` // Estimated: `34619` - // Minimum execution time: 81_192_000 picoseconds. - Weight::from_parts(110_464_000, 34619) + // Minimum execution time: 76_569_000 picoseconds. + Weight::from_parts(80_956_000, 34619) .saturating_add(T::DbWeight::get().reads(11_u64)) .saturating_add(T::DbWeight::get().writes(10_u64)) } @@ -2126,8 +2124,8 @@ impl pallet_gear::WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `695` // Estimated: `20509` - // Minimum execution time: 33_549_000 picoseconds. - Weight::from_parts(35_457_000, 20509) + // Minimum execution time: 33_298_000 picoseconds. + Weight::from_parts(34_390_000, 20509) .saturating_add(T::DbWeight::get().reads(7_u64)) .saturating_add(T::DbWeight::get().writes(6_u64)) } @@ -2135,8 +2133,8 @@ impl pallet_gear::WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `976` // Estimated: `26636` - // Minimum execution time: 53_062_000 picoseconds. - Weight::from_parts(55_913_000, 26636) + // Minimum execution time: 51_224_000 picoseconds. + Weight::from_parts(54_016_000, 26636) .saturating_add(T::DbWeight::get().reads(8_u64)) .saturating_add(T::DbWeight::get().writes(6_u64)) } @@ -2144,16 +2142,16 @@ impl pallet_gear::WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `80` // Estimated: `3545` - // Minimum execution time: 3_544_000 picoseconds. - Weight::from_parts(3_797_000, 3545) + // Minimum execution time: 3_502_000 picoseconds. + Weight::from_parts(3_736_000, 3545) .saturating_add(T::DbWeight::get().reads(1_u64)) } fn tasks_remove_from_waitlist() -> Weight { // Proof Size summary in bytes: // Measured: `1626` // Estimated: `58232` - // Minimum execution time: 119_636_000 picoseconds. - Weight::from_parts(122_812_000, 58232) + // Minimum execution time: 116_554_000 picoseconds. + Weight::from_parts(120_965_000, 58232) .saturating_add(T::DbWeight::get().reads(16_u64)) .saturating_add(T::DbWeight::get().writes(13_u64)) } @@ -2161,8 +2159,8 @@ impl pallet_gear::WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `1332` // Estimated: `46962` - // Minimum execution time: 94_503_000 picoseconds. - Weight::from_parts(98_976_000, 46962) + // Minimum execution time: 91_297_000 picoseconds. + Weight::from_parts(98_825_000, 46962) .saturating_add(T::DbWeight::get().reads(14_u64)) .saturating_add(T::DbWeight::get().writes(13_u64)) } @@ -2171,10 +2169,10 @@ impl pallet_gear::WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `2303 + c * (16400 ±0)` // Estimated: `19878 + c * (84480 ±0)` - // Minimum execution time: 31_538_000 picoseconds. - Weight::from_parts(32_681_000, 19878) - // Standard Error: 71_008 - .saturating_add(Weight::from_parts(39_112_947, 0).saturating_mul(c.into())) + // Minimum execution time: 30_995_000 picoseconds. + Weight::from_parts(31_512_000, 19878) + // Standard Error: 83_380 + .saturating_add(Weight::from_parts(39_172_227, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(c.into()))) .saturating_add(T::DbWeight::get().writes(2_u64)) @@ -2184,12 +2182,12 @@ impl pallet_gear::WeightInfo for SubstrateWeight { /// The range of component `c` is `[0, 2044]`. fn tasks_pause_program_uninited(c: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `3129 + c * (42 ±0)` - // Estimated: `60575 + c * (2947 ±0)` - // Minimum execution time: 91_887_000 picoseconds. - Weight::from_parts(87_209_551, 60575) - // Standard Error: 2_248 - .saturating_add(Weight::from_parts(1_083_157, 0).saturating_mul(c.into())) + // Measured: `3181 + c * (42 ±0)` + // Estimated: `61147 + c * (2947 ±0)` + // Minimum execution time: 92_674_000 picoseconds. + Weight::from_parts(116_875_856, 61147) + // Standard Error: 2_740 + .saturating_add(Weight::from_parts(1_037_041, 0).saturating_mul(c.into())) .saturating_add(T::DbWeight::get().reads(13_u64)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(c.into()))) .saturating_add(T::DbWeight::get().writes(9_u64)) @@ -2205,130 +2203,130 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 94_967_000 picoseconds. - Weight::from_parts(100_769_202, 0) - // Standard Error: 78_239 - .saturating_add(Weight::from_parts(21_623_874, 0).saturating_mul(r.into())) + // Minimum execution time: 100_290_000 picoseconds. + Weight::from_parts(107_714_130, 0) + // Standard Error: 87_424 + .saturating_add(Weight::from_parts(17_565_908, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 1]`. fn gr_reply_wgas(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 96_625_000 picoseconds. - Weight::from_parts(103_100_672, 0) - // Standard Error: 79_915 - .saturating_add(Weight::from_parts(18_339_856, 0).saturating_mul(r.into())) + // Minimum execution time: 96_276_000 picoseconds. + Weight::from_parts(102_418_204, 0) + // Standard Error: 80_308 + .saturating_add(Weight::from_parts(18_444_560, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 1]`. fn gr_reply_commit(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 95_620_000 picoseconds. - Weight::from_parts(102_660_230, 0) - // Standard Error: 81_604 - .saturating_add(Weight::from_parts(18_180_584, 0).saturating_mul(r.into())) + // Minimum execution time: 96_679_000 picoseconds. + Weight::from_parts(103_850_060, 0) + // Standard Error: 87_584 + .saturating_add(Weight::from_parts(16_340_788, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 1]`. fn gr_reply_commit_wgas(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 95_037_000 picoseconds. - Weight::from_parts(101_912_864, 0) - // Standard Error: 84_108 - .saturating_add(Weight::from_parts(20_742_928, 0).saturating_mul(r.into())) + // Minimum execution time: 96_806_000 picoseconds. + Weight::from_parts(103_474_258, 0) + // Standard Error: 89_955 + .saturating_add(Weight::from_parts(16_614_218, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 1]`. fn gr_reply_input(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 716_479_000 picoseconds. - Weight::from_parts(752_477_538, 0) - // Standard Error: 630_784 - .saturating_add(Weight::from_parts(22_929_588, 0).saturating_mul(r.into())) + // Minimum execution time: 606_431_000 picoseconds. + Weight::from_parts(662_494_234, 0) + // Standard Error: 761_483 + .saturating_add(Weight::from_parts(25_620_440, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 1]`. fn gr_reply_input_wgas(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 726_949_000 picoseconds. - Weight::from_parts(774_347_474, 0) - // Standard Error: 902_271 - .saturating_add(Weight::from_parts(17_273_758, 0).saturating_mul(r.into())) + // Minimum execution time: 595_892_000 picoseconds. + Weight::from_parts(674_093_114, 0) + // Standard Error: 1_066_086 + .saturating_add(Weight::from_parts(23_822_444, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 1]`. fn gr_reservation_reply(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 103_653_000 picoseconds. - Weight::from_parts(110_681_190, 0) - // Standard Error: 90_520 - .saturating_add(Weight::from_parts(12_801_500, 0).saturating_mul(r.into())) + // Minimum execution time: 105_460_000 picoseconds. + Weight::from_parts(112_708_968, 0) + // Standard Error: 92_535 + .saturating_add(Weight::from_parts(11_120_936, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 1]`. fn gr_reservation_reply_commit(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 105_389_000 picoseconds. - Weight::from_parts(113_272_838, 0) - // Standard Error: 89_344 - .saturating_add(Weight::from_parts(5_340_718, 0).saturating_mul(r.into())) + // Minimum execution time: 109_465_000 picoseconds. + Weight::from_parts(117_255_480, 0) + // Standard Error: 96_440 + .saturating_add(Weight::from_parts(6_716_962, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 1]`. fn gr_exit(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 96_868_000 picoseconds. - Weight::from_parts(104_048_366, 0) - // Standard Error: 2_216_528 - .saturating_add(Weight::from_parts(541_182_376, 0).saturating_mul(r.into())) + // Minimum execution time: 97_445_000 picoseconds. + Weight::from_parts(104_500_586, 0) + // Standard Error: 1_641_842 + .saturating_add(Weight::from_parts(503_314_880, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 1]`. fn gr_leave(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 94_494_000 picoseconds. - Weight::from_parts(103_419_240, 0) - // Standard Error: 2_066_261 - .saturating_add(Weight::from_parts(536_063_286, 0).saturating_mul(r.into())) + // Minimum execution time: 98_181_000 picoseconds. + Weight::from_parts(105_227_918, 0) + // Standard Error: 2_343_026 + .saturating_add(Weight::from_parts(426_477_654, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 1]`. fn gr_wait(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 96_167_000 picoseconds. - Weight::from_parts(103_413_378, 0) - // Standard Error: 2_011_359 - .saturating_add(Weight::from_parts(519_142_196, 0).saturating_mul(r.into())) + // Minimum execution time: 95_585_000 picoseconds. + Weight::from_parts(102_197_814, 0) + // Standard Error: 1_411_445 + .saturating_add(Weight::from_parts(465_536_900, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 1]`. fn gr_wait_for(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 93_437_000 picoseconds. - Weight::from_parts(100_205_340, 0) - // Standard Error: 2_405_150 - .saturating_add(Weight::from_parts(547_275_968, 0).saturating_mul(r.into())) + // Minimum execution time: 95_297_000 picoseconds. + Weight::from_parts(101_445_166, 0) + // Standard Error: 2_227_511 + .saturating_add(Weight::from_parts(421_267_332, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 1]`. fn gr_wait_up_to(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 95_803_000 picoseconds. - Weight::from_parts(102_665_234, 0) - // Standard Error: 2_225_197 - .saturating_add(Weight::from_parts(553_575_546, 0).saturating_mul(r.into())) + // Minimum execution time: 94_815_000 picoseconds. + Weight::from_parts(101_957_812, 0) + // Standard Error: 1_462_209 + .saturating_add(Weight::from_parts(480_126_430, 0).saturating_mul(r.into())) } fn allocation_cost() -> Weight { // To be changed with the proper value. @@ -2349,10 +2347,10 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 976_000 picoseconds. - Weight::from_parts(1_072_000, 0) - // Standard Error: 699 - .saturating_add(Weight::from_parts(245_833, 0).saturating_mul(c.into())) + // Minimum execution time: 1_019_000 picoseconds. + Weight::from_parts(1_041_000, 0) + // Standard Error: 981 + .saturating_add(Weight::from_parts(210_472, 0).saturating_mul(c.into())) .saturating_add(RocksDbWeight::get().writes(1_u64)) } /// The range of component `c` is `[0, 512]`. @@ -2360,10 +2358,10 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `146 + c * (1024 ±0)` // Estimated: `3610 + c * (1024 ±0)` - // Minimum execution time: 3_396_000 picoseconds. - Weight::from_parts(3_490_000, 3610) - // Standard Error: 1_049 - .saturating_add(Weight::from_parts(676_643, 0).saturating_mul(c.into())) + // Minimum execution time: 3_294_000 picoseconds. + Weight::from_parts(3_366_000, 3610) + // Standard Error: 1_080 + .saturating_add(Weight::from_parts(676_116, 0).saturating_mul(c.into())) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(Weight::from_parts(0, 1024).saturating_mul(c.into())) } @@ -2372,17 +2370,17 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 62_736_000 picoseconds. - Weight::from_parts(76_636_221, 0) - // Standard Error: 9_825 - .saturating_add(Weight::from_parts(2_570_922, 0).saturating_mul(c.into())) + // Minimum execution time: 60_243_000 picoseconds. + Weight::from_parts(75_401_206, 0) + // Standard Error: 11_548 + .saturating_add(Weight::from_parts(2_494_849, 0).saturating_mul(c.into())) } fn claim_value() -> Weight { // Proof Size summary in bytes: // Measured: `1372` // Estimated: `51905` - // Minimum execution time: 111_461_000 picoseconds. - Weight::from_parts(114_029_000, 51905) + // Minimum execution time: 108_943_000 picoseconds. + Weight::from_parts(111_577_000, 51905) .saturating_add(RocksDbWeight::get().reads(15_u64)) .saturating_add(RocksDbWeight::get().writes(12_u64)) } @@ -2390,8 +2388,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `992` // Estimated: `21579` - // Minimum execution time: 57_697_000 picoseconds. - Weight::from_parts(58_842_000, 21579) + // Minimum execution time: 56_262_000 picoseconds. + Weight::from_parts(58_296_000, 21579) .saturating_add(RocksDbWeight::get().reads(7_u64)) .saturating_add(RocksDbWeight::get().writes(6_u64)) } @@ -2399,8 +2397,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `638` // Estimated: `17486` - // Minimum execution time: 30_530_000 picoseconds. - Weight::from_parts(32_003_000, 17486) + // Minimum execution time: 30_127_000 picoseconds. + Weight::from_parts(31_137_000, 17486) .saturating_add(RocksDbWeight::get().reads(6_u64)) .saturating_add(RocksDbWeight::get().writes(4_u64)) } @@ -2409,10 +2407,10 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `355` // Estimated: `7640` - // Minimum execution time: 8_274_000 picoseconds. - Weight::from_parts(8_261_331, 7640) - // Standard Error: 41_108 - .saturating_add(Weight::from_parts(13_969_743, 0).saturating_mul(c.into())) + // Minimum execution time: 7_944_000 picoseconds. + Weight::from_parts(3_967_373, 7640) + // Standard Error: 35_621 + .saturating_add(Weight::from_parts(13_338_658, 0).saturating_mul(c.into())) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } @@ -2421,10 +2419,10 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `1593 + c * (16389 ±0)` // Estimated: `43266 + c * (131112 ±0)` - // Minimum execution time: 74_444_000 picoseconds. - Weight::from_parts(75_016_000, 43266) - // Standard Error: 165_690 - .saturating_add(Weight::from_parts(55_174_777, 0).saturating_mul(c.into())) + // Minimum execution time: 72_793_000 picoseconds. + Weight::from_parts(73_500_000, 43266) + // Standard Error: 159_839 + .saturating_add(Weight::from_parts(53_776_845, 0).saturating_mul(c.into())) .saturating_add(RocksDbWeight::get().reads(11_u64)) .saturating_add(RocksDbWeight::get().writes(9_u64)) .saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(c.into()))) @@ -2435,10 +2433,10 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `113` // Estimated: `5402` - // Minimum execution time: 79_739_000 picoseconds. - Weight::from_parts(1_118_426, 5402) - // Standard Error: 68_897 - .saturating_add(Weight::from_parts(60_115_395, 0).saturating_mul(c.into())) + // Minimum execution time: 77_549_000 picoseconds. + Weight::from_parts(11_782_592, 5402) + // Standard Error: 44_814 + .saturating_add(Weight::from_parts(62_238_899, 0).saturating_mul(c.into())) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(4_u64)) } @@ -2447,10 +2445,10 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `1111` // Estimated: `50600` - // Minimum execution time: 96_509_000 picoseconds. - Weight::from_parts(129_317_147, 50600) + // Minimum execution time: 95_703_000 picoseconds. + Weight::from_parts(124_584_109, 50600) // Standard Error: 0 - .saturating_add(Weight::from_parts(2_581, 0).saturating_mul(s.into())) + .saturating_add(Weight::from_parts(2_516, 0).saturating_mul(s.into())) .saturating_add(RocksDbWeight::get().reads(15_u64)) .saturating_add(RocksDbWeight::get().writes(12_u64)) } @@ -2460,12 +2458,12 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `521` // Estimated: `45152` - // Minimum execution time: 10_940_898_000 picoseconds. - Weight::from_parts(67_432_582, 45152) - // Standard Error: 159_611 - .saturating_add(Weight::from_parts(61_428_399, 0).saturating_mul(c.into())) - // Standard Error: 9 - .saturating_add(Weight::from_parts(2_577, 0).saturating_mul(s.into())) + // Minimum execution time: 10_716_861_000 picoseconds. + Weight::from_parts(73_848_079, 45152) + // Standard Error: 150_468 + .saturating_add(Weight::from_parts(64_695_292, 0).saturating_mul(c.into())) + // Standard Error: 8 + .saturating_add(Weight::from_parts(2_493, 0).saturating_mul(s.into())) .saturating_add(RocksDbWeight::get().reads(15_u64)) .saturating_add(RocksDbWeight::get().writes(16_u64)) } @@ -2474,10 +2472,10 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `531` // Estimated: `31266` - // Minimum execution time: 77_245_000 picoseconds. - Weight::from_parts(59_204_735, 31266) + // Minimum execution time: 74_957_000 picoseconds. + Weight::from_parts(48_430_172, 31266) // Standard Error: 1 - .saturating_add(Weight::from_parts(1_042, 0).saturating_mul(p.into())) + .saturating_add(Weight::from_parts(1_052, 0).saturating_mul(p.into())) .saturating_add(RocksDbWeight::get().reads(11_u64)) .saturating_add(RocksDbWeight::get().writes(10_u64)) } @@ -2486,10 +2484,10 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `1371` // Estimated: `54435` - // Minimum execution time: 128_271_000 picoseconds. - Weight::from_parts(93_877_619, 54435) + // Minimum execution time: 126_639_000 picoseconds. + Weight::from_parts(100_822_385, 54435) // Standard Error: 2 - .saturating_add(Weight::from_parts(1_085, 0).saturating_mul(p.into())) + .saturating_add(Weight::from_parts(1_072, 0).saturating_mul(p.into())) .saturating_add(RocksDbWeight::get().reads(16_u64)) .saturating_add(RocksDbWeight::get().writes(13_u64)) } @@ -2498,20 +2496,18 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `1897` // Estimated: `121468` - // Minimum execution time: 379_776_000 picoseconds. - Weight::from_parts(397_994_052, 121468) + // Minimum execution time: 375_457_000 picoseconds. + Weight::from_parts(393_536_920, 121468) .saturating_add(RocksDbWeight::get().reads(35_u64)) .saturating_add(RocksDbWeight::get().writes(26_u64)) } /// The range of component `q` is `[0, 512]`. - fn alloc_in_handle(q: u32, ) -> Weight { + fn alloc_in_handle(_q: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `1897` // Estimated: `121468` - // Minimum execution time: 393_678_000 picoseconds. - Weight::from_parts(411_350_620, 121468) - // Standard Error: 1_741 - .saturating_add(Weight::from_parts(5_796, 0).saturating_mul(q.into())) + // Minimum execution time: 390_030_000 picoseconds. + Weight::from_parts(411_717_925, 121468) .saturating_add(RocksDbWeight::get().reads(35_u64)) .saturating_add(RocksDbWeight::get().writes(26_u64)) } @@ -2520,10 +2516,10 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `211 + c * (1075 ±0)` // Estimated: `3899 + c * (2150 ±0)` - // Minimum execution time: 58_693_000 picoseconds. - Weight::from_parts(59_295_000, 3899) - // Standard Error: 33_015 - .saturating_add(Weight::from_parts(61_659_744, 0).saturating_mul(c.into())) + // Minimum execution time: 57_499_000 picoseconds. + Weight::from_parts(58_384_000, 3899) + // Standard Error: 39_375 + .saturating_add(Weight::from_parts(61_628_039, 0).saturating_mul(c.into())) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) .saturating_add(Weight::from_parts(0, 2150).saturating_mul(c.into())) @@ -2533,510 +2529,510 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 94_082_000 picoseconds. - Weight::from_parts(97_548_000, 0) - // Standard Error: 3_920_023 - .saturating_add(Weight::from_parts(729_307_729, 0).saturating_mul(r.into())) + // Minimum execution time: 94_798_000 picoseconds. + Weight::from_parts(98_095_000, 0) + // Standard Error: 4_268_961 + .saturating_add(Weight::from_parts(719_474_559, 0).saturating_mul(r.into())) } /// The range of component `p` is `[1, 512]`. fn alloc_per_page(p: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 491_508_000 picoseconds. - Weight::from_parts(463_051_109, 0) - // Standard Error: 421_338 - .saturating_add(Weight::from_parts(31_169_166, 0).saturating_mul(p.into())) + // Minimum execution time: 463_364_000 picoseconds. + Weight::from_parts(384_532_432, 0) + // Standard Error: 11_127 + .saturating_add(Weight::from_parts(32_661_842, 0).saturating_mul(p.into())) } /// The range of component `r` is `[0, 20]`. fn free(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 220_882_000 picoseconds. - Weight::from_parts(231_751_371, 0) - // Standard Error: 241_524 - .saturating_add(Weight::from_parts(62_988_026, 0).saturating_mul(r.into())) + // Minimum execution time: 208_188_000 picoseconds. + Weight::from_parts(207_251_598, 0) + // Standard Error: 269_511 + .saturating_add(Weight::from_parts(63_993_415, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 256]`. fn gr_reserve_gas(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 100_013_000 picoseconds. - Weight::from_parts(108_487_423, 0) - // Standard Error: 4_858 - .saturating_add(Weight::from_parts(2_524_407, 0).saturating_mul(r.into())) + // Minimum execution time: 99_563_000 picoseconds. + Weight::from_parts(103_711_343, 0) + // Standard Error: 4_244 + .saturating_add(Weight::from_parts(2_502_376, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 256]`. fn gr_unreserve_gas(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 182_206_000 picoseconds. - Weight::from_parts(218_782_104, 0) - // Standard Error: 14_768 - .saturating_add(Weight::from_parts(2_153_377, 0).saturating_mul(r.into())) + // Minimum execution time: 177_888_000 picoseconds. + Weight::from_parts(232_133_210, 0) + // Standard Error: 15_407 + .saturating_add(Weight::from_parts(2_084_728, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 20]`. fn gr_system_reserve_gas(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 97_458_000 picoseconds. - Weight::from_parts(121_028_602, 0) - // Standard Error: 385_510 - .saturating_add(Weight::from_parts(95_782_527, 0).saturating_mul(r.into())) + // Minimum execution time: 95_448_000 picoseconds. + Weight::from_parts(118_211_047, 0) + // Standard Error: 364_890 + .saturating_add(Weight::from_parts(103_988_684, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 20]`. fn gr_message_id(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 101_412_000 picoseconds. - Weight::from_parts(86_061_953, 0) - // Standard Error: 356_205 - .saturating_add(Weight::from_parts(87_923_229, 0).saturating_mul(r.into())) + // Minimum execution time: 96_343_000 picoseconds. + Weight::from_parts(82_804_631, 0) + // Standard Error: 293_430 + .saturating_add(Weight::from_parts(94_357_895, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 20]`. fn gr_program_id(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 101_962_000 picoseconds. - Weight::from_parts(96_667_757, 0) - // Standard Error: 333_738 - .saturating_add(Weight::from_parts(84_955_970, 0).saturating_mul(r.into())) + // Minimum execution time: 94_619_000 picoseconds. + Weight::from_parts(86_482_681, 0) + // Standard Error: 304_846 + .saturating_add(Weight::from_parts(93_938_049, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 20]`. fn gr_source(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 98_464_000 picoseconds. - Weight::from_parts(90_164_484, 0) - // Standard Error: 321_979 - .saturating_add(Weight::from_parts(85_647_809, 0).saturating_mul(r.into())) + // Minimum execution time: 96_485_000 picoseconds. + Weight::from_parts(87_288_199, 0) + // Standard Error: 292_714 + .saturating_add(Weight::from_parts(93_943_740, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 20]`. fn gr_value(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 97_334_000 picoseconds. - Weight::from_parts(91_107_930, 0) - // Standard Error: 336_291 - .saturating_add(Weight::from_parts(85_501_563, 0).saturating_mul(r.into())) + // Minimum execution time: 97_613_000 picoseconds. + Weight::from_parts(83_672_504, 0) + // Standard Error: 280_845 + .saturating_add(Weight::from_parts(97_083_052, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 20]`. fn gr_value_available(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 96_398_000 picoseconds. - Weight::from_parts(97_803_650, 0) - // Standard Error: 330_728 - .saturating_add(Weight::from_parts(84_746_249, 0).saturating_mul(r.into())) + // Minimum execution time: 99_107_000 picoseconds. + Weight::from_parts(82_852_950, 0) + // Standard Error: 284_918 + .saturating_add(Weight::from_parts(96_401_375, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 20]`. fn gr_gas_available(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 99_554_000 picoseconds. - Weight::from_parts(77_927_782, 0) - // Standard Error: 386_800 - .saturating_add(Weight::from_parts(90_358_021, 0).saturating_mul(r.into())) + // Minimum execution time: 94_978_000 picoseconds. + Weight::from_parts(88_834_080, 0) + // Standard Error: 284_077 + .saturating_add(Weight::from_parts(94_358_752, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 20]`. fn gr_size(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 102_554_000 picoseconds. - Weight::from_parts(96_055_722, 0) - // Standard Error: 331_628 - .saturating_add(Weight::from_parts(84_542_244, 0).saturating_mul(r.into())) + // Minimum execution time: 97_069_000 picoseconds. + Weight::from_parts(84_658_812, 0) + // Standard Error: 289_909 + .saturating_add(Weight::from_parts(94_739_130, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 20]`. fn gr_read(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 725_792_000 picoseconds. - Weight::from_parts(801_544_878, 0) - // Standard Error: 398_821 - .saturating_add(Weight::from_parts(140_715_634, 0).saturating_mul(r.into())) + // Minimum execution time: 624_988_000 picoseconds. + Weight::from_parts(719_391_471, 0) + // Standard Error: 385_357 + .saturating_add(Weight::from_parts(153_589_919, 0).saturating_mul(r.into())) } /// The range of component `n` is `[0, 2048]`. fn gr_read_per_kb(n: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 869_816_000 picoseconds. - Weight::from_parts(886_588_000, 0) - // Standard Error: 54_300 - .saturating_add(Weight::from_parts(13_214_277, 0).saturating_mul(n.into())) + // Minimum execution time: 768_360_000 picoseconds. + Weight::from_parts(784_407_000, 0) + // Standard Error: 58_239 + .saturating_add(Weight::from_parts(13_509_438, 0).saturating_mul(n.into())) } /// The range of component `r` is `[0, 20]`. fn gr_block_height(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 98_800_000 picoseconds. - Weight::from_parts(92_344_333, 0) - // Standard Error: 339_355 - .saturating_add(Weight::from_parts(86_790_706, 0).saturating_mul(r.into())) + // Minimum execution time: 95_583_000 picoseconds. + Weight::from_parts(93_000_068, 0) + // Standard Error: 287_092 + .saturating_add(Weight::from_parts(92_987_967, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 20]`. fn gr_block_timestamp(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 97_651_000 picoseconds. - Weight::from_parts(92_529_847, 0) - // Standard Error: 295_105 - .saturating_add(Weight::from_parts(89_002_384, 0).saturating_mul(r.into())) + // Minimum execution time: 98_609_000 picoseconds. + Weight::from_parts(91_602_090, 0) + // Standard Error: 261_647 + .saturating_add(Weight::from_parts(93_534_327, 0).saturating_mul(r.into())) } /// The range of component `n` is `[0, 20]`. fn gr_random(n: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 99_357_000 picoseconds. - Weight::from_parts(105_767_963, 0) - // Standard Error: 380_641 - .saturating_add(Weight::from_parts(174_604_231, 0).saturating_mul(n.into())) + // Minimum execution time: 96_064_000 picoseconds. + Weight::from_parts(112_225_482, 0) + // Standard Error: 372_150 + .saturating_add(Weight::from_parts(176_540_888, 0).saturating_mul(n.into())) } /// The range of component `r` is `[0, 20]`. fn gr_reply_deposit(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 103_092_000 picoseconds. - Weight::from_parts(105_802_000, 0) - // Standard Error: 3_553_393 - .saturating_add(Weight::from_parts(783_848_741, 0).saturating_mul(r.into())) + // Minimum execution time: 96_515_000 picoseconds. + Weight::from_parts(100_449_000, 0) + // Standard Error: 4_642_503 + .saturating_add(Weight::from_parts(868_473_141, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 20]`. fn gr_send(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 97_050_000 picoseconds. - Weight::from_parts(174_923_994, 0) - // Standard Error: 430_038 - .saturating_add(Weight::from_parts(266_665_269, 0).saturating_mul(r.into())) + // Minimum execution time: 98_501_000 picoseconds. + Weight::from_parts(154_456_982, 0) + // Standard Error: 340_064 + .saturating_add(Weight::from_parts(264_987_162, 0).saturating_mul(r.into())) } /// The range of component `n` is `[0, 2048]`. fn gr_send_per_kb(n: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 357_531_000 picoseconds. - Weight::from_parts(365_896_000, 0) - // Standard Error: 59_017 - .saturating_add(Weight::from_parts(21_340_532, 0).saturating_mul(n.into())) + // Minimum execution time: 353_842_000 picoseconds. + Weight::from_parts(358_232_000, 0) + // Standard Error: 59_123 + .saturating_add(Weight::from_parts(21_328_711, 0).saturating_mul(n.into())) } /// The range of component `r` is `[0, 20]`. fn gr_send_wgas(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 98_643_000 picoseconds. - Weight::from_parts(185_395_839, 0) - // Standard Error: 402_403 - .saturating_add(Weight::from_parts(266_083_111, 0).saturating_mul(r.into())) + // Minimum execution time: 95_473_000 picoseconds. + Weight::from_parts(173_487_611, 0) + // Standard Error: 346_958 + .saturating_add(Weight::from_parts(265_362_826, 0).saturating_mul(r.into())) } /// The range of component `n` is `[0, 2048]`. fn gr_send_wgas_per_kb(n: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 361_853_000 picoseconds. - Weight::from_parts(371_175_000, 0) - // Standard Error: 62_531 - .saturating_add(Weight::from_parts(21_372_225, 0).saturating_mul(n.into())) + // Minimum execution time: 361_340_000 picoseconds. + Weight::from_parts(365_775_000, 0) + // Standard Error: 57_913 + .saturating_add(Weight::from_parts(21_806_682, 0).saturating_mul(n.into())) } /// The range of component `r` is `[0, 20]`. fn gr_send_input(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 731_246_000 picoseconds. - Weight::from_parts(827_016_024, 0) - // Standard Error: 456_568 - .saturating_add(Weight::from_parts(283_568_931, 0).saturating_mul(r.into())) + // Minimum execution time: 619_127_000 picoseconds. + Weight::from_parts(727_744_949, 0) + // Standard Error: 407_186 + .saturating_add(Weight::from_parts(287_464_747, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 20]`. fn gr_send_input_wgas(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 725_315_000 picoseconds. - Weight::from_parts(814_525_892, 0) - // Standard Error: 535_531 - .saturating_add(Weight::from_parts(291_725_582, 0).saturating_mul(r.into())) + // Minimum execution time: 598_950_000 picoseconds. + Weight::from_parts(736_523_445, 0) + // Standard Error: 426_087 + .saturating_add(Weight::from_parts(286_023_165, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 20]`. fn gr_send_init(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 100_930_000 picoseconds. - Weight::from_parts(86_911_409, 0) - // Standard Error: 308_962 - .saturating_add(Weight::from_parts(98_197_967, 0).saturating_mul(r.into())) + // Minimum execution time: 96_646_000 picoseconds. + Weight::from_parts(83_018_591, 0) + // Standard Error: 290_942 + .saturating_add(Weight::from_parts(100_797_875, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 20]`. fn gr_send_push(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 1_871_002_000 picoseconds. - Weight::from_parts(2_023_643_652, 0) - // Standard Error: 354_203 - .saturating_add(Weight::from_parts(163_033_723, 0).saturating_mul(r.into())) + // Minimum execution time: 1_992_708_000 picoseconds. + Weight::from_parts(2_118_177_569, 0) + // Standard Error: 258_344 + .saturating_add(Weight::from_parts(175_943_566, 0).saturating_mul(r.into())) } /// The range of component `n` is `[0, 2048]`. fn gr_send_push_per_kb(n: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 321_280_000 picoseconds. - Weight::from_parts(326_774_000, 0) - // Standard Error: 53_820 - .saturating_add(Weight::from_parts(31_205_219, 0).saturating_mul(n.into())) + // Minimum execution time: 329_583_000 picoseconds. + Weight::from_parts(332_097_000, 0) + // Standard Error: 52_868 + .saturating_add(Weight::from_parts(29_693_569, 0).saturating_mul(n.into())) } /// The range of component `r` is `[0, 20]`. fn gr_send_commit(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 1_866_780_000 picoseconds. - Weight::from_parts(2_024_271_501, 0) - // Standard Error: 405_972 - .saturating_add(Weight::from_parts(225_776_414, 0).saturating_mul(r.into())) + // Minimum execution time: 2_000_304_000 picoseconds. + Weight::from_parts(2_103_665_360, 0) + // Standard Error: 279_832 + .saturating_add(Weight::from_parts(222_774_116, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 20]`. fn gr_send_commit_wgas(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 1_875_608_000 picoseconds. - Weight::from_parts(2_019_090_196, 0) - // Standard Error: 346_810 - .saturating_add(Weight::from_parts(235_898_569, 0).saturating_mul(r.into())) + // Minimum execution time: 2_009_086_000 picoseconds. + Weight::from_parts(2_118_651_462, 0) + // Standard Error: 304_300 + .saturating_add(Weight::from_parts(227_551_678, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 20]`. fn gr_reservation_send(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 263_903_000 picoseconds. - Weight::from_parts(339_925_241, 0) - // Standard Error: 414_003 - .saturating_add(Weight::from_parts(280_423_422, 0).saturating_mul(r.into())) + // Minimum execution time: 249_654_000 picoseconds. + Weight::from_parts(318_420_072, 0) + // Standard Error: 334_694 + .saturating_add(Weight::from_parts(277_786_644, 0).saturating_mul(r.into())) } /// The range of component `n` is `[0, 2048]`. fn gr_reservation_send_per_kb(n: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 535_212_000 picoseconds. - Weight::from_parts(545_222_000, 0) - // Standard Error: 58_250 - .saturating_add(Weight::from_parts(21_556_762, 0).saturating_mul(n.into())) + // Minimum execution time: 530_798_000 picoseconds. + Weight::from_parts(542_480_000, 0) + // Standard Error: 69_997 + .saturating_add(Weight::from_parts(21_968_683, 0).saturating_mul(n.into())) } /// The range of component `r` is `[0, 20]`. fn gr_reservation_send_commit(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_022_436_000 picoseconds. - Weight::from_parts(2_212_258_384, 0) - // Standard Error: 460_291 - .saturating_add(Weight::from_parts(249_403_133, 0).saturating_mul(r.into())) + // Minimum execution time: 2_149_917_000 picoseconds. + Weight::from_parts(2_296_280_954, 0) + // Standard Error: 415_974 + .saturating_add(Weight::from_parts(248_500_648, 0).saturating_mul(r.into())) } /// The range of component `n` is `[0, 2048]`. fn gr_reply_per_kb(n: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 117_080_000 picoseconds. - Weight::from_parts(104_765_276, 0) - // Standard Error: 994 - .saturating_add(Weight::from_parts(436_761, 0).saturating_mul(n.into())) + // Minimum execution time: 114_806_000 picoseconds. + Weight::from_parts(102_087_876, 0) + // Standard Error: 1_338 + .saturating_add(Weight::from_parts(436_648, 0).saturating_mul(n.into())) } /// The range of component `n` is `[0, 2048]`. fn gr_reply_wgas_per_kb(n: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 115_283_000 picoseconds. - Weight::from_parts(109_185_112, 0) - // Standard Error: 1_244 - .saturating_add(Weight::from_parts(432_177, 0).saturating_mul(n.into())) + // Minimum execution time: 116_657_000 picoseconds. + Weight::from_parts(106_022_444, 0) + // Standard Error: 1_018 + .saturating_add(Weight::from_parts(431_359, 0).saturating_mul(n.into())) } /// The range of component `r` is `[0, 20]`. fn gr_reply_push(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 97_873_000 picoseconds. - Weight::from_parts(159_110_710, 0) - // Standard Error: 457_822 - .saturating_add(Weight::from_parts(152_162_507, 0).saturating_mul(r.into())) + // Minimum execution time: 96_038_000 picoseconds. + Weight::from_parts(135_201_165, 0) + // Standard Error: 356_732 + .saturating_add(Weight::from_parts(159_820_965, 0).saturating_mul(r.into())) } /// The range of component `n` is `[0, 8192]`. fn gr_reply_push_per_kb(n: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 112_593_000 picoseconds. - Weight::from_parts(114_913_000, 0) - // Standard Error: 2_557 - .saturating_add(Weight::from_parts(677_985, 0).saturating_mul(n.into())) + // Minimum execution time: 112_492_000 picoseconds. + Weight::from_parts(114_308_000, 0) + // Standard Error: 3_223 + .saturating_add(Weight::from_parts(662_188, 0).saturating_mul(n.into())) } /// The range of component `n` is `[0, 2048]`. fn gr_reservation_reply_per_kb(n: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 118_073_000 picoseconds. - Weight::from_parts(113_763_795, 0) - // Standard Error: 1_010 - .saturating_add(Weight::from_parts(428_786, 0).saturating_mul(n.into())) + // Minimum execution time: 115_332_000 picoseconds. + Weight::from_parts(108_506_706, 0) + // Standard Error: 1_103 + .saturating_add(Weight::from_parts(434_341, 0).saturating_mul(n.into())) } /// The range of component `n` is `[0, 2048]`. fn gr_reservation_reply_commit_per_kb(n: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 114_860_000 picoseconds. - Weight::from_parts(101_920_439, 0) - // Standard Error: 1_083 - .saturating_add(Weight::from_parts(442_833, 0).saturating_mul(n.into())) + // Minimum execution time: 118_794_000 picoseconds. + Weight::from_parts(107_294_653, 0) + // Standard Error: 960 + .saturating_add(Weight::from_parts(430_040, 0).saturating_mul(n.into())) } /// The range of component `r` is `[0, 20]`. fn gr_reply_to(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 98_512_000 picoseconds. - Weight::from_parts(88_626_388, 0) - // Standard Error: 366_499 - .saturating_add(Weight::from_parts(88_122_315, 0).saturating_mul(r.into())) + // Minimum execution time: 94_737_000 picoseconds. + Weight::from_parts(87_725_226, 0) + // Standard Error: 309_072 + .saturating_add(Weight::from_parts(95_349_514, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 20]`. fn gr_signal_code(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 100_944_000 picoseconds. - Weight::from_parts(94_274_573, 0) - // Standard Error: 344_379 - .saturating_add(Weight::from_parts(83_385_159, 0).saturating_mul(r.into())) + // Minimum execution time: 96_560_000 picoseconds. + Weight::from_parts(88_778_855, 0) + // Standard Error: 321_153 + .saturating_add(Weight::from_parts(92_345_730, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 20]`. fn gr_signal_from(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 98_736_000 picoseconds. - Weight::from_parts(102_598_887, 0) - // Standard Error: 254_019 - .saturating_add(Weight::from_parts(86_050_309, 0).saturating_mul(r.into())) + // Minimum execution time: 95_858_000 picoseconds. + Weight::from_parts(83_381_792, 0) + // Standard Error: 288_029 + .saturating_add(Weight::from_parts(95_413_243, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 20]`. fn gr_reply_push_input(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 740_156_000 picoseconds. - Weight::from_parts(781_820_116, 0) - // Standard Error: 419_407 - .saturating_add(Weight::from_parts(107_969_773, 0).saturating_mul(r.into())) + // Minimum execution time: 623_083_000 picoseconds. + Weight::from_parts(708_678_749, 0) + // Standard Error: 349_496 + .saturating_add(Weight::from_parts(115_860_492, 0).saturating_mul(r.into())) } /// The range of component `n` is `[0, 2048]`. fn gr_reply_push_input_per_kb(n: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 755_846_000 picoseconds. - Weight::from_parts(780_455_697, 0) - // Standard Error: 1_995 - .saturating_add(Weight::from_parts(161_261, 0).saturating_mul(n.into())) + // Minimum execution time: 618_159_000 picoseconds. + Weight::from_parts(642_200_096, 0) + // Standard Error: 1_446 + .saturating_add(Weight::from_parts(123_508, 0).saturating_mul(n.into())) } /// The range of component `r` is `[0, 20]`. fn gr_send_push_input(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_511_608_000 picoseconds. - Weight::from_parts(2_705_076_651, 0) - // Standard Error: 493_983 - .saturating_add(Weight::from_parts(127_194_997, 0).saturating_mul(r.into())) + // Minimum execution time: 2_500_516_000 picoseconds. + Weight::from_parts(2_647_459_773, 0) + // Standard Error: 453_733 + .saturating_add(Weight::from_parts(132_179_417, 0).saturating_mul(r.into())) } /// The range of component `n` is `[0, 2048]`. fn gr_send_push_input_per_kb(n: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_717_264_000 picoseconds. - Weight::from_parts(2_814_539_958, 0) - // Standard Error: 10_103 - .saturating_add(Weight::from_parts(13_630_637, 0).saturating_mul(n.into())) + // Minimum execution time: 2_741_565_000 picoseconds. + Weight::from_parts(2_768_198_343, 0) + // Standard Error: 15_631 + .saturating_add(Weight::from_parts(12_354_508, 0).saturating_mul(n.into())) } /// The range of component `r` is `[0, 20]`. fn gr_debug(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 97_818_000 picoseconds. - Weight::from_parts(112_676_264, 0) - // Standard Error: 333_130 - .saturating_add(Weight::from_parts(114_231_920, 0).saturating_mul(r.into())) + // Minimum execution time: 99_002_000 picoseconds. + Weight::from_parts(122_377_318, 0) + // Standard Error: 378_707 + .saturating_add(Weight::from_parts(116_584_775, 0).saturating_mul(r.into())) } /// The range of component `n` is `[0, 2048]`. fn gr_debug_per_kb(n: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 159_849_000 picoseconds. - Weight::from_parts(161_376_000, 0) - // Standard Error: 52_546 - .saturating_add(Weight::from_parts(25_816_075, 0).saturating_mul(n.into())) + // Minimum execution time: 159_403_000 picoseconds. + Weight::from_parts(161_567_000, 0) + // Standard Error: 52_611 + .saturating_add(Weight::from_parts(23_966_846, 0).saturating_mul(n.into())) } /// The range of component `r` is `[0, 20]`. fn gr_reply_code(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 98_916_000 picoseconds. - Weight::from_parts(92_228_268, 0) - // Standard Error: 329_307 - .saturating_add(Weight::from_parts(83_076_033, 0).saturating_mul(r.into())) + // Minimum execution time: 95_021_000 picoseconds. + Weight::from_parts(83_792_170, 0) + // Standard Error: 307_944 + .saturating_add(Weight::from_parts(92_699_319, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 20]`. fn gr_wake(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 179_446_000 picoseconds. - Weight::from_parts(229_514_451, 0) - // Standard Error: 257_645 - .saturating_add(Weight::from_parts(154_731_264, 0).saturating_mul(r.into())) + // Minimum execution time: 177_740_000 picoseconds. + Weight::from_parts(220_550_761, 0) + // Standard Error: 175_549 + .saturating_add(Weight::from_parts(166_872_997, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 20]`. fn gr_create_program(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 107_616_000 picoseconds. - Weight::from_parts(175_768_720, 0) - // Standard Error: 367_635 - .saturating_add(Weight::from_parts(358_564_932, 0).saturating_mul(r.into())) + // Minimum execution time: 105_825_000 picoseconds. + Weight::from_parts(167_061_819, 0) + // Standard Error: 329_320 + .saturating_add(Weight::from_parts(351_610_020, 0).saturating_mul(r.into())) } /// The range of component `p` is `[0, 2048]`. /// The range of component `s` is `[1, 2048]`. @@ -3044,22 +3040,22 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 44_902_420_000 picoseconds. - Weight::from_parts(45_126_501_000, 0) - // Standard Error: 280_708 - .saturating_add(Weight::from_parts(7_774_529, 0).saturating_mul(p.into())) - // Standard Error: 280_694 - .saturating_add(Weight::from_parts(175_731_776, 0).saturating_mul(s.into())) + // Minimum execution time: 43_911_786_000 picoseconds. + Weight::from_parts(44_034_848_000, 0) + // Standard Error: 268_084 + .saturating_add(Weight::from_parts(7_840_641, 0).saturating_mul(p.into())) + // Standard Error: 268_071 + .saturating_add(Weight::from_parts(171_034_577, 0).saturating_mul(s.into())) } /// The range of component `r` is `[0, 20]`. fn gr_create_program_wgas(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 108_285_000 picoseconds. - Weight::from_parts(176_429_268, 0) - // Standard Error: 384_072 - .saturating_add(Weight::from_parts(366_592_077, 0).saturating_mul(r.into())) + // Minimum execution time: 113_178_000 picoseconds. + Weight::from_parts(151_638_067, 0) + // Standard Error: 307_779 + .saturating_add(Weight::from_parts(360_201_120, 0).saturating_mul(r.into())) } /// The range of component `p` is `[0, 2048]`. /// The range of component `s` is `[1, 2048]`. @@ -3067,32 +3063,32 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 46_638_288_000 picoseconds. - Weight::from_parts(47_081_319_000, 0) - // Standard Error: 280_733 - .saturating_add(Weight::from_parts(7_134_527, 0).saturating_mul(p.into())) - // Standard Error: 280_720 - .saturating_add(Weight::from_parts(175_082_854, 0).saturating_mul(s.into())) + // Minimum execution time: 45_074_991_000 picoseconds. + Weight::from_parts(45_234_378_000, 0) + // Standard Error: 283_779 + .saturating_add(Weight::from_parts(7_989_562, 0).saturating_mul(p.into())) + // Standard Error: 283_765 + .saturating_add(Weight::from_parts(170_645_975, 0).saturating_mul(s.into())) } /// The range of component `r` is `[0, 20]`. fn gr_pay_program_rent(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 100_230_000 picoseconds. - Weight::from_parts(120_175_562, 0) - // Standard Error: 35_806 - .saturating_add(Weight::from_parts(1_783_612, 0).saturating_mul(r.into())) + // Minimum execution time: 95_835_000 picoseconds. + Weight::from_parts(115_102_214, 0) + // Standard Error: 34_404 + .saturating_add(Weight::from_parts(2_142_089, 0).saturating_mul(r.into())) } /// The range of component `p` is `[0, 512]`. fn lazy_pages_signal_read(p: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `141` // Estimated: `1131 + p * (9900 ±0)` - // Minimum execution time: 99_162_000 picoseconds. - Weight::from_parts(112_460_979, 1131) - // Standard Error: 19_215 - .saturating_add(Weight::from_parts(16_485_170, 0).saturating_mul(p.into())) + // Minimum execution time: 95_078_000 picoseconds. + Weight::from_parts(134_205_201, 1131) + // Standard Error: 22_980 + .saturating_add(Weight::from_parts(16_531_416, 0).saturating_mul(p.into())) .saturating_add(RocksDbWeight::get().reads((4_u64).saturating_mul(p.into()))) .saturating_add(Weight::from_parts(0, 9900).saturating_mul(p.into())) } @@ -3101,10 +3097,10 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `141` // Estimated: `1131 + p * (9900 ±0)` - // Minimum execution time: 100_684_000 picoseconds. - Weight::from_parts(104_531_000, 1131) - // Standard Error: 46_782 - .saturating_add(Weight::from_parts(42_067_142, 0).saturating_mul(p.into())) + // Minimum execution time: 96_686_000 picoseconds. + Weight::from_parts(98_247_000, 1131) + // Standard Error: 31_568 + .saturating_add(Weight::from_parts(41_868_408, 0).saturating_mul(p.into())) .saturating_add(RocksDbWeight::get().reads((4_u64).saturating_mul(p.into()))) .saturating_add(Weight::from_parts(0, 9900).saturating_mul(p.into())) } @@ -3113,10 +3109,10 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `141` // Estimated: `5069931` - // Minimum execution time: 8_272_424_000 picoseconds. - Weight::from_parts(8_390_589_661, 5069931) - // Standard Error: 72_393 - .saturating_add(Weight::from_parts(42_604_682, 0).saturating_mul(p.into())) + // Minimum execution time: 8_172_399_000 picoseconds. + Weight::from_parts(7_934_736_669, 5069931) + // Standard Error: 90_294 + .saturating_add(Weight::from_parts(44_059_914, 0).saturating_mul(p.into())) .saturating_add(RocksDbWeight::get().reads(2048_u64)) } /// The range of component `p` is `[0, 512]`. @@ -3124,10 +3120,10 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `1813 + p * (65580 ±0)` // Estimated: `1939 + p * (75482 ±0)` - // Minimum execution time: 105_024_000 picoseconds. - Weight::from_parts(106_386_000, 1939) - // Standard Error: 32_440 - .saturating_add(Weight::from_parts(54_183_902, 0).saturating_mul(p.into())) + // Minimum execution time: 97_101_000 picoseconds. + Weight::from_parts(99_642_000, 1939) + // Standard Error: 38_446 + .saturating_add(Weight::from_parts(59_625_042, 0).saturating_mul(p.into())) .saturating_add(RocksDbWeight::get().reads((4_u64).saturating_mul(p.into()))) .saturating_add(Weight::from_parts(0, 75482).saturating_mul(p.into())) } @@ -3136,10 +3132,10 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `141` // Estimated: `1131 + p * (9900 ±0)` - // Minimum execution time: 102_854_000 picoseconds. - Weight::from_parts(109_646_367, 1131) - // Standard Error: 70_655 - .saturating_add(Weight::from_parts(39_228_760, 0).saturating_mul(p.into())) + // Minimum execution time: 101_726_000 picoseconds. + Weight::from_parts(104_006_012, 1131) + // Standard Error: 73_331 + .saturating_add(Weight::from_parts(40_363_581, 0).saturating_mul(p.into())) .saturating_add(RocksDbWeight::get().reads((4_u64).saturating_mul(p.into()))) .saturating_add(Weight::from_parts(0, 9900).saturating_mul(p.into())) } @@ -3148,10 +3144,10 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `141` // Estimated: `1496 + p * (9883 ±2)` - // Minimum execution time: 761_606_000 picoseconds. - Weight::from_parts(762_350_763, 1496) - // Standard Error: 286_780 - .saturating_add(Weight::from_parts(50_979_584, 0).saturating_mul(p.into())) + // Minimum execution time: 671_731_000 picoseconds. + Weight::from_parts(700_428_000, 1496) + // Standard Error: 235_378 + .saturating_add(Weight::from_parts(55_804_323, 0).saturating_mul(p.into())) .saturating_add(RocksDbWeight::get().reads((4_u64).saturating_mul(p.into()))) .saturating_add(Weight::from_parts(0, 9883).saturating_mul(p.into())) } @@ -3160,10 +3156,10 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `141` // Estimated: `317931` - // Minimum execution time: 1_256_343_000 picoseconds. - Weight::from_parts(1_302_047_252, 317931) - // Standard Error: 283_008 - .saturating_add(Weight::from_parts(47_678_236, 0).saturating_mul(p.into())) + // Minimum execution time: 1_240_630_000 picoseconds. + Weight::from_parts(1_259_057_176, 317931) + // Standard Error: 261_140 + .saturating_add(Weight::from_parts(55_057_744, 0).saturating_mul(p.into())) .saturating_add(RocksDbWeight::get().reads(128_u64)) } /// The range of component `r` is `[0, 20]`. @@ -3171,890 +3167,890 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 4_405_000 picoseconds. - Weight::from_parts(16_352_957, 0) - // Standard Error: 351_237 - .saturating_add(Weight::from_parts(74_154_815, 0).saturating_mul(r.into())) + // Minimum execution time: 3_348_000 picoseconds. + Weight::from_parts(3_626_000, 0) + // Standard Error: 214_323 + .saturating_add(Weight::from_parts(78_486_417, 0).saturating_mul(r.into())) } /// The range of component `r` is `[50, 500]`. fn instr_i64load(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 4_441_407_000 picoseconds. - Weight::from_parts(4_242_069_387, 0) - // Standard Error: 107_408 - .saturating_add(Weight::from_parts(5_267_383, 0).saturating_mul(r.into())) + // Minimum execution time: 4_469_766_000 picoseconds. + Weight::from_parts(4_346_471_807, 0) + // Standard Error: 80_728 + .saturating_add(Weight::from_parts(4_713_314, 0).saturating_mul(r.into())) } /// The range of component `r` is `[50, 500]`. fn instr_i32load(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 4_473_808_000 picoseconds. - Weight::from_parts(4_245_461_153, 0) - // Standard Error: 115_662 - .saturating_add(Weight::from_parts(5_334_771, 0).saturating_mul(r.into())) + // Minimum execution time: 4_425_982_000 picoseconds. + Weight::from_parts(4_330_284_940, 0) + // Standard Error: 74_620 + .saturating_add(Weight::from_parts(4_628_865, 0).saturating_mul(r.into())) } /// The range of component `r` is `[50, 500]`. fn instr_i64store(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 11_011_360_000 picoseconds. - Weight::from_parts(11_931_421_315, 0) - // Standard Error: 187_701 - .saturating_add(Weight::from_parts(13_022_743, 0).saturating_mul(r.into())) + // Minimum execution time: 11_523_555_000 picoseconds. + Weight::from_parts(11_703_046_471, 0) + // Standard Error: 142_447 + .saturating_add(Weight::from_parts(10_471_668, 0).saturating_mul(r.into())) } /// The range of component `r` is `[50, 500]`. fn instr_i32store(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 10_664_214_000 picoseconds. - Weight::from_parts(11_902_396_905, 0) - // Standard Error: 182_715 - .saturating_add(Weight::from_parts(10_825_224, 0).saturating_mul(r.into())) + // Minimum execution time: 11_678_567_000 picoseconds. + Weight::from_parts(11_004_580_924, 0) + // Standard Error: 236_889 + .saturating_add(Weight::from_parts(11_641_285, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_select(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_372_000 picoseconds. - Weight::from_parts(2_477_000, 0) - // Standard Error: 7_020 - .saturating_add(Weight::from_parts(3_847_128, 0).saturating_mul(r.into())) + // Minimum execution time: 2_392_000 picoseconds. + Weight::from_parts(2_511_000, 0) + // Standard Error: 8_367 + .saturating_add(Weight::from_parts(3_799_391, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_if(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_352_000 picoseconds. - Weight::from_parts(470_151, 0) - // Standard Error: 9_768 - .saturating_add(Weight::from_parts(3_187_107, 0).saturating_mul(r.into())) + // Minimum execution time: 2_427_000 picoseconds. + Weight::from_parts(2_097_272, 0) + // Standard Error: 9_819 + .saturating_add(Weight::from_parts(3_176_824, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_br(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_328_000 picoseconds. - Weight::from_parts(3_603_744, 0) - // Standard Error: 1_310 - .saturating_add(Weight::from_parts(1_573_794, 0).saturating_mul(r.into())) + // Minimum execution time: 2_397_000 picoseconds. + Weight::from_parts(3_703_691, 0) + // Standard Error: 994 + .saturating_add(Weight::from_parts(1_561_922, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_br_if(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_406_000 picoseconds. - Weight::from_parts(2_502_000, 0) - // Standard Error: 9_218 - .saturating_add(Weight::from_parts(2_948_836, 0).saturating_mul(r.into())) + // Minimum execution time: 2_483_000 picoseconds. + Weight::from_parts(2_601_000, 0) + // Standard Error: 9_331 + .saturating_add(Weight::from_parts(2_888_581, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_br_table(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_377_000 picoseconds. - Weight::from_parts(5_774_753, 0) - // Standard Error: 20_000 - .saturating_add(Weight::from_parts(4_967_379, 0).saturating_mul(r.into())) + // Minimum execution time: 2_439_000 picoseconds. + Weight::from_parts(1_761_663, 0) + // Standard Error: 14_372 + .saturating_add(Weight::from_parts(5_100_133, 0).saturating_mul(r.into())) } /// The range of component `e` is `[1, 256]`. fn instr_br_table_per_entry(e: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 7_031_000 picoseconds. - Weight::from_parts(5_288_626, 0) - // Standard Error: 1_512 - .saturating_add(Weight::from_parts(180_398, 0).saturating_mul(e.into())) + // Minimum execution time: 7_234_000 picoseconds. + Weight::from_parts(5_492_163, 0) + // Standard Error: 1_185 + .saturating_add(Weight::from_parts(176_215, 0).saturating_mul(e.into())) } /// The range of component `r` is `[0, 50]`. fn instr_call_const(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_476_000 picoseconds. - Weight::from_parts(5_743_941, 0) - // Standard Error: 9_413 - .saturating_add(Weight::from_parts(2_620_325, 0).saturating_mul(r.into())) + // Minimum execution time: 2_491_000 picoseconds. + Weight::from_parts(5_061_503, 0) + // Standard Error: 8_350 + .saturating_add(Weight::from_parts(2_644_398, 0).saturating_mul(r.into())) } fn instr_i64const(r: u32, ) -> Weight { Weight::from_parts(0, 0) - .saturating_add(Weight::from_parts(2_620_325 - - 2_411_747, 0).saturating_mul(r.into())) + .saturating_add(Weight::from_parts(2_644_398 - + 2_438_254, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_call(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_490_000 picoseconds. - Weight::from_parts(6_164_933, 0) - // Standard Error: 13_627 - .saturating_add(Weight::from_parts(2_411_747, 0).saturating_mul(r.into())) + // Minimum execution time: 2_503_000 picoseconds. + Weight::from_parts(5_535_035, 0) + // Standard Error: 14_338 + .saturating_add(Weight::from_parts(2_438_254, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_call_indirect(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_755_000 picoseconds. - Weight::from_parts(21_073_006, 0) - // Standard Error: 27_772 - .saturating_add(Weight::from_parts(9_843_221, 0).saturating_mul(r.into())) + // Minimum execution time: 2_844_000 picoseconds. + Weight::from_parts(25_838_862, 0) + // Standard Error: 42_622 + .saturating_add(Weight::from_parts(9_686_143, 0).saturating_mul(r.into())) } /// The range of component `p` is `[0, 128]`. fn instr_call_indirect_per_param(p: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 12_641_000 picoseconds. - Weight::from_parts(3_862_091, 0) - // Standard Error: 6_388 - .saturating_add(Weight::from_parts(1_271_540, 0).saturating_mul(p.into())) + // Minimum execution time: 12_112_000 picoseconds. + Weight::from_parts(5_743_185, 0) + // Standard Error: 5_493 + .saturating_add(Weight::from_parts(1_233_796, 0).saturating_mul(p.into())) } /// The range of component `l` is `[0, 1024]`. fn instr_call_per_local(_l: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 5_445_000 picoseconds. - Weight::from_parts(5_936_643, 0) + // Minimum execution time: 5_473_000 picoseconds. + Weight::from_parts(5_937_974, 0) } /// The range of component `r` is `[0, 50]`. fn instr_local_get(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 4_780_000 picoseconds. - Weight::from_parts(5_168_488, 0) - // Standard Error: 3_624 - .saturating_add(Weight::from_parts(434_517, 0).saturating_mul(r.into())) + // Minimum execution time: 5_014_000 picoseconds. + Weight::from_parts(5_247_579, 0) + // Standard Error: 3_254 + .saturating_add(Weight::from_parts(453_803, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_local_set(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 4_903_000 picoseconds. - Weight::from_parts(4_238_955, 0) - // Standard Error: 7_038 - .saturating_add(Weight::from_parts(1_087_596, 0).saturating_mul(r.into())) + // Minimum execution time: 4_950_000 picoseconds. + Weight::from_parts(2_980_884, 0) + // Standard Error: 6_602 + .saturating_add(Weight::from_parts(1_178_313, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_local_tee(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 4_937_000 picoseconds. - Weight::from_parts(3_461_941, 0) - // Standard Error: 7_961 - .saturating_add(Weight::from_parts(1_107_695, 0).saturating_mul(r.into())) + // Minimum execution time: 4_957_000 picoseconds. + Weight::from_parts(1_255_357, 0) + // Standard Error: 11_777 + .saturating_add(Weight::from_parts(1_371_915, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_global_get(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 6_601_000 picoseconds. - Weight::from_parts(2_918_352, 0) - // Standard Error: 7_206 - .saturating_add(Weight::from_parts(827_628, 0).saturating_mul(r.into())) + // Minimum execution time: 6_526_000 picoseconds. + Weight::from_parts(2_358_200, 0) + // Standard Error: 7_803 + .saturating_add(Weight::from_parts(916_414, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_global_set(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 6_605_000 picoseconds. - Weight::from_parts(6_684_000, 0) - // Standard Error: 8_000 - .saturating_add(Weight::from_parts(1_428_490, 0).saturating_mul(r.into())) + // Minimum execution time: 6_534_000 picoseconds. + Weight::from_parts(1_078_818, 0) + // Standard Error: 8_155 + .saturating_add(Weight::from_parts(1_601_009, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_memory_current(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 7_591_000 picoseconds. - Weight::from_parts(2_772_486, 0) - // Standard Error: 13_130 - .saturating_add(Weight::from_parts(7_127_049, 0).saturating_mul(r.into())) + // Minimum execution time: 6_292_000 picoseconds. + Weight::from_parts(2_896_295, 0) + // Standard Error: 9_977 + .saturating_add(Weight::from_parts(7_220_458, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64clz(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_376_000 picoseconds. - Weight::from_parts(2_431_000, 0) - // Standard Error: 6_471 - .saturating_add(Weight::from_parts(3_416_623, 0).saturating_mul(r.into())) + // Minimum execution time: 2_413_000 picoseconds. + Weight::from_parts(2_490_000, 0) + // Standard Error: 6_167 + .saturating_add(Weight::from_parts(3_365_545, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32clz(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_367_000 picoseconds. - Weight::from_parts(2_481_000, 0) - // Standard Error: 4_834 - .saturating_add(Weight::from_parts(3_141_274, 0).saturating_mul(r.into())) + // Minimum execution time: 2_400_000 picoseconds. + Weight::from_parts(2_502_000, 0) + // Standard Error: 5_525 + .saturating_add(Weight::from_parts(3_090_577, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64ctz(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_414_000 picoseconds. - Weight::from_parts(2_479_000, 0) - // Standard Error: 5_384 - .saturating_add(Weight::from_parts(3_162_450, 0).saturating_mul(r.into())) + // Minimum execution time: 2_462_000 picoseconds. + Weight::from_parts(2_568_000, 0) + // Standard Error: 5_417 + .saturating_add(Weight::from_parts(3_118_601, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32ctz(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_481_000 picoseconds. - Weight::from_parts(2_534_000, 0) - // Standard Error: 5_851 - .saturating_add(Weight::from_parts(2_742_009, 0).saturating_mul(r.into())) + // Minimum execution time: 2_358_000 picoseconds. + Weight::from_parts(2_499_000, 0) + // Standard Error: 4_982 + .saturating_add(Weight::from_parts(2_770_061, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64popcnt(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_444_000 picoseconds. - Weight::from_parts(2_522_000, 0) - // Standard Error: 5_551 - .saturating_add(Weight::from_parts(650_966, 0).saturating_mul(r.into())) + // Minimum execution time: 2_503_000 picoseconds. + Weight::from_parts(2_564_000, 0) + // Standard Error: 4_969 + .saturating_add(Weight::from_parts(704_388, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32popcnt(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_476_000 picoseconds. - Weight::from_parts(627_113, 0) - // Standard Error: 6_633 - .saturating_add(Weight::from_parts(527_272, 0).saturating_mul(r.into())) + // Minimum execution time: 2_459_000 picoseconds. + Weight::from_parts(191_200, 0) + // Standard Error: 6_017 + .saturating_add(Weight::from_parts(562_742, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64eqz(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_415_000 picoseconds. - Weight::from_parts(2_511_000, 0) - // Standard Error: 10_855 - .saturating_add(Weight::from_parts(1_987_179, 0).saturating_mul(r.into())) + // Minimum execution time: 2_444_000 picoseconds. + Weight::from_parts(2_497_000, 0) + // Standard Error: 7_924 + .saturating_add(Weight::from_parts(1_968_376, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32eqz(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_374_000 picoseconds. - Weight::from_parts(2_523_000, 0) - // Standard Error: 8_639 - .saturating_add(Weight::from_parts(1_265_345, 0).saturating_mul(r.into())) + // Minimum execution time: 2_446_000 picoseconds. + Weight::from_parts(2_473_000, 0) + // Standard Error: 7_912 + .saturating_add(Weight::from_parts(1_346_364, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32extend8s(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_385_000 picoseconds. - Weight::from_parts(1_218_539, 0) - // Standard Error: 5_119 - .saturating_add(Weight::from_parts(443_968, 0).saturating_mul(r.into())) + // Minimum execution time: 2_464_000 picoseconds. + Weight::from_parts(83_668, 0) + // Standard Error: 7_204 + .saturating_add(Weight::from_parts(543_317, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32extend16s(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_408_000 picoseconds. - Weight::from_parts(1_419_491, 0) - // Standard Error: 3_971 - .saturating_add(Weight::from_parts(429_566, 0).saturating_mul(r.into())) + // Minimum execution time: 2_493_000 picoseconds. + Weight::from_parts(197_096, 0) + // Standard Error: 6_608 + .saturating_add(Weight::from_parts(525_360, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64extend8s(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_442_000 picoseconds. - Weight::from_parts(2_534_000, 0) - // Standard Error: 5_488 - .saturating_add(Weight::from_parts(626_359, 0).saturating_mul(r.into())) + // Minimum execution time: 2_472_000 picoseconds. + Weight::from_parts(2_551_000, 0) + // Standard Error: 5_207 + .saturating_add(Weight::from_parts(642_915, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64extend16s(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_383_000 picoseconds. - Weight::from_parts(267_997, 0) - // Standard Error: 6_829 - .saturating_add(Weight::from_parts(639_304, 0).saturating_mul(r.into())) + // Minimum execution time: 2_505_000 picoseconds. + Weight::from_parts(2_556_000, 0) + // Standard Error: 4_430 + .saturating_add(Weight::from_parts(640_970, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64extend32s(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_336_000 picoseconds. - Weight::from_parts(2_524_000, 0) - // Standard Error: 4_090 - .saturating_add(Weight::from_parts(515_493, 0).saturating_mul(r.into())) + // Minimum execution time: 2_399_000 picoseconds. + Weight::from_parts(2_530_000, 0) + // Standard Error: 4_248 + .saturating_add(Weight::from_parts(574_179, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64extendsi32(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_419_000 picoseconds. - Weight::from_parts(1_479_176, 0) - // Standard Error: 4_590 - .saturating_add(Weight::from_parts(393_408, 0).saturating_mul(r.into())) + // Minimum execution time: 2_467_000 picoseconds. + Weight::from_parts(1_554_632, 0) + // Standard Error: 4_096 + .saturating_add(Weight::from_parts(386_240, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64extendui32(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_404_000 picoseconds. - Weight::from_parts(2_886_191, 0) - // Standard Error: 2_108 - .saturating_add(Weight::from_parts(180_952, 0).saturating_mul(r.into())) + // Minimum execution time: 2_468_000 picoseconds. + Weight::from_parts(3_011_768, 0) + // Standard Error: 1_923 + .saturating_add(Weight::from_parts(160_611, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32wrapi64(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_423_000 picoseconds. - Weight::from_parts(2_587_480, 0) - // Standard Error: 2_350 - .saturating_add(Weight::from_parts(202_312, 0).saturating_mul(r.into())) + // Minimum execution time: 2_464_000 picoseconds. + Weight::from_parts(2_856_296, 0) + // Standard Error: 2_574 + .saturating_add(Weight::from_parts(173_194, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64eq(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_457_000 picoseconds. - Weight::from_parts(2_558_000, 0) - // Standard Error: 9_756 - .saturating_add(Weight::from_parts(1_914_693, 0).saturating_mul(r.into())) + // Minimum execution time: 2_448_000 picoseconds. + Weight::from_parts(2_540_000, 0) + // Standard Error: 8_614 + .saturating_add(Weight::from_parts(1_773_707, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32eq(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_431_000 picoseconds. - Weight::from_parts(2_481_000, 0) - // Standard Error: 8_683 - .saturating_add(Weight::from_parts(1_235_014, 0).saturating_mul(r.into())) + // Minimum execution time: 2_456_000 picoseconds. + Weight::from_parts(2_568_000, 0) + // Standard Error: 6_895 + .saturating_add(Weight::from_parts(1_129_796, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64ne(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_418_000 picoseconds. - Weight::from_parts(2_533_000, 0) - // Standard Error: 9_762 - .saturating_add(Weight::from_parts(1_952_043, 0).saturating_mul(r.into())) + // Minimum execution time: 2_432_000 picoseconds. + Weight::from_parts(2_552_000, 0) + // Standard Error: 8_855 + .saturating_add(Weight::from_parts(1_781_383, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32ne(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_444_000 picoseconds. - Weight::from_parts(2_542_000, 0) - // Standard Error: 8_692 - .saturating_add(Weight::from_parts(1_240_320, 0).saturating_mul(r.into())) + // Minimum execution time: 2_433_000 picoseconds. + Weight::from_parts(2_561_000, 0) + // Standard Error: 8_930 + .saturating_add(Weight::from_parts(1_299_565, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64lts(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_415_000 picoseconds. - Weight::from_parts(2_535_000, 0) - // Standard Error: 10_660 - .saturating_add(Weight::from_parts(1_944_040, 0).saturating_mul(r.into())) + // Minimum execution time: 2_458_000 picoseconds. + Weight::from_parts(2_509_000, 0) + // Standard Error: 7_370 + .saturating_add(Weight::from_parts(1_912_177, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32lts(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_365_000 picoseconds. - Weight::from_parts(2_469_000, 0) - // Standard Error: 7_760 - .saturating_add(Weight::from_parts(1_232_925, 0).saturating_mul(r.into())) + // Minimum execution time: 2_375_000 picoseconds. + Weight::from_parts(2_509_000, 0) + // Standard Error: 7_609 + .saturating_add(Weight::from_parts(1_318_072, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64ltu(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_445_000 picoseconds. - Weight::from_parts(2_496_000, 0) - // Standard Error: 10_669 - .saturating_add(Weight::from_parts(1_917_582, 0).saturating_mul(r.into())) + // Minimum execution time: 2_438_000 picoseconds. + Weight::from_parts(2_532_000, 0) + // Standard Error: 7_147 + .saturating_add(Weight::from_parts(1_902_313, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32ltu(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_393_000 picoseconds. - Weight::from_parts(2_455_000, 0) - // Standard Error: 8_096 - .saturating_add(Weight::from_parts(1_210_306, 0).saturating_mul(r.into())) + // Minimum execution time: 2_369_000 picoseconds. + Weight::from_parts(2_420_000, 0) + // Standard Error: 7_127 + .saturating_add(Weight::from_parts(1_269_528, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64gts(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_351_000 picoseconds. - Weight::from_parts(2_463_000, 0) - // Standard Error: 10_885 - .saturating_add(Weight::from_parts(1_890_425, 0).saturating_mul(r.into())) + // Minimum execution time: 2_497_000 picoseconds. + Weight::from_parts(2_552_000, 0) + // Standard Error: 9_809 + .saturating_add(Weight::from_parts(1_858_855, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32gts(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_460_000 picoseconds. - Weight::from_parts(2_542_000, 0) - // Standard Error: 9_229 - .saturating_add(Weight::from_parts(1_236_149, 0).saturating_mul(r.into())) + // Minimum execution time: 2_437_000 picoseconds. + Weight::from_parts(2_522_000, 0) + // Standard Error: 9_811 + .saturating_add(Weight::from_parts(1_226_193, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64gtu(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_438_000 picoseconds. - Weight::from_parts(2_519_000, 0) - // Standard Error: 10_023 - .saturating_add(Weight::from_parts(1_937_593, 0).saturating_mul(r.into())) + // Minimum execution time: 2_448_000 picoseconds. + Weight::from_parts(2_500_000, 0) + // Standard Error: 7_568 + .saturating_add(Weight::from_parts(1_955_726, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32gtu(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_414_000 picoseconds. - Weight::from_parts(2_509_000, 0) - // Standard Error: 8_360 - .saturating_add(Weight::from_parts(1_234_039, 0).saturating_mul(r.into())) + // Minimum execution time: 2_441_000 picoseconds. + Weight::from_parts(2_515_000, 0) + // Standard Error: 7_599 + .saturating_add(Weight::from_parts(1_311_184, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64les(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_354_000 picoseconds. - Weight::from_parts(2_409_000, 0) - // Standard Error: 10_328 - .saturating_add(Weight::from_parts(1_926_867, 0).saturating_mul(r.into())) + // Minimum execution time: 2_406_000 picoseconds. + Weight::from_parts(2_526_000, 0) + // Standard Error: 7_978 + .saturating_add(Weight::from_parts(1_934_575, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32les(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_404_000 picoseconds. - Weight::from_parts(2_498_000, 0) - // Standard Error: 6_744 - .saturating_add(Weight::from_parts(1_201_302, 0).saturating_mul(r.into())) + // Minimum execution time: 2_454_000 picoseconds. + Weight::from_parts(2_579_000, 0) + // Standard Error: 7_835 + .saturating_add(Weight::from_parts(1_361_324, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64leu(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_410_000 picoseconds. - Weight::from_parts(2_483_000, 0) - // Standard Error: 9_487 - .saturating_add(Weight::from_parts(1_900_378, 0).saturating_mul(r.into())) + // Minimum execution time: 2_419_000 picoseconds. + Weight::from_parts(2_576_000, 0) + // Standard Error: 7_250 + .saturating_add(Weight::from_parts(1_910_453, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32leu(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_387_000 picoseconds. - Weight::from_parts(2_459_000, 0) - // Standard Error: 7_524 - .saturating_add(Weight::from_parts(1_246_740, 0).saturating_mul(r.into())) + // Minimum execution time: 2_447_000 picoseconds. + Weight::from_parts(2_481_000, 0) + // Standard Error: 7_289 + .saturating_add(Weight::from_parts(1_319_827, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64ges(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_452_000 picoseconds. - Weight::from_parts(2_532_000, 0) - // Standard Error: 9_466 - .saturating_add(Weight::from_parts(1_877_147, 0).saturating_mul(r.into())) + // Minimum execution time: 2_416_000 picoseconds. + Weight::from_parts(2_513_000, 0) + // Standard Error: 9_075 + .saturating_add(Weight::from_parts(1_885_122, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32ges(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_374_000 picoseconds. - Weight::from_parts(2_541_000, 0) - // Standard Error: 8_268 - .saturating_add(Weight::from_parts(1_218_632, 0).saturating_mul(r.into())) + // Minimum execution time: 2_464_000 picoseconds. + Weight::from_parts(2_548_000, 0) + // Standard Error: 6_211 + .saturating_add(Weight::from_parts(1_137_406, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64geu(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_393_000 picoseconds. - Weight::from_parts(2_485_000, 0) - // Standard Error: 9_288 - .saturating_add(Weight::from_parts(1_892_308, 0).saturating_mul(r.into())) + // Minimum execution time: 2_504_000 picoseconds. + Weight::from_parts(2_541_000, 0) + // Standard Error: 9_758 + .saturating_add(Weight::from_parts(1_796_339, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32geu(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_416_000 picoseconds. - Weight::from_parts(2_490_000, 0) - // Standard Error: 7_514 - .saturating_add(Weight::from_parts(1_221_546, 0).saturating_mul(r.into())) + // Minimum execution time: 2_506_000 picoseconds. + Weight::from_parts(2_560_000, 0) + // Standard Error: 9_133 + .saturating_add(Weight::from_parts(1_357_535, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64add(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_396_000 picoseconds. - Weight::from_parts(2_479_000, 0) - // Standard Error: 8_638 - .saturating_add(Weight::from_parts(1_370_587, 0).saturating_mul(r.into())) + // Minimum execution time: 2_367_000 picoseconds. + Weight::from_parts(2_480_000, 0) + // Standard Error: 8_359 + .saturating_add(Weight::from_parts(1_478_633, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32add(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_364_000 picoseconds. - Weight::from_parts(2_433_000, 0) - // Standard Error: 7_144 - .saturating_add(Weight::from_parts(740_923, 0).saturating_mul(r.into())) + // Minimum execution time: 2_452_000 picoseconds. + Weight::from_parts(2_541_000, 0) + // Standard Error: 6_517 + .saturating_add(Weight::from_parts(796_336, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64sub(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_409_000 picoseconds. - Weight::from_parts(2_490_000, 0) - // Standard Error: 7_493 - .saturating_add(Weight::from_parts(1_344_150, 0).saturating_mul(r.into())) + // Minimum execution time: 2_533_000 picoseconds. + Weight::from_parts(2_581_000, 0) + // Standard Error: 8_508 + .saturating_add(Weight::from_parts(1_464_442, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32sub(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_332_000 picoseconds. - Weight::from_parts(2_408_000, 0) - // Standard Error: 5_062 - .saturating_add(Weight::from_parts(682_810, 0).saturating_mul(r.into())) + // Minimum execution time: 2_458_000 picoseconds. + Weight::from_parts(2_555_000, 0) + // Standard Error: 6_791 + .saturating_add(Weight::from_parts(786_844, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64mul(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_357_000 picoseconds. - Weight::from_parts(2_429_000, 0) - // Standard Error: 8_825 - .saturating_add(Weight::from_parts(1_852_934, 0).saturating_mul(r.into())) + // Minimum execution time: 2_538_000 picoseconds. + Weight::from_parts(2_568_000, 0) + // Standard Error: 7_582 + .saturating_add(Weight::from_parts(1_877_594, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32mul(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_379_000 picoseconds. - Weight::from_parts(2_477_000, 0) - // Standard Error: 7_950 - .saturating_add(Weight::from_parts(1_310_475, 0).saturating_mul(r.into())) + // Minimum execution time: 2_467_000 picoseconds. + Weight::from_parts(2_564_000, 0) + // Standard Error: 7_649 + .saturating_add(Weight::from_parts(1_374_403, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64divs(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_486_000 picoseconds. - Weight::from_parts(7_409_149, 0) - // Standard Error: 23_280 - .saturating_add(Weight::from_parts(2_380_599, 0).saturating_mul(r.into())) + // Minimum execution time: 2_417_000 picoseconds. + Weight::from_parts(13_577_124, 0) + // Standard Error: 24_454 + .saturating_add(Weight::from_parts(1_848_524, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32divs(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_354_000 picoseconds. - Weight::from_parts(3_985_947, 0) - // Standard Error: 17_253 - .saturating_add(Weight::from_parts(2_308_046, 0).saturating_mul(r.into())) + // Minimum execution time: 2_448_000 picoseconds. + Weight::from_parts(8_056_015, 0) + // Standard Error: 18_230 + .saturating_add(Weight::from_parts(1_998_870, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64divu(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_428_000 picoseconds. - Weight::from_parts(5_185_413, 0) - // Standard Error: 23_626 - .saturating_add(Weight::from_parts(2_773_914, 0).saturating_mul(r.into())) + // Minimum execution time: 2_501_000 picoseconds. + Weight::from_parts(6_359_851, 0) + // Standard Error: 24_959 + .saturating_add(Weight::from_parts(2_532_087, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32divu(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_429_000 picoseconds. - Weight::from_parts(1_762_312, 0) - // Standard Error: 13_137 - .saturating_add(Weight::from_parts(2_479_857, 0).saturating_mul(r.into())) + // Minimum execution time: 2_465_000 picoseconds. + Weight::from_parts(3_211_947, 0) + // Standard Error: 12_549 + .saturating_add(Weight::from_parts(2_290_659, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64rems(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_409_000 picoseconds. - Weight::from_parts(6_183_774, 0) - // Standard Error: 38_390 - .saturating_add(Weight::from_parts(9_036_753, 0).saturating_mul(r.into())) + // Minimum execution time: 2_416_000 picoseconds. + Weight::from_parts(2_484_000, 0) + // Standard Error: 14_396 + .saturating_add(Weight::from_parts(9_501_882, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32rems(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_365_000 picoseconds. - Weight::from_parts(4_139_889, 0) - // Standard Error: 41_118 - .saturating_add(Weight::from_parts(7_440_928, 0).saturating_mul(r.into())) + // Minimum execution time: 2_551_000 picoseconds. + Weight::from_parts(2_786_324, 0) + // Standard Error: 42_129 + .saturating_add(Weight::from_parts(7_363_990, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64remu(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_381_000 picoseconds. - Weight::from_parts(6_243_134, 0) - // Standard Error: 22_183 - .saturating_add(Weight::from_parts(2_805_045, 0).saturating_mul(r.into())) + // Minimum execution time: 2_444_000 picoseconds. + Weight::from_parts(11_631_140, 0) + // Standard Error: 29_415 + .saturating_add(Weight::from_parts(2_239_863, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32remu(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_235_000 picoseconds. - Weight::from_parts(3_471_941, 0) - // Standard Error: 17_840 - .saturating_add(Weight::from_parts(2_399_950, 0).saturating_mul(r.into())) + // Minimum execution time: 2_722_000 picoseconds. + Weight::from_parts(8_602_177, 0) + // Standard Error: 23_181 + .saturating_add(Weight::from_parts(2_039_962, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64and(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_386_000 picoseconds. - Weight::from_parts(2_442_000, 0) - // Standard Error: 9_450 - .saturating_add(Weight::from_parts(1_363_334, 0).saturating_mul(r.into())) + // Minimum execution time: 2_417_000 picoseconds. + Weight::from_parts(2_553_000, 0) + // Standard Error: 7_930 + .saturating_add(Weight::from_parts(1_480_355, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32and(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_344_000 picoseconds. - Weight::from_parts(2_515_000, 0) - // Standard Error: 5_086 - .saturating_add(Weight::from_parts(682_806, 0).saturating_mul(r.into())) + // Minimum execution time: 2_411_000 picoseconds. + Weight::from_parts(2_496_000, 0) + // Standard Error: 6_547 + .saturating_add(Weight::from_parts(804_477, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64or(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_426_000 picoseconds. - Weight::from_parts(2_542_000, 0) - // Standard Error: 9_043 - .saturating_add(Weight::from_parts(1_383_826, 0).saturating_mul(r.into())) + // Minimum execution time: 2_506_000 picoseconds. + Weight::from_parts(2_577_000, 0) + // Standard Error: 8_009 + .saturating_add(Weight::from_parts(1_437_777, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32or(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_462_000 picoseconds. - Weight::from_parts(2_534_000, 0) - // Standard Error: 5_704 - .saturating_add(Weight::from_parts(687_779, 0).saturating_mul(r.into())) + // Minimum execution time: 2_310_000 picoseconds. + Weight::from_parts(2_424_000, 0) + // Standard Error: 4_869 + .saturating_add(Weight::from_parts(684_646, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64xor(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_386_000 picoseconds. - Weight::from_parts(2_437_000, 0) - // Standard Error: 7_683 - .saturating_add(Weight::from_parts(1_343_755, 0).saturating_mul(r.into())) + // Minimum execution time: 2_441_000 picoseconds. + Weight::from_parts(2_497_000, 0) + // Standard Error: 10_084 + .saturating_add(Weight::from_parts(1_349_015, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32xor(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_376_000 picoseconds. - Weight::from_parts(2_482_000, 0) - // Standard Error: 4_933 - .saturating_add(Weight::from_parts(708_732, 0).saturating_mul(r.into())) + // Minimum execution time: 2_464_000 picoseconds. + Weight::from_parts(2_574_000, 0) + // Standard Error: 7_421 + .saturating_add(Weight::from_parts(789_933, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64shl(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_449_000 picoseconds. - Weight::from_parts(2_532_000, 0) - // Standard Error: 6_389 - .saturating_add(Weight::from_parts(1_180_854, 0).saturating_mul(r.into())) + // Minimum execution time: 2_466_000 picoseconds. + Weight::from_parts(2_541_000, 0) + // Standard Error: 8_551 + .saturating_add(Weight::from_parts(1_311_103, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32shl(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_349_000 picoseconds. - Weight::from_parts(2_425_000, 0) - // Standard Error: 4_313 - .saturating_add(Weight::from_parts(633_941, 0).saturating_mul(r.into())) + // Minimum execution time: 2_480_000 picoseconds. + Weight::from_parts(2_547_000, 0) + // Standard Error: 6_237 + .saturating_add(Weight::from_parts(740_808, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64shrs(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_467_000 picoseconds. - Weight::from_parts(2_512_000, 0) - // Standard Error: 8_780 - .saturating_add(Weight::from_parts(1_192_503, 0).saturating_mul(r.into())) + // Minimum execution time: 2_451_000 picoseconds. + Weight::from_parts(2_482_000, 0) + // Standard Error: 8_019 + .saturating_add(Weight::from_parts(1_301_680, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32shrs(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_527_000 picoseconds. - Weight::from_parts(2_588_000, 0) - // Standard Error: 4_176 - .saturating_add(Weight::from_parts(593_049, 0).saturating_mul(r.into())) + // Minimum execution time: 2_479_000 picoseconds. + Weight::from_parts(2_560_000, 0) + // Standard Error: 4_542 + .saturating_add(Weight::from_parts(651_494, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64shru(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_415_000 picoseconds. - Weight::from_parts(2_530_000, 0) - // Standard Error: 7_794 - .saturating_add(Weight::from_parts(1_154_673, 0).saturating_mul(r.into())) + // Minimum execution time: 2_437_000 picoseconds. + Weight::from_parts(2_539_000, 0) + // Standard Error: 6_578 + .saturating_add(Weight::from_parts(1_103_078, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32shru(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_440_000 picoseconds. - Weight::from_parts(2_524_000, 0) - // Standard Error: 5_453 - .saturating_add(Weight::from_parts(633_003, 0).saturating_mul(r.into())) + // Minimum execution time: 2_510_000 picoseconds. + Weight::from_parts(2_566_000, 0) + // Standard Error: 5_804 + .saturating_add(Weight::from_parts(608_889, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64rotl(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_341_000 picoseconds. - Weight::from_parts(2_378_000, 0) - // Standard Error: 8_555 - .saturating_add(Weight::from_parts(1_196_751, 0).saturating_mul(r.into())) + // Minimum execution time: 2_403_000 picoseconds. + Weight::from_parts(2_494_000, 0) + // Standard Error: 7_647 + .saturating_add(Weight::from_parts(1_279_714, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32rotl(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_395_000 picoseconds. - Weight::from_parts(2_496_000, 0) - // Standard Error: 4_682 - .saturating_add(Weight::from_parts(627_173, 0).saturating_mul(r.into())) + // Minimum execution time: 2_489_000 picoseconds. + Weight::from_parts(2_549_000, 0) + // Standard Error: 5_933 + .saturating_add(Weight::from_parts(710_512, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i64rotr(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_380_000 picoseconds. - Weight::from_parts(2_444_000, 0) - // Standard Error: 7_964 - .saturating_add(Weight::from_parts(1_141_337, 0).saturating_mul(r.into())) + // Minimum execution time: 2_463_000 picoseconds. + Weight::from_parts(2_573_000, 0) + // Standard Error: 7_876 + .saturating_add(Weight::from_parts(1_291_902, 0).saturating_mul(r.into())) } /// The range of component `r` is `[0, 50]`. fn instr_i32rotr(r: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 2_442_000 picoseconds. - Weight::from_parts(2_531_000, 0) - // Standard Error: 5_193 - .saturating_add(Weight::from_parts(628_586, 0).saturating_mul(r.into())) + // Minimum execution time: 2_394_000 picoseconds. + Weight::from_parts(2_513_000, 0) + // Standard Error: 5_878 + .saturating_add(Weight::from_parts(722_117, 0).saturating_mul(r.into())) } fn tasks_remove_resume_session() -> Weight { // Proof Size summary in bytes: // Measured: `352` // Estimated: `4169` - // Minimum execution time: 5_990_000 picoseconds. - Weight::from_parts(6_384_000, 4169) + // Minimum execution time: 5_941_000 picoseconds. + Weight::from_parts(6_194_000, 4169) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } @@ -4062,8 +4058,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `1107` // Estimated: `24053` - // Minimum execution time: 64_318_000 picoseconds. - Weight::from_parts(67_713_000, 24053) + // Minimum execution time: 63_669_000 picoseconds. + Weight::from_parts(71_431_000, 24053) .saturating_add(RocksDbWeight::get().reads(7_u64)) .saturating_add(RocksDbWeight::get().writes(6_u64)) } @@ -4071,8 +4067,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `888` // Estimated: `22158` - // Minimum execution time: 50_396_000 picoseconds. - Weight::from_parts(57_319_000, 22158) + // Minimum execution time: 47_776_000 picoseconds. + Weight::from_parts(49_097_000, 22158) .saturating_add(RocksDbWeight::get().reads(6_u64)) .saturating_add(RocksDbWeight::get().writes(5_u64)) } @@ -4080,8 +4076,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `1010` // Estimated: `34619` - // Minimum execution time: 81_192_000 picoseconds. - Weight::from_parts(110_464_000, 34619) + // Minimum execution time: 76_569_000 picoseconds. + Weight::from_parts(80_956_000, 34619) .saturating_add(RocksDbWeight::get().reads(11_u64)) .saturating_add(RocksDbWeight::get().writes(10_u64)) } @@ -4089,8 +4085,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `695` // Estimated: `20509` - // Minimum execution time: 33_549_000 picoseconds. - Weight::from_parts(35_457_000, 20509) + // Minimum execution time: 33_298_000 picoseconds. + Weight::from_parts(34_390_000, 20509) .saturating_add(RocksDbWeight::get().reads(7_u64)) .saturating_add(RocksDbWeight::get().writes(6_u64)) } @@ -4098,8 +4094,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `976` // Estimated: `26636` - // Minimum execution time: 53_062_000 picoseconds. - Weight::from_parts(55_913_000, 26636) + // Minimum execution time: 51_224_000 picoseconds. + Weight::from_parts(54_016_000, 26636) .saturating_add(RocksDbWeight::get().reads(8_u64)) .saturating_add(RocksDbWeight::get().writes(6_u64)) } @@ -4107,16 +4103,16 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `80` // Estimated: `3545` - // Minimum execution time: 3_544_000 picoseconds. - Weight::from_parts(3_797_000, 3545) + // Minimum execution time: 3_502_000 picoseconds. + Weight::from_parts(3_736_000, 3545) .saturating_add(RocksDbWeight::get().reads(1_u64)) } fn tasks_remove_from_waitlist() -> Weight { // Proof Size summary in bytes: // Measured: `1626` // Estimated: `58232` - // Minimum execution time: 119_636_000 picoseconds. - Weight::from_parts(122_812_000, 58232) + // Minimum execution time: 116_554_000 picoseconds. + Weight::from_parts(120_965_000, 58232) .saturating_add(RocksDbWeight::get().reads(16_u64)) .saturating_add(RocksDbWeight::get().writes(13_u64)) } @@ -4124,8 +4120,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `1332` // Estimated: `46962` - // Minimum execution time: 94_503_000 picoseconds. - Weight::from_parts(98_976_000, 46962) + // Minimum execution time: 91_297_000 picoseconds. + Weight::from_parts(98_825_000, 46962) .saturating_add(RocksDbWeight::get().reads(14_u64)) .saturating_add(RocksDbWeight::get().writes(13_u64)) } @@ -4134,10 +4130,10 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `2303 + c * (16400 ±0)` // Estimated: `19878 + c * (84480 ±0)` - // Minimum execution time: 31_538_000 picoseconds. - Weight::from_parts(32_681_000, 19878) - // Standard Error: 71_008 - .saturating_add(Weight::from_parts(39_112_947, 0).saturating_mul(c.into())) + // Minimum execution time: 30_995_000 picoseconds. + Weight::from_parts(31_512_000, 19878) + // Standard Error: 83_380 + .saturating_add(Weight::from_parts(39_172_227, 0).saturating_mul(c.into())) .saturating_add(RocksDbWeight::get().reads(4_u64)) .saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(c.into()))) .saturating_add(RocksDbWeight::get().writes(2_u64)) @@ -4147,12 +4143,12 @@ impl WeightInfo for () { /// The range of component `c` is `[0, 2044]`. fn tasks_pause_program_uninited(c: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `3129 + c * (42 ±0)` - // Estimated: `60575 + c * (2947 ±0)` - // Minimum execution time: 91_887_000 picoseconds. - Weight::from_parts(87_209_551, 60575) - // Standard Error: 2_248 - .saturating_add(Weight::from_parts(1_083_157, 0).saturating_mul(c.into())) + // Measured: `3181 + c * (42 ±0)` + // Estimated: `61147 + c * (2947 ±0)` + // Minimum execution time: 92_674_000 picoseconds. + Weight::from_parts(116_875_856, 61147) + // Standard Error: 2_740 + .saturating_add(Weight::from_parts(1_037_041, 0).saturating_mul(c.into())) .saturating_add(RocksDbWeight::get().reads(13_u64)) .saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(c.into()))) .saturating_add(RocksDbWeight::get().writes(9_u64)) diff --git a/runtime/vara/src/weights/pallet_gear_voucher.rs b/runtime/vara/src/weights/pallet_gear_voucher.rs index 101376e2cb3..7dbeb77c25c 100644 --- a/runtime/vara/src/weights/pallet_gear_voucher.rs +++ b/runtime/vara/src/weights/pallet_gear_voucher.rs @@ -19,7 +19,7 @@ //! Autogenerated weights for pallet_gear_voucher //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-09-28, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2023-10-20, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` //! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("vara-dev"), DB CACHE: 1024 @@ -47,8 +47,8 @@ impl pallet_gear_voucher::WeightInfo for SubstrateWeigh // Proof Size summary in bytes: // Measured: `101` // Estimated: `6196` - // Minimum execution time: 26_422_000 picoseconds. - Weight::from_parts(27_445_000, 6196) + // Minimum execution time: 26_880_000 picoseconds. + Weight::from_parts(27_991_000, 6196) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } @@ -60,8 +60,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `101` // Estimated: `6196` - // Minimum execution time: 26_422_000 picoseconds. - Weight::from_parts(27_445_000, 6196) + // Minimum execution time: 26_880_000 picoseconds. + Weight::from_parts(27_991_000, 6196) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } diff --git a/runtime/vara/src/weights/pallet_timestamp.rs b/runtime/vara/src/weights/pallet_timestamp.rs index 37ea0ca7c11..2e675252087 100644 --- a/runtime/vara/src/weights/pallet_timestamp.rs +++ b/runtime/vara/src/weights/pallet_timestamp.rs @@ -19,7 +19,7 @@ //! Autogenerated weights for pallet_timestamp //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-09-28, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2023-10-20, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz` //! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("vara-dev"), DB CACHE: 1024 @@ -48,8 +48,8 @@ impl pallet_timestamp::WeightInfo for SubstrateWeight pallet_timestamp::WeightInfo for SubstrateWeight pallet_utility::WeightInfo for SubstrateWeight // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 5_322_000 picoseconds. - Weight::from_parts(7_918_705, 0) - // Standard Error: 2_884 - .saturating_add(Weight::from_parts(3_959_889, 0).saturating_mul(c.into())) + // Minimum execution time: 5_313_000 picoseconds. + Weight::from_parts(5_527_385, 0) + // Standard Error: 3_892 + .saturating_add(Weight::from_parts(4_029_599, 0).saturating_mul(c.into())) } fn as_derivative() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 3_832_000 picoseconds. - Weight::from_parts(4_118_000, 0) + // Minimum execution time: 3_626_000 picoseconds. + Weight::from_parts(3_847_000, 0) } /// The range of component `c` is `[0, 1000]`. fn batch_all(c: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 5_226_000 picoseconds. - Weight::from_parts(9_080_830, 0) - // Standard Error: 3_911 - .saturating_add(Weight::from_parts(4_181_646, 0).saturating_mul(c.into())) + // Minimum execution time: 5_387_000 picoseconds. + Weight::from_parts(8_802_776, 0) + // Standard Error: 2_952 + .saturating_add(Weight::from_parts(4_258_432, 0).saturating_mul(c.into())) } fn dispatch_as() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 6_965_000 picoseconds. - Weight::from_parts(7_422_000, 0) + // Minimum execution time: 6_837_000 picoseconds. + Weight::from_parts(7_325_000, 0) } /// The range of component `c` is `[0, 1000]`. fn force_batch(c: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 5_298_000 picoseconds. - Weight::from_parts(2_699_738, 0) - // Standard Error: 4_497 - .saturating_add(Weight::from_parts(4_020_014, 0).saturating_mul(c.into())) + // Minimum execution time: 5_340_000 picoseconds. + Weight::from_parts(12_759_015, 0) + // Standard Error: 3_528 + .saturating_add(Weight::from_parts(4_022_535, 0).saturating_mul(c.into())) } } @@ -100,43 +100,43 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 5_322_000 picoseconds. - Weight::from_parts(7_918_705, 0) - // Standard Error: 2_884 - .saturating_add(Weight::from_parts(3_959_889, 0).saturating_mul(c.into())) + // Minimum execution time: 5_313_000 picoseconds. + Weight::from_parts(5_527_385, 0) + // Standard Error: 3_892 + .saturating_add(Weight::from_parts(4_029_599, 0).saturating_mul(c.into())) } fn as_derivative() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 3_832_000 picoseconds. - Weight::from_parts(4_118_000, 0) + // Minimum execution time: 3_626_000 picoseconds. + Weight::from_parts(3_847_000, 0) } /// The range of component `c` is `[0, 1000]`. fn batch_all(c: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 5_226_000 picoseconds. - Weight::from_parts(9_080_830, 0) - // Standard Error: 3_911 - .saturating_add(Weight::from_parts(4_181_646, 0).saturating_mul(c.into())) + // Minimum execution time: 5_387_000 picoseconds. + Weight::from_parts(8_802_776, 0) + // Standard Error: 2_952 + .saturating_add(Weight::from_parts(4_258_432, 0).saturating_mul(c.into())) } fn dispatch_as() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 6_965_000 picoseconds. - Weight::from_parts(7_422_000, 0) + // Minimum execution time: 6_837_000 picoseconds. + Weight::from_parts(7_325_000, 0) } /// The range of component `c` is `[0, 1000]`. fn force_batch(c: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` - // Minimum execution time: 5_298_000 picoseconds. - Weight::from_parts(2_699_738, 0) - // Standard Error: 4_497 - .saturating_add(Weight::from_parts(4_020_014, 0).saturating_mul(c.into())) + // Minimum execution time: 5_340_000 picoseconds. + Weight::from_parts(12_759_015, 0) + // Standard Error: 3_528 + .saturating_add(Weight::from_parts(4_022_535, 0).saturating_mul(c.into())) } } diff --git a/scripts/install.sh b/scripts/install.sh index 347c3203450..c47eaef22f7 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -1,13 +1,13 @@ -#!/usr/bin/env bash +#!/bin/sh -set -euo pipefail +set -eu -if [ ! -z ${GITHUB_ACTIONS-} ]; then +if [ -n "${GITHUB_ACTIONS-}" ]; then set -x fi help() { - cat <<'EOF' + cat << EOF Install a binary release of gear hosted on get.gear.rs USAGE: @@ -26,7 +26,6 @@ EOF git=gear-tech/gear crate=gear url=https://get.gear.rs/ -releases=$url say() { echo "$@" } @@ -36,26 +35,20 @@ say_err() { } err() { - if [ ! -z ${td-} ]; then - rm -rf $td + if [ -n "${td-}" ]; then + rm -rf "$td" fi - say_err "error: $@" + say_err "error: $*" exit 1 } need() { - if ! command -v $1 > /dev/null 2>&1; then - err "need $1 (command not found)" - fi + command -v "$1" > /dev/null 2>&1 || err "need $1 (command not found)" } -force=false -while test $# -gt 0; do +while [ $# -gt 0 ]; do case $1 in - --force | -f) - force=true - ;; --help | -h) help exit 0 @@ -79,61 +72,66 @@ while test $# -gt 0; do done # Dependencies +need sudo need curl need install need mkdir need mktemp need tar +need xz # Optional dependencies -if [ -z ${tag-} ]; then +if [ -z "${tag-}" ]; then need cut need rev fi -if [ -z ${dest-} ]; then +if [ -z "${dest-}" ]; then dest="/usr/local/bin" fi -if [ -z ${tag-} ]; then - tag=$(curl --proto =https --tlsv1.2 -sSf https://api.github.com/repos/gear-tech/gear/releases/latest | - grep tag_name | - cut -d'"' -f4 - ) +if [ -z "${tag-}" ]; then + json=$(curl --proto '=https' --tlsv1.2 -sSf "https://api.github.com/repos/$git/releases/latest" || err "failed to get latest release of $git") + tag_name=$(echo "$json" | grep tag_name || err "failed to parse tag_name") + tag=$(echo "$tag_name" | cut -d'"' -f4) fi -if [ -z ${target-} ]; then - uname_target=`uname -m`-`uname -s` +if [ -z "${target-}" ]; then + uname_target=$(uname -m)-$(uname -s) case $uname_target in arm64-Darwin) target=aarch64-apple-darwin;; x86_64-Darwin) target=x86_64-apple-darwin;; x86_64-Linux) target=x86_64-unknown-linux-gnu;; *) - err 'Could not determine target from output of `uname -m`-`uname -s`, please use `--target`:' $uname_target - err 'Target architecture is not supported by this install script.' - err 'Consider opening an issue or building from source: https://github.com/gear-tech/gear' + err "Could not determine target from output of \`uname -m\`-\`uname -s\`, please use --target: $uname_target +Target architecture is not supported by this install script. +Consider opening an issue or building from source: https://github.com/$git" ;; esac fi -archive="$url$crate-$tag-$target.tar.xz" +archive_name="$crate-$tag-$target.tar.xz" +archive_url="$url$archive_name" say "Crate: $crate" say "Tag: $tag" say "Target: $target" say "Destination: $dest" -say "Archive: $archive" +say "Archive URL: $archive_url" td=$(mktemp -d || mktemp -d -t tmp) -curl --proto =https --tlsv1.2 -SfL $archive | tar -C $td -xJv +archive_tmp="$td/$archive_name" + +curl --proto '=https' --tlsv1.2 -SfL "$archive_url" -o "$archive_tmp" || err "failed to download $archive_name" +tar -C "$td" -xf "$archive_tmp" || err "failed to extract $archive_name" -for f in $(ls $td); do - test -x $td/$f || continue +for f in "$td"/*; do + [ -x "$f" ] || continue - mkdir -p $dest - sudo install -m 755 $td/$f $dest + mkdir -p "$dest" + sudo install -m 755 "$f" "$dest" done -rm -rf $td +rm -rf "$td" diff --git a/utils/node-loader/src/utils.rs b/utils/node-loader/src/utils.rs index c73cd4bd07a..2b37f07b21c 100644 --- a/utils/node-loader/src/utils.rs +++ b/utils/node-loader/src/utils.rs @@ -239,7 +239,6 @@ pub fn get_wasm_gen_config( injection_types, params_config, initial_pages: initial_pages as u32, - unreachable_enabled: false, ..Default::default() } } diff --git a/utils/runtime-fuzzer/src/gear_calls.rs b/utils/runtime-fuzzer/src/gear_calls.rs index e616f9cfe4b..033be476ad8 100644 --- a/utils/runtime-fuzzer/src/gear_calls.rs +++ b/utils/runtime-fuzzer/src/gear_calls.rs @@ -442,7 +442,6 @@ fn config( existing_addresses, log_info, params_config, - unreachable_enabled: false, initial_pages: initial_pages as u32, ..Default::default() } diff --git a/utils/runtime-fuzzer/src/lib.rs b/utils/runtime-fuzzer/src/lib.rs index a877e90f29b..1c2b4be4f37 100644 --- a/utils/runtime-fuzzer/src/lib.rs +++ b/utils/runtime-fuzzer/src/lib.rs @@ -117,6 +117,7 @@ fn execute_gear_call(sender: AccountId, call: GearCall) -> DispatchResultWithPos payload, gas_limit, value, + false, ) } GearCall::SendMessage(args) => { @@ -127,6 +128,7 @@ fn execute_gear_call(sender: AccountId, call: GearCall) -> DispatchResultWithPos payload, gas_limit, value, + false, ) } GearCall::SendReply(args) => { @@ -137,6 +139,7 @@ fn execute_gear_call(sender: AccountId, call: GearCall) -> DispatchResultWithPos payload, gas_limit, value, + false, ) } GearCall::ClaimValue(args) => { diff --git a/utils/wasm-builder/src/builder_error.rs b/utils/wasm-builder/src/builder_error.rs index 36392613cdf..9af568b6875 100644 --- a/utils/wasm-builder/src/builder_error.rs +++ b/utils/wasm-builder/src/builder_error.rs @@ -38,9 +38,6 @@ pub enum BuilderError { #[error("code check failed: `{0}`")] CodeCheckFailed(CodeError), - #[error("cargo path is invalid `{0}`")] - CargoPathInvalid(PathBuf), - #[error("cargo toolchain is invalid `{0}`")] CargoToolchainInvalid(String), } diff --git a/utils/wasm-builder/src/cargo_toolchain.rs b/utils/wasm-builder/src/cargo_toolchain.rs index fe2b2de11cc..a0cdad14398 100644 --- a/utils/wasm-builder/src/cargo_toolchain.rs +++ b/utils/wasm-builder/src/cargo_toolchain.rs @@ -17,10 +17,10 @@ // along with this program. If not, see . use crate::builder_error::BuilderError; -use anyhow::Result; +use anyhow::{Context, Result}; use once_cell::sync::Lazy; use regex::Regex; -use std::{borrow::Cow, ffi::OsStr, path::PathBuf}; +use std::{borrow::Cow, process::Command}; // The channel patterns we support (borrowed from the rustup code) static TOOLCHAIN_CHANNELS: &[&str] = &[ @@ -39,19 +39,25 @@ impl Toolchain { pub fn nightly() -> Self { Self("nightly".into()) } - /// Extracts `Toolchain` from cargo executable path. - /// - /// WARNING: There is no validation for the `path` argument provided. - pub fn try_from_cargo_path(path: impl Into) -> Result { - let path = path.into(); - - // Cargo path format: - // "$RUSTUP_HOME/toolchains/**toolchain_desc**/bin/cargo" - let toolchain_desc = path - .iter() - .nth_back(2) - .and_then(OsStr::to_str) - .ok_or_else(|| BuilderError::CargoPathInvalid(path.clone()))?; + + /// Fetches `Toolchain` via rustup. + pub fn try_from_rustup() -> Result { + let output = Command::new("rustup") + .args(["show", "active-toolchain"]) + .output() + .context("`rustup` command failed")?; + + anyhow::ensure!( + output.status.success(), + "`rustup` exit code is not successful" + ); + + let toolchain_desc = output + .stdout + .split(|&x| x == b' ') + .next() + .and_then(|s| std::str::from_utf8(s).ok()) + .expect("unexpected `rustup` output"); static TOOLCHAIN_CHANNEL_RE: Lazy = Lazy::new(|| { // This regex is borrowed from the rustup code and modified (added non-capturing groups) diff --git a/utils/wasm-builder/src/lib.rs b/utils/wasm-builder/src/lib.rs index aac5416ee39..46843995653 100644 --- a/utils/wasm-builder/src/lib.rs +++ b/utils/wasm-builder/src/lib.rs @@ -20,11 +20,7 @@ use crate::{cargo_command::CargoCommand, cargo_toolchain::Toolchain, wasm_projec use anyhow::{Context, Result}; use gmeta::{Metadata, MetadataRepr}; use regex::Regex; -use std::{ - env, - path::{Path, PathBuf}, - process, -}; +use std::{env, path::PathBuf, process}; use wasm_project::ProjectType; mod builder_error; @@ -92,14 +88,9 @@ impl WasmBuilder { } fn build_project(mut self) -> Result<()> { - let cargo_path = env::var("CARGO")?; - self.wasm_project.generate()?; - self.cargo - .set_toolchain(Toolchain::try_from_cargo_path(Path::new( - cargo_path.as_str(), - ))?); + self.cargo.set_toolchain(Toolchain::try_from_rustup()?); self.cargo .set_manifest_path(self.wasm_project.manifest_path()); self.cargo.set_target_dir(self.wasm_project.target_dir()); diff --git a/utils/wasm-gen/src/config.rs b/utils/wasm-gen/src/config.rs index 2ec76ebfeb7..3b797ed5d15 100644 --- a/utils/wasm-gen/src/config.rs +++ b/utils/wasm-gen/src/config.rs @@ -28,7 +28,6 @@ //! //! fn my_config<'a>(u: &'a mut Unstructured<'a>) -> Result { //! let selectable_params = SelectableParams { -//! call_indirect_enabled: false, //! allowed_instructions: vec![ //! InstructionKind::Numeric, //! InstructionKind::Reference, @@ -41,7 +40,6 @@ //! max_instructions: 100_000, //! min_funcs: NonZeroUsize::new(15).unwrap(), //! max_funcs: NonZeroUsize::new(30).unwrap(), -//! unreachable_enabled: true, //! }; //! let arbitrary = ArbitraryParams::arbitrary(u)?; //! Ok((selectable_params, arbitrary).into()) @@ -142,9 +140,6 @@ pub struct StandardGearWasmConfigsBundle { pub existing_addresses: Option>, /// Flag which signals whether recursions must be removed. pub remove_recursion: bool, - /// Flag which signals whether `call_indirect` instruction must be used - /// during wasm generation. - pub call_indirect_enabled: bool, /// Injection type for each syscall. pub injection_types: SysCallsInjectionTypes, /// Config of gear wasm call entry-points (exports). @@ -155,9 +150,6 @@ pub struct StandardGearWasmConfigsBundle { pub stack_end_page: Option, /// Syscalls params config pub params_config: SysCallsParamsConfig, - /// Flag which signals whether `unreachable` instruction must be used - /// during wasm generation. - pub unreachable_enabled: bool, } impl Default for StandardGearWasmConfigsBundle { @@ -166,13 +158,11 @@ impl Default for StandardGearWasmConfigsBundle { log_info: Some("StandardGearWasmConfigsBundle".into()), existing_addresses: None, remove_recursion: false, - call_indirect_enabled: true, injection_types: SysCallsInjectionTypes::all_once(), entry_points_set: Default::default(), initial_pages: DEFAULT_INITIAL_SIZE, stack_end_page: None, params_config: SysCallsParamsConfig::default(), - unreachable_enabled: true, } } } @@ -183,20 +173,14 @@ impl> ConfigsBundle for StandardGearWasmConfigsBundle { log_info, existing_addresses, remove_recursion, - call_indirect_enabled, injection_types, entry_points_set, initial_pages, stack_end_page, params_config, - unreachable_enabled, } = self; - let selectable_params = SelectableParams { - call_indirect_enabled, - unreachable_enabled, - ..SelectableParams::default() - }; + let selectable_params = SelectableParams::default(); let mut syscalls_config_builder = SysCallsConfigBuilder::new(injection_types); if let Some(log_info) = log_info { diff --git a/utils/wasm-gen/src/config/module.rs b/utils/wasm-gen/src/config/module.rs index 709c35a2678..5e473d85d74 100644 --- a/utils/wasm-gen/src/config/module.rs +++ b/utils/wasm-gen/src/config/module.rs @@ -18,7 +18,7 @@ //! Config entities related to generating plain wasm module using `wasm-smith`. //! -//! We don't give access to wasm_smith::`SwarmConfig` direct;y, but with several adaptors, +//! We don't give access to [`wasm_smith::SwarmConfig`] directly, but with several adaptors, //! because valid wasm module is not always valid gear module. So, some configurational variables //! can be arbitrary, but some must be constantly set. That's implemented with [`ArbitraryParams`] //! and [`ConstantParams`]. @@ -31,7 +31,7 @@ use wasm_smith::{InstructionKind::*, InstructionKinds, SwarmConfig}; /// Wasm module generation config. /// -/// This config wraps the `wasm_smith::SwarmConfig`. That's to make it +/// This config wraps the [`wasm_smith::SwarmConfig`]. That's to make it /// easy creating a configuration, which is custom, from one side, and, /// from another side, results in generating valid gear wasm modules. #[derive(Debug, Clone)] @@ -58,6 +58,7 @@ impl From<(SelectableParams, ArbitraryParams)> for WasmModuleConfig { let ConstantParams { allow_start_export, bulk_memory_enabled, + disallow_traps, exceptions_enabled, max_exports, max_imports, @@ -69,6 +70,7 @@ impl From<(SelectableParams, ArbitraryParams)> for WasmModuleConfig { min_imports, multi_value_enabled, reference_types_enabled, + tail_call_enabled, relaxed_simd_enabled, saturating_float_to_int_enabled, sign_extension_enabled, @@ -82,12 +84,10 @@ impl From<(SelectableParams, ArbitraryParams)> for WasmModuleConfig { } = ConstantParams::default(); let SelectableParams { - call_indirect_enabled, allowed_instructions, max_instructions, min_funcs, max_funcs, - unreachable_enabled, } = selectable_params; let min_funcs = min_funcs.get(); @@ -129,6 +129,7 @@ impl From<(SelectableParams, ArbitraryParams)> for WasmModuleConfig { available_imports, bulk_memory_enabled, canonicalize_nans, + disallow_traps, exceptions_enabled, export_everything, max_aliases, @@ -168,6 +169,7 @@ impl From<(SelectableParams, ArbitraryParams)> for WasmModuleConfig { min_uleb_size, multi_value_enabled, reference_types_enabled, + tail_call_enabled, relaxed_simd_enabled, saturating_float_to_int_enabled, sign_extension_enabled, @@ -178,8 +180,6 @@ impl From<(SelectableParams, ArbitraryParams)> for WasmModuleConfig { max_table_elements, table_max_size_required, memory_grow_enabled, - call_indirect_enabled, - unreachable_instruction_enabled: unreachable_enabled, }) } } @@ -289,6 +289,7 @@ impl Arbitrary<'_> for ArbitraryParams { pub struct ConstantParams { allow_start_export: bool, bulk_memory_enabled: bool, + disallow_traps: bool, exceptions_enabled: bool, max_data_segments: usize, max_exports: usize, @@ -303,6 +304,7 @@ pub struct ConstantParams { min_imports: usize, multi_value_enabled: bool, reference_types_enabled: bool, + tail_call_enabled: bool, relaxed_simd_enabled: bool, saturating_float_to_int_enabled: bool, sign_extension_enabled: bool, @@ -319,6 +321,7 @@ impl Default for ConstantParams { sign_extension_enabled: false, saturating_float_to_int_enabled: false, reference_types_enabled: false, + tail_call_enabled: false, // This is related to reference_types_enabled. max_tables: 1, simd_enabled: false, @@ -326,6 +329,7 @@ impl Default for ConstantParams { relaxed_simd_enabled: false, exceptions_enabled: false, memory64_enabled: false, + disallow_traps: true, allow_start_export: false, multi_value_enabled: false, memory_grow_enabled: false, @@ -346,9 +350,6 @@ impl Default for ConstantParams { /// Selectable wasm module generation params. #[derive(Debug, Clone)] pub struct SelectableParams { - /// Flag signalizing whether `call_indirect` instruction - /// must be used or not. - pub call_indirect_enabled: bool, /// Set of [`InstructionKind`], that are allowed to /// be generated by `wasm-gen`. pub allowed_instructions: Vec, @@ -361,22 +362,17 @@ pub struct SelectableParams { /// Maximum amount of functions `wasm-gen` will insert /// into generated wasm. pub max_funcs: NonZeroUsize, - /// Flag signalizing whether `unreachable` instruction - /// must be used or not. - pub unreachable_enabled: bool, } impl Default for SelectableParams { fn default() -> Self { Self { - call_indirect_enabled: true, allowed_instructions: vec![ Numeric, Reference, Parametric, Variable, Table, Memory, Control, ], max_instructions: 500, min_funcs: NonZeroUsize::new(3).expect("from non zero value; qed."), max_funcs: NonZeroUsize::new(5).expect("from non zero value; qed."), - unreachable_enabled: true, } } } diff --git a/utils/wasm-gen/src/tests.rs b/utils/wasm-gen/src/tests.rs index 9acfc5c83c0..0cc7ce34c37 100644 --- a/utils/wasm-gen/src/tests.rs +++ b/utils/wasm-gen/src/tests.rs @@ -344,12 +344,10 @@ fn execute_wasm_with_custom_configs( .with_entry_points_config(EntryPointsSet::Init) .build(), SelectableParams { - call_indirect_enabled: false, allowed_instructions: vec![], max_instructions: 0, min_funcs: NonZeroUsize::new(1).unwrap(), max_funcs: NonZeroUsize::new(1).unwrap(), - unreachable_enabled: true, }, ); diff --git a/utils/weight-diff/Cargo.toml b/utils/weight-diff/Cargo.toml index a9bd4c21aa2..826dd7f7fa6 100644 --- a/utils/weight-diff/Cargo.toml +++ b/utils/weight-diff/Cargo.toml @@ -12,7 +12,6 @@ serde = { workspace = true, features = ["derive"] } serde_json.workspace = true tabled.workspace = true -pallet-gear.workspace = true -frame-support.workspace = true - -vara-runtime.workspace = true +pallet-gear = { workspace = true, features = ["std"] } +frame-support = { workspace = true, features = ["std"] } +vara-runtime = { workspace = true, features = ["std"] } diff --git a/utils/weight-diff/src/main.rs b/utils/weight-diff/src/main.rs index ae852cf1d50..e4601486cf3 100644 --- a/utils/weight-diff/src/main.rs +++ b/utils/weight-diff/src/main.rs @@ -50,10 +50,10 @@ enum Commands { Diff { /// path to json file #1 #[arg(value_parser)] - output_path1: PathBuf, + before: PathBuf, /// path to json file #2 #[arg(value_parser)] - output_path2: PathBuf, + after: PathBuf, /// what runtime to compare? #[arg(ignore_case = true, value_enum)] runtime: Runtime, @@ -173,16 +173,15 @@ fn format_value(value: Option, display_units: bool) -> String { .unwrap_or_else(|| "N/A".into()) } -fn format_diff(value1: Option, value2: Option) -> String { - value1 - .filter(|&a| a != 0) - .zip(value2) - .map(|(value1, value2)| { - let (value1, value2) = (value1 as f64, value2 as f64); - let percentage_diff = ((value1 / value2) - 1.0) * 100.0; - format!("{percentage_diff:+.2}%") - }) - .unwrap_or_else(|| "N/A".into()) +fn format_diff(before: Option, after: Option) -> String { + let after = after.filter(|&x| x != 0); + if let (Some(before), Some(after)) = (before, after) { + let (before, after) = (before as f64, after as f64); + let percentage_diff = (1.0 - before / after) * 100.0; + format!("{percentage_diff:+.2}%") + } else { + "N/A".to_string() + } } fn main() { @@ -202,16 +201,16 @@ fn main() { } Commands::Diff { display_units, - output_path1, - output_path2, + before, + after, runtime, kind, } => { let dump1: DeserializableDump = - serde_json::from_str(&fs::read_to_string(output_path1).unwrap()).unwrap(); + serde_json::from_str(&fs::read_to_string(before).unwrap()).unwrap(); let dump2: DeserializableDump = - serde_json::from_str(&fs::read_to_string(output_path2).unwrap()).unwrap(); + serde_json::from_str(&fs::read_to_string(after).unwrap()).unwrap(); let (schedule1, schedule2) = match runtime { Runtime::Vara => (dump1.vara_schedule, dump2.vara_schedule), @@ -248,8 +247,8 @@ fn main() { let mut builder = Builder::default(); builder.set_columns([ "name".into(), - dump1.label.unwrap_or_else(|| "value1".into()), - dump2.label.unwrap_or_else(|| "value2".into()), + dump1.label.unwrap_or_else(|| "before".into()), + dump2.label.unwrap_or_else(|| "after".into()), "diff".into(), ]);