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(); }
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(); }