From 0cdf6f5ce2a2b9120a1b731d36973179752c4567 Mon Sep 17 00:00:00 2001 From: James Newton-King Date: Fri, 1 Nov 2019 13:33:04 +1300 Subject: [PATCH] Update microbenchmarks to use server GC (#635) --- perf/Grpc.AspNetCore.Microbenchmarks/DefaultCoreConfig.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/perf/Grpc.AspNetCore.Microbenchmarks/DefaultCoreConfig.cs b/perf/Grpc.AspNetCore.Microbenchmarks/DefaultCoreConfig.cs index ff4f750eb..fccd0912d 100644 --- a/perf/Grpc.AspNetCore.Microbenchmarks/DefaultCoreConfig.cs +++ b/perf/Grpc.AspNetCore.Microbenchmarks/DefaultCoreConfig.cs @@ -43,10 +43,9 @@ public DefaultCoreConfig() Add(JitOptimizationsValidator.FailOnError); - // TODO(JamesNK): Change to out of process and enable server GC when https://github.com/dotnet/BenchmarkDotNet/issues/1023 is fixed Add(Job.Core .With(CsProjCoreToolchain.From(new NetCoreAppSettings("netcoreapp3.0", null, ".NET Core 3.0"))) - .With(InProcessToolchain.Instance) + .With(new GcMode { Server = true }) .With(RunStrategy.Throughput)); } }