Exemple #1
0
 private static void SelectBenchmark_Measure(SelectBenchmark b)
 {
     b.Linq();
     b.Compiled();
     b.FromSql_Interpolation();
     b.FromSql_Formattable();
     b.Query();
     b.Execute();
     b.RawAdoNet();
 }
Exemple #2
0
 private static void SelectBenchmark_WarmUp(SelectBenchmark b)
 {
     for (var i = 0; i < 100; i++)
     {
         b.Linq();
         b.Compiled();
         b.FromSql_Interpolation();
         b.FromSql_Formattable();
         b.Query();
         b.Execute();
         b.RawAdoNet();
     }
 }