mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-10-02 00:57:59 +07:00
Revert "Revert "[unit perf tests] AT-623 Report multiple performance test invocation as dedicated test runs""
I'm sorry( it was a miss click This reverts commit 31b30a50f6f7797367958c05bf9200ba745bae43. GitOrigin-RevId: 8cdb336471c5803aee8203c89a8faef57a0dafa6
This commit is contained in:
committed by
intellij-monorepo-bot
parent
68a159e743
commit
033cae5626
@@ -376,11 +376,11 @@ Thread 7381: (state = BLOCKED)
|
||||
PlatformTestUtil.startPerformanceTest('parsing spaces', 100, {
|
||||
def threads = ThreadDumpParser.parse(spaces)
|
||||
assert threads.empty
|
||||
}).assertTiming()
|
||||
}).assertTimingAsSubtest()
|
||||
|
||||
PlatformTestUtil.startPerformanceTest('parsing letters', 100, {
|
||||
def threads = ThreadDumpParser.parse(letters)
|
||||
assert threads.empty
|
||||
}).assertTiming()
|
||||
}).assertTimingAsSubtest()
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+5
-5
@@ -142,13 +142,13 @@ class WatchRootsManagerPerformanceTest : BareTestFixtureTestCase() {
|
||||
repeat(18) {
|
||||
WatchRootsManager.createCanonicalPathMap(flatWatchRoots, optimizedRecursiveWatchRoots, pathMappings, false)
|
||||
}
|
||||
}.assertTiming()
|
||||
}.assertTimingAsSubtest()
|
||||
|
||||
PlatformTestUtil.startPerformanceTest("Create canonical path map - convert paths", 10000) {
|
||||
repeat(18) {
|
||||
WatchRootsManager.createCanonicalPathMap(flatWatchRoots, optimizedRecursiveWatchRoots, pathMappings, true)
|
||||
}
|
||||
}.assertTiming()
|
||||
}.assertTimingAsSubtest()
|
||||
}
|
||||
|
||||
@Test fun testCanonicalPathMapWithManySymlinks() {
|
||||
@@ -171,18 +171,18 @@ class WatchRootsManagerPerformanceTest : BareTestFixtureTestCase() {
|
||||
repeat(1_000_000) {
|
||||
map.mapToOriginalWatchRoots("$root/src/ln${(Math.random() * 200_000).toInt()}", true)
|
||||
}
|
||||
}.assertTiming()
|
||||
}.assertTimingAsSubtest()
|
||||
|
||||
PlatformTestUtil.startPerformanceTest("Create canonical path map", 3000) {
|
||||
repeat(100) {
|
||||
WatchRootsManager.createCanonicalPathMap(flatWatchRoots, optimizedRecursiveWatchRoots, pathMappings, false)
|
||||
}
|
||||
}.assertTiming()
|
||||
}.assertTimingAsSubtest()
|
||||
|
||||
PlatformTestUtil.startPerformanceTest("Create canonical path map - convert paths", 3000) {
|
||||
repeat(40) {
|
||||
WatchRootsManager.createCanonicalPathMap(flatWatchRoots, optimizedRecursiveWatchRoots, pathMappings, true)
|
||||
}
|
||||
}.assertTiming()
|
||||
}.assertTimingAsSubtest()
|
||||
}
|
||||
}
|
||||
|
||||
+5
-5
@@ -70,19 +70,19 @@ public class MinusculeMatcherPerformanceTest extends TestCase {
|
||||
public void testMatchingLongStringWithAnotherLongStringWhereOnlyEndsDiffer() {
|
||||
String pattern = "*Then the large string is '{asdbsfafds adsfadasdfasdfasdfasdfasdfasdfsfasf adsfasdf sfasdfasdfasdfasdfasdfasdfd adsfadsfsafd adsfafdadsfsdfasdf sdf asdfasdfasfadsfasdfasfd asdfafd fasdfasdfasdfdsfas dadsfasfadsfafdsafddf dsf dsasdfasdfsdafsdfsdfsdfasdffafdadfafafasdfasdf asdfasdfasdfasdfasdfasdfasdfasdfaasdfsdfasdfds adfafddfas aa afds}' is sent into the abyss\nThen";
|
||||
String name = "Then the large string is '{asdbsfafds adsfadasdfasdfasdfasdfasdfasdfsfasf adsfasdf sfasdfasdfasdfasdfasdfasdfd adsfadsfsafd adsfafdadsfsdfasdf sdf asdfasdfasfadsfasdfasfd asdfafd fasdfasdfasdfdsfas dadsfasfadsfafdsafddf dsf dsasdfasdfsdafsdfsdfsdfasdffafdadfafafasdfasdf asdfasdfasdfasdfasdfasdfasdfasdfaasdfsdfasdfds adfafddfas aa afds}' is sent into the abyss\nTh' is sent into the abyss";
|
||||
assertDoesntMatchFast(pattern, name);
|
||||
assertDoesntMatchFast(pattern, name, "matching1");
|
||||
|
||||
pattern = "findFirstAdjLoanPlanTemplateByAdjLoanPlan_AdjLoanProgram_AdjLoanProgramCodeAndTemplateVersions";
|
||||
name = "findFirstAdjLoanPlanTemplateByAdjLoanPlan_AdjLoanProgram_AdjLoanProgramCodeAndTemplateVersion_TemplateVersionCode";
|
||||
assertDoesntMatchFast(pattern, name);
|
||||
assertDoesntMatchFast(pattern, name, "matching2");
|
||||
|
||||
pattern = "tip.how.to.select.a.thing.and.that.selected.things.are.shown.as.bold";
|
||||
name = "tip.how.to.select.a.thing.and.that.selected.things.are.shown.as.bolid";
|
||||
assertDoesntMatchFast(pattern, name);
|
||||
assertDoesntMatchFast(pattern, name, "matching3");
|
||||
}
|
||||
|
||||
private void assertDoesntMatchFast(String pattern, String name) {
|
||||
PlatformTestUtil.startPerformanceTest(getName(), 30, () -> assertDoesntMatch(pattern, name)).assertTiming();
|
||||
private void assertDoesntMatchFast(String pattern, String name, String subTestName) {
|
||||
PlatformTestUtil.startPerformanceTest(getName(), 30, () -> assertDoesntMatch(pattern, name)).assertTimingAsSubtest(subTestName);
|
||||
}
|
||||
|
||||
public void testMatchingLongRuby() {
|
||||
|
||||
+2
-2
@@ -2048,7 +2048,7 @@ public class StructuralReplaceTest extends StructuralReplaceTestCase {
|
||||
final String pattern = loadFile("ReformatAndShortenClassRefPerformance_pattern.java");
|
||||
final String replacement = loadFile("ReformatAndShortenClassRefPerformance_replacement.java");
|
||||
|
||||
PlatformTestUtil.startPerformanceTest("SSR", 20000,
|
||||
PlatformTestUtil.startPerformanceTest("SSR Reformat", 20000,
|
||||
() -> assertEquals("Reformat Performance", loadFile("ReformatPerformance_result.java"),
|
||||
replace(source, pattern, replacement, true, true)))
|
||||
.assertTimingAsSubtest();
|
||||
@@ -2056,7 +2056,7 @@ public class StructuralReplaceTest extends StructuralReplaceTestCase {
|
||||
options.setToReformatAccordingToStyle(false);
|
||||
options.setToShortenFQN(true);
|
||||
|
||||
PlatformTestUtil.startPerformanceTest("SSR", 20000,
|
||||
PlatformTestUtil.startPerformanceTest("SSR Shorten Class Reference", 20000,
|
||||
() -> assertEquals("Shorten Class Ref Performance", loadFile("ShortenPerformance_result.java"),
|
||||
replace(source, pattern, replacement, true, true)))
|
||||
.assertTimingAsSubtest();
|
||||
|
||||
@@ -207,7 +207,7 @@ public class XmlParsingTest extends ParsingTestCase {
|
||||
PsiFile next = createPsiFile("test" + i, text);
|
||||
transformAllChildren(next.getNode());
|
||||
}
|
||||
}).setup(() -> PsiManager.getInstance(getProject()).dropPsiCaches()).assertTiming();
|
||||
}).setup(() -> PsiManager.getInstance(getProject()).dropPsiCaches()).assertTimingAsSubtest();
|
||||
|
||||
LeafElement firstLeaf = TreeUtil.findFirstLeaf(file.getNode());
|
||||
int count = 0;
|
||||
|
||||
Reference in New Issue
Block a user