Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add beefy light client tests and benchamarks #13

Open
wants to merge 29 commits into
base: develop
Choose a base branch
from

Conversation

N1ghtStorm
Copy link
Contributor

No description provided.

@N1ghtStorm N1ghtStorm requested review from wer1st and vovac12 March 10, 2023 16:01
@N1ghtStorm N1ghtStorm changed the title Add beefy lc tests benchamarks Add beefy light client tests and benchamarks Mar 10, 2023
}


submit_signature_commitment_10_128 {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is output of your benchmarks?
As I see the result is not mapped to WeightInfo trait.
Also how did you get submit_signature_commitment() weight? Because you will get of methods submit_signature_commitment_x_y() with different weights?

Comment on lines +82 to +84
fn initialize() -> Weight;

fn submit_signature_commitment() -> Weight;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
fn initialize() -> Weight;
fn submit_signature_commitment() -> Weight;
fn initialize() -> Weight;
fn submit_signature_commitment() -> Weight;

@@ -217,7 +233,7 @@ pub mod pallet {
Ok(().into())
}

#[pallet::weight(0)]
#[pallet::weight(<T as Config>::WeightInfo::submit_signature_commitment())]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking at your benchmarks I think you need to rework the weight of submit_signature_commitment()


submit_signature_commitment_20_256 {
let validators = 20;
let tree_size = 256;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Never used

mod benchmark_features;

#[cfg(any(test, feature = "runtime-benchmarks"))]
// #[cfg(test)]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you need this commented code?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants