ranges.transform.binary.pass.cpp took ~25s to compile. ranges.transform.binary.range.pass.cpp and ranges.transform.binary.iterator.pass.cpp take ~13s each.
Details
- Reviewers
ldionne Mordante var-const huixie90 - Group Reviewers
Restricted Project - Commits
- rGc15ba1bb9498: [libc++] Split ranges.transform.binary.pass.cpp up
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Another way of splitting the test is that you can put test_iterators (both iterators and ranges overload) in a header and having few test files instantiating it for different types of iterators. This way you can avoid duplicating the test points and it is easier to further splitting them up if two is not enough
Thanks for working on this!
On AIX 64 both tests now take about the same time.
555.11s: ibm-libc++-shared.cfg.in :: std/algorithms/alg.modifying.operations/alg.transform/ranges.transform.binary.range.pass.cpp
530.22s: ibm-libc++-shared.cfg.in :: std/algorithms/alg.modifying.operations/alg.transform/ranges.transform.binary.iterator.pass.cpp
libcxx/test/std/algorithms/alg.modifying.operations/alg.transform/ranges.transform.binary.iterator.pass.cpp | ||
---|---|---|
21 | Please add a remark The ranges part is tested in ranges.transform.binary.ranges.pass.cpp, and a similar in the other file. |
LGTM, the test duplication is IMO not that bad. As Nikolas says, it could also be reduced further with meta::for_each.
Please add a remark The ranges part is tested in ranges.transform.binary.ranges.pass.cpp, and a similar in the other file.