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
| if __name__ == "__main__": | |
| with open("enable_gevent_debugging.py", "r") as myfile: | |
| exec(myfile.read()) # pylint: disable=W0122 | |
| from locust import HttpLocust, TaskSet, task | |
| class WebTaskSet(TaskSet): | |
| @task | |
| def asdf(self): |
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 collections import defaultdict | |
| from itertools import cycle | |
| from locust import User | |
| def batch_iter(batch_size, iter_): | |
| yield [next(iter_) for _ in range(batch_size)] | |
| def user_gen(user_classes, worker_count): |