lith 4 år sedan
förälder
incheckning
ce183fcc88

+ 1 - 1
dotnet/ServiceStation/Demo/StressTest/App.Robot.Station/Logical/Worker/Worker_ApiClientAsync.cs

@@ -29,7 +29,7 @@ namespace App.Robot.Station.Logical.Worker
 
         bool needRunning = false;
 
-        public bool IsRunning => RunningThreadCount==0;
+        public bool IsRunning => RunningThreadCount>0;
  
         public long targetCount;
 

+ 1 - 1
dotnet/ServiceStation/Demo/StressTest/App.Robot.Station/wwwroot/_robot_/TaskMng.html

@@ -107,7 +107,7 @@
         var config = new Vue({
             el: '#txtTaskConfig',
             data: {
-                config: '{"type":"ApiClientAsync","name": "Demo[8-0]","apiRoute": "/a", "httpMethod":"GET", "threadCount": 8,"interval": 0, "autoStart": false,"loopCountPerThread": 1000000000, "//type":"ApiClient、ApiClientAsync、 HttpClient、HttpUtil","//apiRoute": "/demo/v1/api/333/arg","//apiArg": "{\\"Name\\":\\"lith\\"}" }'
+                config: '{"type":"ApiClientAsync","name": "Demo32","apiRoute": "/a", "threadCount": 32,"interval": 0, "autoStart": false,"loopCountPerThread": 1000000000, "//type":"ApiClient、ApiClientAsync、 HttpClient、HttpUtil","//apiRoute": "/demo/v1/api/333/arg", "//httpMethod":"GET","//apiArg": "{\\"Name\\":\\"lith\\"}" }'
             }
         });
 

+ 2 - 2
readme.md

@@ -30,9 +30,9 @@ Sers为一套跨平台跨语言的开源微服务架构协议。
 
  robot内部调用	:
   配置		       ApiClientAsync       ApiClient
-线程数(请求/处理)       32/16		       4/4 
+线程数(处理/请求)       16/32		       4/4 
  
-  CentOs8(2x24核)	   35万            6-9万(6%)
+  CentOs8(2x24核)       24-36万(12%)       6-9万(6%)