Click here to Skip to main content
13,708,387 members
Click here to Skip to main content
Articles » Database » Database » General » Downloads

Stats

73.8K views
141 downloads
89 bookmarked
Posted 3 Mar 2007
Licenced CPOL

Identifying NHibernate-Related Bottlenecks through Performance Monitoring

, 10 Jun 2007
A distilled methodology for detecting and isolating NHibernate-related performance and scalability issues
using System.Collections;

namespace Sample.Tests
{
    class GeneralTest
    {
		#region Constructors
		public GeneralTest(ThreadContext context, int passes) {
			this.context = context;
		    this.commandCount = passes;
		}
		#endregion

		#region Methods
		public ArrayList BasicGeneralCommandTest() {
			ArrayList commands = new ArrayList();
			for (int i = 0; i < commandCount; i++) {
				commands.Add(new GeneralCommand(context));
			}
			return commands;
		}
		#endregion

		#region Members
		private ThreadContext context;
		private int commandCount = 0;
		#endregion
	}
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Peter Weissbrod
Web Developer
United States United States
Independent contract developer for .NET data-oriented systems.

not much to say about myself but feel free to contact me for any inquiries and comments!

Permalink | Advertise | Privacy | Cookies | Terms of Use | Mobile
Web06-2016 | 2.8.180920.1 | Last Updated 10 Jun 2007
Article Copyright 2007 by Peter Weissbrod
Everything else Copyright © CodeProject, 1999-2018
Layout: fixed | fluid