Locust is an open source load testing tool. Use Python code to define user behavior, or to simulate millions of users.
Locust is a very simple to use, distributed, User load testing tool. Locust is primarily a load test for websites or other systems that can test how many users a system can handle concurrently.
The Locust is completely time-based, so a single machine supports thousands of concurrent users. Compared to many other event-driven applications, Locust does not use callbacks, but uses lightweight processing gevent.
Characteristics
Write user test scenarios using pure Python code ; UIs or XML is not required
Distributed & Scalable-supports thousands of users
Web-based UI
can test any system , although Locust is Web-oriented, but can also test any other system
Installation:
?
Example code:
?
From locust import httplocust, taskset, task class websitetasks (TaskSet): def on_start (self): Self.client.post ("/login", { " Username ": " test_user ", " password " : ""         }) @task def index (self): Self.client.get ("/") @task def about (self): self.client.get (" /about/") class websiteuser (httplocust): task_set = websitetasks min_wait = 5000 max_wait = 15000
Python Load Test Tool locust