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

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

            RunDispatch(benchmark);
        }