empty block benchmark (#5852)

This commit is contained in:
Nikolay Volf
2020-04-30 19:18:46 +03:00
committed by GitHub
parent d88720d916
commit 5bd448f812
2 changed files with 8 additions and 0 deletions
+3
View File
@@ -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,
+5
View File
@@ -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,