static void RunSendMessageBenchmark() { var benchmark = new SendMessageBenchmark(); benchmark.Init(); foreach (int threadCount in new int[] { 1, 1, 2, 4, 8, 12 }) { benchmark.Run(threadCount, 4 * 1000 * 1000, 0); } benchmark.Cleanup(); }
public static void Main(string[] args) { GrpcEnvironment.SetLogger(new ConsoleLogger()); var benchmark = new SendMessageBenchmark(); benchmark.Init(); foreach (int threadCount in new int[] { 1, 1, 2, 4, 8, 12 }) { benchmark.Run(threadCount, 4 * 1000 * 1000, 0); } benchmark.Cleanup(); }