shenxuebing opened a new issue, #3000:
URL: https://github.com/apache/brpc/issues/3000
### 使用echo_server进行测试
`./echo_server -minloglevel=4`
使用rpc_press进行压测
**1. 单连接模式测试:**
` ./rpc_press -proto="./echo.proto" -method=example.EchoService.Echo
-server=192.168.100.4:8000 -input=.'{"message":"hello"} {"message":"world"}'
-qps=0 -timeout_ms=3000 -thread_num=512`

**`QPS 45W+`**
**2. 连接池模式测试:**
`./rpc_press -proto="./echo.proto" -method=example.EchoService.Echo
-server=192.168.100.4:8000 -input=.'{"message":"hello"} {"message":"world"}'
-qps=0 -timeout_ms=3000 -thread_num=512 -connection_type=pooled`

**`QPS 7W+`**
这是为什么呢?正常业务场景都是连接池模式,为什们连接池模式反而性能低这么多呢?该如何调优使连接池的性能和单链接接近呢。
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]