Created
October 12, 2025 17:12
-
-
Save av1v3k/e24b96280e58c4aa0fe5c4ccbdf8ad6e to your computer and use it in GitHub Desktop.
Basic locust program to test
This file contains hidden or 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
| from locust import User, task, between | |
| class MyUser(User): | |
| wait_time = between(2, 3) | |
| @task | |
| def my_task1(self): | |
| print('First Task 1') | |
| @task | |
| def my_task2(self): | |
| print('First Task 2') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment