jenkinsci / cdevents-plugin

The CDEvents Plugin for Jenkins allows interoperability between different CI/CD tools by adopting core CDF project specification
https://plugins.jenkins.io/cdevents/
Apache License 2.0
4 stars 9 forks source link

chore: Parallelize Tests #8

Closed rahulsom closed 11 months ago

rahulsom commented 1 year ago

What

This change will parallelize tests

Why

This improves the developer experience. On machines with multiple cores, this will vastly improve test performance.

How

This will use all available cores to run tests, and parallelize by all - suite/class/method.

Changes details

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 36 36 37 36
After 24 24 24 24
Savings 12
% 33

Missed anything?