예제 #1
0
 private static void RunCode(CsharpGeneratorBenchmark benchmark)
 {
     for (int i = 0; i < 100; ++i)
     {
         benchmark.GenerateFile();
     }
 }
예제 #2
0
        private static void RunCsharpBenchmark()
        {
            var benchmark = new CsharpGeneratorBenchmark();

            benchmark.Setup().GetAwaiter().GetResult();
            benchmark.GenerateFile();
            RunCode(benchmark);
        }
예제 #3
0
        private static void RunCsharpBenchmark()
        {
            var benchmark = new CsharpGeneratorBenchmark();

            benchmark.Setup().GetAwaiter().GetResult();
            benchmark.GenerateFile();
            ExecuteBenchmarkMultiple(benchmark.GenerateFile);
        }