示例#1
0
 private static void RunDispatch(JobDispatchBenchmark benchmark)
 {
     for (int i = 0; i < 100; ++i)
     {
         benchmark.Run().GetAwaiter().GetResult();
     }
 }
示例#2
0
        private static void DispatchBenchmark()
        {
            var benchmark = new JobDispatchBenchmark();

            benchmark.Setup();
            benchmark.Run().GetAwaiter().GetResult();

            RunDispatch(benchmark);
        }