Click here to Skip to main content
15,891,184 members
Articles / DevOps / Load Testing

Identifying NHibernate-Related Bottlenecks through Performance Monitoring

Rate me:
Please Sign up or sign in to vote.
4.68/5 (14 votes)
10 Jun 2007CPOL9 min read 85.8K   154   88  
A distilled methodology for detecting and isolating NHibernate-related performance and scalability issues
using Sample.Mocks;

namespace Sample.Tests
{
    public class GeneralCommand : BaseCommandTemplate, ICommand
    {
        #region Constructors
        public GeneralCommand(ThreadContext context) : base(context){}
        #endregion

        #region Methods
        protected override string ProcessCommand()
        {
            //set up for the method call
            GeneralTestMock mock = new GeneralTestMock();
            int x;
            for (int i = 0; i < 100000000; i++)
                 x = i;
            return "I counted to 100000000 yaay!";
        }
        #endregion

        #region Members
        #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)


Written By
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!

Comments and Discussions