-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Check performance with/without analyzers. #9988
Comments
I have checked on our automated tests in PerfStar and I do not notice any regression without the analyzers on. As for the run of tests with analyzers, I see insignificant regression (0.4% with previous CI run and 1.4% with 30-days mean) which is on the top edge of the possible variance. I would say it is an acceptable overhead for the new capabilities. However, not many analyzers are implemented, so it is expected that the overhead would not be high at this moment of development. TODO: run manual perf tests on bigger repositories. |
FYI @baronfel |
This is an encouraging result! Can you link to the perfstar runs/charts here for posterity? |
@JanKrivanek checked current main: ran msbuild on OC and console app solutions with and without analyzers.
For small solutions overhead is small, but for bigger one it is quite noticeable. |
Oh - that is almost 14% :-O As for now - we'll likely need a measurement of OC build
@AR-May - can you create items and handle those? It'd be good to test on a version without editorconfig changes (#9811) merged - as that will bring yet another big variable to the perf equation. |
They are currently broken; we have an issue to fix them: https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1896972 I will create items and investigate further the source of this perf issue. I agree that's a big difference.
editorconfig changes are not yet merged, so I tested without them. |
Done, here it is. Does not explain the difference in ~10 seconds of the build time.
|
I turned off the analyzer and ran again with Results:
It seems like most of the perf overhead lays in the infra part and not in the only analyzer. |
With @maridematte changes:
|
Closing this issue - we measured the perf. |
Context
When analyzers are disabled ('/analyze' not passed on command line) there should be no to minimal impact on the build perf. There should be an acceptable overhead for when the analyzers are enabled.
Goals
The text was updated successfully, but these errors were encountered: