Browse Source

Adjust performance timing due to new environment

tags/5.2-RC1
Julien Lancelot 9 years ago
parent
commit
cb839206f1

+ 1
- 1
server/sonar-server-benchmarks/src/test/java/org/sonar/server/benchmark/PersistFileSourcesStepTest.java View 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 {

+ 1
- 1
server/sonar-server-benchmarks/src/test/java/org/sonar/server/benchmark/SourceDbBenchmarkTest.java View 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();

Loading…
Cancel
Save