private static void RunCode(CsharpGeneratorBenchmark benchmark) { for (int i = 0; i < 100; ++i) { benchmark.GenerateFile(); } }
private static void RunCsharpBenchmark() { var benchmark = new CsharpGeneratorBenchmark(); benchmark.Setup().GetAwaiter().GetResult(); benchmark.GenerateFile(); RunCode(benchmark); }
private static void RunCsharpBenchmark() { var benchmark = new CsharpGeneratorBenchmark(); benchmark.Setup().GetAwaiter().GetResult(); benchmark.GenerateFile(); ExecuteBenchmarkMultiple(benchmark.GenerateFile); }