wrk压测工具

本文介绍了wrk压测工具的使用,适用于Linux、Windows和Mac平台。通过`make`命令安装后,你可以利用提供的参考命令和JSON、binary body脚本内容进行HTTP请求,包括POST请求。详细信息及项目源码可查看GitHub仓库:https://github.com/wg/wrk。
摘要由CSDN通过智能技术生成

项目地址https://github.com/wg/wrk

适用平台:linux、windows和MAC;

安装:make后生产wrk执行文件

  • 参考命令:
./wrk -t 1 -c 3 -d 120 --timeout 4 --latency -s post_crop.lua http://localhost:8004/detect/cut

  1 threads and 3 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     2.53s   255.77ms   3.82s    88.64%
    Req/Sec     0.00      0.00     0.00    100.00%
  Latency Distribution
     50%    2.49s 
     75%    2.58s 
     90%    2.78s 
     99%    3.82s  #TP99
  45 requests in 2.00m, 76.48MB read
  Socket errors: connect 0, read 0, write 0, timeout 1
Requests/sec:      0.37   #QPS
Transfer/sec:    652.57KB
  • json脚本内容:
wrk.method = "POST"
wrk.headers["Content-Type"] = "application/json"
wrk.body = '{"service_key":"ef25e85b34208c246cfd09ab76b01db7","timestamp":&
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值