]> source.dussan.org Git - sonarqube.git/commitdiff
Fix error margin of server benchmark
authorSimon Brandhof <simon.brandhof@sonarsource.com>
Wed, 4 Mar 2015 17:21:49 +0000 (18:21 +0100)
committerSimon Brandhof <simon.brandhof@sonarsource.com>
Wed, 4 Mar 2015 17:22:01 +0000 (18:22 +0100)
server/sonar-server-benchmarks/src/test/java/org/sonar/server/benchmark/IssueIndexBenchmarkTest.java

index c10ee9983ef28660cc65d24b31e4ffe2cc3b66c6..ba5a6aa4d9c41c6d36d94a1cd56f94eadad8a1ec 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.expectAround("Throughput to index issues", throughputPerSecond, 3000, 0.04);
+    benchmark.expectAround("Throughput to index issues", throughputPerSecond, 3400, 0.06);
 
     // be sure that physical files do not evolve during estimation of size
     tester.get(EsClient.class).prepareOptimize("issues").get();