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

(-)src/org/eclipse/jface/tests/performance/CollatorPerformanceTest.java (-2 / +2 lines)
Lines 1-5 Link Here
1
/*******************************************************************************
1
/*******************************************************************************
2
 * Copyright (c) 2008 IBM Corporation and others.
2
 * Copyright (c) 2008, 2009 IBM Corporation and others.
3
 * All rights reserved. This program and the accompanying materials
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
5
 * which accompanies this distribution, and is available at
Lines 39-45 Link Here
39
	 */
39
	 */
40
	public void testCollator(){
40
	public void testCollator(){
41
		Comparator comparator=Policy.getComparator();
41
		Comparator comparator=Policy.getComparator();
42
		for (int i = 0; i <250; i++) {
42
		for (int i = 0; i < 15; i++) {
43
			String[] array=(String[]) fArray.clone();
43
			String[] array=(String[]) fArray.clone();
44
			startMeasuring();
44
			startMeasuring();
45
			Arrays.sort(array, comparator);
45
			Arrays.sort(array, comparator);
(-)src/org/eclipse/jface/tests/performance/JFacePerformanceSuite.java (-2 / +2 lines)
Lines 1-5 Link Here
1
/*******************************************************************************
1
/*******************************************************************************
2
 * Copyright (c) 2005, 2007 IBM Corporation and others.
2
 * Copyright (c) 2005, 2009 IBM Corporation and others.
3
 * All rights reserved. This program and the accompanying materials
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
5
 * which accompanies this distribution, and is available at
Lines 47-53 Link Here
47
		addTest(new TreeAddTest("testAddThousandPreSort", BasicPerformanceTest.GLOBAL));
47
		addTest(new TreeAddTest("testAddThousandPreSort", BasicPerformanceTest.GLOBAL));
48
		addTest(new ProgressMonitorDialogPerformanceTest("testLongNames"));
48
		addTest(new ProgressMonitorDialogPerformanceTest("testLongNames"));
49
		addTest(new ShrinkingTreeTest("testTreeViewerRefresh"));
49
		addTest(new ShrinkingTreeTest("testTreeViewerRefresh"));
50
		addTest(new CollatorPerformanceTest("Policy.getComparatorTest"));
50
		addTest(new CollatorPerformanceTest("testCollator"));
51
51
52
	}
52
	}
53
}
53
}

Return to bug 270769