]> source.dussan.org Git - sonarqube.git/commitdiff
Fix perf tests of issue indexing
authorSimon Brandhof <simon.brandhof@sonarsource.com>
Mon, 31 Aug 2015 08:38:06 +0000 (10:38 +0200)
committerSimon Brandhof <simon.brandhof@sonarsource.com>
Mon, 31 Aug 2015 08:38:20 +0000 (10:38 +0200)
Faster thanks to change of UUID format.

server/sonar-server-benchmarks/src/test/java/org/sonar/server/benchmark/IssueIndexBenchmarkTest.java

index faa4279b78b7d9cc374ad1ad82951626eda0c845..05dc434bb51bb9ca21fb51eacb12c94f7613095b 100644 (file)
@@ -114,7 +114,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, 5116, Benchmark.DEFAULT_ERROR_MARGIN_PERCENTS);
+    benchmark.expectAround("Throughput to index issues", throughputPerSecond, 6500, Benchmark.DEFAULT_ERROR_MARGIN_PERCENTS);
 
     // be sure that physical files do not evolve during estimation of size
     tester.get(EsClient.class).prepareOptimize("issues").setWaitForMerge(true).get();