diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2015-03-20 22:45:12 +0100 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@sonarsource.com> | 2015-03-20 22:45:12 +0100 |
commit | 9e7c5906972bf84e48fd31db071f928665906278 (patch) | |
tree | 2a3d7aaac331cab2ab20a74c6e138c22fef7ad34 /server | |
parent | 99c983079b5cd16c34f6407fcfac9cb5b7e821d9 (diff) | |
download | sonarqube-9e7c5906972bf84e48fd31db071f928665906278.tar.gz sonarqube-9e7c5906972bf84e48fd31db071f928665906278.zip |
Adjust performance tests
Diffstat (limited to 'server')
2 files changed, 2 insertions, 2 deletions
diff --git a/server/sonar-server-benchmarks/src/test/java/org/sonar/server/benchmark/SourceDbBenchmarkTest.java b/server/sonar-server-benchmarks/src/test/java/org/sonar/server/benchmark/SourceDbBenchmarkTest.java index 389c29b740f..0884c730a9d 100644 --- a/server/sonar-server-benchmarks/src/test/java/org/sonar/server/benchmark/SourceDbBenchmarkTest.java +++ b/server/sonar-server-benchmarks/src/test/java/org/sonar/server/benchmark/SourceDbBenchmarkTest.java @@ -84,7 +84,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.expectAround("Throughput to scroll FILE_SOURCES", throughputPerSecond, 120, Benchmark.DEFAULT_ERROR_MARGIN_PERCENTS); + benchmark.expectAround("Throughput to scroll FILE_SOURCES", throughputPerSecond, 11, Benchmark.DEFAULT_ERROR_MARGIN_PERCENTS); } finally { DbUtils.closeQuietly(connection); diff --git a/server/sonar-server-benchmarks/src/test/java/org/sonar/server/benchmark/SourceIndexBenchmarkTest.java b/server/sonar-server-benchmarks/src/test/java/org/sonar/server/benchmark/SourceIndexBenchmarkTest.java index ba6c4c0f236..23db5b1f112 100644 --- a/server/sonar-server-benchmarks/src/test/java/org/sonar/server/benchmark/SourceIndexBenchmarkTest.java +++ b/server/sonar-server-benchmarks/src/test/java/org/sonar/server/benchmark/SourceIndexBenchmarkTest.java @@ -87,7 +87,7 @@ public class SourceIndexBenchmarkTest { tester.get(EsClient.class).prepareOptimize(SourceLineIndexDefinition.INDEX).setWaitForMerge(true).get(); long dirSize = FileUtils.sizeOfDirectory(tester.getEsServerHolder().getHomeDir()); LOGGER.info(String.format("ES dir: " + FileUtils.byteCountToDisplaySize(dirSize))); - benchmark.expectBetween("ES dir size (b)", dirSize, 103L * FileUtils.ONE_MB, 109L * FileUtils.ONE_MB); + benchmark.expectBetween("ES dir size (b)", dirSize, 172L * FileUtils.ONE_MB, 182L * FileUtils.ONE_MB); } private void benchmarkQueries() { |