First public contribution.
1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of the License "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
14 // e32test\bench\t_userasmbm.cpp
21 #include <e32std_private.h>
24 @SYMTestCaseID KBASE-0047-t_userasmbm
27 @SYMTestCaseDesc This is a performance test used to get a relative indication
28 of the speed of assmbler functions in euser
29 @SYMTestPriority Medium
30 @SYMTestActions Runs benchmarks for euser functions
31 @SYMTestExpectedResults Results are for information - no specific results expected
34 #define FailIfError(EXPR) \
37 if (aErr != KErrNone) \
39 test.Printf(_L("Return code == %d\n"), aErr); \
44 RTest test(_L("T_USERASMBM"));
48 // Benchmark for euser assmblerised functions
51 CTrapCleanup* trapHandler=CTrapCleanup::New();
52 test(trapHandler!=NULL);
55 test.Start(_L("Benchmarks for assemblerised euser functions"));
57 TUserBenchmarkList bms;
58 TRAPD(err, RunBenchmarkTestsL(bms));
60 test.Printf(_L("TestMainL left with %d\n"), err);