-
-
Notifications
You must be signed in to change notification settings - Fork 798
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
Performance Issues After Version 4.12.0 #1269
Comments
Yes, if you want someone looking into this, repro code will be required. Otherwise there isn't much that can be done. |
@asherjvitek, any chance that you could provide a test case that I could use to re-run those runtime measurements / reproduce the performance degradation starting in version 4.13.0? Otherwise I'm going to close this issue in about two weeks' time. |
I'm really sorry, I meant to update this issue.
I tried building up an example that didn't use any proprietary code and
when I did the performance difference was not nearly as noticable.
It appears that mocking a large COM Interop object is at the core of the
issue in the codebase I work in.
With that being said I can't give an example including that Interop.
You can close the issue for now as I am unable to provide a code example.
We reverted back to version 12 for now and when I get some downtime at work
I will maybe pull down version 12 and 13 and get some performance metrics.
…On Sun, Jul 24, 2022, 4:53 AM Dominique Schuppli ***@***.***> wrote:
@asherjvitek <https://github.com/asherjvitek>, any chance that you could
provide a test case that I could use to re-run those runtime measurements?
Otherwise I'm going to close this issue in about two weeks' time.
—
Reply to this email directly, view it on GitHub
<#1269 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHR7LGLUVAUNLC6HEB5DNT3VVUHCBANCNFSM52G4DM3A>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Thanks for your reply. OK, I'll close this for the time being, feel free to add a test case / repro code anytime and we can reopen this issue.
If you're mocking a co-class, and it's large (as in: it has many virtual methods), that might be the problem. If you're mocking COM interfaces, I'm surprised that updating to the latest Moq version doesn't bring a huge performance speedup as there has been a significant optimization for interface proxies in DynamicProxy recently. Looking forward to the test code... but take all the time you need. |
Recently we updated our version of moq from 4.7.99 to 4.17.2 in the Solution we use which has around 12,000 unit tests. When we did this the Test run times jumped from around 3+ minutes to 12+ minutes. Once this was noticed we did some benchmarking on a subset of 54 of those unit test and found the following performance differences.
It would appear that after at version 4.13.0 there is a large slow down in the time it takes to run our unit tests.
I found this issue and the comment in the last bullet point seems to be exactly what I am seeing but I feel like a performance hit like this seems a little too large.
Is this performance hit to be expected in newer versions?
If you need a sample of the tests I would need to extract and change the code as it is proprietary to the company I work for but is something I should be able to do if it is necessary.
Please let me know and thank you.
The text was updated successfully, but these errors were encountered: