Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Parallelize Tests #263

Merged
merged 1 commit into from
Jul 18, 2023
Merged

Conversation

rahulsom
Copy link
Contributor

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 49 50 49 49
After 22 22 22 22
Savings 27
% 55

Testing done

All existing tests pass

Submitter checklist

@timja
Copy link
Member

timja commented Jul 17, 2023

FYI your git author settings are broken, did you want to fix them or should I merge all your PRs?

Co-authored-by: Name From Git-Plugin-Test <[email protected]>

@rahulsom
Copy link
Contributor Author

Yikes. I'll fix it. Thanks!

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 |    49 |    50 |    49 |      49 |
| After  |    22 |    22 |    22 |      22 |
| Savings|       |       |       |      27 |
| %      |       |       |       |      55 |
@timja timja merged commit 1c348d8 into jenkinsci:master Jul 18, 2023
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants