From 0b78367b9f823a517bef7a36eb9d4195e646e1ea Mon Sep 17 00:00:00 2001 From: aoshiguchen <1052045476@qq.com> Date: Fri, 7 Apr 2023 13:19:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=80=A7=E8=83=BD=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E6=96=87=E6=A1=A3.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/性能测试.MD | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 docs/性能测试.MD diff --git a/docs/性能测试.MD b/docs/性能测试.MD new file mode 100644 index 00000000..a06ab50f --- /dev/null +++ b/docs/性能测试.MD @@ -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 +``` \ No newline at end of file