mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-03-22 15:10:43 +07:00
AT-2356 Move performance unit tests from Aggregator
GitOrigin-RevId: 5055234ed889a1347082759e25f19c6a85a2ccda
This commit is contained in:
committed by
intellij-monorepo-bot
parent
054c4b48dc
commit
3d191c9759
@@ -34,7 +34,7 @@ import java.util.concurrent.atomic.AtomicBoolean;
|
||||
import java.util.concurrent.atomic.AtomicInteger;
|
||||
|
||||
public class IdeEventQueueTest extends LightPlatformTestCase {
|
||||
public void testManyEventsStress() {
|
||||
public void testManyEventsStressPerformance() {
|
||||
int N = 100000;
|
||||
Benchmark.newBenchmark("Event queue dispatch", () -> {
|
||||
UIUtil.dispatchAllInvocationEvents();
|
||||
|
||||
@@ -26,7 +26,7 @@ public class LocalFileSystemStressTest extends BareTestFixtureTestCase {
|
||||
@Rule public TempDirectory tempDir = new TempDirectory();
|
||||
|
||||
@Test
|
||||
public void getPathForVeryDeepFileMustNotFailWithStackOverflowError_Stress() throws IOException {
|
||||
public void getPathForVeryDeepFileMustNotFailWithStackOverflowError_Performance() throws IOException {
|
||||
VirtualFile tmpRoot = VirtualFileManager.getInstance().findFileByUrl("temp:///");
|
||||
assertNotNull(tmpRoot);
|
||||
assertThat(tmpRoot.getFileSystem()).isInstanceOf(TempFileSystem.class);
|
||||
|
||||
@@ -460,7 +460,7 @@ class UStringEvaluatorTest : AbstractStringEvaluatorTest() {
|
||||
}
|
||||
)
|
||||
|
||||
fun `test many assignments`() {
|
||||
fun `test many assignments performance`() {
|
||||
val updateTimes = 500
|
||||
val file = myFixture.configureByText("MyFile.java", """
|
||||
class MyFile {
|
||||
|
||||
@@ -491,7 +491,7 @@ class UStringEvaluatorWithSideEffectsTest : AbstractStringEvaluatorTest() {
|
||||
)
|
||||
}
|
||||
|
||||
fun `test many appends`() {
|
||||
fun `test many appends performance`() {
|
||||
val size = 250
|
||||
val file = myFixture.configureByText("MyFile.java", """
|
||||
class MyFile {
|
||||
|
||||
Reference in New Issue
Block a user