You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@usergrid.apache.org by sf...@apache.org on 2015/07/21 22:09:19 UTC
[05/10] incubator-usergrid git commit: Less test data and code to
compare 1 read and 1 write thread vs. 100 read and 100 write threads.
Less test data and code to compare 1 read and 1 write thread vs. 100 read and 100 write threads.
Project: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/commit/7b168b91
Tree: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/tree/7b168b91
Diff: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/diff/7b168b91
Branch: refs/heads/master
Commit: 7b168b91d99ba51da452a9c7980b0078f733df03
Parents: a25f8eb
Author: Dave Johnson <sn...@apache.org>
Authored: Tue Jul 14 16:41:06 2015 -0400
Committer: Dave Johnson <sn...@apache.org>
Committed: Tue Jul 14 16:41:06 2015 -0400
----------------------------------------------------------------------
.../apache/usergrid/tools/ExportAppTest.java | 24 ++++++++++++++------
1 file changed, 17 insertions(+), 7 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/7b168b91/stack/tools/src/test/java/org/apache/usergrid/tools/ExportAppTest.java
----------------------------------------------------------------------
diff --git a/stack/tools/src/test/java/org/apache/usergrid/tools/ExportAppTest.java b/stack/tools/src/test/java/org/apache/usergrid/tools/ExportAppTest.java
index d1c5c1f..eeaae13 100644
--- a/stack/tools/src/test/java/org/apache/usergrid/tools/ExportAppTest.java
+++ b/stack/tools/src/test/java/org/apache/usergrid/tools/ExportAppTest.java
@@ -41,9 +41,9 @@ import java.util.concurrent.atomic.AtomicInteger;
public class ExportAppTest {
static final Logger logger = LoggerFactory.getLogger( ExportAppTest.class );
- int NUM_COLLECTIONS = 20;
- int NUM_ENTITIES = 200;
- int NUM_CONNECTIONS = 5;
+ int NUM_COLLECTIONS = 10;
+ int NUM_ENTITIES = 50;
+ int NUM_CONNECTIONS = 3;
@ClassRule
public static ServiceITSetup setup = new ServiceITSetupImpl( ServiceITSuite.cassandraResource );
@@ -113,12 +113,22 @@ public class ExportAppTest {
ExportApp exportApp = new ExportApp();
exportApp.startTool( new String[]{
"-application", appInfo.getName(),
- "-readThreads", "50",
- "-writeThreads", "10",
+ "-readThreads", "100",
+ "-writeThreads", "100",
"-host", "localhost:" + ServiceITSuite.cassandraResource.getRpcPort(),
"-outputDir", directoryName
}, false );
-
- logger.info("time = " + (System.currentTimeMillis() - start)/1000 + "s");
+
+ logger.info("100 read and 100 write threads = " + (System.currentTimeMillis() - start)/1000 + "s");
+
+ exportApp.startTool( new String[]{
+ "-application", appInfo.getName(),
+ "-readThreads", "1",
+ "-writeThreads", "1",
+ "-host", "localhost:" + ServiceITSuite.cassandraResource.getRpcPort(),
+ "-outputDir", directoryName + "1"
+ }, false );
+
+ logger.info("1 thread time = " + (System.currentTimeMillis() - start)/1000 + "s");
}
}
\ No newline at end of file