View | Details | Raw Unified | Return to bug 176825
Collapse All | Expand All

(-)src/org/eclipse/jdt/core/tests/performance/FullSourceWorkspaceCompletionTests.java (-11 / +11 lines)
Lines 26-32 Link Here
26
	private static final int ITERATION_COUNT = 40;
26
	private static final int ITERATION_COUNT = 40;
27
	static int[] PROPOSAL_COUNTS;
27
	static int[] PROPOSAL_COUNTS;
28
	static int TESTS_COUNT = 0;
28
	static int TESTS_COUNT = 0;
29
	static int TESTS_LENGTH = 0;
29
	static int TESTS_LENGTH;
30
	static int COMPLETIONS_COUNT = 0;
30
	static int COMPLETIONS_COUNT = 0;
31
31
32
	// Log files
32
	// Log files
Lines 38-44 Link Here
38
38
39
	public static Test suite() {
39
	public static Test suite() {
40
		Test suite = buildSuite(testClass());
40
		Test suite = buildSuite(testClass());
41
		TESTS_COUNT = suite.countTestCases();
41
		TESTS_LENGTH = TESTS_COUNT = suite.countTestCases();
42
		PROPOSAL_COUNTS = new int[TESTS_COUNT];
42
		PROPOSAL_COUNTS = new int[TESTS_COUNT];
43
		createPrintStream(testClass(), LOG_STREAMS, TESTS_COUNT, "Complete");
43
		createPrintStream(testClass(), LOG_STREAMS, TESTS_COUNT, "Complete");
44
		return suite;
44
		return suite;
Lines 163-169 Link Here
163
		assertPerformance();
163
		assertPerformance();
164
	}
164
	}
165
	
165
	
166
	public void testCompleteMethodDeclaration() throws JavaModelException {
166
	public void testPerfCompleteMethodDeclaration() throws JavaModelException {
167
		complete(
167
		complete(
168
				"org.eclipse.jdt.core",
168
				"org.eclipse.jdt.core",
169
				"org.eclipse.jdt.internal.core",
169
				"org.eclipse.jdt.internal.core",
Lines 173-179 Link Here
173
				WARMUP_COUNT,
173
				WARMUP_COUNT,
174
				ITERATION_COUNT);
174
				ITERATION_COUNT);
175
	}
175
	}
176
	public void testCompleteMemberAccess() throws JavaModelException {
176
	public void testPerfCompleteMemberAccess() throws JavaModelException {
177
		tagAsGlobalSummary("Codeassist in expression", true); // put in global fingerprint
177
		tagAsGlobalSummary("Codeassist in expression", true); // put in global fingerprint
178
		complete(
178
		complete(
179
				"org.eclipse.jdt.core",
179
				"org.eclipse.jdt.core",
Lines 185-191 Link Here
185
				WARMUP_COUNT,
185
				WARMUP_COUNT,
186
				ITERATION_COUNT);
186
				ITERATION_COUNT);
187
	}
187
	}
188
	public void testCompleteTypeReference() throws JavaModelException {
188
	public void testPerfCompleteTypeReference() throws JavaModelException {
189
		complete(
189
		complete(
190
				"org.eclipse.jdt.core",
190
				"org.eclipse.jdt.core",
191
				"org.eclipse.jdt.internal.core",
191
				"org.eclipse.jdt.internal.core",
Lines 195-201 Link Here
195
				WARMUP_COUNT,
195
				WARMUP_COUNT,
196
				ITERATION_COUNT);
196
				ITERATION_COUNT);
197
	}
197
	}
198
	public void testCompleteEmptyName() throws JavaModelException {
198
	public void testPerfCompleteEmptyName() throws JavaModelException {
199
		complete(
199
		complete(
200
				"org.eclipse.jdt.core",
200
				"org.eclipse.jdt.core",
201
				"org.eclipse.jdt.internal.core",
201
				"org.eclipse.jdt.internal.core",
Lines 205-211 Link Here
205
				WARMUP_COUNT,
205
				WARMUP_COUNT,
206
				ITERATION_COUNT);
206
				ITERATION_COUNT);
207
	}
207
	}
208
	public void testCompleteName() throws JavaModelException {
208
	public void testPerfCompleteName() throws JavaModelException {
209
		tagAsSummary("Codeassist in name", true); // put in fingerprint
209
		tagAsSummary("Codeassist in name", true); // put in fingerprint
210
		complete(
210
		complete(
211
				"org.eclipse.jdt.core",
211
				"org.eclipse.jdt.core",
Lines 217-223 Link Here
217
				WARMUP_COUNT,
217
				WARMUP_COUNT,
218
				ITERATION_COUNT);
218
				ITERATION_COUNT);
219
	}
219
	}
220
	public void testCompleteEmptyNameWithoutTypes() throws JavaModelException {
220
	public void testPerfCompleteEmptyNameWithoutTypes() throws JavaModelException {
221
		complete(
221
		complete(
222
				"org.eclipse.jdt.core",
222
				"org.eclipse.jdt.core",
223
				"org.eclipse.jdt.internal.core",
223
				"org.eclipse.jdt.internal.core",
Lines 228-234 Link Here
228
				WARMUP_COUNT,
228
				WARMUP_COUNT,
229
				ITERATION_COUNT);
229
				ITERATION_COUNT);
230
	}
230
	}
231
	public void testCompleteNameWithoutTypes() throws JavaModelException {
231
	public void testPerfCompleteNameWithoutTypes() throws JavaModelException {
232
		complete(
232
		complete(
233
				"org.eclipse.jdt.core",
233
				"org.eclipse.jdt.core",
234
				"org.eclipse.jdt.internal.core",
234
				"org.eclipse.jdt.internal.core",
Lines 239-245 Link Here
239
				WARMUP_COUNT,
239
				WARMUP_COUNT,
240
				ITERATION_COUNT);
240
				ITERATION_COUNT);
241
	}
241
	}
242
	public void testCompleteEmptyNameWithoutMethods() throws JavaModelException {
242
	public void testPerfCompleteEmptyNameWithoutMethods() throws JavaModelException {
243
		complete(
243
		complete(
244
				"org.eclipse.jdt.core",
244
				"org.eclipse.jdt.core",
245
				"org.eclipse.jdt.internal.core",
245
				"org.eclipse.jdt.internal.core",
Lines 250-256 Link Here
250
				WARMUP_COUNT,
250
				WARMUP_COUNT,
251
				ITERATION_COUNT);
251
				ITERATION_COUNT);
252
	}
252
	}
253
	public void testCompleteNameWithoutMethods() throws JavaModelException {
253
	public void testPerfCompleteNameWithoutMethods() throws JavaModelException {
254
		complete(
254
		complete(
255
				"org.eclipse.jdt.core",
255
				"org.eclipse.jdt.core",
256
				"org.eclipse.jdt.internal.core",
256
				"org.eclipse.jdt.internal.core",

Return to bug 176825