Bug 288154 [perfs] Comments applied for performance tests may be obsolete
tests/org.eclipse.ui.tests.performance/src/org/eclipse/ui/tests/performance/ObjectContributionsPerformance.java
BasicPerformanceTest.NONE));
        suite
                .addTest(new ObjectContributionsPerformance(
                        "limited selection, limited contributors",
                        generateAdaptableSelection(SEED, 50),
                        BasicPerformanceTest.NONE));
        return suite;
	}
	
	public ObjectContributionsPerformance(String label, IStructuredSelection selection, int tagging) {
		super("testObjectContributions:" + label, tagging);
		this.selection = selection;
	}
	protected void runTest() {
		ObjectContributionTest tests = new ObjectContributionTest(
                "testObjectContributions");
        tagIfNecessary("UI - " + selection.size() + " contribution(s)",
                Dimension.ELAPSED_PROCESS);
        setDegradationComment("<a href=https://bugs.eclipse.org/bugs/show_bug.cgi?id=270795>See Bug 270795</a> ");
        startMeasuring();
        for (int i = 0; i < 5000; i++) {
            tests.assertPopupMenus("1", new String[] { "bogus" }, selection,
                    null, false);
        }
        stopMeasuring();
        commitMeasurements();
        assertPerformance();
	}
	
	protected static IStructuredSelection generateAdaptableSelection(int seed, int size) {