x/tools/go/analysis/analysistest: -race flag slows down tests significantly #62283
Labels
FrozenDueToAge
Performance
pkgsite
RaceDetector
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
Hello, team!
Problem statement
On my linter I was noticed that after turning on "race detection" my tests (based on
analysistest.RunWithSuggestedFixes
) started to last instead of 10 seconds on average 50:Linter code does not use goroutines and synchronization mechanisms – just typical AST analysis.
But we have ~10 testdata packages with generated test and golden files pairs (avg 200 lines per file).
analysistest.Run
runs separatly per package (witht.Parallel()
).I tried to repeat it on
go/analysis
checkers:Calculate rate:
Get top:
Question
Such slowing - is it expected behavior or not?
P.S. I apologize for the superficial (evaluative) tests instead of point profiling. Thanks.
The text was updated successfully, but these errors were encountered: