[unit perf tests] AT-644 Removed expected time from the tests

GitOrigin-RevId: a53f40c1721a46c7833018346dc622dec1f1b80a
This commit is contained in:
Nikita Kudrin
2024-02-06 16:59:31 +02:00
committed by intellij-monorepo-bot
parent 1d5c04b55f
commit b143fe1540
118 changed files with 376 additions and 389 deletions

View File

@@ -14,7 +14,7 @@ public class PerformanceTest extends AbstractLombokLightCodeInsightTestCase {
final String testName = getTestName(true);
loadToPsiFile("/performance/" + testName + "/lombok.config");
final PsiFile psiFile = loadToPsiFile("/performance/" + testName + "/HugeClass.java");
PlatformTestUtil.startPerformanceTest(getTestName(false), 500, () -> {
PlatformTestUtil.startPerformanceTest(getTestName(false), () -> {
type(' ');
PsiDocumentManager.getInstance(getProject()).commitDocument(getEditor().getDocument());
((PsiJavaFileImpl)psiFile).getClasses()[0].getFields()[0].hasModifierProperty(PsiModifier.FINAL);
@@ -34,7 +34,7 @@ public class PerformanceTest extends AbstractLombokLightCodeInsightTestCase {
}
public void testGeneratedCode() {
PlatformTestUtil.startPerformanceTest("300 unrelated methods", 60000, () -> {
PlatformTestUtil.startPerformanceTest("300 unrelated methods", () -> {
StringBuilder text = new StringBuilder("import lombok.Getter; import lombok.Setter; @interface Tolerate{} class Foo {");
for (int i = 0; i < 200; i++) {
text.append("@Getter @Setter int bar").append(i).append(";");
@@ -57,7 +57,7 @@ public class PerformanceTest extends AbstractLombokLightCodeInsightTestCase {
}
public void testGeneratedCodeThroughStubs() {
PlatformTestUtil.startPerformanceTest("200 unrelated methods", 20000, () -> {
PlatformTestUtil.startPerformanceTest("200 unrelated methods", () -> {
StringBuilder text = new StringBuilder("import lombok.Getter; import lombok.Setter; @interface Tolerate{} class Foo {");
for (int i = 0; i < 200; i++) {
text.append("@Getter @Setter int bar").append(i).append(";");
@@ -101,7 +101,7 @@ public class PerformanceTest extends AbstractLombokLightCodeInsightTestCase {
classText.append("}");
}
PlatformTestUtil.startPerformanceTest("@Data/@EqualsAndHashCode/@ToString performance", 30000, () -> {
PlatformTestUtil.startPerformanceTest("@Data/@EqualsAndHashCode/@ToString performance", () -> {
myFixture.configureByText("Bar.java", classText.toString());
myFixture.checkHighlighting();
})