Click here to Skip to main content
13,004,203 members (79,470 online)
Click here to Skip to main content
Add your own
alternative version


18 bookmarked
Posted 8 Sep 2003


, 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 -->


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.

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.


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.


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

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

You may also be interested in...

Comments and Discussions

General[Message Deleted] Pin
it.ragester28-Mar-09 5:39
memberit.ragester28-Mar-09 5:39 
QuestionWhat are you measuring? Pin
Stephane Rodriguez.9-Sep-03 8:29
memberStephane Rodriguez.9-Sep-03 8:29 
AnswerRe: What are you measuring? Pin
Room2Shroom9-Sep-03 18:08
memberRoom2Shroom9-Sep-03 18:08 
GeneralRe: What are you measuring? Pin
Anonymous9-Sep-03 20:34
sussAnonymous9-Sep-03 20:34 
GeneralRe: What are you measuring? Pin
Room2Shroom11-Sep-03 6:38
memberRoom2Shroom11-Sep-03 6:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    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 | Terms of Use | Mobile
Web01 | 2.8.170627.1 | Last Updated 9 Sep 2003
Article Copyright 2003 by Room2Shroom
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid