Exemple #1
0
        static void RunPerformanceTests()
        {
            var test = new PerformanceTests();

            Console.WriteLine("Running 500 iterations that load up a post entity");
            test.Run(500);
        }
Exemple #2
0
        static void RunPerformanceTests()
        {
            var       test       = new PerformanceTests();
            const int iterations = 500;

            Console.WriteLine("Running {0} iterations that load up a post entity", iterations);
            test.Run(iterations);
        }
Exemple #3
0
        static void RunPerformanceTests()
        {
#if PERF
            var       test       = new PerformanceTests();
            const int iterations = 500;
            Console.WriteLine("Running {0} iterations that load up a post entity", iterations);
            test.Run(iterations);
#else
            Console.WriteLine("Performance tests have not been built; add the PERF symbol");
#endif
        }