Projects HL perf test

This commit is contained in:
Vladimir Dolzhenko
2020-05-17 00:35:56 +02:00
committed by Vladimir Dolzhenko
parent 1ae7f693c5
commit 55dc308688
2 changed files with 162 additions and 0 deletions
+35
View File
@@ -67,6 +67,8 @@ javadocJar()
apply(from = "$rootDir/gradle/kotlinPluginPublication.gradle.kts")
projectTest(taskName = "performanceTest") {
exclude("**/*WholeProjectPerformanceTest*")
val currentOs = org.gradle.internal.os.OperatingSystem.current()
if (!currentOs.isWindows) {
@@ -109,4 +111,37 @@ projectTest(taskName = "performanceTest") {
}
}
projectTest(taskName = "wholeProjectsPerformanceTest") {
exclude(
"**/*Generated*",
"**/*PerformanceProjectsTest*",
"**/*PerformanceStressTest*",
"**/*PerformanceNativeProjectsTest*"
)
include("**/*WholeProjectPerformanceTest*")
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:ReservedCodeCacheSize=240m",
"-XX:+UseCompressedOops",
"-XX:+UseConcMarkSweepGC"
)
doFirst {
systemProperty("idea.home.path", intellijRootDir().canonicalPath)
project.findProperty("cacheRedirectorEnabled")?.let {
systemProperty("kotlin.test.gradle.import.arguments", "-PcacheRedirectorEnabled=$it")
}
}
}
testsJar()