Python性能測試工具Locust安裝及使用
介紹
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 參數化
以上就是本文的全部內容,希望對大家的學習有所幫助,也希望大家多多支持好吧啦網。
相關文章:
1. 解決Android Studio 格式化 Format代碼快捷鍵問題2. JavaEE SpringMyBatis是什么? 它和Hibernate的區別及如何配置MyBatis3. SpringBoot+TestNG單元測試的實現4. Python使用urlretrieve實現直接遠程下載圖片的示例代碼5. 完美解決vue 中多個echarts圖表自適應的問題6. vue實現web在線聊天功能7. Springboot 全局日期格式化處理的實現8. JavaScript實現頁面動態驗證碼的實現示例9. php解決注冊并發問題并提高QPS10. Java使用Tesseract-Ocr識別數字
