示例#1
0
        static void TestVwSalesByYear()
        {
            var benchmark = new QueryGenerationBenchmark();

            benchmark.DataProvider = ProviderName.MySqlConnector;

            for (int i = 0; i < 100000; i++)
            {
                benchmark.VwSalesByYear();
            }
        }
示例#2
0
        static void VwSalesByCategoryContainsMem()
        {
            var benchmark = new QueryGenerationBenchmark();

            benchmark.DataProvider = ProviderName.Access;

#if JETBRAINS
            MemoryProfiler.CollectAllocations(true);
#endif
            for (int c = 0; c < 5; c++)
            {
                for (int i = 0; i < 1000; i++)
                {
                    benchmark.VwSalesByCategoryContains();
                }
#if JETBRAINS
                MemoryProfiler.GetSnapshot();
#endif
            }
        }
示例#3
0
        static void VwSalesByCategoryContainsPerf()
        {
            var benchmark = new QueryGenerationBenchmark();

            benchmark.DataProvider = ProviderName.Access;

#if JETBRAINS
            MeasureProfiler.StartCollectingData();
#endif
            benchmark.VwSalesByCategoryContains();
            for (int i = 0; i < 100; i++)
            {
                benchmark.VwSalesByCategoryContains();
            }
#if JETBRAINS
            MeasureProfiler.StopCollectingData();
            //			MeasureProfiler.StopCollectingData();
            MeasureProfiler.SaveData();
#endif
        }