新增性能测试文档.
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
# 本地启动SpringBoot,提供hello接口以供测试:
|
||||
|
||||
## 1、10线程 100连接直接测试
|
||||
> wrk -t 10 -c 100 -d 1s http://localhost:8080/hello
|
||||
测试结果:
|
||||
```
|
||||
10 threads and 100 connections
|
||||
Thread Stats Avg Stdev Max +/- Stdev
|
||||
Latency 10.51ms 5.82ms 53.28ms 83.61%
|
||||
Req/Sec 0.99k 123.01 1.21k 81.82%
|
||||
10797 requests in 1.10s, 1.35MB read
|
||||
Requests/sec: 9799.85
|
||||
Transfer/sec: 1.23MB
|
||||
```
|
||||
## 2、10线程 100连接走端口转发测试
|
||||
> wrk -t 10 -c 100 -d 1s http://localhost:9105/hello
|
||||
测试结果:
|
||||
```
|
||||
10 threads and 100 connections
|
||||
Thread Stats Avg Stdev Max +/- Stdev
|
||||
Latency 126.37ms 163.69ms 971.32ms 81.43%
|
||||
Req/Sec 24.04 21.06 80.00 84.62%
|
||||
70 requests in 1.02s, 8.96KB read
|
||||
Requests/sec: 68.46
|
||||
Transfer/sec: 8.76K
|
||||
```
|
||||
## 3、10线程 100连接走域名转发测试
|
||||
> wrk -t 10 -c 100 -d 1s http://test1.neutrino-proxy.asgc.fun/hello
|
||||
测试结果:
|
||||
```
|
||||
10 threads and 100 connections
|
||||
Thread Stats Avg Stdev Max +/- Stdev
|
||||
Latency 327.86ms 218.93ms 903.28ms 56.76%
|
||||
Req/Sec 30.65 20.46 88.00 62.67%
|
||||
259 requests in 1.02s, 44.77KB read
|
||||
Requests/sec: 253.75
|
||||
Transfer/sec: 43.86KB
|
||||
```
|
||||
Reference in New Issue
Block a user