Пример #1
0
        public void TestReadPerformenceComparison()
        {
            DaabRead();
            DbHelperRead();
            GatewayRead();

            Console.WriteLine(string.Format("Daab read (Single Thread):\t\t{0}", TestLoader.GetSingleThreadSpend(REPEAT_TIME, new TestHandler1(DaabRead))));
            Console.WriteLine(string.Format("DbHelper read (Single Thread):\t{0}", TestLoader.GetSingleThreadSpend(REPEAT_TIME, new TestHandler1(DbHelperRead))));
            Console.WriteLine(string.Format("Gateway read (Single Thread):\t{0}", TestLoader.GetSingleThreadSpend(REPEAT_TIME, new TestHandler1(GatewayRead))));
            Console.WriteLine(string.Format("Daab read (Multi Thread):\t\t{0}", TestLoader.GetMultiThreadSpend(REPEAT_TIME, new TestHandler1(DaabRead))));
            Console.WriteLine(string.Format("DbHelper read (Multi Thread):\t\t{0}", TestLoader.GetMultiThreadSpend(REPEAT_TIME, new TestHandler1(DbHelperRead))));
            Console.WriteLine(string.Format("Gateway read (Multi Thread):\t\t{0}", TestLoader.GetMultiThreadSpend(REPEAT_TIME, new TestHandler1(GatewayRead))));
        }
Пример #2
0
        //[TestMethod]
        public void TestPerformanceRedutionOfPageSplitSqlCache()
        {
            TimeSpan t = TestLoader.GetMultiThreadSpend(5000, new TestHandler1(DoTestPerformanceRedutionOfPageSplitSqlCache));

            Console.WriteLine(t.ToString());
        }