forked from Tencent/MSEC
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
169 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
## 运行环境 | ||
|
||
``` | ||
CPU: Intel(R) Xeon(R) CPU X3320 @ 2.50GHz 4核 | ||
内存:8GB | ||
网卡:千兆网卡 | ||
Client与Server之间PING值:0.854ms | ||
``` | ||
|
||
## 测试程序 | ||
|
||
- echo服务<br/>server将请求字符串直接返回 | ||
- 延时echo服务<br/>server先sleep 100ms, 再将请求字符串返回 | ||
- rpc-echo服务<br/>server将请求转发至server2, server2将请求字符串直接返回 | ||
- 延时rpc-echo服务<br/>server将请求转发至server2, server2先sleep 100ms, 再将请求字符串返回 | ||
|
||
备注:请求字符串小于100字节 | ||
|
||
## TCP请求连接模式 | ||
|
||
- 短连接<br/>每个请求都需要建立TCP连接 | ||
- 长连接<br/>建立TCP连接后,保持不断开,连续发送请求 | ||
|
||
## 程序A测试结果(QPS及延时分布) | ||
|
||
| | QPS | CPU | <5ms | 5 ~ 10ms | 10 ~ 30ms| 30 ~ 50ms | >50ms | | ||
| --- | --- | --- | --- | --- | --- | --- | --- | | ||
| 长连接 | 85,000/s | 98% | 99.25% | 0.66% | 0.09% | 0 | 0 | | ||
| 短连接 | 30,000/s | 70% | 94.50% | 5.30% | 0.20% | 0 | 0 | | ||
|
||
备注:短连接并没有压满CPU,因为proxy为单进程,成为瓶颈。 | ||
|
||
## 程序B测试结果QPS | ||
|
||
| | QPS | CPU | <120ms | 120 ~ 150ms | 150 ~ 200ms | > 200ms | | ||
| --- | --- | --- | --- | --- | --- | --- | | ||
| 长连接 | 55,000/s | 89% | 94.71% | 4.83% | 0.25% | 0.21% | | ||
| 短连接 | 25,000/s | 70% | 93.12% | 3.11% | 1.72% | 2.05% | | ||
|
||
备注:CPU并没有压满,继续往上压,时延明显变大。 | ||
|
||
## 程序C测试结果QPS | ||
|
||
| | QPS | CPU | <5ms | 5 ~ 10ms | 10 ~ 30ms| 30 ~ 50ms | >50ms | | ||
| --- | --- | --- | --- | --- | --- | --- | --- | | ||
| 长连接 | 45,000/s | 88% | 26.67% | 72.06% | 1.27% | 0.002% | 0.015% | | ||
| 短连接 | 30,000/s | 70% | 52.33% | 46.81% | 0.84% | 0.02% | 0 | | ||
|
||
备注:都没有压满CPU,压满CPU后时延明显变大。 | ||
|
||
## 程序D测试结果QPS | ||
|
||
| | QPS | CPU | <120ms | 120 ~ 150ms | 150 ~ 200ms | > 200ms | | ||
| --- | --- | --- | --- | --- | --- | --- | | ||
| 长连接 | 45,000/s | 92% | 48.77% | 47.54% | 3.30% | 0.39% | | ||
| 短连接 | 25,000/s | 78% | 95.40% | 0.85% | 0 | 3.76% | | ||
|
||
备注:短连接proxy成为瓶颈。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
## 运行环境 | ||
|
||
``` | ||
CPU: Intel(R) Xeon(R) CPU X3320 @ 2.50GHz 4核 | ||
内存:8GB | ||
网卡:千兆网卡 | ||
Client与Server之间PING值:0.854ms | ||
``` | ||
|
||
## 测试程序 | ||
|
||
- echo服务<br/>server将请求字符串直接返回 | ||
- 延时echo服务<br/>server先sleep 100ms, 再将请求字符串返回 | ||
- rpc-echo服务<br/>server将请求转发至server2, server2将请求字符串直接返回 | ||
- 延时rpc-echo服务<br/>server将请求转发至server2, server2先sleep 100ms, 再将请求字符串返回 | ||
|
||
备注:请求字符串小于100字节 | ||
|
||
## TCP请求连接模式 | ||
|
||
- 短连接<br/>每个请求都需要建立TCP连接 | ||
- 长连接<br/>建立TCP连接后,保持不断开,连续发送请求 | ||
|
||
## 程序A测试结果(QPS及延时分布) | ||
|
||
| | QPS | CPU | <5ms | 5 ~ 10ms | 10 ~ 30ms| 30 ~ 50ms | >50ms | | ||
| --- | --- | --- | --- | --- | --- | --- | --- | | ||
| 长连接 | 8,500/s | 96% | 88.56% | 10.02% | 0.01% | 0.01% | 0 | | ||
| 短连接 | 6,300/s | 91% | 93.71% | 5.60% | 0.58% | 0 | 0.11% | | ||
|
||
|
||
## 程序B测试结果QPS | ||
|
||
| QPS | CPU | <120ms | 120 ~ 150ms | 150 ~ 200ms | > 200ms | | ||
| --- | --- | --- | --- | --- | --- | | ||
| 2,900/s | 45% | 100% | 0 | 0 | 0 | | ||
|
||
备注:该用例没有区分长连接和短连接,后端sleep 100ms,主要是依靠增加进程数来提高处理能力,由于框架本身存在的惊群效应等原因,这里配置为300个进程,如果继续增加,会导致时延加重。 | ||
|
||
## 程序C测试结果QPS | ||
|
||
| | QPS | CPU | <5ms | 5 ~ 10ms | 10 ~ 30ms| 30 ~ 50ms | >50ms | | ||
| --- | --- | --- | --- | --- | --- | --- | --- | | ||
| 长连接 | 5,900/s | 92% | 99.21% | 0.61% | 0.06% | 0 | 0.11% | | ||
| 短连接 | 4,100/s | 78% | 93.90% | 5.83% | 0.16% | 0 | 0.11% | | ||
|
||
|
||
## 程序D测试结果QPS | ||
|
||
| QPS | CPU | <120ms | 120 ~ 150ms | 150 ~ 200ms | > 200ms | | ||
| --- | --- | --- | --- | --- | --- | | ||
| 2,900/s | 52% | 100% | 0 | 0 | 0 | | ||
|
||
备注:该用例没有区分长连接和短连接,后端sleep 100ms,主要是依靠增加进程数来提高处理能力,由于框架本身存在的惊群效应等原因,这里配置为300个进程,如果继续增加,会导致时延加重。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
## 运行环境 | ||
|
||
``` | ||
CPU: Intel(R) Xeon(R) CPU X3320 @ 2.50GHz 4核 | ||
内存:8GB | ||
网卡:千兆网卡 | ||
Client与Server之间PING值:0.854ms | ||
``` | ||
|
||
## 测试程序 | ||
|
||
- echo服务<br/>server将请求字符串直接返回 | ||
- 延时echo服务<br/>server先sleep 100ms, 再将请求字符串返回 | ||
- rpc-echo服务<br/>server将请求转发至server2, server2将请求字符串直接返回 | ||
- 延时rpc-echo服务<br/>server将请求转发至server2, server2先sleep 100ms, 再将请求字符串返回 | ||
|
||
备注:请求字符串小于100字节 | ||
|
||
## TCP请求连接模式 | ||
|
||
- 短连接<br/>每个请求都需要建立TCP连接 | ||
- 长连接<br/>建立TCP连接后,保持不断开,连续发送请求 | ||
|
||
## 程序A测试结果(QPS及延时分布) | ||
|
||
| | QPS | CPU | <5ms | 5 ~ 10ms | 10 ~ 30ms| 30 ~ 50ms | >50ms | | ||
| --- | --- | --- | --- | --- | --- | --- | --- | | ||
| 长连接 | 32,000/s | 89% | 99.92% | 0.07% | 0.01% | 0 | 0 | | ||
| 短连接 | 25,000/s | 96% | 98.68% | 1.19% | 0.14% | 0 | 0 | | ||
|
||
|
||
## 程序B测试结果QPS | ||
|
||
| QPS | CPU | <120ms | 120 ~ 150ms | 150 ~ 200ms | > 200ms | | ||
| --- | --- | --- | --- | --- | --- | | ||
| 2,900/s | 23% | 100% | 0 | 0 | 0 | | ||
|
||
备注:该用例没有区分长连接和短连接,后端sleep 100ms,主要是依靠增加进程数来提高处理能力,由于框架本身存在的惊群效应等原因,这里配置为300个进程,如果继续增加,会导致时延加重。 | ||
|
||
## 程序C测试结果QPS | ||
|
||
| | QPS | CPU | <5ms | 5 ~ 10ms | 10 ~ 30ms| 30 ~ 50ms | >50ms | | ||
| --- | --- | --- | --- | --- | --- | --- | --- | | ||
| 长连接 | 12,000/s | 71% | 99.30% | 0.53% | 0.17% | 0 | 0 | | ||
| 短连接 | 10,000/s | 72% | 98.06% | 1.94% | 0 | 0 | 0 | | ||
|
||
|
||
## 程序D测试结果QPS | ||
|
||
| QPS | CPU | <120ms | 120 ~ 150ms | 150 ~ 200ms | > 200ms | | ||
| --- | --- | --- | --- | --- | --- | | ||
| 2,900/s | 36% | 100% | 0 | 0 | 0 | | ||
|
||
备注:该用例没有区分长连接和短连接,后端sleep 100ms,主要是依靠增加进程数来提高处理能力,由于框架本身存在的惊群效应等原因,这里配置为300个进程,如果继续增加,会导致时延加重。 |