Site Wide Message: (current site time 9/3/2010 7:06:06 PM EDT)
  • We want your input! One of our sponsors wants to know your opinion about development related issues. Click here to tell us what you think.
  • Are you an emerging/young developer (aged 18-30)? If so, would you like the chance to affect future developer tools and products?
    If so, then click here to give your feedback.
 

NTime unit performance testing tool

Print
Email
winzip icon
Submitted on: 5/18/2004 5:58:09 AM
By: Adam Slosarski  
Level: Intermediate
User Rating: By 2 Users
Compatibility:C#, VB.NET

Users have accessed this code  4636 times.
 
author picture
(About the author)
 
     Introduction This article presents unique tool to run repeatable performance tests in actually developed application by programmers. The NTime tool is very similar to {NUnit} tool - an another unit testing tool, so currently users that use NUnit should see almost same GUI and functionality. Background This is the first release of tool to perform repeatable tasks that help managers, architects, developers and testers to test application against its performance. This version may work inconsistent and report some errors in different situations that may exist while running this tool, however it was tested for many reasons. Architecture NTime architecture is similar to NUnit tool, therefore some implementations that were introduced in NUnit may be similar to its users. This section shows features found in NTime tool. Simultaneous Compile and Test Time NTime tool may still be running while there is currently compilation process of application which we want to test. After application has been built, NTime will reflect all changes, you just need to run tests and wait for performance test results whether they are accepted or rejected. Test Timings Actually NTime's timings are high frequency timers that will rely on different onboard chipset's architecture. This difference will generate more or less precision in tests. The one disadvantage while profiling tests is system processes and CPU load. Although you've closed heavy loaded applications there may be other bad thing you may meet -- NTime need some CPU and threads to perform complex tests and therefore you can indicate about 10 microseconds overhead, so if you want to test high frequency running functions then write inside of test code "for" loop statement i.e. 100 loops and then test the result as specified time multiplied by 100. SDK Documentation NTime tool is supported with two documentation files. The NTime Framework SDK will be your starting point to test your applications against performance tests by adding .NET attributes into your code. NTime Framework SDK NTime Framework SDK will be your often SDK documentation. This help file shows you available .NET attributes you can use in your testing applications. Many attributes are similar to NUnit attributs so when you've used NUnit tool before then starting to work with NTime will be easy. NTime GUI SDK After NTime installation you will find NTime source documentation. This will help you add some functionality to NTime for your own, but remember that every changes you've made to this tool are for your private and non-commercial use. Read License.rtf file for further information about NTime licensing. Further Development This NTime version is a GUI only application, next to do i have in future is to develop console application to provide batch script usability. For better NTime tool improvements, you may send comments to adamslosarski@tlen.pl with your suggestions to help me get application working better. Bugs found in this release will be fixed in next version, so earlier found errors will be corrected fast as possible. NTime sources will be available soon on the sourceforge.net website so you can track the next versions.
 
Can't Copy and Paste this?
Click here for a copy-and-paste friendly version of this code!
//**************************************
// for :NTime unit performance testing tool
//**************************************
Copyright 2004 Adam Slosarski
This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software.
Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions:
1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment (see the following) in the product documentation is required.
Portions Copyright 2004 Adam Slosarski
2. Altered source versions must be plainly marked as such, and must not be 
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.Virus note:All files are scanned once-a-day by Planet Source Code for viruses, but new viruses come out every day, so no prevention program can catch 100% of them. For your own safety, please:
  1. Re-scan downloaded files using your personal virus checker before using it.
  2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
  1. You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
  3. You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
  4. You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.
 
 Report Bad Submission
Use this form to notify us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:
 
Your Vote!

What do you think of this code(in the Intermediate category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor See Voting Log
 
Other User Comments
11/25/2004 1:25:52 AM

Why no sources? Sorry, but I wont run an installer just to check out your program.
(If this comment was disrespectful, please report it.)

 
3/22/2005 5:39:17 AMMayuresh Gokhale

I have been doin RnD on NUnit 2.2 , I liked your submission. Can you make any enhancements for ASP.net, like NUnit supports an extented version called NUnitASP. Any ways..good code 5 globes from me
(If this comment was disrespectful, please report it.)

 
3/22/2005 6:13:16 AMAdam Slosarski

This tool has source code inside installer, you can simply run installer and choose sources to install, you can download only sources from www.codeproject.com/dotnet/ntime.asp
(If this comment was disrespectful, please report it.)

 
Add Your Feedback!

Note:Not only will your feedback be posted, but an email will be sent to the code's author from the email account you registered on the site, so you can correspond directly.

NOTICE: The author of this code has been kind enough to share it with you.  If you have a criticism, please state it politely or it will be deleted.

For feedback not related to this particular code, please click here.
 
To post feedback, first please login.