Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 184921 Details for
Bug 329656
Revisit conditional diet parse in SourceTypeConverter.convert(ISourceType[], CompilationResult)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Performance test used
bug_329656_test.txt (text/plain), 2.10 KB, created by
Jay Arthanareeswaran
on 2010-12-10 02:10:35 EST
(
hide
)
Description:
Performance test used
Filename:
MIME Type:
Creator:
Jay Arthanareeswaran
Created:
2010-12-10 02:10:35 EST
Size:
2.10 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.core.tests.performance >Index: src/org/eclipse/jdt/core/tests/performance/FullSourceWorkspaceTypeHierarchyTests.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core.tests.performance/src/org/eclipse/jdt/core/tests/performance/FullSourceWorkspaceTypeHierarchyTests.java,v >retrieving revision 1.16 >diff -u -r1.16 FullSourceWorkspaceTypeHierarchyTests.java >--- src/org/eclipse/jdt/core/tests/performance/FullSourceWorkspaceTypeHierarchyTests.java 22 Apr 2010 17:07:40 -0000 1.16 >+++ src/org/eclipse/jdt/core/tests/performance/FullSourceWorkspaceTypeHierarchyTests.java 10 Dec 2010 07:04:32 -0000 >@@ -40,7 +40,7 @@ > } > > static { >-// TESTS_NAMES = new String[] { "testPerSuperTypes" }; >+ TESTS_NAMES = new String[] { "testTypeResolve" }; > } > public static Test suite() { > Test suite = buildSuite(testClass()); >@@ -181,5 +181,41 @@ > commitMeasurements(); > assertPerformance(); > } >+ public void testTypeResolve() throws Exception { >+ ICompilationUnit unit = getCompilationUnit("org.eclipse.jdt.core", "org.eclipse.jdt.internal.core", "JavaModelManager.java"); >+ assertNotNull("Unit not found!", unit); >+ IType type = unit.getType("JavaModelManager"); >+ assertNotNull(type); >+ String[][] typeName = type.resolveType("JavaCore"); >+ >+ for(int i = 0; i < typeName.length; i++) { >+ for (int j=0; j < typeName[0].length; j++) { >+ System.out.println(typeName[i][j]); >+ } >+ System.out.println("\n"); >+ } >+ >+ // Warm up >+ for (int i=0; i<10*WARMUP_COUNT; i++) { // More Warm up is required. >+ type = unit.getType("JavaModelManager"); >+ typeName = type.resolveType("IJavaProject"); >+ } > >+ // Clean memory >+ runGc(); >+ // Measures >+ for (int i=0; i<MEASURES_COUNT; i++) { >+ runGc(); >+ startMeasuring(); >+ for (int j =0; j < 20; j++) { >+ type = unit.getType("JavaModelManager"); >+ typeName = type.resolveType("JavaCore"); >+ } >+ stopMeasuring(); >+ } >+ // Commit >+ commitMeasurements(); >+ assertPerformance(); >+ >+ } > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 329656
: 184921