Update duckduckgo benchmark
It is still not working due to koltin-androidx-extensions plugin usage.
This commit is contained in:
committed by
Space Team
parent
09ab70473d
commit
137e4b0422
+7
-10
@@ -4,14 +4,14 @@
|
|||||||
@file:BenchmarkProject(
|
@file:BenchmarkProject(
|
||||||
name = "duckduckgo",
|
name = "duckduckgo",
|
||||||
gitUrl = "https://github.com/duckduckgo/Android.git",
|
gitUrl = "https://github.com/duckduckgo/Android.git",
|
||||||
gitCommitSha = "18e230fcefbefb4317c1fe128b4539a2315e7c0a",
|
gitCommitSha = "43bc063d9c044f2ca4a9eae1836cc783fcc7121c",
|
||||||
stableKotlinVersion = "1.7.20",
|
stableKotlinVersion = "1.8.0",
|
||||||
)
|
)
|
||||||
|
|
||||||
import java.io.File
|
import java.io.File
|
||||||
|
|
||||||
val repoPatch = {
|
val repoPatch = {
|
||||||
"duckduckgo-kotlin-current.patch" to File("benchmarkScripts/files/duckduckgo-kotlin-current.patch")
|
"duckduckgo-kotlin-repo.patch" to File("benchmarkScripts/files/duckduckgo-kotlin-repo.patch")
|
||||||
.readText()
|
.readText()
|
||||||
.run { replace("<kotlin_version>", currentKotlinVersion) }
|
.run { replace("<kotlin_version>", currentKotlinVersion) }
|
||||||
.byteInputStream()
|
.byteInputStream()
|
||||||
@@ -41,15 +41,15 @@ runBenchmarks(
|
|||||||
useGradleArgs("--no-build-cache")
|
useGradleArgs("--no-build-cache")
|
||||||
|
|
||||||
runTasks(":app:assemblePlayDebug")
|
runTasks(":app:assemblePlayDebug")
|
||||||
applyAbiChangeTo("app-tracking-protection/vpn-impl/src/main/java/com/duckduckgo/mobile/android/vpn/network/VpnNetworkModule.kt")
|
applyAbiChangeTo("app-tracking-protection/vpn-impl/src/main/java/com/duckduckgo/mobile/android/vpn/di/VpnModule.kt")
|
||||||
}
|
}
|
||||||
|
|
||||||
scenario {
|
scenario {
|
||||||
title = "Incremental build with ABI change in Kapt component"
|
title = "Incremental build with non ABI change in Kapt component"
|
||||||
useGradleArgs("--no-build-cache")
|
useGradleArgs("--no-build-cache")
|
||||||
|
|
||||||
runTasks(":app:assemblePlayDebug")
|
runTasks(":app:assemblePlayDebug")
|
||||||
applyNonAbiChangeTo("app-tracking-protection/vpn-impl/src/main/java/com/duckduckgo/mobile/android/vpn/network/VpnNetworkModule.kt")
|
applyNonAbiChangeTo("app-tracking-protection/vpn-impl/src/main/java/com/duckduckgo/mobile/android/vpn/di/VpnModule.kt")
|
||||||
}
|
}
|
||||||
|
|
||||||
scenario {
|
scenario {
|
||||||
@@ -58,28 +58,25 @@ runBenchmarks(
|
|||||||
|
|
||||||
runTasks(":app:assemblePlayDebug")
|
runTasks(":app:assemblePlayDebug")
|
||||||
|
|
||||||
applyAndroidResourceValueChange("common-ui/src/main/res/values/strings.xml")
|
applyAndroidResourceValueChange("common/src/main/res/values/strings-common.xml")
|
||||||
}
|
}
|
||||||
|
|
||||||
scenario {
|
scenario {
|
||||||
title = "Dry run configuration time"
|
title = "Dry run configuration time"
|
||||||
useGradleArgs("-m")
|
useGradleArgs("-m")
|
||||||
|
|
||||||
iterations = 20
|
|
||||||
runTasks(":app:assemblePlayDebug")
|
runTasks(":app:assemblePlayDebug")
|
||||||
}
|
}
|
||||||
|
|
||||||
scenario {
|
scenario {
|
||||||
title = "No-op configuration time"
|
title = "No-op configuration time"
|
||||||
|
|
||||||
iterations = 20
|
|
||||||
runTasks("help")
|
runTasks("help")
|
||||||
}
|
}
|
||||||
|
|
||||||
scenario {
|
scenario {
|
||||||
title = "UP-TO-DATE configuration time"
|
title = "UP-TO-DATE configuration time"
|
||||||
|
|
||||||
iterations = 20
|
|
||||||
runTasks(":app:assemblePlayDebug")
|
runTasks(":app:assemblePlayDebug")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
-33
@@ -1,33 +0,0 @@
|
|||||||
diff --git a/build.gradle b/build.gradle
|
|
||||||
index be987782b..f59d7e0db 100644
|
|
||||||
--- a/build.gradle
|
|
||||||
+++ b/build.gradle
|
|
||||||
@@ -2,7 +2,7 @@
|
|
||||||
buildscript {
|
|
||||||
|
|
||||||
ext {
|
|
||||||
- kotlin_version = '1.7.10'
|
|
||||||
+ kotlin_version = '1.7.20'
|
|
||||||
spotless = "6.1.2"
|
|
||||||
anvil_version = "2.4.1"
|
|
||||||
gradle_plugin = "7.2.2" // When updating, also update lint_version
|
|
||||||
@@ -120,4 +120,4 @@ fladle {
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
-apply plugin: 'android-reporting'
|
|
||||||
\ No newline at end of file
|
|
||||||
+apply plugin: 'android-reporting'
|
|
||||||
diff --git a/versions.properties b/versions.properties
|
|
||||||
index 0bdde3fdb..c41dc1dc5 100644
|
|
||||||
--- a/versions.properties
|
|
||||||
+++ b/versions.properties
|
|
||||||
@@ -75,7 +75,7 @@ version.jakewharton.rxrelay2=2.0.0
|
|
||||||
|
|
||||||
version.jakewharton.timber=5.0.1
|
|
||||||
|
|
||||||
-version.kotlin=1.7.10
|
|
||||||
+version.kotlin=1.7.20
|
|
||||||
|
|
||||||
version.kotlinx.coroutines=1.6.4
|
|
||||||
|
|
||||||
-49
@@ -1,49 +0,0 @@
|
|||||||
diff --git a/build.gradle b/build.gradle
|
|
||||||
index be987782b..417b6c88d 100644
|
|
||||||
--- a/build.gradle
|
|
||||||
+++ b/build.gradle
|
|
||||||
@@ -2,7 +2,7 @@
|
|
||||||
buildscript {
|
|
||||||
|
|
||||||
ext {
|
|
||||||
- kotlin_version = '1.7.10'
|
|
||||||
+ kotlin_version = '<kotlin_version>'
|
|
||||||
spotless = "6.1.2"
|
|
||||||
anvil_version = "2.4.1"
|
|
||||||
gradle_plugin = "7.2.2" // When updating, also update lint_version
|
|
||||||
@@ -14,6 +14,7 @@ buildscript {
|
|
||||||
}
|
|
||||||
|
|
||||||
repositories {
|
|
||||||
+ mavenLocal()
|
|
||||||
google()
|
|
||||||
mavenCentral()
|
|
||||||
maven { url "https://plugins.gradle.org/m2/" }
|
|
||||||
@@ -35,6 +36,7 @@ plugins {
|
|
||||||
|
|
||||||
allprojects {
|
|
||||||
repositories {
|
|
||||||
+ mavenLocal()
|
|
||||||
google()
|
|
||||||
mavenCentral()
|
|
||||||
}
|
|
||||||
@@ -120,4 +122,4 @@ fladle {
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
-apply plugin: 'android-reporting'
|
|
||||||
\ No newline at end of file
|
|
||||||
+apply plugin: 'android-reporting'
|
|
||||||
diff --git a/versions.properties b/versions.properties
|
|
||||||
index 0bdde3fdb..dff5e798f 100644
|
|
||||||
--- a/versions.properties
|
|
||||||
+++ b/versions.properties
|
|
||||||
@@ -75,7 +75,7 @@ version.jakewharton.rxrelay2=2.0.0
|
|
||||||
|
|
||||||
version.jakewharton.timber=5.0.1
|
|
||||||
|
|
||||||
-version.kotlin=1.7.10
|
|
||||||
+version.kotlin=<kotlin_version>
|
|
||||||
|
|
||||||
version.kotlinx.coroutines=1.6.4
|
|
||||||
|
|
||||||
+70
@@ -0,0 +1,70 @@
|
|||||||
|
diff --git a/build.gradle b/build.gradle
|
||||||
|
index 738db1cd9..a79b8a479 100644
|
||||||
|
--- a/build.gradle
|
||||||
|
+++ b/build.gradle
|
||||||
|
@@ -3,9 +3,8 @@
|
||||||
|
buildscript {
|
||||||
|
|
||||||
|
ext {
|
||||||
|
- kotlin_version = '1.7.10'
|
||||||
|
spotless = "6.1.2"
|
||||||
|
- anvil_version = "2.4.1"
|
||||||
|
+ anvil_version = "2.4.4"
|
||||||
|
gradle_plugin = "7.2.2" // When updating, also update lint_version
|
||||||
|
lint_version = "30.2.2" // This value must always be gradle_plugin + 23
|
||||||
|
min_sdk = 23
|
||||||
|
@@ -16,6 +15,7 @@ buildscript {
|
||||||
|
}
|
||||||
|
|
||||||
|
repositories {
|
||||||
|
+ mavenLocal()
|
||||||
|
google()
|
||||||
|
mavenCentral()
|
||||||
|
maven { url "https://plugins.gradle.org/m2/" }
|
||||||
|
@@ -24,7 +24,7 @@ buildscript {
|
||||||
|
classpath "com.android.tools.build:gradle:$gradle_plugin"
|
||||||
|
classpath "com.diffplug.spotless:spotless-plugin-gradle:$spotless"
|
||||||
|
classpath "com.squareup.anvil:gradle-plugin:$anvil_version"
|
||||||
|
- classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
||||||
|
+ classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
|
||||||
|
|
||||||
|
// NOTE: Do not place your application dependencies here; they belong
|
||||||
|
// in the individual module build.gradle files
|
||||||
|
@@ -38,6 +38,7 @@ plugins {
|
||||||
|
|
||||||
|
allprojects {
|
||||||
|
repositories {
|
||||||
|
+ mavenLocal()
|
||||||
|
google()
|
||||||
|
mavenCentral()
|
||||||
|
}
|
||||||
|
@@ -139,4 +140,4 @@ fladle {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
-apply plugin: 'android-reporting'
|
||||||
|
\ No newline at end of file
|
||||||
|
+apply plugin: 'android-reporting'
|
||||||
|
diff --git a/gradle.properties b/gradle.properties
|
||||||
|
index 709ee46cd..272c1dd8f 100644
|
||||||
|
--- a/gradle.properties
|
||||||
|
+++ b/gradle.properties
|
||||||
|
@@ -21,3 +21,4 @@ org.gradle.caching=true
|
||||||
|
org.gradle.parallel=true
|
||||||
|
org.gradle.configureondemand=true
|
||||||
|
|
||||||
|
+kotlinVersion=<current_version>
|
||||||
|
diff --git a/versions.properties b/versions.properties
|
||||||
|
index 8cdd45631..dd1f42aaf 100644
|
||||||
|
--- a/versions.properties
|
||||||
|
+++ b/versions.properties
|
||||||
|
@@ -77,7 +77,8 @@ version.jakewharton.rxrelay2=2.0.0
|
||||||
|
|
||||||
|
version.jakewharton.timber=5.0.1
|
||||||
|
|
||||||
|
-version.kotlin=1.7.10
|
||||||
|
+version.kotlin=1.8.0
|
||||||
|
+## # available=1.8.255-SNAPSHOT
|
||||||
|
|
||||||
|
version.kotlinx.coroutines=1.6.4
|
||||||
|
|
||||||
Reference in New Issue
Block a user