forked from near/nearcore
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: swarmable FT loadtest (near#9111)
To make the locust-based loadtest swarmable: - Create N accounts with deterministic name and keys - N workers pick one each to fund their users Note that the naive approach to share the same funding account across workers doesn't work. They will constantly invalidate each others transactions due to nonces. This commit also moves some code out of `locustfile.py` to `base.py` and `ft.py` for a better separation of concerns. And it includes small fixes/improvements: - allow multiple FT contracts per worker - refresh_nonce sometimes raises a `KeyError` when the account was just created, catch it crudely in a try-catch retry loop - Provide `locust_name` arguments to show better statistics on requests
- Loading branch information
Showing
4 changed files
with
236 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.