Bug 94578 - Caching of location information for linking
diff --git a/ant/org.eclipse.ant.tests.ui/Ant Tests/org/eclipse/ant/tests/ui/performance/SeparateVMTests.java b/ant/org.eclipse.ant.tests.ui/Ant Tests/org/eclipse/ant/tests/ui/performance/SeparateVMTests.java
index cd7e45f..20d18bd 100644
--- a/ant/org.eclipse.ant.tests.ui/Ant Tests/org/eclipse/ant/tests/ui/performance/SeparateVMTests.java
+++ b/ant/org.eclipse.ant.tests.ui/Ant Tests/org/eclipse/ant/tests/ui/performance/SeparateVMTests.java
@@ -83,4 +83,20 @@
commitMeasurements();
assertPerformance();
}
+
+ /**
+ * Performance test for launching Ant in a separate vm with lots of links
+ */
+ public void testBuildWithLotsOfLinks() throws CoreException {
+ tagAsSummary("Separate JRE Build; links", Dimension.ELAPSED_PROCESS);
+ ILaunchConfiguration config = getLaunchConfiguration("echoPropertiesSepVM");
+ //possible first time hit of the SWT pieces getting written from the JAR to the
+ //metadata area
+ launchAndTerminate(config, 20000);
+ for (int i = 0; i < 10; i++) {
+ launch(config, 10);
+ }
+ commitMeasurements();
+ assertPerformance();
+ }
}
diff --git a/ant/org.eclipse.ant.tests.ui/test plugin/org/eclipse/ant/tests/ui/testplugin/ProjectCreationDecorator.java b/ant/org.eclipse.ant.tests.ui/test plugin/org/eclipse/ant/tests/ui/testplugin/ProjectCreationDecorator.java
index 8ca672e..c398e67 100644
--- a/ant/org.eclipse.ant.tests.ui/test plugin/org/eclipse/ant/tests/ui/testplugin/ProjectCreationDecorator.java
+++ b/ant/org.eclipse.ant.tests.ui/test plugin/org/eclipse/ant/tests/ui/testplugin/ProjectCreationDecorator.java
@@ -58,6 +58,8 @@
createLaunchConfigurationForSeparateVM("extensionPointTaskSepVM", null);
createLaunchConfigurationForSeparateVM("extensionPointTypeSepVM", null);
+ createLaunchConfigurationForSeparateVM("echoPropertiesSepVM", "echoProperties");
+
createLaunchConfiguration("big", ProjectHelper.PROJECT_NAME + "/buildfiles/performance/build.xml");
} finally {