]> source.dussan.org Git - sonarqube.git/commitdiff
Adjust ES benchmark assertions
authorSimon Brandhof <simon.brandhof@sonarsource.com>
Tue, 16 Dec 2014 15:46:17 +0000 (16:46 +0100)
committerSimon Brandhof <simon.brandhof@sonarsource.com>
Tue, 16 Dec 2014 16:48:44 +0000 (17:48 +0100)
server/sonar-server-benchmarks/src/test/java/org/sonar/server/benchmark/IssueIndexBenchmarkTest.java
server/sonar-server-benchmarks/src/test/java/org/sonar/server/benchmark/SourceIndexBenchmarkTest.java

index 2fbc3ff5fba76b304173dd6a40dfc7fb7adbd7cb..64da10d83d38a066b89a2f481abd7ba31f530dee 100644 (file)
@@ -112,7 +112,7 @@ public class IssueIndexBenchmarkTest {
     long period = System.currentTimeMillis() - start;
     long throughputPerSecond = 1000 * issues.count.get() / period;
     LOGGER.info(String.format("%d issues indexed in %d ms (%d docs/second)", issues.count.get(), period, throughputPerSecond));
-    benchmark.expectBetween("Throughput to index issues", throughputPerSecond, 2400L, 2600L);
+    benchmark.expectBetween("Throughput to index issues", throughputPerSecond, 2500L, 3000L);
 
     // be sure that physical files do not evolve during estimation of size
     tester.get(EsClient.class).prepareOptimize("issues").get();
index 2f9036ae3a0dbc469dfd315a4d166e6e7d5e38ef..643125175f53f5f80a0d1358cfee527ac6972df2 100644 (file)
@@ -82,7 +82,7 @@ public class SourceIndexBenchmarkTest {
     long nbLines = files.count.get() * LINES_PER_FILE;
     long throughputPerSecond = 1000L * nbLines / period;
     LOGGER.info(String.format("%d lines indexed in %d ms (%d docs/second)", nbLines, period, throughputPerSecond));
-    benchmark.expectBetween("Throughput to index source lines", throughputPerSecond, 400L, 500L);
+    benchmark.expectBetween("Throughput to index source lines", throughputPerSecond, 4300L, 4600L);
 
     // be sure that physical files do not evolve during estimation of size
     tester.get(EsClient.class).prepareOptimize(SourceLineIndexDefinition.INDEX).get();