fix CompletionRegistryBenchmark for UseSharedRegistry=true

pull/19812/head
Jan Tattermusch 6 years ago
parent 7372c195e7
commit a16a439458
  1. 5
      src/csharp/Grpc.Microbenchmarks/CompletionRegistryBenchmark.cs

@ -31,8 +31,9 @@ namespace Grpc.Microbenchmarks
[Benchmark(OperationsPerInvoke = Iterations)]
public void RegisterExtract()
{
RunConcurrent(() => {
CompletionRegistry sharedRegistry = UseSharedRegistry ? new CompletionRegistry(Environment, () => BatchContextSafeHandle.Create(), () => RequestCallContextSafeHandle.Create()) : null;
CompletionRegistry sharedRegistry = UseSharedRegistry ? new CompletionRegistry(Environment, () => BatchContextSafeHandle.Create(), () => RequestCallContextSafeHandle.Create()) : null;
RunConcurrent(() =>
{
RunBody(sharedRegistry);
});
}

Loading…
Cancel
Save