# nodejs 压测 autocannon

autocannon 仓库

# 安装

npm i autocannon -g

# 执行

autocannon -c 100 -d 5 -p 10 http://localhost:3000
# -c 连接数量:要使用的并发连接数。默认值:10
# -d 持续时间(秒):运行 autocannon 秒数。默认值:10
# -p 并发数量:每次并发请求数量。默认值:1
# -m 请求类型:要使用的 HTTP 方法。默认值:“GET”

# 其它

[https://github.com/shoreditch-ops/artillery] (https://github.com/shoreditch-ops/artillery)