static void TestVwSalesByYear() { var benchmark = new QueryGenerationBenchmark(); benchmark.DataProvider = ProviderName.MySqlConnector; for (int i = 0; i < 100000; i++) { benchmark.VwSalesByYear(); } }
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 } }
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 }