]> source.dussan.org Git - sonarqube.git/commitdiff
Use the same input size for sourceline ES and DB benchmarks
authorSimon Brandhof <simon.brandhof@sonarsource.com>
Thu, 18 Dec 2014 17:07:44 +0000 (18:07 +0100)
committerSimon Brandhof <simon.brandhof@sonarsource.com>
Thu, 18 Dec 2014 17:39:28 +0000 (18:39 +0100)
server/sonar-server-benchmarks/pom.xml
server/sonar-server-benchmarks/src/test/java/org/sonar/server/benchmark/SourceDbBenchmarkTest.java
server/sonar-server-benchmarks/src/test/java/org/sonar/server/benchmark/SourceIndexBenchmarkTest.java

index 1c123be534f1ae27b96fdb5ccf0fc405fd08e0a2..d87fbf40b21ddf312ffb901a7a4d63a8d12216bb 100644 (file)
@@ -74,6 +74,7 @@
             -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75
             -XX:+UseCMSInitiatingOccupancyOnly -XX:+HeapDumpOnOutOfMemoryError
           </argLine>
+          <reuseForks>false</reuseForks>
         </configuration>
       </plugin>
     </plugins>
index 78a7ded44008e75c03f47226369db9cd05513f61..4b5eb5eeb2f2e5c04726b0a19537496a837caead 100644 (file)
@@ -44,7 +44,7 @@ public class SourceDbBenchmarkTest {
 
   public static final Logger LOGGER = LoggerFactory.getLogger("benchmarkSourceDbScrolling");
   // files are 3'220 lines long
-  public static final int NUMBER_OF_FILES = 10000;
+  public static final int NUMBER_OF_FILES = 1000;
   public static final String PROJECT_UUID = Uuids.create();
 
   @Rule
index c09f272526bdb5220782718909ab8c2eafc36d7c..0809e4448897dad7fa9db0e7358ae8f3af7de249 100644 (file)
@@ -53,8 +53,8 @@ import static org.fest.assertions.Assertions.assertThat;
 public class SourceIndexBenchmarkTest {
 
   private static final Logger LOGGER = LoggerFactory.getLogger("benchmarkSourceIndexing");
-  private static final long FILES = 10000L;
-  private static final int LINES_PER_FILE = 200;
+  private static final long FILES = 1000L;
+  private static final int LINES_PER_FILE = 3220;
 
   @Rule
   public ServerTester tester = new ServerTester();