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))));
        }
Esempio n. 2
0
        //[TestMethod]
        public void TestPerformanceRedutionOfPageSplitSqlCache()
        {
            TimeSpan t = TestLoader.GetMultiThreadSpend(5000, new TestHandler1(DoTestPerformanceRedutionOfPageSplitSqlCache));

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