mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 15:47:58 +00:00
empty block benchmark (#5852)
This commit is contained in:
@@ -39,6 +39,8 @@ use crate::core::{self, Path, Mode};
|
||||
|
||||
#[derive(Clone, Copy, Debug, derive_more::Display)]
|
||||
pub enum SizeType {
|
||||
#[display(fmt = "empty")]
|
||||
Empty,
|
||||
#[display(fmt = "small")]
|
||||
Small,
|
||||
#[display(fmt = "medium")]
|
||||
@@ -52,6 +54,7 @@ pub enum SizeType {
|
||||
impl SizeType {
|
||||
fn transactions(&self) -> usize {
|
||||
match self {
|
||||
SizeType::Empty => 0,
|
||||
SizeType::Small => 10,
|
||||
SizeType::Medium => 100,
|
||||
SizeType::Large => 500,
|
||||
|
||||
@@ -73,6 +73,11 @@ fn main() {
|
||||
key_types: KeyTypes::Sr25519,
|
||||
size: SizeType::Medium,
|
||||
},
|
||||
ImportBenchmarkDescription {
|
||||
profile: Profile::Wasm,
|
||||
key_types: KeyTypes::Sr25519,
|
||||
size: SizeType::Empty,
|
||||
},
|
||||
ImportBenchmarkDescription {
|
||||
profile: Profile::Native,
|
||||
key_types: KeyTypes::Ed25519,
|
||||
|
||||
Reference in New Issue
Block a user