Python性能測試工具Locust安裝及使用
介紹
An open source load testing tool.
一個開源性能測試工具。
define user behaviour with python code, and swarm your system with millions of simultaneous users.
使用Python代碼來定義用戶行為。用它可以模擬百萬計的并發(fā)用戶訪問你的系統(tǒng)。
官方網(wǎng)站: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 創(chuàng)建性能測試
(四)Locust no-...
(五)Locust 參數(shù)說明
(六)Locust 分布式運行
(七)Locust 的類和方法
(八)Locust 設(shè)置斷言
(九)Locust 參數(shù)化
以上就是本文的全部內(nèi)容,希望對大家的學(xué)習(xí)有所幫助,也希望大家多多支持好吧啦網(wǎng)。
相關(guān)文章:
1. Android table布局開發(fā)實現(xiàn)簡單計算器2. 理解PHP5中static和const關(guān)鍵字3. jQuery 實現(xiàn)DOM元素拖拽交換位置的實例代碼4. php模擬實現(xiàn)斗地主發(fā)牌5. IntelliJ IDEA安裝插件的方法步驟6. phpstorm恢復(fù)默認(rèn)設(shè)置的方法步驟7. Vue封裝一個TodoList的案例與瀏覽器本地緩存的應(yīng)用實現(xiàn)8. Python random庫使用方法及異常處理方案9. Vuex localStorage的具體使用10. .Net Core使用Coravel實現(xiàn)任務(wù)調(diào)度的完整步驟

網(wǎng)公網(wǎng)安備