-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Partition vector algorithms test: move out lex compare family #5063
Conversation
Would it be better to keep everything in a single file, but controlled via macros? STL/tests/std/tests/P2321R2_views_zip/env.lst Lines 9 to 13 in a1bc126
With the |
Is there an easy way to select a group using some extra parameter |
I'm not yet concerned about run time of a single configuration. The total run time seems too long. |
Also, partitioning algorithms by algorithm type seems more natural than partitioning views by iterator type. |
We could use tags (like with ASAN), but since the algorithms are unrelated and there's no commonality between the test support machinery, having a separate test does make sense. Let's keep this as-is, thanks! |
There is no new commonality extracted during this separation, as all the commonality, which is mostly the randomness initialization, was previously extracted in #4734 into This specific commonality, I think, is not an indication that these tests should be together. STL/tests/std/tests/P0067R5_charconv/test.cpp Lines 66 to 122 in 1e312b3
|
Actually I'm floating the separation idea with this PR. When thinking of |
If a comprehensive test would have a long run time, then I'd recommend having an off-by-default "EXHAUSTIVE" mode that allows the whole space to be manually run, but having automated runs select a randomized subset of cases. Expensive tests are problematic both from a machine resourcing and timeout perspective, so we need to be careful. |
I'm mirroring this to the MSVC-internal repo - please notify me if any further changes are pushed. |
Thanks for keeping an eye on this ever-growing test! 🐣 🐤 🐔 |
VSO_0000000_vector_algorithms
tends to take longer with more algorithms vectorized.Think we need to partition it.
Starting with lex compare family. They are taking about 30% of total run time,
Also the lex compare direction looks complete, and unlikely to have overlaps with other algorithms.