Update graphql-kotlin build regression benchmarks

Added as well benchmarks for configuration time only checks.
This commit is contained in:
Yahor Berdnikau
2022-10-12 18:02:10 +02:00
parent 53e660c138
commit eac1c86513
3 changed files with 35 additions and 11 deletions
@@ -1,5 +1,5 @@
diff --git a/gradle.properties b/gradle.properties
index 314ccfb8c..ee33f75bc 100644
index a1796af97..43609273a 100644
--- a/gradle.properties
+++ b/gradle.properties
@@ -15,7 +15,7 @@ org.gradle.jvmargs=-Xmx2g -XX:+HeapDumpOnOutOfMemoryError
@@ -7,7 +7,7 @@ index 314ccfb8c..ee33f75bc 100644
# dependencies
kotlinJvmVersion = 1.8
-kotlinVersion = 1.6.21
+kotlinVersion = 1.7.10
kotlinCoroutinesVersion = 1.6.1
kotlinxSerializationVersion = 1.3.2
+kotlinVersion = 1.7.20
kotlinCoroutinesVersion = 1.6.4
# kotlinx-serialization 1.3.3 calls Kotlin 1.7 API
kotlinxSerializationVersion = 1.3.2
@@ -34,9 +34,9 @@ index 314ccfb8c..ee33f75bc 100644
kotlinJvmVersion = 1.8
-kotlinVersion = 1.6.21
+kotlinVersion = <kotlin_version>
kotlinCoroutinesVersion = 1.6.1
kotlinCoroutinesVersion = 1.6.4
# kotlinx-serialization 1.3.3 calls Kotlin 1.7 API
kotlinxSerializationVersion = 1.3.2
diff --git a/settings.gradle.kts b/settings.gradle.kts
index f6fa7cee5..5bbb4828a 100644
--- a/settings.gradle.kts
@@ -9,13 +9,13 @@
@file:BenchmarkProject(
name = "graphql-kotlin",
gitUrl = "https://github.com/ExpediaGroup/graphql-kotlin.git",
gitCommitSha = "1a4c7a81a5c63ac9cf7e44faf125a6d1df035439"
gitCommitSha = "fd1e9063f3aae144e099cdcfa69a4416fa434fb2"
)
import java.io.File
val stableReleasePatch = {
"graphql-kotlin-1.7.10.patch" to File("benchmarkScripts/files/graphql-kotlin-1.7.10.patch")
"graphql-kotlin-1.7.20.patch" to File("benchmarkScripts/files/graphql-kotlin-1.7.20.patch")
.readText()
.byteInputStream()
}
@@ -67,9 +67,33 @@ runAllBenchmarks(
runTasks(":graphql-kotlin-spring-server:assemble")
applyAbiChangeTo("clients/graphql-kotlin-client/src/main/kotlin/com/expediagroup/graphql/client/GraphQLClient.kt")
}
scenario {
title = "Dry run configuration time"
useGradleArgs("--no-build-cache", "-m")
iterations = 20
runTasks("assemble")
}
scenario {
title = "No-op configuration time"
useGradleArgs("--no-build-cache")
iterations = 20
runTasks("help")
}
scenario {
title = "UP-TO-DATE configuration time"
useGradleArgs("--no-build-cache")
iterations = 20
runTasks("assemble")
}
},
mapOf(
"1.7.10" to stableReleasePatch,
"1.7.20" to currentReleasePatch
"1.7.20" to stableReleasePatch,
"1.8.0" to currentReleasePatch
)
)