-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
test: optimize dll test #13497
test: optimize dll test #13497
Conversation
Codecov Report
@@ Coverage Diff @@
## master #13497 +/- ##
================================================
- Coverage 80.2375% 80.2267% -0.0109%
================================================
Files 472 472
Lines 114328 114245 -83
================================================
- Hits 91734 91655 -79
+ Misses 15430 15421 -9
- Partials 7164 7169 +5 |
@zimulala PTAL |
/run-unit-tests |
c83a6c5
to
4394a93
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Your auto merge job has been accepted, waiting for 13511 |
Codecov Report
@@ Coverage Diff @@
## master #13497 +/- ##
===========================================
Coverage 80.5384% 80.5384%
===========================================
Files 472 472
Lines 115895 115895
===========================================
Hits 93340 93340
Misses 15362 15362
Partials 7193 7193 |
/run-all-tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
What problem does this PR solve?
make ddl unit test running faster
What is changed and how it works?
One loop in the hot path cost almost 10s to execute, and several test cases depends on this function. The loop run 100 times to randomly select a range of 3 to check whether the result is right, this is unneccssary. We can reduce it to 20 times with check the lower/upper boundary and some random inner case is enough to make sure the logic is right.
Here is the result:
Before change:
After change:
Check List
Tests
Code changes
Side effects
Related changes