-
Notifications
You must be signed in to change notification settings - Fork 17
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
new_acc load tests #325
new_acc load tests #325
Conversation
Terraform Feature Environment (dev-325)Terraform Initialization ⚙️
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ran the load tests locally and confirm that they work. Awesome work!
@@ -1,3 +1,4 @@ | |||
/target | |||
.direnv | |||
.DS_Store | |||
tmp |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Out of scope for this PR, but I didn't realize in the initial PR that you are creating tmp
under the local directory. We should be using /tmp
instead, tempfile is usually useful for that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! I will invest time into this if the current relayer setup remains permanent.
load-tests/Cargo.toml
Outdated
near-crypto = "0.17.0" | ||
mpc-recovery = { path = "../mpc-recovery" } | ||
rand = "0.8.4" | ||
log = "0.4" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not a huge deal, but we don't use log
in other crates, we use tracing
instead
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point. Done.
.register_transaction( | ||
transaction!(sign) | ||
.set_sequence(5) | ||
.set_weight(1000) // In this scenario we are mostly testing /sign functionality |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does set_weight
actually do here? I would assume that these 5 actions above need to be executed in sequence, so why would we prioritize the last step over the others?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the terminal, you are passing a number of users (N) and a scenario (registrationAndSign
in this case). Then each user executes transactions in sequence (check .set_sequence(k)
). The scenario starts from the beginning after the user ends the previous one.
In these particular load tests we are trying to make as many sign requests as possible. Without .set_weight(1000)
sign will be executed once per registration and registration takes several seconds.
Terraform Feature Environment Destroy (dev-325)Terraform Initialization ⚙️
|
No description provided.