adjust some performance tests to reduce flakiness

This commit is contained in:
peter
2017-07-05 18:03:27 +02:00
parent faf0d45e75
commit 7c24c86a64
3 changed files with 4 additions and 4 deletions
@@ -25,11 +25,11 @@ public class InferencePerformanceTest extends LightDaemonAnalyzerTestCase {
@NonNls static final String BASE_PATH = "/codeInsight/daemonCodeAnalyzer/lambda/performance";
public void testPolyMethodCallArgumentPassedToVarargs() throws Exception {
PlatformTestUtil.startPerformanceTest("50 poly method calls passed to Arrays.asList", 3500, this::doTest).assertTiming();
PlatformTestUtil.startPerformanceTest("50 poly method calls passed to Arrays.asList", 4000, this::doTest).usesAllCPUCores().assertTiming();
}
public void testDiamondConstructorCallPassedToVarargs() throws Exception {
PlatformTestUtil.startPerformanceTest("50 diamond constructor calls passed to Arrays.asList", 10000, this::doTest).assertTiming();
PlatformTestUtil.startPerformanceTest("50 diamond constructor calls passed to Arrays.asList", 12000, this::doTest).usesAllCPUCores().assertTiming();
}
private void doTest() {
@@ -300,7 +300,7 @@ public class VfsUtilPerformanceTest extends BareTestFixtureTestCase {
})
.assertTiming();
PlatformTestUtil.startPerformanceTest("many files deletions", 10000, () -> {
PlatformTestUtil.startPerformanceTest("many files deletions", 11000, () -> {
assertEquals(N, events.size());
processEvents(events);
assertEquals(0, temp.getCachedChildren().size());
@@ -750,7 +750,7 @@ public class VirtualFilePointerTest extends PlatformTestCase {
myVirtualFilePointerManager.create(VfsUtilCore.pathToUrl("/a/b/c/d/" + i), disposable, listener);
events.add(new VFileCreateEvent(this, temp, "xxx" + i, false, true));
}
PlatformTestUtil.startPerformanceTest("vfp update", 5000, () -> {
PlatformTestUtil.startPerformanceTest("vfp update", 6000, () -> {
for (int i=0; i< 100; i++) {
// simulate VFS refresh events since launching the actual refresh is too slow
myVirtualFilePointerManager.before(events);