예제 #1
0
파일: Program.cs 프로젝트: ChrisWuq/grpc
        static void RunCompletionRegistryBenchmark()
        {
            var benchmark = new CompletionRegistryBenchmark();

            benchmark.Init();
            foreach (int threadCount in new int[] { 1, 1, 2, 4, 8, 12 })
            {
                benchmark.Run(threadCount, 4 * 1000 * 1000);
            }
            benchmark.Cleanup();
        }
예제 #2
0
        static void RunCompletionRegistryBenchmark()
        {
            var benchmark = new CompletionRegistryBenchmark();

            benchmark.Init();
            foreach (int threadCount in new int[] { 1, 1, 2, 4, 8, 12 })
            {
                foreach (bool useSharedRegistry in new bool[] { false, true })
                {
                    benchmark.Run(threadCount, 4 * 1000 * 1000, useSharedRegistry);
                }
            }
            benchmark.Cleanup();
        }