A lightweight suite for benchmarking Gradle build performance, especially around Configuration Cache and configuration time. This suite is part of my application for the Google Summer of Code (GSoC) 2025 project focused on Improving Configuration Cache in Gradle.
sample-java/
: A basic Java project to test Gradle performance.scenarios/
: Contains.profiler
files used by Gradle Profiler.results/
: Output directory for benchmark results.
- Install Gradle Profiler.
- Run the profiler:
gradle-profiler \
--scenario-file scenarios/config-cache-test.profiler \
--project-dir sample-java \
--output-dir results
Analyze the CSV output in results/.
What It Measures
Configuration Time
Build Execution Time
Configuration Cache Reuse
Clean Builds (Cold)
To simulate cold builds, delete .gradle/ and build/ directories before running:
rm -rf sample-java/.gradle sample-java/build
GSoC 2025 Project
This suite is developed as part of my Google Summer of Code (GSoC) 2025 application. The project focuses on improving Configuration Cache in Gradle, with an emphasis on reducing lock contention and enhancing cache reuse. The suite helps measure and optimize Gradle's configuration performance, a crucial part of my GSoC proposal.