Today, we use a web perfermance tool to test our web site.
We use locust.
Install locust
1 | pip install locustio |
create a web perfermance program
1 | from locust import HttpLocust, TaskSet, task |
start web test server
1 | locust -f locustfile.py |
open http://localhost:8089/
for web perfermance tester web-portal
1 | http://localhost:8089/ |
Set Number of users to simulate
, Hatch rate (users spawned/second)
and start test.
Instructions
1 | host: the website host that you want to test for; |