Exemple #1
0
        private static async Task FetchGraph_Measure(FetchGraphBenchmark b)
        {
            b.Linq();
            await b.LinqAsync();

            b.Compiled();
            await b.CompiledAsync();
        }
Exemple #2
0
        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();
            }
        }
Exemple #3
0
        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();
        }