Example #1
0
 public void Setup()
 {
     _fastORMBenchmark = new LtQueryBenchmark();
     _dapperBenchmark  = new DapperBenchmark();
     _eFCoreBenchmark  = new EFCoreBenchmark();
     _fastORMBenchmark.Setup();
     _dapperBenchmark.Setup();
     _eFCoreBenchmark.Setup();
 }
Example #2
0
        static void Main(string[] args)
        {
            var result = new DapperBenchmark().RunBenchmark(50000, 10);

            Console.Write(result.RenderResults());

            File.WriteAllText($"C:\\DapperBenchmarks\\Benchmark_{result.StartTime.Ticks}.json", JsonConvert.SerializeObject(result, Formatting.Indented));

            Console.ReadLine();
        }