]> source.dussan.org Git - sonarqube.git/commitdiff
Adjust performance timing due to new environment
authorJulien Lancelot <julien.lancelot@sonarsource.com>
Thu, 30 Jul 2015 12:15:04 +0000 (14:15 +0200)
committerJulien Lancelot <julien.lancelot@sonarsource.com>
Thu, 30 Jul 2015 12:15:19 +0000 (14:15 +0200)
server/sonar-server-benchmarks/src/test/java/org/sonar/server/benchmark/PersistFileSourcesStepTest.java
server/sonar-server-benchmarks/src/test/java/org/sonar/server/benchmark/SourceDbBenchmarkTest.java

index b8422b501bcb4d01cbbd3c634c24ba71a0f2f6f4..20fa1bfb92f30808afa8250354cb0ff7c66c463b 100644 (file)
@@ -90,7 +90,7 @@ public class PersistFileSourcesStepTest {
     assertThat(dbTester.countRowsOfTable("file_sources")).isEqualTo(NUMBER_OF_FILES);
     LOGGER.info(String.format("File sources has been persisted in %d ms", duration));
 
-    benchmark.expectAround("Duration to persist FILE_SOURCES", duration, 105000, Benchmark.DEFAULT_ERROR_MARGIN_PERCENTS);
+    benchmark.expectAround("Duration to persist FILE_SOURCES", duration, 140000, Benchmark.DEFAULT_ERROR_MARGIN_PERCENTS);
   }
 
   private File prepareReport() throws IOException {
index 8993301a48671a51d8104707978593571a6b417b..5c7f6d8b3cbcd04ff208c1727f80e50fa412472a 100644 (file)
@@ -79,7 +79,7 @@ public class SourceDbBenchmarkTest {
       long period = end - start;
       long throughputPerSecond = 1000L * counter.get() / period;
       LOGGER.info(String.format("%d FILE_SOURCES rows scrolled in %d ms (%d rows/second)", counter.get(), period, throughputPerSecond));
-      benchmark.expectBetween("Throughput to scroll FILE_SOURCES", throughputPerSecond, 9, 13);
+      benchmark.expectBetween("Throughput to scroll FILE_SOURCES", throughputPerSecond, 10, 14);
 
     } finally {
       timer.cancel();