Click here to Skip to main content
Click here to Skip to main content
Go to top

DotNetStress

, 8 Sep 2003
Rate this:
Please Sign up or sign in to vote.
A simple stress tester for .NET
<!-- Add the rest of your HTML here -->

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

Share

About the Author

Room2Shroom
Web Developer
United States United States
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

Comments and Discussions

 
General[Message Deleted] Pinmemberit.ragester28-Mar-09 5:39 
QuestionWhat are you measuring? PinmemberStephane Rodriguez.9-Sep-03 8:29 
AnswerRe: What are you measuring? PinmemberRoom2Shroom9-Sep-03 18:08 
GeneralRe: What are you measuring? PinsussAnonymous9-Sep-03 20:34 
GeneralRe: What are you measuring? PinmemberRoom2Shroom11-Sep-03 6:38 

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.

| Advertise | Privacy | Mobile
Web03 | 2.8.140921.1 | Last Updated 9 Sep 2003
Article Copyright 2003 by Room2Shroom
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid