mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
adjust some performance tests to reduce flakiness
This commit is contained in:
+2
-2
@@ -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() {
|
||||
|
||||
+1
-1
@@ -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());
|
||||
|
||||
+1
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user