Esempio n. 1
0
void PerformanceTests()
{
	printf("Test Perf\r\n");
	TestPerformance();

#ifndef _DEBUG
	printf("Test Large Images Performance\r\n");
	TestLargeImagePerformance();
#endif

}
Esempio n. 2
0
/*----------------------------------------------------------------------
|       main
+---------------------------------------------------------------------*/
int
main(int /*argc*/, char** /*argv*/)
{

    int result;
    
    result = TestMap();
    if (result) return result;

    result = TestHashMap();
    if (result) return result;
    
    TestPerformance();
    
    return 0;
}
int main()
{
#if MG_PLATFORM_WINDOWS && MUGGLE_DEBUG
	_CrtMemState s1, s2, s3;
	_CrtMemCheckpoint(&s1);
#endif

	TestFunction();
	TestPerformance();

#if MG_PLATFORM_WINDOWS && MUGGLE_DEBUG
	_CrtMemCheckpoint(&s2);
	if (_CrtMemDifference(&s3, &s1, &s2))
	{
		_CrtMemDumpStatistics(&s3);
	}
	_CrtDumpMemoryLeaks();
#endif

	return 0;
}