当前位置:网站首页>Install K6 test tool
Install K6 test tool
2022-07-24 23:45:00 【Clean night mortal dust】
k6 What is it? ?
k6 It is a free open source load testing tool centered on developers , It aims to make performance testing an efficient and pleasant experience .
Use k6, You will be able to find performance regression and problems earlier , So as to build elastic systems and robust applications .
The main features
k6 It contains many functions , You can see all these functions in the documentation . The main functions include :
With developer friendliness API Of CLI Tools .
stay JavaScript ES2015/ES6 Script in - Support local and remote modules
Check And thresholds - For target oriented 、 Automate friendly load testing
Use cases
k6 Users are usually developers 、QA Engineer and DevOps. They use k6 To test API、 The performance of microservices and websites . common k6 The use case is :
** The load test **
k6 Optimize the minimum consumption of system resources . It is a high-performance tool , Designed for pre production and QA Run high load tests in the environment ( peak 、 pressure 、 Soak Test ) And Design .
** Performance monitoring **
k6 It provides a good primitive for Performance Test Automation . You can run tests with a small amount of load , To continuously monitor the performance of the production environment .
install
Debian/Ubuntu
#🧠 If the image you are using is missing ca- certificate perhaps gnupg2
# Some images are not related to ca- certificate and gnupg2 Out of the box package . If you use such an image , First, you need to use the following command to install these packages :
sudo apt-get update && sudo apt-get install ca-certificates gnupg2 -y
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys C5AD17C747E3415A3642D57D77C6C491D6AC1D69
echo "deb https://dl.k6.io/deb stable main" | sudo tee /etc/apt/sources.list.d/k6.list
sudo apt-get update
sudo apt-get install k6
Fedora/CentOS
Use Sirius perhaps yum In the old version :
sudo dnf install https://dl.k6.io/rpm/repo.rpm
sudo dnf install k6
Binary installation
Choose a version Releases page After downloading , And put it in your PATH function k6 From anywhere
wget https://github.com/grafana/k6/releases/download/v0.34.1/k6-v0.34.1-linux-amd64.tar.gz
tar -xvf k6-v0.34.1-linux-amd64.tar.gz
sudo mv k6-v0.34.1-linux-amd64/k6 /usr/local/bin/
Docker
docker pull loadimpact/k6
docker run -i loadimpact/k6 run - <script.js
Refer to official documentation
Official document address : https://k6.io/docs/
If you need self-study test , Recommend to Gutu99 Study , This website can learn many language tutorials for free
You can check the translated documents if you need the Chinese version Guru99 Chinese series course
边栏推荐
- .net redis client newlife.redis.core library usage
- 你还在使用System.currentTimeMillis()?来看看StopWatch吧
- Do you need to open an account to buy a wealth management product with a 6% income?
- How to propose effective solutions for high-end products? (1 methodology + 2 cases + 1 List)
- JDBC 驱动升级到 Version 8.0.28 连接 MySQL 的踩坑记录
- Three ways of shell debugging and debugging
- Implementation of cat and dog data set classification experiment based on tensorflow and keras convolutional neural network
- 剖析kubernetes集群内部DNS解析原理
- SQL rewriting Series 6: predicate derivation
- Technical operation
猜你喜欢

给生活加点惊喜,做创意生活的原型设计师丨编程挑战赛 x 选手分享

2022 the most NB JVM foundation to tuning notes, thoroughly understand Alibaba P6 small case

Burp's thinking from tracing to counteracting

芯片的功耗

2022 最 NB 的 JVM 基础到调优笔记, 吃透阿里 P6 小 case

VGA display based on FPGA

HLS编程入门

Paper time review MB2: build a behavior model for autonomous databases

把字符串转换成整数与不要二

Convex optimization Basics
随机推荐
Pit record: typeerror:'module'object is not callable
Three ways of shell debugging and debugging
QDir类的使用 以及部分解释
代码覆盖率
Transmission download list, download file migration machine guide
网上怎么炒股手机上炒股安全吗
Piziheng embedded: the method of making source code into lib Library under MCU Xpress IDE and its difference with IAR and MDK
Qt | 事件系统 QEvent
C language program environment and preprocessing
每周小结(*66):下一个五年
Analyzing the principle of DNS resolution in kubernetes cluster
Network Security Learning (I) virtual machine
LP liquidity pledge mining system development detailed procedure
cloud chart
这个月 google的“AI具备意识”的事件的想法
Restructuredtext grammar summary for beginners
Code coverage
HLS编程入门
Paper notes: accurate causal influence on discrete data
来自大佬洗礼!2022 头条首发纯手打 MySQL 高级进阶笔记, 吃透 P7 有望