Bug 137199 Generate Identifiers Test has very unstable Elapsed process
20060417 GenerateIdentifiersTest is all over the place on Elapsed Process but quite stable on CPU time on the slow Red Hat machine (it is fine on the others). As this does not give an accurate indication of performance currently I am going to switch it to CPU time for now until we can discover the cause of the inconsistency.
tests/org.eclipse.ui.tests.performance/src/org/eclipse/ui/tests/performance/GenerateIdentifiersTest.java
public GenerateIdentifiersTest(int numberOfIdentifiers) {
        super("Generate " + numberOfIdentifiers + " identifiers", BasicPerformanceTest.LOCAL);
        this.count = numberOfIdentifiers;
    }
    
    protected void runTest() throws Throwable {       
        final IActivityManager activityManager = fWorkbench.getActivitySupport().getActivityManager();
        
        tagIfNecessary("UI - Generate Identifiers", Dimension.ELAPSED_PROCESS);
        exercise(new TestRunnable() {
            public void run() throws Exception {
                
                final String [] ids = new String[count];
                for (int i = 0; i < ids.length; i++) {
                    long timestamp = System.currentTimeMillis();
                    ids[i] = "org.eclipse.jdt.ui/" + i + timestamp;
                }
                
                startMeasuring();
                for(int i = 0; i < ids.length; i++) {
                    activityManager.getIdentifier(ids[i]);
                }                
                stopMeasuring();
            } 
        });
        commitMeasurements();
        assertPerformance();
    }
}