Bug 77320 Junit performance [JUnit]
We have 2315 unit tests. When run from Eclipse, it's reporting to take ~122 seconds. When run from ant, it reports taking ~25 seconds. The majority of this time is spent with the JUnit view showing "Launching...". This has gotten worse and worse as we add more UTs. I expect Eclipse to be slower than Ant, but not by this much.
org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/ui/TestRunnerViewPart.java
public StopAction() {
			setText(JUnitMessages.getString("TestRunnerViewPart.stopaction.text"));
			setToolTipText(JUnitMessages.getString("TestRunnerViewPart.stopaction.tooltip"));
			setDisabledImageDescriptor(JUnitPlugin.getImageDescriptor("dlcl16/stop.gif")); 
			setHoverImageDescriptor(JUnitPlugin.getImageDescriptor("elcl16/stop.gif")); 
			setImageDescriptor(JUnitPlugin.getImageDescriptor("elcl16/stop.gif")); 
		}
		public void run() {
			stopTest();
			setEnabled(false);
		}
	}
	private class RerunLastAction extends Action {
		public RerunLastAction() {
			setText(JUnitMessages.getString("TestRunnerViewPart.rerunaction.label")); 
			setToolTipText(JUnitMessages.getString("TestRunnerViewPart.rerunaction.tooltip")); 
			setDisabledImageDescriptor(JUnitPlugin.getImageDescriptor("dlcl16/relaunch.gif")); 
			setHoverImageDescriptor(JUnitPlugin.getImageDescriptor("elcl16/relaunch.gif")); 
			setImageDescriptor(JUnitPlugin.getImageDescriptor("elcl16/relaunch.gif")); 
		}
		
		public void run(){
			rerunTestRun();
		}
	}
	
	private class ToggleOrientationAction extends Action {
		private final int fActionOrientation;
		
		public ToggleOrientationAction(TestRunnerViewPart v, int orientation) {