Skip to content

Commit d689167

Browse files
rahulsomName From Git-Plugin-Test
andauthored
chore: Parallelize Tests (#197)
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 | 876 | 873 | 878 | 876 | | After | 300 | 300 | 301 | 300 | | Savings| | | | 576 | | % | | | | 66 | Co-authored-by: Name From Git-Plugin-Test <[email protected]>
1 parent 599809d commit d689167

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
@@ -44,6 +44,15 @@
4444
<compatibleSinceVersion>1.44</compatibleSinceVersion>
4545
</configuration>
4646
</plugin>
47+
<plugin>
48+
<groupId>org.apache.maven.plugins</groupId>
49+
<artifactId>maven-surefire-plugin</artifactId>
50+
<configuration>
51+
<forkCount>1C</forkCount>
52+
<parallel>all</parallel>
53+
<useUnlimitedThreads>true</useUnlimitedThreads>
54+
</configuration>
55+
</plugin>
4756
</plugins>
4857
</build>
4958

0 commit comments

Comments
 (0)