adjust iteration count in scalability benchmarks

pull/19812/head
Jan Tattermusch 6 years ago
parent efe9fd0d60
commit 7372c195e7
  1. 2
      src/csharp/Grpc.Microbenchmarks/CompletionRegistryBenchmark.cs
  2. 2
      src/csharp/Grpc.Microbenchmarks/PInvokeByteArrayBenchmark.cs
  3. 2
      src/csharp/Grpc.Microbenchmarks/SendMessageBenchmark.cs

@ -27,7 +27,7 @@ namespace Grpc.Microbenchmarks
[Params(false, true)]
public bool UseSharedRegistry { get; set; }
const int Iterations = 1000000; // High number to make the overhead of RunConcurrent negligible.
const int Iterations = 5 * 1000 * 1000; // High number to make the overhead of RunConcurrent negligible.
[Benchmark(OperationsPerInvoke = Iterations)]
public void RegisterExtract()
{

@ -32,7 +32,7 @@ namespace Grpc.Microbenchmarks
[Params(0)]
public int PayloadSize { get; set; }
const int Iterations = 1000000; // High number to make the overhead of RunConcurrent negligible.
const int Iterations = 5 * 1000 * 1000; // High number to make the overhead of RunConcurrent negligible.
[Benchmark(OperationsPerInvoke = Iterations)]
public void AllocFree()
{

@ -36,7 +36,7 @@ namespace Grpc.Microbenchmarks
[Params(0)]
public int PayloadSize { get; set; }
const int Iterations = 1000000; // High number to make the overhead of RunConcurrent negligible.
const int Iterations = 5 * 1000 * 1000; // High number to make the overhead of RunConcurrent negligible.
[Benchmark(OperationsPerInvoke = Iterations)]
public void SendMessage()
{

Loading…
Cancel
Save