private static async Task FetchGraph_Measure(FetchGraphBenchmark b) { b.Linq(); await b.LinqAsync(); b.Compiled(); await b.CompiledAsync(); }
private static async Task FetchGraph_WarmUp(FetchGraphBenchmark b) { for (var i = 0; i < 100; i++) { b.Linq(); await b.LinqAsync(); b.Compiled(); await b.CompiledAsync(); } }
static async Task Main_FetchGraph(string[] args) //static async Task Main(string[] args) { var b = new FetchGraphBenchmark(); b.Setup(); await FetchGraph_WarmUp(b); await FetchGraph_Measure(b); b.Cleanup(); }