diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2015-03-04 18:21:49 +0100 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@sonarsource.com> | 2015-03-04 18:22:01 +0100 |
commit | 29cb666027135482de9e93aeaa89b20dcb015b33 (patch) | |
tree | c699dea66c232901d3ef58da4a9f6a7335f0ee98 | |
parent | 8c522f2a8f59bfe96112e1cf5f8da5e75f156c63 (diff) | |
download | sonarqube-29cb666027135482de9e93aeaa89b20dcb015b33.tar.gz sonarqube-29cb666027135482de9e93aeaa89b20dcb015b33.zip |
Fix error margin of server benchmark
-rw-r--r-- | server/sonar-server-benchmarks/src/test/java/org/sonar/server/benchmark/IssueIndexBenchmarkTest.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/sonar-server-benchmarks/src/test/java/org/sonar/server/benchmark/IssueIndexBenchmarkTest.java b/server/sonar-server-benchmarks/src/test/java/org/sonar/server/benchmark/IssueIndexBenchmarkTest.java index c10ee9983ef..ba5a6aa4d9c 100644 --- a/server/sonar-server-benchmarks/src/test/java/org/sonar/server/benchmark/IssueIndexBenchmarkTest.java +++ b/server/sonar-server-benchmarks/src/test/java/org/sonar/server/benchmark/IssueIndexBenchmarkTest.java @@ -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(); |