Author: rwesten
Date: Fri Feb 24 13:24:00 2012
New Revision: 1293241
URL: http://svn.apache.org/viewvc?rev=1293241&view=rev
Log:
fixes STANBOL-490 by reducing the iterations and some other parameters of the
unit test
also removed unused imports
Modified:
incubator/stanbol/trunk/commons/indexedgraph/src/main/java/org/apache/stanbol/commons/indexedgraph/IndexedMGraph.java
incubator/stanbol/trunk/commons/indexedgraph/src/main/java/org/apache/stanbol/commons/indexedgraph/IndexedTripleCollection.java
incubator/stanbol/trunk/commons/indexedgraph/src/test/java/org/apache/stanbol/commons/indexedgraph/IndexedGraphTest.java
Modified:
incubator/stanbol/trunk/commons/indexedgraph/src/main/java/org/apache/stanbol/commons/indexedgraph/IndexedMGraph.java
URL:
http://svn.apache.org/viewvc/incubator/stanbol/trunk/commons/indexedgraph/src/main/java/org/apache/stanbol/commons/indexedgraph/IndexedMGraph.java?rev=1293241&r1=1293240&r2=1293241&view=diff
==============================================================================
---
incubator/stanbol/trunk/commons/indexedgraph/src/main/java/org/apache/stanbol/commons/indexedgraph/IndexedMGraph.java
(original)
+++
incubator/stanbol/trunk/commons/indexedgraph/src/main/java/org/apache/stanbol/commons/indexedgraph/IndexedMGraph.java
Fri Feb 24 13:24:00 2012
@@ -22,7 +22,6 @@ import java.util.Iterator;
import org.apache.clerezza.rdf.core.Graph;
import org.apache.clerezza.rdf.core.MGraph;
import org.apache.clerezza.rdf.core.Triple;
-import org.apache.clerezza.rdf.core.impl.SimpleGraph;
public class IndexedMGraph extends IndexedTripleCollection implements MGraph {
Modified:
incubator/stanbol/trunk/commons/indexedgraph/src/main/java/org/apache/stanbol/commons/indexedgraph/IndexedTripleCollection.java
URL:
http://svn.apache.org/viewvc/incubator/stanbol/trunk/commons/indexedgraph/src/main/java/org/apache/stanbol/commons/indexedgraph/IndexedTripleCollection.java?rev=1293241&r1=1293240&r2=1293241&view=diff
==============================================================================
---
incubator/stanbol/trunk/commons/indexedgraph/src/main/java/org/apache/stanbol/commons/indexedgraph/IndexedTripleCollection.java
(original)
+++
incubator/stanbol/trunk/commons/indexedgraph/src/main/java/org/apache/stanbol/commons/indexedgraph/IndexedTripleCollection.java
Fri Feb 24 13:24:00 2012
@@ -28,7 +28,6 @@ import org.apache.clerezza.rdf.core.Reso
import org.apache.clerezza.rdf.core.Triple;
import org.apache.clerezza.rdf.core.TripleCollection;
import org.apache.clerezza.rdf.core.UriRef;
-import org.apache.clerezza.rdf.core.event.RemoveEvent;
import org.apache.clerezza.rdf.core.impl.AbstractTripleCollection;
import org.apache.clerezza.rdf.core.impl.TripleImpl;
Modified:
incubator/stanbol/trunk/commons/indexedgraph/src/test/java/org/apache/stanbol/commons/indexedgraph/IndexedGraphTest.java
URL:
http://svn.apache.org/viewvc/incubator/stanbol/trunk/commons/indexedgraph/src/test/java/org/apache/stanbol/commons/indexedgraph/IndexedGraphTest.java?rev=1293241&r1=1293240&r2=1293241&view=diff
==============================================================================
---
incubator/stanbol/trunk/commons/indexedgraph/src/test/java/org/apache/stanbol/commons/indexedgraph/IndexedGraphTest.java
(original)
+++
incubator/stanbol/trunk/commons/indexedgraph/src/test/java/org/apache/stanbol/commons/indexedgraph/IndexedGraphTest.java
Fri Feb 24 13:24:00 2012
@@ -176,13 +176,13 @@ public class IndexedGraphTest extends M
@Test
public void testPerformance(){
MGraph sg = new SimpleMGraph();
- int iterations = 1000;
+ int iterations = 100; //reduced from 1000
int graphsize = 100000;
createGraph(sg, graphsize);
MGraph ig = new IndexedMGraph(sg);
long start;
//Simple Graph reference test
- TestCase testCase = new TestCase(sg, 100, 5, 100);
+ TestCase testCase = new TestCase(sg, 20, 5, 20); //reduced form
100,5,100
log.info("Filter Performance Test (graph size {} triples, iterations
{})",graphsize,iterations);
log.info(" --- TEST {} with {} triples
---",sg.getClass().getSimpleName(),sg.size());
start = System.currentTimeMillis();