CPU
Intel(R) Xeon(R) Platinum 8269CY CPU @ 2.50GHz 4 核心
内存
15563 MB
流程 通过 ab 执行并发1000 总数50000的测试 请求一次数据库插入一条数据
This is ApacheBench, Version 2.3 <$Revision: 1430300 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking swagger.orgwx.qhzxvip.com (be patient)
Completed 5000 requests
Completed 10000 requests
Completed 15000 requests
Completed 20000 requests
Completed 25000 requests
Completed 30000 requests
Completed 35000 requests
Completed 40000 requests
Completed 45000 requests
Completed 50000 requests
Finished 50000 requests
Server Software: nginx
Server Hostname: swagger.orgwx.qhzxvip.com
Server Port: 80
Document Path: /app/public/max/insert
Document Length: 32 bytes
Concurrency Level: 1001
Time taken for tests: 43.827 seconds
Complete requests: 50000
Failed requests: 0
Write errors: 0
Total transferred: 9700000 bytes
HTML transferred: 1600000 bytes
Requests per second: 1140.84 [#/sec] (mean)
Time per request: 877.425 [ms] (mean)
Time per request: 0.877 [ms] (mean, across all concurrent requests)
Transfer rate: 216.14 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 12 18 3.5 18 37
Processing: 41 852 318.4 720 4569
Waiting: 32 852 318.4 720 4569
Total: 59 870 318.5 738 4588
Percentage of the requests served within a certain time (ms)
50% 738
66% 835
75% 934
80% 1016
90% 1286
95% 1524
98% 1865
99% 2133
100% 4588 (longest request)




结果分析 在简单的插入业务下 qps稳定在 1200左右
下次测试集群

这篇博客介绍了在单机环境下进行的压力测试,使用ab工具模拟并发1000,总数50000的请求。测试结果显示,在简单插入数据库的业务场景中,系统的QPS稳定在1200左右。作者计划下一步进行集群测试,以探究更多性能潜力。
1221

被折叠的 条评论
为什么被折叠?



