Browse Source

docker add COMPlus_ReadyToRun variable (#4854)

* docker add COMPlus_ReadyToRun variable
update beetlex

* update beetlex, enabled thread queue
Henry 6 years ago
parent
commit
e6a40b8417

+ 1 - 1
frameworks/CSharp/beetlex/Benchmarks/Benchmarks.csproj

@@ -7,7 +7,7 @@
   </PropertyGroup>
 
   <ItemGroup>
-    <PackageReference Include="BeetleX.FastHttpApi" Version="1.5.0" />
+    <PackageReference Include="BeetleX.FastHttpApi" Version="1.5.2.6" />
     <PackageReference Include="Microsoft.Extensions.Hosting" Version="2.1.1" />
     <PackageReference Include="SpanJson" Version="2.0.10" />
   </ItemGroup>

+ 1 - 0
frameworks/CSharp/beetlex/Benchmarks/Program.cs

@@ -64,6 +64,7 @@ namespace Benchmarks
             mApiServer.Options.LogLevel = BeetleX.EventArgs.LogType.Off;
             mApiServer.Options.LogToConsole = true;
             mApiServer.Options.PrivateBufferPool = true;
+            mApiServer.Options.IOQueueEnabled = true;
             mApiServer.Register(typeof(Program).Assembly);
             mApiServer.HttpRequesting += OnRequesting;
             mApiServer.Open();

+ 1 - 0
frameworks/CSharp/beetlex/beetlex.dockerfile

@@ -4,6 +4,7 @@ COPY Benchmarks .
 RUN dotnet publish -c Release -o out
 
 FROM microsoft/dotnet:2.2-aspnetcore-runtime AS runtime
+ENV COMPlus_ReadyToRun 0
 WORKDIR /app
 COPY --from=build /app/out ./
 ENTRYPOINT ["dotnet", "Benchmarks.dll"]