Locust official website

Official website address: https://www.locust.io/

Doc document: https://docs.locust.io/en/stable/index.html

Locust official website

An open source load testing tool.

An open source load testing tool

Define user behaviour with Python code,and swarm your system with millions of simultaneous users.

Using Python code defines user behavior, and millions of concurrent users using your cluster system

 

Three characteristics:

  • Define user behaviour in code

Definition of user behavior in code

No need for clunky UIs or bloated XML. Just plain code.

 UI does not require heavy or bloated XML. Just simple code

  • Distributed & scalable

Distributed and Scalable

Locust supports running load tests distributed over multiple machines, and can therefore be used to simulate millions of simultaneous users

Locust support distribution to run on multiple machines load testing, and therefore can be used for millions of concurrent users

  • Proven & battle tested

Proven or combat test

Locust has been used to simulate millions of simultaneous users. Battlelog, the web app for the Battlefield games, is load tested using Locust, so one can really say Locust is Battletested ;).

蝗虫已被用于模拟数百万并发用户。Battlelog游戏的网络应用程序Battlelog正在使用Locust进行负载测试,所以人们可以说Locust是Battletested;

Example code

示例代码

A fundamental feature of Locust is that you describe all your test in Python code. No need for clunky UIs or bloated XML, just plain code.

Locust的一个基本特性是您在Python代码中描述所有测试。不需要笨重的UI或臃肿的XML,只需要简单的代码。

 

Installation

安装

The easiest way to install Locust is from PyPI, using pip:

安装Locust最简单的方式是使用pip

pip install locustio


Guess you like

Origin www.cnblogs.com/helloTerry1987/p/Locust.html