Add perf the same project perf tests used for FIR for fe10 plugin
This commit is contained in:
@@ -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()
|
||||
+22
@@ -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)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user