wrk性能压力测试
https://www.cnblogs.com/quanxiaoha/p/10661650.html
linux
1、下载源码 https://github.com/wg/wrk
2、编译 make -j
3、测试 wrk -t16 -c400 -d30s http://127.0.0.1:9510/clientrpc/index/test_test
Running 10s test @ http://127.0.0.1:9510/clientrpc/index/test_test 20 threads and 400 connections Thread Stats Avg Stdev Max +/- Stdev Latency 36.49ms 2.09ms 46.79ms 84.94% Req/Sec 549.78 46.10 750.00 68.45% 109725 requests in 10.03s, 20.61MB read Requests/sec: 10934.68 Transfer/sec: 2.05MB
mac
brew install wrk
wrk -c 1024 -t 8 http://127.0.0.1:9501/
Running 10s test @ http://127.0.0.1:9501/ 8 threads and 1024 connections Thread Stats Avg Stdev Max +/- Stdevs Latency 10.08ms 6.82ms 56.66ms 70.19% Req/Sec 13.17k 5.94k 33.06k 84.12% 1049478 requests in 10.10s, 190.16MB read Requests/sec: 103921.49 Transfer/sec: 18.83MB