Skip to content

Commit 5afc4cc

Browse files
authored
Speed up testing using parallelization (#2962)
- [x] Use parallel execution for test - Used basic implementation from [Gradle Docs](https://docs.gradle.org/current/userguide/performance.html#execute_tests_in_parallel) as a start - Tests seem already properly independent and hence parallelizable CI effect: - before: `+/- 3m 30s` per action (total usage for 5 actions: `15m 31s`) - after: `2m 58s` per action (total usage for 5 actions: `13m 36s`) Local effect: On my device (Apple M1 Max, 64GB Memory) running `gradle clean test`: - before: ` 1m 42s` - after: `55s`
1 parent 7f908db commit 5afc4cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ dependencies {
6666

6767
tasks.withType(Test).configureEach {
6868
useJUnitPlatform()
69-
69+
maxParallelForks = Runtime.runtime.availableProcessors().intdiv(2) ?: 1
7070
maxHeapSize = '1G'
7171
}
7272

0 commit comments

Comments
 (0)