Clean up after nicer performance tests suite dsl
This commit is contained in:
+1
-1
@@ -58,7 +58,7 @@ abstract class AbstractPerformanceProjectsTest : UsefulTestCase() {
|
|||||||
super.setUp()
|
super.setUp()
|
||||||
|
|
||||||
myApplication = initApp(testRootDisposable)
|
myApplication = initApp(testRootDisposable)
|
||||||
initSdk(testRootDisposable)
|
jdk18 = initSdk(testRootDisposable)
|
||||||
}
|
}
|
||||||
|
|
||||||
internal fun warmUpProject(stats: Stats, vararg filesToHighlight: String, openProject: () -> Project) {
|
internal fun warmUpProject(stats: Stats, vararg filesToHighlight: String, openProject: () -> Project) {
|
||||||
|
|||||||
@@ -10,7 +10,6 @@ import com.intellij.testFramework.UsefulTestCase
|
|||||||
import org.jetbrains.kotlin.idea.perf.util.DefaultProfile
|
import org.jetbrains.kotlin.idea.perf.util.DefaultProfile
|
||||||
import org.jetbrains.kotlin.idea.perf.util.PerformanceSuite
|
import org.jetbrains.kotlin.idea.perf.util.PerformanceSuite
|
||||||
import org.jetbrains.kotlin.idea.perf.util.PerformanceSuite.TypingConfig
|
import org.jetbrains.kotlin.idea.perf.util.PerformanceSuite.TypingConfig
|
||||||
import org.jetbrains.kotlin.idea.perf.util.ProjectProfile
|
|
||||||
import org.jetbrains.kotlin.idea.perf.util.suite
|
import org.jetbrains.kotlin.idea.perf.util.suite
|
||||||
import org.jetbrains.kotlin.idea.testFramework.commitAllDocuments
|
import org.jetbrains.kotlin.idea.testFramework.commitAllDocuments
|
||||||
import org.jetbrains.kotlin.test.JUnit3RunnerWithInners
|
import org.jetbrains.kotlin.test.JUnit3RunnerWithInners
|
||||||
@@ -26,7 +25,7 @@ class PerformanceStressTest : UsefulTestCase() {
|
|||||||
|
|
||||||
suite(
|
suite(
|
||||||
suiteName = "Lots of overloaded method project",
|
suiteName = "Lots of overloaded method project",
|
||||||
config = PerformanceSuite.StatsScopeConfig(name = "kt-35135 project", warmup = 8, iterations = 15)
|
config = PerformanceSuite.StatsScopeConfig(name = "kt-35135 project")
|
||||||
) {
|
) {
|
||||||
app {
|
app {
|
||||||
warmUpProject()
|
warmUpProject()
|
||||||
@@ -76,6 +75,11 @@ class PerformanceStressTest : UsefulTestCase() {
|
|||||||
delayMs = 50
|
delayMs = 50
|
||||||
)
|
)
|
||||||
|
|
||||||
|
with(config) {
|
||||||
|
warmup = 8
|
||||||
|
iterations = 15
|
||||||
|
}
|
||||||
|
|
||||||
measure<List<HighlightInfo>>("type override fun foo()", fixture = fixture) {
|
measure<List<HighlightInfo>>("type override fun foo()", fixture = fixture) {
|
||||||
before = {
|
before = {
|
||||||
moveCursor(typingConfig)
|
moveCursor(typingConfig)
|
||||||
|
|||||||
@@ -45,9 +45,6 @@ import org.jetbrains.kotlin.idea.testFramework.TestApplicationManager
|
|||||||
import org.jetbrains.kotlin.idea.util.getProjectJdkTableSafe
|
import org.jetbrains.kotlin.idea.util.getProjectJdkTableSafe
|
||||||
import java.io.File
|
import java.io.File
|
||||||
|
|
||||||
/**
|
|
||||||
* @author Vladimir Ilmov
|
|
||||||
*/
|
|
||||||
class PerformanceSuite {
|
class PerformanceSuite {
|
||||||
companion object {
|
companion object {
|
||||||
|
|
||||||
|
|||||||
@@ -7,9 +7,6 @@ package org.jetbrains.kotlin.idea.perf.util
|
|||||||
|
|
||||||
import org.jetbrains.kotlin.idea.testFramework.ProjectOpenAction
|
import org.jetbrains.kotlin.idea.testFramework.ProjectOpenAction
|
||||||
|
|
||||||
/**
|
|
||||||
* @author Vladimir Ilmov
|
|
||||||
*/
|
|
||||||
class ExternalProject(val path: String, val openWith: ProjectOpenAction) {
|
class ExternalProject(val path: String, val openWith: ProjectOpenAction) {
|
||||||
companion object {
|
companion object {
|
||||||
const val KOTLIN_PROJECT_PATH = "../perfTestProject"
|
const val KOTLIN_PROJECT_PATH = "../perfTestProject"
|
||||||
|
|||||||
Reference in New Issue
Block a user