使用brpc提供的rpc_press进行性能测试,求问极限QPS
- Dominant language
- C++
- Stars
- 17.6k
- Forks
- 4.1k
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 69
Description
**Describe the bug (描述bug)**
我们使用了brpc作为系统中rpc组件,近期做性能优化,使用rpc_press测试brpc框架性能,目前我们测得的极限QPS是**210W**,不知道有没有官方的数据,作为参考。
**To Reproduce (复现方法)**
1.测试环境:
* CPU: 80 * Intel(R) Xeon(R) Gold 5218R CPU @ 2.10GHz
* 网络延迟:0.018ms
2. 测试命令:
```
./rpc_press -proto=./echo.proto -method=example.EchoService.Echo -server=xxx.xxx.xxx.xxx:8000 -input='{"message":"hello"}' -timeout_ms=3000 --bthread_concurrency=80 -qps=0 --thread_num=2000 -channel_nums=10
```
channel_nums是我们对应的brpc中的channel group值,即tcp链接数。
**Expected behavior (期望行为)**
* QPS:

* Client CPU:

* 网络:

* Bthread
* 设置值为80,稳定时在77左右
* Server CPU:

**Versions (各种版本)**
OS: centOS 7
Compiler:
brpc: 0.96
protobuf:
**Additional context/screenshots (更多上下文/截图)**
Contributor guide
Research direction
Start by reviewing the rpc_press command, the reported brpc 0.96 version, and the stated CentOS 7 hardware and network conditions. Reproduce or compare the benchmark with the same settings, then document whether an official reference QPS exists and which conditions define a valid comparison.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- centos, cpp
- Domain
- backend-api-design, networking, performance
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 22/100