qps worker runs on all threads

pull/8469/head
Jan Tattermusch 8 years ago
parent 6ec0dca9c7
commit 8c31c14586
  1. 5
      src/csharp/Grpc.IntegrationTesting/QpsWorker.cs

@ -76,6 +76,11 @@ namespace Grpc.IntegrationTesting
private async Task RunAsync()
{
// (ThreadPoolSize == ProcessorCount) gives best throughput in benchmarks
// and doesn't seem to harm performance even when server and client
// are running on the same machine.
GrpcEnvironment.SetThreadPoolSize(Environment.ProcessorCount);
string host = "0.0.0.0";
int port = options.DriverPort;

Loading…
Cancel
Save