Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Watson2010-10-19 13:16:20 -0400
committerThomas Watson2010-10-19 13:16:20 -0400
commit068b685a7e85b95e253e240e951d1972849c6114 (patch)
treebf07923f73f42de84b0367b974ea58e34b0528bd
parent6e20bffa6019318f142a3cc18048667cfb192890 (diff)
downloadrt.equinox.framework-068b685a7e85b95e253e240e951d1972849c6114.tar.gz
rt.equinox.framework-068b685a7e85b95e253e240e951d1972849c6114.tar.xz
rt.equinox.framework-068b685a7e85b95e253e240e951d1972849c6114.zip
Bug 324753 - [perfs] Regression on several OSGI component tests
-rw-r--r--bundles/org.eclipse.osgi.tests/src/org/eclipse/osgi/tests/perf/AllTests.java3
-rw-r--r--bundles/org.eclipse.osgi.tests/src/org/eclipse/osgi/tests/perf/StatePerformanceTest.java15
-rw-r--r--bundles/org.eclipse.osgi.tests/src/org/eclipse/osgi/tests/perf/StateUsesPerformanceTest.java8
3 files changed, 15 insertions, 11 deletions
diff --git a/bundles/org.eclipse.osgi.tests/src/org/eclipse/osgi/tests/perf/AllTests.java b/bundles/org.eclipse.osgi.tests/src/org/eclipse/osgi/tests/perf/AllTests.java
index aae34c8b2..a293e50a0 100644
--- a/bundles/org.eclipse.osgi.tests/src/org/eclipse/osgi/tests/perf/AllTests.java
+++ b/bundles/org.eclipse.osgi.tests/src/org/eclipse/osgi/tests/perf/AllTests.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2004, 2007 IBM Corporation and others.
+ * Copyright (c) 2004, 2010 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -14,6 +14,7 @@ import junit.framework.Test;
import junit.framework.TestSuite;
public class AllTests extends TestSuite {
+ public static final String DEGRADATION_RESOLUTION = "Performance decrease caused by additional fuctionality required for ResovlerHooks in OSGi R4.3 specification. See https://bugs.eclipse.org/bugs/show_bug.cgi?id=324753 for details.";
public AllTests() {
super();
diff --git a/bundles/org.eclipse.osgi.tests/src/org/eclipse/osgi/tests/perf/StatePerformanceTest.java b/bundles/org.eclipse.osgi.tests/src/org/eclipse/osgi/tests/perf/StatePerformanceTest.java
index 4f55d781c..48c243f8e 100644
--- a/bundles/org.eclipse.osgi.tests/src/org/eclipse/osgi/tests/perf/StatePerformanceTest.java
+++ b/bundles/org.eclipse.osgi.tests/src/org/eclipse/osgi/tests/perf/StatePerformanceTest.java
@@ -55,7 +55,7 @@ public class StatePerformanceTest extends BasePerformanceTest {
}
public void testResolution100() throws IOException {
- testResolution(100, 500, null, null);
+ testResolution(100, 500, null, AllTests.DEGRADATION_RESOLUTION);
}
public void testResolution1000() throws IOException {
@@ -63,17 +63,19 @@ public class StatePerformanceTest extends BasePerformanceTest {
}
public void testResolution500() throws IOException {
- testResolution(500, 50, null, null);
+ testResolution(500, 50, null, AllTests.DEGRADATION_RESOLUTION);
}
public void testResolution5000() throws IOException {
- testResolution(5000, 1, null, null);
+ testResolution(5000, 1, null, AllTests.DEGRADATION_RESOLUTION);
}
+ private static final String DEGREDATION_STORE_RETRIEVE = "Performance decrease caused by additional fuctionality required for generic capabilities/requirements in OSGi R4.3 specification. See https://bugs.eclipse.org/bugs/show_bug.cgi?id=324753 for details.";
+
public void testStoreAndRetrieve() {
int stateSize = 5000;
final State originalState = buildRandomState(stateSize);
- new PerformanceTestRunner() {
+ PerformanceTestRunner runner = new PerformanceTestRunner() {
protected void test() {
try {
storeAndRetrieve(originalState);
@@ -81,7 +83,8 @@ public class StatePerformanceTest extends BasePerformanceTest {
CoreTest.fail("", e);
}
}
- }.run(this, 10, 10);
+ };
+ runner.setRegressionReason(DEGREDATION_STORE_RETRIEVE);
+ runner.run(this, 10, 10);
}
-
}
diff --git a/bundles/org.eclipse.osgi.tests/src/org/eclipse/osgi/tests/perf/StateUsesPerformanceTest.java b/bundles/org.eclipse.osgi.tests/src/org/eclipse/osgi/tests/perf/StateUsesPerformanceTest.java
index e335c60ce..4885657ae 100644
--- a/bundles/org.eclipse.osgi.tests/src/org/eclipse/osgi/tests/perf/StateUsesPerformanceTest.java
+++ b/bundles/org.eclipse.osgi.tests/src/org/eclipse/osgi/tests/perf/StateUsesPerformanceTest.java
@@ -42,19 +42,19 @@ public class StateUsesPerformanceTest extends BasePerformanceTest {
}
public void testUsesResolution00100() throws BundleException {
- doUsesResolution(100, 100, null, null);
+ doUsesResolution(100, 100, null, AllTests.DEGRADATION_RESOLUTION);
}
public void testUsesResolution00500() throws BundleException {
- doUsesResolution(500, 10, null, null);
+ doUsesResolution(500, 10, null, AllTests.DEGRADATION_RESOLUTION);
}
public void testUsesResolution01000() throws BundleException {
- doUsesResolution(1000, 10, null, null);
+ doUsesResolution(1000, 10, null, AllTests.DEGRADATION_RESOLUTION);
}
public void testUsesResolution05000() throws BundleException {
- doUsesResolution(5000, 1, null, null);
+ doUsesResolution(5000, 1, null, AllTests.DEGRADATION_RESOLUTION);
}
private void addUsesBundles(State state) throws BundleException {

Back to the top