Skip to content

Commit 6140fea

Browse files
Add config cache scenario to benchmark
1 parent 9dcc6d7 commit 6140fea

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

mobile_app1/benchmark.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,10 @@ $GRADLE_PROFILER --benchmark --gradle-version $GRADLE_VERSION $2 --iterations=$i
4747
# shellcheck disable=SC2086
4848
$GRADLE_PROFILER --benchmark --gradle-version $GRADLE_VERSION $2 --iterations=$iterations --warmups=$warmups --output-dir="$outputDir"/gradle --scenario-file "$BASEDIR/performance.scenarios" --project-dir . --gradle-user-home ../gradle-user-home
4949

50+
# shellcheck disable=SC2086
51+
$GRADLE_PROFILER --benchmark --gradle-version $GRADLE_VERSION $2 --iterations=$iterations --warmups=$warmups --output-dir="$outputDir"/gradle_config_cache --scenario-file "$BASEDIR/performance.scenarios" --project-dir . --gradle-user-home ../gradle-user-home -Dorg.gradle.unsafe.configuration-cache=true
52+
5053
# shellcheck disable=SC2086
5154
$GRADLE_PROFILER --benchmark --gradle-version $GRADLE_VERSION $2 --iterations=$iterations --warmups=$warmups --output-dir="$outputDir"/bazel --scenario-file "$BASEDIR/performance.scenarios" --project-dir . --bazel
5255

53-
cat "$outputDir/buck/benchmark.csv" "$outputDir/gradle/benchmark.csv" "$outputDir/bazel/benchmark.csv" >> "$outputDir/all.csv"
56+
cat "$outputDir/buck/benchmark.csv" "$outputDir/gradle/benchmark.csv" "$outputDir/gradle_config_cache/benchmark.csv" "$outputDir/bazel/benchmark.csv" >> "$outputDir/all.csv"

mobile_app1/gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ org.gradle.workers.max=20
55
org.gradle.caching=true
66
android.useAndroidX=true
77
gradle=build -x lint
8-
org.gradle.unsafe.configuration-cache=true
8+
org.gradle.unsafe.configuration-cache=false
99
org.gradle.unsafe.configuration-cache-problems=warn
1010
org.gradle.vfs.watch=true
1111

0 commit comments

Comments
 (0)