Exemple #1
0
        void Measure(string name, IMesureOperations testImpl)
        {
            GC.Collect();
            GC.WaitForPendingFinalizers();

            Console.WriteLine($"Measure {name}");
            var sw = new Stopwatch();

            sw.Start();

            Do("Insert", testImpl.Insert);
            Do("Update", testImpl.Update);
            Do("List  ", testImpl.List);
            Do("Remove", testImpl.Remove);

            sw.Stop();

            Console.WriteLine($"Total : {TimeSpan.FromMilliseconds(sw.ElapsedMilliseconds)}");
            Console.WriteLine();
        }
Exemple #2
0
        void Measure(string name, IMesureOperations testImpl)
        {
            GC.Collect();
            GC.WaitForPendingFinalizers();

            Console.WriteLine($"Measure {name}");
            var sw = new Stopwatch();
            sw.Start();

            Do("Insert", testImpl.Insert);
            Do("Update", testImpl.Update);
            Do("List  ", testImpl.List);
            Do("Remove", testImpl.Remove);

            sw.Stop();

            Console.WriteLine($"Total : {TimeSpan.FromMilliseconds(sw.ElapsedMilliseconds)}");
            Console.WriteLine();
        }