]> source.dussan.org Git - sonarqube.git/commitdiff
Adjust assertions in server benchmarks after changes in our hardware
authorSimon Brandhof <simon.brandhof@sonarsource.com>
Tue, 13 Jan 2015 15:42:20 +0000 (16:42 +0100)
committerSimon Brandhof <simon.brandhof@sonarsource.com>
Tue, 13 Jan 2015 15:42:48 +0000 (16:42 +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 50cee518445c38a3a89a4db2405a1dd73ae2597b..64950c865d714bc1d3c2ba60c05b4d49157e3049 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, 3200, 3600);
+    benchmark.expectBetween("Throughput to index issues", throughputPerSecond, 3000, 3400);
 
     // be sure that physical files do not evolve during estimation of size
     tester.get(EsClient.class).prepareOptimize("issues").get();
index 1fa0fde3b81303a19d96166a77351b298875a0b8..ad8a54d0388b48aa44ceee455fdc21d76c7b4fd1 100644 (file)
@@ -88,7 +88,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, 7200, 7600);
+    benchmark.expectBetween("Throughput to index source lines", throughputPerSecond, 7400, 7800);
 
     // be sure that physical files do not evolve during estimation of size
     tester.get(EsClient.class).prepareOptimize(SourceLineIndexDefinition.INDEX).get();