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