Click here to Skip to main content
Licence 
First Posted 8 Sep 2003
Views 44,275
Bookmarked 18 times

DotNetStress

By | 8 Sep 2003 | Article
A simple stress tester for .NET

Introduction

The download is a simple .NET stress tester.  The user can ask for managed or unmanaged execution and watch the runtime’s response.  The app. is targeted at the .NET beginner or intermediate that wants a glimpse under the hood.

Background (very skip-able)

At work I’m involved in our companies transition to .NET.  Their asking me and a number of others to teach this new platform (and I’ve only been coding in C# 1 year).  Their are some who are struggling - mostly the VB 6 crowd.  Anyway, this app. is an attempt to help such coders.

The Application

A screen shot of the app. and the Performance monitor in action are shown below. The button clicks taken, here, were “Add Objs” and “Clean Up”.

Sample screenshot

Sample screenshot

So one can request a number of unmanaged COM objects (TAPI was chosen).  Or one can request a number of managed objects (array of strings).  I added “Add Mem” in case one has gigantic memory (as I do at work).  The Performance monitor is perfect for watching the results.  Of course with this tool there are many candidates for observation.  As far as .NET the following MSDN path may help in choosing.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgenref/html/gngrfperformancecounters.asp

A Warning

The point of the app. is to strain .NET and, hence, your machine.  But let me say that one can push too hard.  At work I dropped Visual Studio and Windows 2000 got buggy (I’m assuming its MS memory management and not that there’s some bug).  At home, I’ve had to reboot a number of times.  You should start with small numbers.  Get a feel for what your machine can take and then push on.

Be especially careful with the “Array Count” value.  In the code I’m adding 100,000 to make the strings take up more memory.

Conclusion

There are other details but I hope between the UI and the source that these are apparent.  If you play with the app. may you enjoy - but if not, feel free to respond.  I am new to this publishing thing and would welcome your comments.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

About the Author

Room2Shroom

Web Developer

United States United States

Member

Many years with c on VAX's. Next was VB 6 for 3 years and now 1 year with C#. Still use MS C/C++ at home on occasion.
 
Favorite Quotes:
"The shore is the safest place for a fin-less mind"
Emily Dickinson
 
"Its not easy being green"
Kermit the frog


Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
General[Message Deleted] Pinmemberit.ragester5:39 28 Mar '09  
QuestionWhat are you measuring? PinmemberStephane Rodriguez.8:29 9 Sep '03  
AnswerRe: What are you measuring? PinmemberRoom2Shroom18:08 9 Sep '03  
GeneralRe: What are you measuring? PinsussAnonymous20:34 9 Sep '03  
GeneralRe: What are you measuring? PinmemberRoom2Shroom6:38 11 Sep '03  

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Mobile
Web02 | 2.5.120517.1 | Last Updated 9 Sep 2003
Article Copyright 2003 by Room2Shroom
Everything else Copyright © CodeProject, 1999-2012
Terms of Use
Layout: fixed | fluid