hey 是一个用 Go 编写的 HTTP 压力测试工具,可以模拟大量并发请求。

https://github.com/rakyll/hey

1
2
go install github.com/rakyll/hey@latest
hey -n 10000 -c 1000 http://localhost:8080/books // 10000 个请求,1000 个并发

/images/go-hey-benchmark.png