python + locust performance test

Performance Testing

Under a certain load, whether the response time of the system meets the characteristic requirements.
Load test;
stress test; (high load)
capacity test; (data volume)
configuration test; (configuration plan)
stability test;
concurrency test; (multiple users)

Test steps:

  1. demand analysis;
  2. Design;
  3. Development and environmental data preparation;
  4. Execute tests;

Getting started with locust

  • Python implementation, open source;
  • Based on coroutine concurrency;
  • load testing framework;
  • Support distributed execution;
  • pip install locust installation;
    official documentation
# my_test.py
from locust import HttpUser

Guess you like

Origin blog.csdn.net/weixin_45228198/article/details/131755969