欢迎来到代码驿站!

Python代码

当前位置:首页 > 软件编程 > Python代码

Python性能测试工具Locust安装及使用

时间:2021-05-23 08:06:43|栏目:Python代码|点击:

介绍

An open source load testing tool.

一个开源性能测试工具。

define user behaviour with python code, and swarm your system with millions of simultaneous users.

使用Python代码来定义用户行为。用它可以模拟百万计的并发用户访问你的系统。

官方网站:http://locust.io/

Locust安装

1、安装Python:

官方:https://www.python.org/

安装Python2 或Python3

2、安装Locuse

2.1, 通过pip命令安装 /> pip install locustio

2.2, 通过GitHub上克隆项目安装(Python3推荐):https://github.com/locustio/locust

3、安装 pyzmq

If you intend to run Locust distributed across multiple processes/machines, we recommend you to also install pyzmq.

如果你打算运行Locust 分布在多个进程/机器,我们建议你也安装pyzmq.

通过pip命令安装。 /> pip install pyzmq

4、安装成功,CMD敲入命令验证。 /> locust --help

快速使用

(一)Locust 介绍

(二)Locust 安装

(三)Locust 创建性能测试

(四)Locust no-...

(五)Locust 参数说明

(六)Locust 分布式运行

(七)Locust 的类和方法

(八)Locust 设置断言

(九)Locust 参数化

上一篇:python基础教程之类class定义使用方法

栏    目:Python代码

下一篇:Python supervisor强大的进程管理工具的使用

本文标题:Python性能测试工具Locust安装及使用

本文地址:http://www.codeinn.net/misctech/127191.html

推荐教程

广告投放 | 联系我们 | 版权申明

重要申明:本站所有的文章、图片、评论等,均由网友发表或上传并维护或收集自网络,属个人行为,与本站立场无关。

如果侵犯了您的权利,请与我们联系,我们将在24小时内进行处理、任何非本站因素导致的法律后果,本站均不负任何责任。

联系QQ:914707363 | 邮箱:codeinn#126.com(#换成@)

Copyright © 2020 代码驿站 版权所有