Ejemplo n.º 1
0
        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();
        }
Ejemplo n.º 2
0
        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();
        }