You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by sc...@apache.org on 2017/08/21 19:58:17 UTC

svn commit: r1805670 - /uima/uimaj/trunk/uimaj-core/src/test/java/org/apache/uima/cas/test/IndexRepositoryTest.java

Author: schor
Date: Mon Aug 21 19:58:16 2017
New Revision: 1805670

URL: http://svn.apache.org/viewvc?rev=1805670&view=rev
Log:
no Jira - set test looping to correspond to 2.10.0 in order to confirm no performance issue

Modified:
    uima/uimaj/trunk/uimaj-core/src/test/java/org/apache/uima/cas/test/IndexRepositoryTest.java

Modified: uima/uimaj/trunk/uimaj-core/src/test/java/org/apache/uima/cas/test/IndexRepositoryTest.java
URL: http://svn.apache.org/viewvc/uima/uimaj/trunk/uimaj-core/src/test/java/org/apache/uima/cas/test/IndexRepositoryTest.java?rev=1805670&r1=1805669&r2=1805670&view=diff
==============================================================================
--- uima/uimaj/trunk/uimaj-core/src/test/java/org/apache/uima/cas/test/IndexRepositoryTest.java (original)
+++ uima/uimaj/trunk/uimaj-core/src/test/java/org/apache/uima/cas/test/IndexRepositoryTest.java Mon Aug 21 19:58:16 2017
@@ -234,7 +234,7 @@ public class IndexRepositoryTest extends
     
     // warmup and jit
     long prev = Long.MAX_VALUE;
-    for (int i = 0; i < 10; i++) {
+    for (int i = 0; i < 5 /* 1000 */; i++) {
       cas.getIndexRepository().removeAllIncludingSubtypes(cas.getTypeSystem().getTopType());
       long t = timeAdd2Indexes(fsa, false);
       if (t < prev) {
@@ -244,7 +244,7 @@ public class IndexRepositoryTest extends
     }
     
     prev = Long.MAX_VALUE;
-    for (int i = 0; i < 10; i++) {
+    for (int i = 0; i < 5 /* 10 */; i++) {
       cas.getIndexRepository().removeAllIncludingSubtypes(cas.getTypeSystem().getTopType());
       long t = timeAdd2Indexes(fsa, true);
       if (t < prev) {
@@ -259,7 +259,7 @@ public class IndexRepositoryTest extends
     // create an instance of an non-annotation type
    
 
-    for (int iii = 0; iii < 6 /*10000*/; iii++) { // change to 10000 for iterations
+    for (int iii = 0; iii < 3 /*10000*/; iii++) { // change to 10000 for iterations
       
 //      this.cas = CASInitializer.initCas(new CASTestSetup());
 //      this.typeSystem = this.cas.getTypeSystem();