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

passkeys: calculate weights #2077

Merged
merged 5 commits into from
Jul 16, 2024
Merged

passkeys: calculate weights #2077

merged 5 commits into from
Jul 16, 2024

Conversation

aramikm
Copy link
Collaborator

@aramikm aramikm commented Jul 15, 2024

Goal

The goal of this PR is to calculate accurate weights for passkey pallet

Related to #2032

Checklist

  • Weights updated

Copy link

codecov bot commented Jul 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

@aramikm aramikm changed the title [WIP] passkeys: calculate weights passkeys: calculate weights Jul 15, 2024
@aramikm aramikm marked this pull request as ready for review July 15, 2024 21:42
@aramikm aramikm requested a review from wilwade as a code owner July 15, 2024 21:42
Weight::from_parts(1_015_000_000, 5078)
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
// Minimum execution time: 1_745_366_000 picoseconds.
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@wilwade After running the weights in CI it looks like it is actually close to 2 billion instead if 1. Which means the transactions would be even more expensive.

Copy link
Collaborator

@enddynayn enddynayn left a comment

Choose a reason for hiding this comment

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

superb! 👍

Copy link
Collaborator

@mattheworris mattheworris left a comment

Choose a reason for hiding this comment

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

🚢 it!

@aramikm aramikm merged commit b242c20 into main Jul 16, 2024
27 checks passed
@aramikm aramikm deleted the passkey_generate_weights branch July 16, 2024 17:45
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.

5 participants