Skip to content

Commit dcfe0ec

Browse files
committed
添加测试数据
1 parent be3a304 commit dcfe0ec

File tree

1 file changed

+83
-0
lines changed

1 file changed

+83
-0
lines changed

doc/guide/performance-testing.md

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
2+
# 测试结果
3+
4+
## 性能测试
5+
6+
7+
* 测试场景
8+
9+
提供方service-a接口sleep 50ms。
10+
测试机器均为4C8G。
11+
一个策略,两个决策(HttpParameter)。
12+
13+
14+
测试场景 | 服务 | 接口
15+
--- | --- | ---
16+
zuul | gateway | /gateway/service-a/api/test/get?version=${version}&platform={platform}
17+
zuul+feign | gateway | /gateway/service-b/api/test/feignGet?version=${version}&platform={platform}
18+
feign | service-b | /api/test/feignGet?version=${version}&platform={platform}
19+
20+
21+
压测准备:zuul-feign 预热5分钟
22+
23+
 
24+
场景:feign
25+
接口:/api/test/feignGet
26+
压测5分钟
27+
28+
灰度环境
29+
30+
connections | RPS | Avg | Max | 90%Line | Error
31+
--- | --- | --- | --- | --- | ---
32+
200连接 | 3.32k | 61.11ms | 642.61ms | 69.06ms | 0/996349
33+
300连接 | 4.17k| 72.30ms | 523.08ms | 86.03ms | 0/1252191
34+
 
35+
正常环境
36+
37+
connections | RPS | Avg | Max | 90%Line | Error
38+
--- | --- | --- | --- | --- | ---
39+
200连接 | 3.70k | 54.12ms | 180.54ms | 57.08ms | 0/1111624
40+
300连接 | 5.14k | 58.82ms | 1.03s | 66.62ms | 2/1540693
41+
 
42+
 
43+
场景:Zuul
44+
接口:/gateway/service-a/api/test/get
45+
压测5分钟
46+
47+
灰度环境
48+
49+
connections | RPS | Avg | Max | 90%Line | Error
50+
--- | --- | --- | --- | --- | ---
51+
200连接 | 3.61k | 55.69ms | 383.83ms | 58.64ms | 0/1082715
52+
300连接 | 4.80k | 62.87ms | 442.96ms | 69.38ms | 0/1439638
53+
 
54+
正常环境
55+
56+
connections | RPS | Avg | Max | 90%Line | Error
57+
--- | --- | --- | --- | --- | ---
58+
200连接 | 3.71k | 53.95ms | 161.71ms | 56.58ms | 0/1113616
59+
300连接 | 5.35k | 56.32ms | 207.53ms | 60.69ms | 0/1605155
60+
 
61+
 
62+
场景:Zuul-feign
63+
接口:/gateway/service-b/api/test/feignGet
64+
压测5分钟,超时时间8s
65+
66+
灰度环境
67+
68+
connections | RPS | Avg | Max | 90%Line | Error
69+
--- | --- | --- | --- | --- | ---
70+
200连接 | 3.08k | 66.10ms | 727.43ms | 77.56ms | 0/922887
71+
300连接 | 3.56k | 85.61ms | 1.37s | 108.50ms | 11/1067908
72+
 
73+
正常环境
74+
75+
connections | RPS | Avg | Max | 90%Line | Error
76+
--- | --- | --- | --- | --- | ---
77+
200连接 | 3.57k | 56.35ms | 188.72ms | 60.71ms | 0/1070078
78+
300连接 | 4.95k | 63.21ms | 1.16s | 70.76ms | 401/1485965
79+
80+
81+
## 稳定性测试
82+
灰度环境以100测试zuul+feign的调用场景,连接数持续运行12小时,未发现泄漏风险。
83+

0 commit comments

Comments
 (0)