Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAxel Richard2015-01-23 10:02:46 -0500
committerAxel Richard2015-01-23 10:02:46 -0500
commit8978d93f52e5f3f9e0b08a37469b4dd27250e76e (patch)
tree0680e075dd25da13dcaaa529e8514d5fe074e4db /performance
parent5d9b5723cda21b9efe34da7b80573217e5d0fb98 (diff)
downloadorg.eclipse.emf.compare-8978d93f52e5f3f9e0b08a37469b4dd27250e76e.tar.gz
org.eclipse.emf.compare-8978d93f52e5f3f9e0b08a37469b4dd27250e76e.tar.xz
org.eclipse.emf.compare-8978d93f52e5f3f9e0b08a37469b4dd27250e76e.zip
Add large uml size git performances tests
Change-Id: If9b96aa12fb3dabdc8c10c2c53ce29b18ecff220 Signed-off-by: Axel Richard <axel.richard@obeo.fr>
Diffstat (limited to 'performance')
-rw-r--r--performance/org.eclipse.emf.compare.tests.performance/src/data/models/LargeGitInputData.java22
-rw-r--r--performance/org.eclipse.emf.compare.tests.performance/src/data/models/git/model_size_large_repo.zipbin0 -> 14026658 bytes
-rw-r--r--performance/org.eclipse.emf.compare.tests.performance/src/org/eclipse/emf/compare/tests/performance/AbstractEMFComparePerformanceTest.java4
-rw-r--r--performance/org.eclipse.emf.compare.tests.performance/src/org/eclipse/emf/compare/tests/performance/PerformanceGitSuite.java4
-rw-r--r--performance/org.eclipse.emf.compare.tests.performance/src/org/eclipse/emf/compare/tests/performance/PerformanceLargeGitSuite.java38
-rw-r--r--performance/org.eclipse.emf.compare.tests.performance/src/org/eclipse/emf/compare/tests/performance/PerformanceLargeSuite.java4
-rw-r--r--performance/org.eclipse.emf.compare.tests.performance/src/org/eclipse/emf/compare/tests/performance/PerformanceSuite.java4
-rw-r--r--performance/org.eclipse.emf.compare.tests.performance/src/org/eclipse/emf/compare/tests/performance/git/TestGitCompare.java5
-rw-r--r--performance/org.eclipse.emf.compare.tests.performance/src/org/eclipse/emf/compare/tests/performance/git/TestGitPostMatchUML.java4
-rw-r--r--performance/org.eclipse.emf.compare.tests.performance/src/org/eclipse/emf/compare/tests/performance/git/large/TestLargeGitCompare.java51
-rw-r--r--performance/org.eclipse.emf.compare.tests.performance/src/org/eclipse/emf/compare/tests/performance/git/large/TestLargeGitConflict.java55
-rw-r--r--performance/org.eclipse.emf.compare.tests.performance/src/org/eclipse/emf/compare/tests/performance/git/large/TestLargeGitDiff.java52
-rw-r--r--performance/org.eclipse.emf.compare.tests.performance/src/org/eclipse/emf/compare/tests/performance/git/large/TestLargeGitEqui.java53
-rw-r--r--performance/org.eclipse.emf.compare.tests.performance/src/org/eclipse/emf/compare/tests/performance/git/large/TestLargeGitMatchContent.java52
-rw-r--r--performance/org.eclipse.emf.compare.tests.performance/src/org/eclipse/emf/compare/tests/performance/git/large/TestLargeGitMatchId.java52
-rw-r--r--performance/org.eclipse.emf.compare.tests.performance/src/org/eclipse/emf/compare/tests/performance/git/large/TestLargeGitPostComparisonGMF.java56
-rw-r--r--performance/org.eclipse.emf.compare.tests.performance/src/org/eclipse/emf/compare/tests/performance/git/large/TestLargeGitPostComparisonUML.java57
-rw-r--r--performance/org.eclipse.emf.compare.tests.performance/src/org/eclipse/emf/compare/tests/performance/git/large/TestLargeGitPostMatchUML.java52
-rw-r--r--performance/org.eclipse.emf.compare.tests.performance/src/org/eclipse/emf/compare/tests/performance/git/large/TestLargeGitReq.java53
19 files changed, 605 insertions, 13 deletions
diff --git a/performance/org.eclipse.emf.compare.tests.performance/src/data/models/LargeGitInputData.java b/performance/org.eclipse.emf.compare.tests.performance/src/data/models/LargeGitInputData.java
new file mode 100644
index 000000000..014ed9f53
--- /dev/null
+++ b/performance/org.eclipse.emf.compare.tests.performance/src/data/models/LargeGitInputData.java
@@ -0,0 +1,22 @@
+/*******************************************************************************
+ * Copyright (c) 2015 Obeo.
+ * 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
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Obeo - initial API and implementation
+ *******************************************************************************/
+package data.models;
+
+/**
+ * @author <a href="mailto:axel.richard@obeo.fr">Axel Richard</a>
+ *
+ */
+public class LargeGitInputData extends DataGit {
+
+ public LargeGitInputData() {
+ super("src/data/models/git/model_size_large_repo.zip", "model_size_large_repo", "model_size_large_git", "model.uml");
+ }
+} \ No newline at end of file
diff --git a/performance/org.eclipse.emf.compare.tests.performance/src/data/models/git/model_size_large_repo.zip b/performance/org.eclipse.emf.compare.tests.performance/src/data/models/git/model_size_large_repo.zip
new file mode 100644
index 000000000..5aabd4acd
--- /dev/null
+++ b/performance/org.eclipse.emf.compare.tests.performance/src/data/models/git/model_size_large_repo.zip
Binary files differ
diff --git a/performance/org.eclipse.emf.compare.tests.performance/src/org/eclipse/emf/compare/tests/performance/AbstractEMFComparePerformanceTest.java b/performance/org.eclipse.emf.compare.tests.performance/src/org/eclipse/emf/compare/tests/performance/AbstractEMFComparePerformanceTest.java
index 0304d91a3..fd14476f6 100644
--- a/performance/org.eclipse.emf.compare.tests.performance/src/org/eclipse/emf/compare/tests/performance/AbstractEMFComparePerformanceTest.java
+++ b/performance/org.eclipse.emf.compare.tests.performance/src/org/eclipse/emf/compare/tests/performance/AbstractEMFComparePerformanceTest.java
@@ -175,8 +175,8 @@ public abstract class AbstractEMFComparePerformanceTest {
final int columns;
if (readLine == null) {
br.close();
- writer.println("Date, Small UML, Nominal UML, Small Split UML, Nominal Split UML");
- columns = 4;
+ writer.println("Date, Large UML, Large Split UML");
+ columns = 2;
} else {
//Get number of columns that contains measures
columns = readLine.split(",").length - 1;
diff --git a/performance/org.eclipse.emf.compare.tests.performance/src/org/eclipse/emf/compare/tests/performance/PerformanceGitSuite.java b/performance/org.eclipse.emf.compare.tests.performance/src/org/eclipse/emf/compare/tests/performance/PerformanceGitSuite.java
index f7528ffe4..234ae0a58 100644
--- a/performance/org.eclipse.emf.compare.tests.performance/src/org/eclipse/emf/compare/tests/performance/PerformanceGitSuite.java
+++ b/performance/org.eclipse.emf.compare.tests.performance/src/org/eclipse/emf/compare/tests/performance/PerformanceGitSuite.java
@@ -1,11 +1,11 @@
-/*
+/*******************************************************************************
* Copyright (c) 2015 Obeo. 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
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors: Obeo - initial API and implementation
- */
+ *******************************************************************************/
package org.eclipse.emf.compare.tests.performance;
import org.eclipse.emf.compare.tests.performance.git.TestGitCompare;
diff --git a/performance/org.eclipse.emf.compare.tests.performance/src/org/eclipse/emf/compare/tests/performance/PerformanceLargeGitSuite.java b/performance/org.eclipse.emf.compare.tests.performance/src/org/eclipse/emf/compare/tests/performance/PerformanceLargeGitSuite.java
new file mode 100644
index 000000000..68d3523ed
--- /dev/null
+++ b/performance/org.eclipse.emf.compare.tests.performance/src/org/eclipse/emf/compare/tests/performance/PerformanceLargeGitSuite.java
@@ -0,0 +1,38 @@
+/*******************************************************************************
+ * Copyright (c) 2015 Obeo. 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
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors: Obeo - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.emf.compare.tests.performance;
+
+import org.eclipse.emf.compare.tests.performance.git.large.TestLargeGitCompare;
+import org.eclipse.emf.compare.tests.performance.git.large.TestLargeGitConflict;
+import org.eclipse.emf.compare.tests.performance.git.large.TestLargeGitDiff;
+import org.eclipse.emf.compare.tests.performance.git.large.TestLargeGitEqui;
+import org.eclipse.emf.compare.tests.performance.git.large.TestLargeGitMatchId;
+import org.eclipse.emf.compare.tests.performance.git.large.TestLargeGitPostComparisonUML;
+import org.eclipse.emf.compare.tests.performance.git.large.TestLargeGitPostMatchUML;
+import org.eclipse.emf.compare.tests.performance.git.large.TestLargeGitReq;
+import org.junit.runner.RunWith;
+import org.junit.runners.Suite;
+import org.junit.runners.Suite.SuiteClasses;
+
+@RunWith(Suite.class)
+@SuiteClasses({
+ TestLargeGitMatchId.class,
+// TestLargeGitMatchContent.class,
+ TestLargeGitDiff.class,
+ TestLargeGitReq.class,
+ TestLargeGitEqui.class,
+ TestLargeGitConflict.class,
+ TestLargeGitCompare.class,
+ TestLargeGitPostMatchUML.class,
+ TestLargeGitPostComparisonUML.class,
+})
+public class PerformanceLargeGitSuite {
+
+
+}
diff --git a/performance/org.eclipse.emf.compare.tests.performance/src/org/eclipse/emf/compare/tests/performance/PerformanceLargeSuite.java b/performance/org.eclipse.emf.compare.tests.performance/src/org/eclipse/emf/compare/tests/performance/PerformanceLargeSuite.java
index e9e8b165b..dc065914e 100644
--- a/performance/org.eclipse.emf.compare.tests.performance/src/org/eclipse/emf/compare/tests/performance/PerformanceLargeSuite.java
+++ b/performance/org.eclipse.emf.compare.tests.performance/src/org/eclipse/emf/compare/tests/performance/PerformanceLargeSuite.java
@@ -1,11 +1,11 @@
-/*
+/*******************************************************************************
* Copyright (c) 2015 Obeo. 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
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors: Obeo - initial API and implementation
- */
+ *******************************************************************************/
package org.eclipse.emf.compare.tests.performance;
import org.eclipse.emf.compare.tests.performance.large.TestLargeCompare;
diff --git a/performance/org.eclipse.emf.compare.tests.performance/src/org/eclipse/emf/compare/tests/performance/PerformanceSuite.java b/performance/org.eclipse.emf.compare.tests.performance/src/org/eclipse/emf/compare/tests/performance/PerformanceSuite.java
index edf9964be..e76bb4e15 100644
--- a/performance/org.eclipse.emf.compare.tests.performance/src/org/eclipse/emf/compare/tests/performance/PerformanceSuite.java
+++ b/performance/org.eclipse.emf.compare.tests.performance/src/org/eclipse/emf/compare/tests/performance/PerformanceSuite.java
@@ -1,11 +1,11 @@
-/*
+/*******************************************************************************
* Copyright (c) 2011, 2014 Obeo. 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
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors: Obeo - initial API and implementation
- */
+ *******************************************************************************/
package org.eclipse.emf.compare.tests.performance;
import org.junit.runner.RunWith;
diff --git a/performance/org.eclipse.emf.compare.tests.performance/src/org/eclipse/emf/compare/tests/performance/git/TestGitCompare.java b/performance/org.eclipse.emf.compare.tests.performance/src/org/eclipse/emf/compare/tests/performance/git/TestGitCompare.java
index c6f1a04b3..796e22f51 100644
--- a/performance/org.eclipse.emf.compare.tests.performance/src/org/eclipse/emf/compare/tests/performance/git/TestGitCompare.java
+++ b/performance/org.eclipse.emf.compare.tests.performance/src/org/eclipse/emf/compare/tests/performance/git/TestGitCompare.java
@@ -12,7 +12,6 @@ package org.eclipse.emf.compare.tests.performance.git;
import org.eclipse.emf.compare.tests.performance.AbstractEMFComparePerformanceTest;
import org.eclipse.emf.compare.tests.performance.TestCompare;
-import org.eclipse.emf.compare.utils.UseIdentifiers;
import org.junit.FixMethodOrder;
import org.junit.Test;
import org.junit.runners.MethodSorters;
@@ -45,7 +44,7 @@ public class TestGitCompare extends AbstractEMFComparePerformanceTest {
final DataGit data = new SmallGitInputData();
monitor.measure(warmup(), getStepsNumber(), new Runnable() {
public void run() {
- data.match(UseIdentifiers.NEVER);
+ data.compare();
}
});
data.dispose();
@@ -58,7 +57,7 @@ public class TestGitCompare extends AbstractEMFComparePerformanceTest {
final DataGit data = new NominalGitInputData();
monitor.measure(warmup(), getStepsNumber(), new Runnable() {
public void run() {
- data.match(UseIdentifiers.NEVER);
+ data.compare();
}
});
data.dispose();
diff --git a/performance/org.eclipse.emf.compare.tests.performance/src/org/eclipse/emf/compare/tests/performance/git/TestGitPostMatchUML.java b/performance/org.eclipse.emf.compare.tests.performance/src/org/eclipse/emf/compare/tests/performance/git/TestGitPostMatchUML.java
index 8892321e9..e47779df5 100644
--- a/performance/org.eclipse.emf.compare.tests.performance/src/org/eclipse/emf/compare/tests/performance/git/TestGitPostMatchUML.java
+++ b/performance/org.eclipse.emf.compare.tests.performance/src/org/eclipse/emf/compare/tests/performance/git/TestGitPostMatchUML.java
@@ -11,7 +11,7 @@
package org.eclipse.emf.compare.tests.performance.git;
import org.eclipse.emf.compare.tests.performance.AbstractEMFComparePerformanceTest;
-import org.eclipse.emf.compare.tests.performance.TestPostComparisonGMF;
+import org.eclipse.emf.compare.tests.performance.TestPostMatchUML;
import org.junit.FixMethodOrder;
import org.junit.Test;
import org.junit.runners.MethodSorters;
@@ -34,7 +34,7 @@ public class TestGitPostMatchUML extends AbstractEMFComparePerformanceTest {
*/
@Override
protected void setSUTName() {
- getPerformance().getSystemUnderTest().setName(TestPostComparisonGMF.class.getSimpleName());
+ getPerformance().getSystemUnderTest().setName(TestPostMatchUML.class.getSimpleName());
}
@Test
diff --git a/performance/org.eclipse.emf.compare.tests.performance/src/org/eclipse/emf/compare/tests/performance/git/large/TestLargeGitCompare.java b/performance/org.eclipse.emf.compare.tests.performance/src/org/eclipse/emf/compare/tests/performance/git/large/TestLargeGitCompare.java
new file mode 100644
index 000000000..6c9770053
--- /dev/null
+++ b/performance/org.eclipse.emf.compare.tests.performance/src/org/eclipse/emf/compare/tests/performance/git/large/TestLargeGitCompare.java
@@ -0,0 +1,51 @@
+/*******************************************************************************
+ * Copyright (c) 2015 Obeo.
+ * 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
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Obeo - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.emf.compare.tests.performance.git.large;
+
+import org.eclipse.emf.compare.tests.performance.AbstractEMFComparePerformanceTest;
+import org.eclipse.emf.compare.tests.performance.TestCompare;
+import org.junit.FixMethodOrder;
+import org.junit.Test;
+import org.junit.runners.MethodSorters;
+
+import data.models.DataGit;
+import data.models.LargeGitInputData;
+import fr.obeo.performance.api.PerformanceMonitor;
+
+/**
+ * @author <a href="mailto:axel.richard@obeo.fr">Axel Richard</a>
+ *
+ */
+@FixMethodOrder(MethodSorters.NAME_ASCENDING)
+public class TestLargeGitCompare extends AbstractEMFComparePerformanceTest {
+
+ /**
+ * {@inheritDoc}
+ * @see org.eclipse.emf.compare.tests.performance.AbstractEMFComparePerformanceTest#setSUTName()
+ */
+ @Override
+ protected void setSUTName() {
+ getPerformance().getSystemUnderTest().setName(TestCompare.class.getSimpleName());
+ }
+
+ @Test
+ public void a_matchIdUMLLarge() {
+ PerformanceMonitor monitor = getPerformance().createMonitor("compareUMLLarge");
+
+ final DataGit data = new LargeGitInputData();
+ monitor.measure(warmup(), getStepsNumber(), new Runnable() {
+ public void run() {
+ data.compare();
+ }
+ });
+ data.dispose();
+ }
+}
diff --git a/performance/org.eclipse.emf.compare.tests.performance/src/org/eclipse/emf/compare/tests/performance/git/large/TestLargeGitConflict.java b/performance/org.eclipse.emf.compare.tests.performance/src/org/eclipse/emf/compare/tests/performance/git/large/TestLargeGitConflict.java
new file mode 100644
index 000000000..d943b2d1a
--- /dev/null
+++ b/performance/org.eclipse.emf.compare.tests.performance/src/org/eclipse/emf/compare/tests/performance/git/large/TestLargeGitConflict.java
@@ -0,0 +1,55 @@
+/*******************************************************************************
+ * Copyright (c) 2015 Obeo.
+ * 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
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Obeo - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.emf.compare.tests.performance.git.large;
+
+import org.eclipse.emf.compare.tests.performance.AbstractEMFComparePerformanceTest;
+import org.eclipse.emf.compare.tests.performance.TestConflict;
+import org.junit.FixMethodOrder;
+import org.junit.Test;
+import org.junit.runners.MethodSorters;
+
+import data.models.DataGit;
+import data.models.LargeGitInputData;
+import fr.obeo.performance.api.PerformanceMonitor;
+
+/**
+ * @author <a href="mailto:axel.richard@obeo.fr">Axel Richard</a>
+ *
+ */
+@FixMethodOrder(MethodSorters.NAME_ASCENDING)
+public class TestLargeGitConflict extends AbstractEMFComparePerformanceTest {
+
+ /**
+ * {@inheritDoc}
+ * @see org.eclipse.emf.compare.tests.performance.AbstractEMFComparePerformanceTest#setSUTName()
+ */
+ @Override
+ protected void setSUTName() {
+ getPerformance().getSystemUnderTest().setName(TestConflict.class.getSimpleName());
+ }
+
+ @Test
+ public void a_matchIdUMLLarge() {
+ PerformanceMonitor monitor = getPerformance().createMonitor("conflictUMLLarge");
+
+ final DataGit data = new LargeGitInputData();
+ data.match();
+ data.diff();
+ data.req();
+ data.equi();
+ monitor.measure(warmup(), getStepsNumber(), new Runnable() {
+ public void run() {
+ data.conflict();
+ }
+ });
+ data.dispose();
+ }
+}
diff --git a/performance/org.eclipse.emf.compare.tests.performance/src/org/eclipse/emf/compare/tests/performance/git/large/TestLargeGitDiff.java b/performance/org.eclipse.emf.compare.tests.performance/src/org/eclipse/emf/compare/tests/performance/git/large/TestLargeGitDiff.java
new file mode 100644
index 000000000..0388a0aba
--- /dev/null
+++ b/performance/org.eclipse.emf.compare.tests.performance/src/org/eclipse/emf/compare/tests/performance/git/large/TestLargeGitDiff.java
@@ -0,0 +1,52 @@
+/*******************************************************************************
+ * Copyright (c) 2015 Obeo.
+ * 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
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Obeo - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.emf.compare.tests.performance.git.large;
+
+import org.eclipse.emf.compare.tests.performance.AbstractEMFComparePerformanceTest;
+import org.eclipse.emf.compare.tests.performance.TestDiff;
+import org.junit.FixMethodOrder;
+import org.junit.Test;
+import org.junit.runners.MethodSorters;
+
+import data.models.DataGit;
+import data.models.LargeGitInputData;
+import fr.obeo.performance.api.PerformanceMonitor;
+
+/**
+ * @author <a href="mailto:axel.richard@obeo.fr">Axel Richard</a>
+ *
+ */
+@FixMethodOrder(MethodSorters.NAME_ASCENDING)
+public class TestLargeGitDiff extends AbstractEMFComparePerformanceTest {
+
+ /**
+ * {@inheritDoc}
+ * @see org.eclipse.emf.compare.tests.performance.AbstractEMFComparePerformanceTest#setSUTName()
+ */
+ @Override
+ protected void setSUTName() {
+ getPerformance().getSystemUnderTest().setName(TestDiff.class.getSimpleName());
+ }
+
+ @Test
+ public void a_matchIdUMLLarge() {
+ PerformanceMonitor monitor = getPerformance().createMonitor("diffUMLLarge");
+
+ final DataGit data = new LargeGitInputData();
+ data.match();
+ monitor.measure(warmup(), getStepsNumber(), new Runnable() {
+ public void run() {
+ data.diff();
+ }
+ });
+ data.dispose();
+ }
+}
diff --git a/performance/org.eclipse.emf.compare.tests.performance/src/org/eclipse/emf/compare/tests/performance/git/large/TestLargeGitEqui.java b/performance/org.eclipse.emf.compare.tests.performance/src/org/eclipse/emf/compare/tests/performance/git/large/TestLargeGitEqui.java
new file mode 100644
index 000000000..3efcec6c4
--- /dev/null
+++ b/performance/org.eclipse.emf.compare.tests.performance/src/org/eclipse/emf/compare/tests/performance/git/large/TestLargeGitEqui.java
@@ -0,0 +1,53 @@
+/*******************************************************************************
+ * Copyright (c) 2015 Obeo.
+ * 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
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Obeo - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.emf.compare.tests.performance.git.large;
+
+import org.eclipse.emf.compare.tests.performance.AbstractEMFComparePerformanceTest;
+import org.eclipse.emf.compare.tests.performance.TestEqui;
+import org.junit.FixMethodOrder;
+import org.junit.Test;
+import org.junit.runners.MethodSorters;
+
+import data.models.DataGit;
+import data.models.LargeGitInputData;
+import fr.obeo.performance.api.PerformanceMonitor;
+
+/**
+ * @author <a href="mailto:axel.richard@obeo.fr">Axel Richard</a>
+ *
+ */
+@FixMethodOrder(MethodSorters.NAME_ASCENDING)
+public class TestLargeGitEqui extends AbstractEMFComparePerformanceTest {
+
+ /**
+ * {@inheritDoc}
+ * @see org.eclipse.emf.compare.tests.performance.AbstractEMFComparePerformanceTest#setSUTName()
+ */
+ @Override
+ protected void setSUTName() {
+ getPerformance().getSystemUnderTest().setName(TestEqui.class.getSimpleName());
+ }
+
+ @Test
+ public void a_matchIdUMLLarge() {
+ PerformanceMonitor monitor = getPerformance().createMonitor("equiUMLLarge");
+
+ final DataGit data = new LargeGitInputData();
+ data.match();
+ data.diff();
+ monitor.measure(warmup(), getStepsNumber(), new Runnable() {
+ public void run() {
+ data.equi();
+ }
+ });
+ data.dispose();
+ }
+}
diff --git a/performance/org.eclipse.emf.compare.tests.performance/src/org/eclipse/emf/compare/tests/performance/git/large/TestLargeGitMatchContent.java b/performance/org.eclipse.emf.compare.tests.performance/src/org/eclipse/emf/compare/tests/performance/git/large/TestLargeGitMatchContent.java
new file mode 100644
index 000000000..afbc25df1
--- /dev/null
+++ b/performance/org.eclipse.emf.compare.tests.performance/src/org/eclipse/emf/compare/tests/performance/git/large/TestLargeGitMatchContent.java
@@ -0,0 +1,52 @@
+/*******************************************************************************
+ * Copyright (c) 2015 Obeo.
+ * 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
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Obeo - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.emf.compare.tests.performance.git.large;
+
+import org.eclipse.emf.compare.tests.performance.AbstractEMFComparePerformanceTest;
+import org.eclipse.emf.compare.tests.performance.TestMatchContent;
+import org.eclipse.emf.compare.utils.UseIdentifiers;
+import org.junit.FixMethodOrder;
+import org.junit.Test;
+import org.junit.runners.MethodSorters;
+
+import data.models.DataGit;
+import data.models.LargeGitInputData;
+import fr.obeo.performance.api.PerformanceMonitor;
+
+/**
+ * @author <a href="mailto:axel.richard@obeo.fr">Axel Richard</a>
+ *
+ */
+@FixMethodOrder(MethodSorters.NAME_ASCENDING)
+public class TestLargeGitMatchContent extends AbstractEMFComparePerformanceTest {
+
+ /**
+ * {@inheritDoc}
+ * @see org.eclipse.emf.compare.tests.performance.AbstractEMFComparePerformanceTest#setSUTName()
+ */
+ @Override
+ protected void setSUTName() {
+ getPerformance().getSystemUnderTest().setName(TestMatchContent.class.getSimpleName());
+ }
+
+ @Test
+ public void a_matchIdUMLLarge() {
+ PerformanceMonitor monitor = getPerformance().createMonitor("matchContentUMLLarge");
+
+ final DataGit data = new LargeGitInputData();
+ monitor.measure(warmup(), getStepsNumber(), new Runnable() {
+ public void run() {
+ data.match(UseIdentifiers.NEVER);
+ }
+ });
+ data.dispose();
+ }
+}
diff --git a/performance/org.eclipse.emf.compare.tests.performance/src/org/eclipse/emf/compare/tests/performance/git/large/TestLargeGitMatchId.java b/performance/org.eclipse.emf.compare.tests.performance/src/org/eclipse/emf/compare/tests/performance/git/large/TestLargeGitMatchId.java
new file mode 100644
index 000000000..6ada10f57
--- /dev/null
+++ b/performance/org.eclipse.emf.compare.tests.performance/src/org/eclipse/emf/compare/tests/performance/git/large/TestLargeGitMatchId.java
@@ -0,0 +1,52 @@
+/*******************************************************************************
+ * Copyright (c) 2015 Obeo.
+ * 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
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Obeo - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.emf.compare.tests.performance.git.large;
+
+import org.eclipse.emf.compare.tests.performance.AbstractEMFComparePerformanceTest;
+import org.eclipse.emf.compare.tests.performance.TestMatchId;
+import org.eclipse.emf.compare.utils.UseIdentifiers;
+import org.junit.FixMethodOrder;
+import org.junit.Test;
+import org.junit.runners.MethodSorters;
+
+import data.models.DataGit;
+import data.models.LargeGitInputData;
+import fr.obeo.performance.api.PerformanceMonitor;
+
+/**
+ * @author <a href="mailto:axel.richard@obeo.fr">Axel Richard</a>
+ *
+ */
+@FixMethodOrder(MethodSorters.NAME_ASCENDING)
+public class TestLargeGitMatchId extends AbstractEMFComparePerformanceTest {
+
+ /**
+ * {@inheritDoc}
+ * @see org.eclipse.emf.compare.tests.performance.AbstractEMFComparePerformanceTest#setSUTName()
+ */
+ @Override
+ protected void setSUTName() {
+ getPerformance().getSystemUnderTest().setName(TestMatchId.class.getSimpleName());
+ }
+
+ @Test
+ public void a_matchIdUMLLarge() {
+ PerformanceMonitor monitor = getPerformance().createMonitor("matchIdUMLLarge");
+
+ final DataGit data = new LargeGitInputData();
+ monitor.measure(warmup(), getStepsNumber(), new Runnable() {
+ public void run() {
+ data.match(UseIdentifiers.ONLY);
+ }
+ });
+ data.dispose();
+ }
+}
diff --git a/performance/org.eclipse.emf.compare.tests.performance/src/org/eclipse/emf/compare/tests/performance/git/large/TestLargeGitPostComparisonGMF.java b/performance/org.eclipse.emf.compare.tests.performance/src/org/eclipse/emf/compare/tests/performance/git/large/TestLargeGitPostComparisonGMF.java
new file mode 100644
index 000000000..0bcf97c82
--- /dev/null
+++ b/performance/org.eclipse.emf.compare.tests.performance/src/org/eclipse/emf/compare/tests/performance/git/large/TestLargeGitPostComparisonGMF.java
@@ -0,0 +1,56 @@
+/*******************************************************************************
+ * Copyright (c) 2015 Obeo.
+ * 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
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Obeo - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.emf.compare.tests.performance.git.large;
+
+import org.eclipse.emf.compare.tests.performance.AbstractEMFComparePerformanceTest;
+import org.eclipse.emf.compare.tests.performance.TestPostComparisonGMF;
+import org.junit.FixMethodOrder;
+import org.junit.Test;
+import org.junit.runners.MethodSorters;
+
+import data.models.DataGit;
+import data.models.LargeGitInputData;
+import fr.obeo.performance.api.PerformanceMonitor;
+
+/**
+ * @author <a href="mailto:axel.richard@obeo.fr">Axel Richard</a>
+ *
+ */
+@FixMethodOrder(MethodSorters.NAME_ASCENDING)
+public class TestLargeGitPostComparisonGMF extends AbstractEMFComparePerformanceTest {
+
+ /**
+ * {@inheritDoc}
+ * @see org.eclipse.emf.compare.tests.performance.AbstractEMFComparePerformanceTest#setSUTName()
+ */
+ @Override
+ protected void setSUTName() {
+ getPerformance().getSystemUnderTest().setName(TestPostComparisonGMF.class.getSimpleName());
+ }
+
+ @Test
+ public void a_matchIdUMLLarge() {
+ PerformanceMonitor monitor = getPerformance().createMonitor("pcGMFUMLLarge");
+
+ final DataGit data = new LargeGitInputData();
+ data.match();
+ data.diff();
+ data.req();
+ data.equi();
+ data.conflict();
+ monitor.measure(warmup(), getStepsNumber(), new Runnable() {
+ public void run() {
+ data.postComparisonGMF();
+ }
+ });
+ data.dispose();
+ }
+}
diff --git a/performance/org.eclipse.emf.compare.tests.performance/src/org/eclipse/emf/compare/tests/performance/git/large/TestLargeGitPostComparisonUML.java b/performance/org.eclipse.emf.compare.tests.performance/src/org/eclipse/emf/compare/tests/performance/git/large/TestLargeGitPostComparisonUML.java
new file mode 100644
index 000000000..bf1e7dde6
--- /dev/null
+++ b/performance/org.eclipse.emf.compare.tests.performance/src/org/eclipse/emf/compare/tests/performance/git/large/TestLargeGitPostComparisonUML.java
@@ -0,0 +1,57 @@
+/*******************************************************************************
+ * Copyright (c) 2015 Obeo.
+ * 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
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Obeo - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.emf.compare.tests.performance.git.large;
+
+import org.eclipse.emf.compare.tests.performance.AbstractEMFComparePerformanceTest;
+import org.eclipse.emf.compare.tests.performance.TestPostComparisonUML;
+import org.junit.FixMethodOrder;
+import org.junit.Test;
+import org.junit.runners.MethodSorters;
+
+import data.models.DataGit;
+import data.models.LargeGitInputData;
+import fr.obeo.performance.api.PerformanceMonitor;
+
+/**
+ * @author <a href="mailto:axel.richard@obeo.fr">Axel Richard</a>
+ *
+ */
+@FixMethodOrder(MethodSorters.NAME_ASCENDING)
+public class TestLargeGitPostComparisonUML extends AbstractEMFComparePerformanceTest {
+
+ /**
+ * {@inheritDoc}
+ * @see org.eclipse.emf.compare.tests.performance.AbstractEMFComparePerformanceTest#setSUTName()
+ */
+ @Override
+ protected void setSUTName() {
+ getPerformance().getSystemUnderTest().setName(TestPostComparisonUML.class.getSimpleName());
+ }
+
+ @Test
+ public void a_matchIdUMLLarge() {
+ PerformanceMonitor monitor = getPerformance().createMonitor("pcUMLUMLLarge");
+
+ final DataGit data = new LargeGitInputData();
+ data.match();
+ data.postMatchUML();
+ data.diff();
+ data.req();
+ data.equi();
+ data.conflict();
+ monitor.measure(warmup(), getStepsNumber(), new Runnable() {
+ public void run() {
+ data.postComparisonUML();
+ }
+ });
+ data.dispose();
+ }
+}
diff --git a/performance/org.eclipse.emf.compare.tests.performance/src/org/eclipse/emf/compare/tests/performance/git/large/TestLargeGitPostMatchUML.java b/performance/org.eclipse.emf.compare.tests.performance/src/org/eclipse/emf/compare/tests/performance/git/large/TestLargeGitPostMatchUML.java
new file mode 100644
index 000000000..9115d41c8
--- /dev/null
+++ b/performance/org.eclipse.emf.compare.tests.performance/src/org/eclipse/emf/compare/tests/performance/git/large/TestLargeGitPostMatchUML.java
@@ -0,0 +1,52 @@
+/*******************************************************************************
+ * Copyright (c) 2015 Obeo.
+ * 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
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Obeo - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.emf.compare.tests.performance.git.large;
+
+import org.eclipse.emf.compare.tests.performance.AbstractEMFComparePerformanceTest;
+import org.eclipse.emf.compare.tests.performance.TestPostMatchUML;
+import org.junit.FixMethodOrder;
+import org.junit.Test;
+import org.junit.runners.MethodSorters;
+
+import data.models.DataGit;
+import data.models.LargeGitInputData;
+import fr.obeo.performance.api.PerformanceMonitor;
+
+/**
+ * @author <a href="mailto:axel.richard@obeo.fr">Axel Richard</a>
+ *
+ */
+@FixMethodOrder(MethodSorters.NAME_ASCENDING)
+public class TestLargeGitPostMatchUML extends AbstractEMFComparePerformanceTest {
+
+ /**
+ * {@inheritDoc}
+ * @see org.eclipse.emf.compare.tests.performance.AbstractEMFComparePerformanceTest#setSUTName()
+ */
+ @Override
+ protected void setSUTName() {
+ getPerformance().getSystemUnderTest().setName(TestPostMatchUML.class.getSimpleName());
+ }
+
+ @Test
+ public void a_matchIdUMLLarge() {
+ PerformanceMonitor monitor = getPerformance().createMonitor("pmUMLUMLLarge");
+
+ final DataGit data = new LargeGitInputData();
+ data.match();
+ monitor.measure(warmup(), getStepsNumber(), new Runnable() {
+ public void run() {
+ data.postMatchUML();
+ }
+ });
+ data.dispose();
+ }
+}
diff --git a/performance/org.eclipse.emf.compare.tests.performance/src/org/eclipse/emf/compare/tests/performance/git/large/TestLargeGitReq.java b/performance/org.eclipse.emf.compare.tests.performance/src/org/eclipse/emf/compare/tests/performance/git/large/TestLargeGitReq.java
new file mode 100644
index 000000000..0e1b0716c
--- /dev/null
+++ b/performance/org.eclipse.emf.compare.tests.performance/src/org/eclipse/emf/compare/tests/performance/git/large/TestLargeGitReq.java
@@ -0,0 +1,53 @@
+/*******************************************************************************
+ * Copyright (c) 2015 Obeo.
+ * 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
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Obeo - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.emf.compare.tests.performance.git.large;
+
+import org.eclipse.emf.compare.tests.performance.AbstractEMFComparePerformanceTest;
+import org.eclipse.emf.compare.tests.performance.TestReq;
+import org.junit.FixMethodOrder;
+import org.junit.Test;
+import org.junit.runners.MethodSorters;
+
+import data.models.DataGit;
+import data.models.LargeGitInputData;
+import fr.obeo.performance.api.PerformanceMonitor;
+
+/**
+ * @author <a href="mailto:axel.richard@obeo.fr">Axel Richard</a>
+ *
+ */
+@FixMethodOrder(MethodSorters.NAME_ASCENDING)
+public class TestLargeGitReq extends AbstractEMFComparePerformanceTest {
+
+ /**
+ * {@inheritDoc}
+ * @see org.eclipse.emf.compare.tests.performance.AbstractEMFComparePerformanceTest#setSUTName()
+ */
+ @Override
+ protected void setSUTName() {
+ getPerformance().getSystemUnderTest().setName(TestReq.class.getSimpleName());
+ }
+
+ @Test
+ public void a_matchIdUMLLarge() {
+ PerformanceMonitor monitor = getPerformance().createMonitor("reqUMLLarge");
+
+ final DataGit data = new LargeGitInputData();
+ data.match();
+ data.diff();
+ monitor.measure(warmup(), getStepsNumber(), new Runnable() {
+ public void run() {
+ data.req();
+ }
+ });
+ data.dispose();
+ }
+}

Back to the top