Add perf the same project perf tests used for FIR for fe10 plugin

This commit is contained in:
Ilya Kirillov
2021-01-04 19:44:20 +01:00
parent a22a6b4338
commit a4cf21adef
2 changed files with 47 additions and 0 deletions
+25
View File
@@ -146,5 +146,30 @@ task("aggregateResults", JavaExec::class) {
args(listOf(File(rootDir, "build")))
}
projectTest(taskName = "fe10ProjectPerformanceTest") {
include("**/*WholeProjectPerformanceComparisonFE10ImplTest*")
workingDir = rootDir
jvmArgs?.removeAll { it.startsWith("-Xmx") }
maxHeapSize = "3g"
jvmArgs("-DperformanceProjects=${System.getProperty("performanceProjects")}")
jvmArgs("-Didea.debug.mode=true")
jvmArgs("-DemptyProfile=${System.getProperty("emptyProfile")}")
jvmArgs("-XX:SoftRefLRUPolicyMSPerMB=50")
jvmArgs(
"-XX:+UseCompressedOops",
"-XX:+UseConcMarkSweepGC"
)
doFirst {
systemProperty("idea.home.path", intellijRootDir().canonicalPath)
project.findProperty("cacheRedirectorEnabled")?.let {
systemProperty("kotlin.test.gradle.import.arguments", "-PcacheRedirectorEnabled=$it")
}
}
}
testsJar()
@@ -0,0 +1,22 @@
/*
* Copyright 2010-2021 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.idea.perf
import org.jetbrains.kotlin.idea.perf.common.AbstractWholeProjectPerformanceComparisonTest
class WholeProjectPerformanceComparisonFE10ImplTest : AbstractWholeProjectPerformanceComparisonTest() {
override val testPrefix: String = "FE10"
override fun getWarmUpProject(): WarmUpProject = warmUpProject
fun testRustPlugin() {
doTestRustPlugin()
}
companion object {
private val hwStats: Stats = Stats("FE10 warmup project")
private val warmUpProject = WarmUpProject(hwStats)
}
}