private static final Logger LOGGER = LoggerFactory.getLogger("benchmarkIssues");
- final static int PROJECTS = 1;
+ final static int PROJECTS = 100;
final static int FILES_PER_PROJECT = 100;
final static int ISSUES_PER_FILE = 100;
tester.get(EsClient.class).prepareOptimize("issues").get();
long dirSize = FileUtils.sizeOfDirectory(tester.getEsServerHolder().getHomeDir());
LOGGER.info(String.format("ES dir: " + FileUtils.byteCountToDisplaySize(dirSize)));
- benchmark.expectBetween("ES dir size (b)", dirSize, 385L * FileUtils.ONE_MB, 420L * FileUtils.ONE_MB);
+ benchmark.expectBetween("ES dir size (b)", dirSize, 200L * FileUtils.ONE_MB, 420L * FileUtils.ONE_MB);
}
private void benchmarkQueries() {
tester.get(EsClient.class).prepareOptimize(SourceLineIndexDefinition.INDEX).get();
long dirSize = FileUtils.sizeOfDirectory(tester.getEsServerHolder().getHomeDir());
LOGGER.info(String.format("ES dir: " + FileUtils.byteCountToDisplaySize(dirSize)));
- benchmark.expectBetween("ES dir size (b)", dirSize, 80L * FileUtils.ONE_MB, 100L * FileUtils.ONE_MB);
+ benchmark.expectBetween("ES dir size (b)", dirSize, 68L * FileUtils.ONE_MB, 74L * FileUtils.ONE_MB);
}
private void benchmarkQueries() {