Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Performance issue with *very* long test arguments
John Brett
#1 Posted : Thursday, February 20, 2014 8:40:03 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 6/1/2012(UTC)
Posts: 4
Location: Berkshire, UK

Thanks: 2 times
Was thanked: 1 time(s) in 1 post(s)
I've just upgraded to 2.4.0.2 and I've seen a severe change in performance, which I believe I've tracked down to a specific test.
The issue I've seen (and this is a change since the previous version of NCrunch I was using) is that the IDE becomes unresponsive between most operations (typically for 15 to 18 seconds), and periodically crashing. Using ProcExp, I can see that most of the effort is spent in gdi.MeasureString, usually snapshotted whilst waiting for a lock.

The test I believe is responsible for this was parameterized with a *very* long string (>411,000 characters).
[TestCase("POLYGON((296728.92642699997 205150.602408,297355.359789 205352.119332,297355.3597...
public void MakeValidPolygons(string wkt)
{
...
}
I accept that this isn't a normal case, and the performance of my system has returned to normal since I refactored that particular testcase into its own test with non-parameterized data.

However, it's a change of behavior with NCrunch, so I thought I'd bring your attention to it.

John
Remco
#2 Posted : Thursday, February 20, 2014 10:59:18 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 6,979

Thanks: 931 times
Was thanked: 1257 time(s) in 1170 post(s)
Hi John -

Thanks for sharing this issue. The change would be due to the new Tree Grid control used to render test names in the Tests Window. The long name must have given it a bit of extra work to handle! I'll see if there's a way to improve the handling of this. Thanks again for bringing it to my attention.
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAF | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.023 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download