Skip to content

Commit ecc3847

Browse files
author
Name From Git-Plugin-Test
committed
chore: Parallelize Tests
This will use all available cores to run tests, and parallelize by all - suite/class/method. On machines with multiple cores, this will vastly improve test performance. These times are on my M1 MBP with 10 (8P + 2E) cores. They were reported by maven on running `mvn verify`. I first ran `mvn verify` and ignored the time. Then I ran it thrice without this change, and thrice with this change. All times in seconds. | | Run 1 | Run 2 | Run 3 | Average | | ------ | ----: | ----: | ----: | ------: | | Before | 29 | 30 | 29 | 29 | | After | 17 | 17 | 17 | 17 | | Savings| | | | 12 | | % | | | | 41 |
1 parent dfe58b2 commit ecc3847

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

pom.xml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,5 +100,18 @@
100100
</dependency>
101101

102102
</dependencies>
103+
<build>
104+
<plugins>
105+
<plugin>
106+
<groupId>org.apache.maven.plugins</groupId>
107+
<artifactId>maven-surefire-plugin</artifactId>
108+
<configuration>
109+
<forkCount>1C</forkCount>
110+
<parallel>all</parallel>
111+
<useUnlimitedThreads>true</useUnlimitedThreads>
112+
</configuration>
113+
</plugin>
114+
</plugins>
115+
</build>
103116

104117
</project>

0 commit comments

Comments
 (0)