前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >python开源locust负载测试,algorithm

python开源locust负载测试,algorithm

原创
作者头像
yaodo
发布2022-04-24 11:29:55
3980
发布2022-04-24 11:29:55
举报
文章被收录于专栏:netservicenetservice

GitHub - locustio/locust: Scalable user load testing tool written in Python

Installation

Install Python 3.6 or later, if you dont already have it.

Install Locust:

代码语言:javascript
复制
$ pip3 install locust

Validate your installation:

代码语言:javascript
复制
$ locust -V
locust 2.8.6

Now it is time to create your first test!

https://github.com/keon/algorithms

Install

If you want to use the API algorithms in your code, it is as simple as:

代码语言:javascript
复制
$ pip3 install algorithms

You can test by creating a python file: (Ex: use merge_sort in sort)

代码语言:javascript
复制
from algorithms.sort import merge_sort

if __name__ == "__main__":
    my_list = [1, 8, 3, 5, 6]
    my_list = merge_sort(my_list)
    print(my_list)

Uninstall

If you want to uninstall algorithms, it is as simple as:

代码语言:javascript
复制
$ pip3 uninstall -y algorithms

原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。

如有侵权,请联系 cloudcommunity@tencent.com 删除。

原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。

如有侵权,请联系 cloudcommunity@tencent.com 删除。

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • GitHub - locustio/locust: Scalable user load testing tool written in Python
  • Installation
  • https://github.com/keon/algorithms
    • Install
      • Uninstall
      领券
      问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档