adjust some performance tests to reduce flakiness
authorpeter <peter@jetbrains.com>
Wed, 5 Jul 2017 15:27:39 +0000 (17:27 +0200)
committerpeter <peter@jetbrains.com>
Wed, 5 Jul 2017 16:03:27 +0000 (18:03 +0200)
java/java-tests/testSrc/com/intellij/java/codeInsight/daemon/lambda/InferencePerformanceTest.java
platform/platform-tests/testSrc/com/intellij/openapi/vfs/VfsUtilPerformanceTest.java
platform/platform-tests/testSrc/com/intellij/openapi/vfs/impl/VirtualFilePointerTest.java

index 8b2a43e68f4f3717ed496e6dfd942195bd39632a..e1695f605713689804e5ae92d2d68d3c55426f91 100644 (file)
@@ -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() {
index 018518bf1e3e4c8ef6c2f476151e75556dc758c3..16ae12206f4484b2f65b9160590b0a06243a0cf0 100644 (file)
@@ -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());
index 534663d64ce874bf33c28e4228c479af5b023076..9ebcb117aac8b650ca244d97d9873231e1923a32 100644 (file)
@@ -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);