Debugging Unit Tests is rather slow

I use Resharper and TestDriven.NET in parallel and recently made the
jump from 213 to 218. Everything seems pretty solid so far but the one
thing I did notice is that there is a rather noticable performance
decrease when debugging unit tests with R# vs. TestDriven.NET.

For example, when starting the debugging mode the breakpoints have the
question mark icon (which I'm guessing happens while it's initializing
symbols/attaching) for 10-15 seconds, whereas for TD.NET it doesn't
appear at all. I've also noticed that stepping into and over are very
sluggish when debugging within the R# process. Based upon the behavior,
I can be pretty sure that my code is executing more slowly in general in
debug mode.

Sorry I can't really get into more specifics, it's just a general
feeling (and I know I'm not crazy, timing things results in a 3-4x
difference in test startup time between the two methods when debugging.)

-Greg

1 comment
Comment actions Permalink

I use Resharper and TestDriven.NET in parallel and recently made the
jump from 213 to 218. Everything seems pretty solid so far but the one
thing I did notice is that there is a rather noticable performance
decrease when debugging unit tests with R# vs. TestDriven.NET.


Is there performance decrease between 213 and 218?

For example, when starting the debugging mode the breakpoints have the
question mark icon (which I'm guessing happens while it's initializing
symbols/attaching) for 10-15 seconds, whereas for TD.NET it doesn't
appear at all. I've also noticed that stepping into and over are very
sluggish when debugging within the R# process. Based upon the
behavior, I can be pretty sure that my code is executing more slowly
in general in debug mode.


As for the speed of inintializing of debug session, we'll dramatically improve
it in one of the nearest buillds (220 or 221).
As for the speed of stepping when debugging, this might be related with identifiers
highlightings (fields, methods etc are colored into deferent colors) added
to text editors by ReSharper. Could you please try to disable identifiers
highlighting (ReSharper > Options > Highlighting > Enable identifier highlighting)
and try to debug? Is there any difference?


Valentin Kipiatkov
Chief Scientist, Vice President of Product Development
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

I use Resharper and TestDriven.NET in parallel and recently made the
jump from 213 to 218. Everything seems pretty solid so far but the one
thing I did notice is that there is a rather noticable performance
decrease when debugging unit tests with R# vs. TestDriven.NET.

For example, when starting the debugging mode the breakpoints have the
question mark icon (which I'm guessing happens while it's initializing
symbols/attaching) for 10-15 seconds, whereas for TD.NET it doesn't
appear at all. I've also noticed that stepping into and over are very
sluggish when debugging within the R# process. Based upon the
behavior, I can be pretty sure that my code is executing more slowly
in general in debug mode.

Sorry I can't really get into more specifics, it's just a general
feeling (and I know I'm not crazy, timing things results in a 3-4x
difference in test startup time between the two methods when
debugging.)

-Greg



0

Please sign in to leave a comment.