You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jackrabbit.apache.org by ju...@apache.org on 2010/09/27 14:13:11 UTC
svn commit: r1001697 - in /jackrabbit/trunk/test/performance:
base/src/main/java/org/apache/jackrabbit/performance/AbstractTest.java
base/src/main/java/org/apache/jackrabbit/performance/ConcurrentReadTest.java
parent/pom.xml
Author: jukka
Date: Mon Sep 27 12:13:10 2010
New Revision: 1001697
URL: http://svn.apache.org/viewvc?rev=1001697&view=rev
Log:
JCR-2695: Jackrabbit performance test suite
Add a way to specify a different scale for individual test runs
Modified:
jackrabbit/trunk/test/performance/base/src/main/java/org/apache/jackrabbit/performance/AbstractTest.java
jackrabbit/trunk/test/performance/base/src/main/java/org/apache/jackrabbit/performance/ConcurrentReadTest.java
jackrabbit/trunk/test/performance/parent/pom.xml
Modified: jackrabbit/trunk/test/performance/base/src/main/java/org/apache/jackrabbit/performance/AbstractTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/test/performance/base/src/main/java/org/apache/jackrabbit/performance/AbstractTest.java?rev=1001697&r1=1001696&r2=1001697&view=diff
==============================================================================
--- jackrabbit/trunk/test/performance/base/src/main/java/org/apache/jackrabbit/performance/AbstractTest.java (original)
+++ jackrabbit/trunk/test/performance/base/src/main/java/org/apache/jackrabbit/performance/AbstractTest.java Mon Sep 27 12:13:10 2010
@@ -39,6 +39,10 @@ public abstract class AbstractTest {
private volatile boolean running;
+ protected static int getScale(int def) {
+ return Integer.getInteger("scale", def);
+ }
+
/**
* Prepares this performance benchmark.
*
Modified: jackrabbit/trunk/test/performance/base/src/main/java/org/apache/jackrabbit/performance/ConcurrentReadTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/test/performance/base/src/main/java/org/apache/jackrabbit/performance/ConcurrentReadTest.java?rev=1001697&r1=1001696&r2=1001697&view=diff
==============================================================================
--- jackrabbit/trunk/test/performance/base/src/main/java/org/apache/jackrabbit/performance/ConcurrentReadTest.java (original)
+++ jackrabbit/trunk/test/performance/base/src/main/java/org/apache/jackrabbit/performance/ConcurrentReadTest.java Mon Sep 27 12:13:10 2010
@@ -30,7 +30,7 @@ public class ConcurrentReadTest extends
protected static final int NODE_COUNT = 100;
- private static final int READER_COUNT = 50;
+ private static final int READER_COUNT = getScale(50);
private Session session;
Modified: jackrabbit/trunk/test/performance/parent/pom.xml
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/test/performance/parent/pom.xml?rev=1001697&r1=1001696&r2=1001697&view=diff
==============================================================================
--- jackrabbit/trunk/test/performance/parent/pom.xml (original)
+++ jackrabbit/trunk/test/performance/parent/pom.xml Mon Sep 27 12:13:10 2010
@@ -93,6 +93,31 @@
</pluginManagement>
</build>
</profile>
+ <profile>
+ <id>scaled</id>
+ <activation>
+ <property>
+ <name>scale</name>
+ </property>
+ </activation>
+ <build>
+ <pluginManagement>
+ <plugins>
+ <plugin>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <configuration>
+ <systemProperties>
+ <property>
+ <name>scale</name>
+ <value>${scale}</value>
+ </property>
+ </systemProperties>
+ </configuration>
+ </plugin>
+ </plugins>
+ </pluginManagement>
+ </build>
+ </profile>
</profiles>
</project>