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