From eac1c86513e96790bb02d99d2a6eab804cb740e6 Mon Sep 17 00:00:00 2001 From: Yahor Berdnikau Date: Wed, 12 Oct 2022 18:02:10 +0200 Subject: [PATCH] Update graphql-kotlin build regression benchmarks Added as well benchmarks for configuration time only checks. --- ...7.10.patch => graphql-kotlin-1.7.20.patch} | 10 +++--- .../files/graphql-kotlin-current.patch | 4 +-- .../graphql-kotlin.benchmark.kts | 32 ++++++++++++++++--- 3 files changed, 35 insertions(+), 11 deletions(-) rename libraries/tools/gradle/regression-benchmarks/benchmarkScripts/files/{graphql-kotlin-1.7.10.patch => graphql-kotlin-1.7.20.patch} (57%) diff --git a/libraries/tools/gradle/regression-benchmarks/benchmarkScripts/files/graphql-kotlin-1.7.10.patch b/libraries/tools/gradle/regression-benchmarks/benchmarkScripts/files/graphql-kotlin-1.7.20.patch similarity index 57% rename from libraries/tools/gradle/regression-benchmarks/benchmarkScripts/files/graphql-kotlin-1.7.10.patch rename to libraries/tools/gradle/regression-benchmarks/benchmarkScripts/files/graphql-kotlin-1.7.20.patch index 93fad2a0c35..c81829ba0f9 100644 --- a/libraries/tools/gradle/regression-benchmarks/benchmarkScripts/files/graphql-kotlin-1.7.10.patch +++ b/libraries/tools/gradle/regression-benchmarks/benchmarkScripts/files/graphql-kotlin-1.7.20.patch @@ -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 \ No newline at end of file diff --git a/libraries/tools/gradle/regression-benchmarks/benchmarkScripts/files/graphql-kotlin-current.patch b/libraries/tools/gradle/regression-benchmarks/benchmarkScripts/files/graphql-kotlin-current.patch index 8de1c73271f..53482d2d8bc 100644 --- a/libraries/tools/gradle/regression-benchmarks/benchmarkScripts/files/graphql-kotlin-current.patch +++ b/libraries/tools/gradle/regression-benchmarks/benchmarkScripts/files/graphql-kotlin-current.patch @@ -34,9 +34,9 @@ index 314ccfb8c..ee33f75bc 100644 kotlinJvmVersion = 1.8 -kotlinVersion = 1.6.21 +kotlinVersion = - 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 diff --git a/libraries/tools/gradle/regression-benchmarks/benchmarkScripts/graphql-kotlin.benchmark.kts b/libraries/tools/gradle/regression-benchmarks/benchmarkScripts/graphql-kotlin.benchmark.kts index 061957ee05b..671edc73eed 100644 --- a/libraries/tools/gradle/regression-benchmarks/benchmarkScripts/graphql-kotlin.benchmark.kts +++ b/libraries/tools/gradle/regression-benchmarks/benchmarkScripts/graphql-kotlin.benchmark.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 ) )