-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
src/test: Using gtest-parallel to speedup unittests
Unittests are run sequentially and could take a long while to run. This commit is about using gtest-parallel on some of them which are known to be very slow due to this sequentiality. To enable the parallel features, the 'parallel' argument just have to be added to the add_ceph_unittest() call like in : -add_ceph_unittest(unittest_throttle) +add_ceph_unittest(unittest_throttle parallel) This commit impact the following tests : Test name Before After (in seconds) unittest_erasure_code_shec_all: 212 43 unittest_throttle 15 5 unittest_crush 9 6 unittest_rbd_mirror 79 21 Total 315 75 This commit saves 240 seconds (4 minutes) per build. Note it exist several other long tests but can't be parallelized since there is explicit dependencies in the order to run the subtests. Those stay sequential. Signed-off-by: Erwan Velu <[email protected]>
- Loading branch information
Erwan Velu
committed
Jun 15, 2018
1 parent
42ff13c
commit 13bc625
Showing
5 changed files
with
10 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters