aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/csharp/Grpc.Microbenchmarks
diff options
context:
space:
mode:
authorGravatar Jan Tattermusch <jtattermusch@google.com>2017-11-25 11:59:09 +0100
committerGravatar Jan Tattermusch <jtattermusch@google.com>2017-11-25 20:13:56 +0100
commit21cde3d22a113969fb135ae765473fb79b3de405 (patch)
treef7a8e73bcdf90fa106056cce9e113059a8c135b5 /src/csharp/Grpc.Microbenchmarks
parent2e631706e2b2c2a3190e039ee26781fcd0483b40 (diff)
use pool in SendMessageBenchmark
Diffstat (limited to 'src/csharp/Grpc.Microbenchmarks')
-rw-r--r--src/csharp/Grpc.Microbenchmarks/SendMessageBenchmark.cs5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/csharp/Grpc.Microbenchmarks/SendMessageBenchmark.cs b/src/csharp/Grpc.Microbenchmarks/SendMessageBenchmark.cs
index 9cff97eb88..da4f35ff96 100644
--- a/src/csharp/Grpc.Microbenchmarks/SendMessageBenchmark.cs
+++ b/src/csharp/Grpc.Microbenchmarks/SendMessageBenchmark.cs
@@ -52,10 +52,7 @@ namespace Grpc.Microbenchmarks
private void ThreadBody(int iterations, int payloadSize)
{
- // TODO(jtattermusch): parametrize by number of pending completions.
- // TODO(jtattermusch): parametrize by cached/non-cached BatchContextSafeHandle
-
- var completionRegistry = new CompletionRegistry(environment);
+ var completionRegistry = new CompletionRegistry(environment, () => environment.BatchContextPool.Lease());
var cq = CompletionQueueSafeHandle.CreateAsync(completionRegistry);
var call = CreateFakeCall(cq);