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

Reduce mismatch test run time #4656

Merged
merged 3 commits into from
May 20, 2024

Conversation

AlexGuteniev
Copy link
Contributor

Before this change the mismatch and lex compare test consumed more time than all other tests in vector algorithms test combined.

Done the following:

  • Reused lgk mismatch result in lgk lex compare
  • Reduced the number of random mismatches

Done the following:
 * Reused lgk mismatch result in lgk lex compare
 * Reduced the number of random mismatches
@AlexGuteniev AlexGuteniev requested a review from a team as a code owner May 5, 2024 13:22
@StephanTLavavej StephanTLavavej changed the title Reduce mismatch test run time Reduce mismatch test run time May 7, 2024
@StephanTLavavej StephanTLavavej added the test Related to test code label May 7, 2024
@StephanTLavavej StephanTLavavej self-assigned this May 7, 2024
@StephanTLavavej
Copy link
Member

Thanks! On my local machine, this results in a test speedup of 1.61x, very nice! 😻

@StephanTLavavej
Copy link
Member

I'm mirroring this to the MSVC-internal repo - please notify me if any further changes are pushed.

@StephanTLavavej StephanTLavavej merged commit fcd6915 into microsoft:main May 20, 2024
39 checks passed
@StephanTLavavej
Copy link
Member

Thanks for noticing and fixing how this test was wasting time! ⏱️ ⏳ 😻

@AlexGuteniev AlexGuteniev deleted the greedy_mismatch_test branch May 21, 2024 04:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test Related to test code
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants