From 29cb666027135482de9e93aeaa89b20dcb015b33 Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Wed, 4 Mar 2015 18:21:49 +0100 Subject: [PATCH] Fix error margin of server benchmark --- .../org/sonar/server/benchmark/IssueIndexBenchmarkTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- 2.39.5