linux- wrk 测试并发工具

https://github.com/wg/wrk

 


apt install unzip -y
apt-get install build-essential libssl-dev git -y
apt install make
git clone https://github.com/wg/wrk.git
cd wrk/
make
cp wrk /usr/local/bin

 

 

 

 

 


wrk -t12 -c400 -d30s --latency http://www.sina.com


This runs a benchmark for 30 seconds, using 12 threads, and keeping 400 HTTP connections open.

 

posted @ 2021-09-28 11:22  xman888  阅读(129)  评论(0编辑  收藏  举报