Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

set initial costs for expensive parallel unit tests #7451

Merged
merged 1 commit into from
Jun 4, 2019

Conversation

spoonincode
Copy link
Contributor

Change Description

When running multiple tests in parallel it is most optimal to run the longest ones first. Add some initial costs to the known pigs so that they run first.

This improved performance of running the parallel tests via -j8 by ~15% for me.

Astute users will notice that if they run ctest a second time the tests do not run in the same order as the first time. ctest actually records the costs for each test in Testing/Temporary/CTestCostData.txt so that subsequent runs are more optimal. This auto-cost generation doesn't help the CI builds since they are always fresh.

Consensus Changes

  • Consensus Changes

API Changes

  • API Changes

Documentation Additions

  • Documentation Additions

When running multiple tests in parallel it is most optimal to run the longest ones first. Add some initial costs to the known pigs so that they run first.
@spoonincode spoonincode merged commit fc1cf7e into develop Jun 4, 2019
@spoonincode spoonincode deleted the initial_test_costs branch June 4, 2019 18:22
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants