wrk HTTP 压力测试

版权声明:转载请注明出处 https://blog.csdn.net/lvhonglei1987/article/details/89889759

wrk

GitHub

安装

安装

命令

Usage: wrk <options> <url>
  Options:
    -c, --connections <N>  Connections to keep open
    -d, --duration    <T>  Duration of test
    -t, --threads     <N>  Number of threads to use

    -s, --script      <S>  Load Lua script file
    -H, --header      <H>  Add header to request
        --latency          Print latency statistics
        --timeout     <T>  Socket/request timeout
    -v, --version          Print version details

  Numeric arguments may include a SI unit (1k, 1M, 1G)
  Time arguments may include a time unit (2s, 2m, 2h)

例子

wrk -c 1000 -t 10 -d 100s  http://localhost:8080/shop

结果

在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/lvhonglei1987/article/details/89889759
wrk
今日推荐