性能工具之 locust 简单上手
📌 原文链接:https://mp.weixin.qq.com/...🕘 收藏时间:2023 年 05 月 16 日📂
文档目录:我的文档/应用/微信收藏📑 本文档由金山文档【网页转文档】一键生成
李文 7DGroup
前言
最近学习 python 也想通过 python 中的 locust 模块做性能测试,简单介绍下。官
方网站【https://www.locust.io/】
Locust is an easy-to-use, distributed, user load testing tool. It is intended for
load-testing web sites (or other systems) and figuring out how many
concurrent users a system can handle.
[Locust 是一个易于使用,分布式,用户负载测试工具。它用于负载测试 web 站点(或
其他系统)并计算一个系统可以处理多少并发用户。]
The idea is that during a test, a swarm of locusts will attack your website. The
behavior of each locust (or test user if you will) is defined by you and the
swarming process is monitored from a web UI in real-time. This will help you
battle test and identify bottlenecks in your code before letting real users in.