单机下的压力测试

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

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左右 

下次测试集群

评论 1
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值