From 453154780b3200847d127d63dd93e09f901cc082 Mon Sep 17 00:00:00 2001 From: Yahor Berdnikau Date: Mon, 11 Jul 2022 18:03:02 +0200 Subject: [PATCH] Update Graphql-kotlin build regression benchmark Compare current vs 1.7.10 release --- .../files/graphql-kotlin-1.7.10.patch | 12 ++++++++++++ .../files/graphql-kotlin-current.patch | 10 +++++----- .../benchmarkScripts/graphql-kotlin.benchmark.kts | 11 ++++++++--- 3 files changed, 25 insertions(+), 8 deletions(-) create mode 100644 libraries/tools/gradle/regression-benchmarks/benchmarkScripts/files/graphql-kotlin-1.7.10.patch 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.10.patch new file mode 100644 index 00000000000..32841b88cda --- /dev/null +++ b/libraries/tools/gradle/regression-benchmarks/benchmarkScripts/files/graphql-kotlin-1.7.10.patch @@ -0,0 +1,12 @@ +diff --git a/gradle.properties b/gradle.properties +index 314ccfb8c..ee33f75bc 100644 +--- a/gradle.properties ++++ b/gradle.properties +@@ -15,7 +15,7 @@ org.gradle.jvmargs=-Xmx2g -XX:+HeapDumpOnOutOfMemoryError + + # dependencies + kotlinJvmVersion = 1.8 +-kotlinVersion = 1.6.21 ++kotlinVersion = 1.7.10 + kotlinCoroutinesVersion = 1.6.1 + kotlinxSerializationVersion = 1.3.2 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 f98f3266550..8de1c73271f 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 @@ -23,16 +23,16 @@ index 22383a2ff..9869bd429 100644 - } } } - + diff --git a/gradle.properties b/gradle.properties -index ef5b74bd9..526b0052d 100644 +index 314ccfb8c..ee33f75bc 100644 --- a/gradle.properties +++ b/gradle.properties -@@ -15,7 +15,7 @@ org.gradle.jvmargs=-Xmx2g -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError - +@@ -15,7 +15,7 @@ org.gradle.jvmargs=-Xmx2g -XX:+HeapDumpOnOutOfMemoryError + # dependencies kotlinJvmVersion = 1.8 --kotlinVersion = 1.6.20 +-kotlinVersion = 1.6.21 +kotlinVersion = kotlinCoroutinesVersion = 1.6.1 kotlinxSerializationVersion = 1.3.2 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 e28467306ac..061957ee05b 100644 --- a/libraries/tools/gradle/regression-benchmarks/benchmarkScripts/graphql-kotlin.benchmark.kts +++ b/libraries/tools/gradle/regression-benchmarks/benchmarkScripts/graphql-kotlin.benchmark.kts @@ -9,11 +9,16 @@ @file:BenchmarkProject( name = "graphql-kotlin", gitUrl = "https://github.com/ExpediaGroup/graphql-kotlin.git", - gitCommitSha = "a0a8bad009a4ddbf88ce5c30200f90a091bd3df7" + gitCommitSha = "1a4c7a81a5c63ac9cf7e44faf125a6d1df035439" ) import java.io.File +val stableReleasePatch = { + "graphql-kotlin-1.7.10.patch" to File("benchmarkScripts/files/graphql-kotlin-1.7.10.patch") + .readText() + .byteInputStream() +} val currentReleasePatch = { "graphql-kotlin-current.patch" to File("benchmarkScripts/files/graphql-kotlin-current.patch") .readText() @@ -64,7 +69,7 @@ runAllBenchmarks( } }, mapOf( - "1.6.20" to null, - "1.7.0" to currentReleasePatch + "1.7.10" to stableReleasePatch, + "1.7.20" to currentReleasePatch ) )