Skip to content

Commit bb49e61

Browse files
authored
[type:refactor] refactor benchmark test (apache#896)
1 parent e63b917 commit bb49e61

File tree

2 files changed

+70
-2
lines changed

2 files changed

+70
-2
lines changed

docs/benchmark-test/benchmark-test.md

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,13 @@ wrk-4.2.0
5252
```
5353

5454
### Public Configuration
55+
56+
* application.yml
5557

5658
```yml
5759
matchCache:
5860
selector:
59-
selectorEnabled: false
61+
selectorEnabled: true
6062
initialCapacity: 10000 # initial capacity in cache
6163
maximumSize: 10000 # max size in cache
6264
rule:
@@ -109,6 +111,38 @@ netty:
109111
singleEventExecutorPerGroup: true
110112
```
111113
114+
```yaml
115+
file:
116+
enabled: false
117+
maxSize : 10
118+
```
119+
120+
```yaml
121+
cross:
122+
enabled: false
123+
```
124+
125+
```yaml
126+
logging:
127+
level:
128+
root: warn
129+
org.springframework.boot: warn
130+
org.apache.ibatis: warn
131+
org.apache.shenyu.bonuspoint: warn
132+
org.apache.shenyu.lottery: warn
133+
org.apache.shenyu: warn
134+
```
135+
136+
* logback.xml
137+
138+
```xml
139+
<root level="WARN">
140+
<appender-ref ref="ASYNC_STDOUT"/>
141+
<appender-ref ref="ASYNC_FILE"/>
142+
<appender-ref ref="ASYNC_ERROR_FILE"/>
143+
</root>
144+
```
145+
112146
### WebClient Configuration
113147

114148
```yml

i18n/zh/docusaurus-plugin-content-docs/current/benchmark-test/benchmark-test.md

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,12 @@ wrk-4.2.0
5353

5454
### 公共配置
5555

56+
* application.yml
57+
5658
```yml
5759
matchCache:
5860
selector:
59-
selectorEnabled: false
61+
selectorEnabled: true
6062
initialCapacity: 10000 # initial capacity in cache
6163
maximumSize: 10000 # max size in cache
6264
rule:
@@ -109,6 +111,38 @@ netty:
109111
singleEventExecutorPerGroup: true
110112
```
111113
114+
```yaml
115+
file:
116+
enabled: false
117+
maxSize : 10
118+
```
119+
120+
```yaml
121+
cross:
122+
enabled: false
123+
```
124+
125+
```yaml
126+
logging:
127+
level:
128+
root: warn
129+
org.springframework.boot: warn
130+
org.apache.ibatis: warn
131+
org.apache.shenyu.bonuspoint: warn
132+
org.apache.shenyu.lottery: warn
133+
org.apache.shenyu: warn
134+
```
135+
136+
* logback.xml
137+
138+
```xml
139+
<root level="WARN">
140+
<appender-ref ref="ASYNC_STDOUT"/>
141+
<appender-ref ref="ASYNC_FILE"/>
142+
<appender-ref ref="ASYNC_ERROR_FILE"/>
143+
</root>
144+
```
145+
112146
### WebClient配置
113147

114148
```yml

0 commit comments

Comments
 (0)