Skip to content

Commit a1c9812

Browse files
rahulsomName From Git-Plugin-Test
andauthored
chore: Parallelize Tests (#739)
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 | 304 | 306 | 307 | 306 | | After | 120 | 123 | 118 | 120 | | Savings| | | | 186 | | % | | | | 61 | Co-authored-by: Name From Git-Plugin-Test <[email protected]>
1 parent f7c1292 commit a1c9812

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

pom.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,15 @@
224224
</execution>
225225
</executions>
226226
</plugin>
227+
<plugin>
228+
<groupId>org.apache.maven.plugins</groupId>
229+
<artifactId>maven-surefire-plugin</artifactId>
230+
<configuration>
231+
<forkCount>1C</forkCount>
232+
<parallel>all</parallel>
233+
<useUnlimitedThreads>true</useUnlimitedThreads>
234+
</configuration>
235+
</plugin>
227236
</plugins>
228237
</build>
229238

0 commit comments

Comments
 (0)